/* ============================================================
   norleyhome.com — Design System (Composio-inspired dark theme)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --void-black: #0f0f0f;
  --pure-black: #000000;
  --charcoal: #2c2c2c;
  --cobalt: #0007cd;
  --cyan: #00ffff;
  --signal-blue: #0089ff;
  --ocean-blue: #0096ff;
  --pure-white: #ffffff;
  --ghost-white: rgba(255,255,255,0.6);
  --whisper-white: rgba(255,255,255,0.5);
  --phantom-white: rgba(255,255,255,0.2);
  --border-12: rgba(255,255,255,0.12);
  --border-10: rgba(255,255,255,0.10);
  --border-08: rgba(255,255,255,0.08);
  --border-06: rgba(255,255,255,0.06);
  --border-04: rgba(255,255,255,0.04);
  --brutalist-shadow: rgba(0,0,0,0.15) 4px 4px 0px 0px;
  --soft-shadow: rgba(0,0,0,0.5) 0px 8px 32px;
  --font-sans: 'abcDiatype', 'abcDiatype Fallback', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--void-black);
  color: var(--pure-white);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--pure-white);
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.87;
  letter-spacing: normal;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1.0;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.2;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
}

p {
  color: var(--ghost-white);
  font-size: 15px;
  line-height: 1.63;
}

a {
  color: var(--signal-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--cyan);
}

strong {
  color: var(--pure-white);
  font-weight: 500;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(15,15,15,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}

.nav__logo {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--pure-white);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__logo span {
  color: var(--signal-blue);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  font-size: 15px;
  color: var(--ghost-white);
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--pure-white);
}

.nav__cta {
  background-color: var(--pure-white);
  color: oklch(0.145 0 0) !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.nav__cta:hover {
  opacity: 0.88;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--pure-white);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--pure-black);
  border-top: 1px solid var(--border-08);
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile a {
  padding: 14px 24px;
  font-size: 15px;
  color: var(--ghost-white);
  border-bottom: 1px solid var(--border-04);
  display: block;
}

.nav__mobile a:hover {
  color: var(--pure-white);
  background: var(--border-04);
}

/* ── Hero ── */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(0,137,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--signal-blue);
  border: 1px solid var(--border-10);
  border-radius: 2px;
  padding: 5px 10px;
  margin-bottom: 28px;
}

.hero__title {
  max-width: 820px;
  margin-bottom: 24px;
}

.hero__subtitle {
  max-width: 600px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ghost-white);
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__image {
  margin-top: 60px;
  border-radius: 4px;
  border: 1px solid var(--border-10);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  position: relative;
}

.hero__image::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 50%;
  background: radial-gradient(ellipse at bottom, rgba(0,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  min-height: 44px;
}

.btn--primary {
  background-color: var(--pure-white);
  color: oklch(0.145 0 0);
}

.btn--primary:hover {
  opacity: 0.88;
  color: oklch(0.145 0 0);
}

.btn--cyan {
  background-color: rgba(0,255,255,0.12);
  color: var(--pure-white);
  border: 1px solid var(--ocean-blue);
}

.btn--cyan:hover {
  background-color: rgba(0,255,255,0.18);
  color: var(--pure-white);
}

.btn--outline {
  background: transparent;
  color: var(--ghost-white);
  border: 1px solid var(--charcoal);
}

.btn--outline:hover {
  border-color: var(--border-12);
  color: var(--pure-white);
}

/* ── Section Header ── */
.section-header {
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--signal-blue);
  margin-bottom: 14px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 580px;
  font-size: 16px;
}

/* ── Cards ── */
.card {
  background: var(--pure-black);
  border: 1px solid var(--border-10);
  border-radius: 4px;
  padding: 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--border-12);
  box-shadow: var(--brutalist-shadow);
}

.card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--signal-blue);
}

.card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--whisper-white);
  margin-bottom: 10px;
  display: block;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.card p {
  font-size: 14px;
  line-height: 1.63;
}

/* ── Grid ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── Article / Content ── */
.article {
  max-width: 780px;
  margin: 0 auto;
}

.article h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  margin-top: 48px;
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 12px;
  margin-top: 32px;
  color: var(--pure-white);
}

.article p {
  margin-bottom: 18px;
}

.article ul, .article ol {
  margin: 0 0 18px 24px;
}

.article li {
  color: var(--ghost-white);
  font-size: 15px;
  line-height: 1.63;
  margin-bottom: 6px;
}

.article .callout {
  background: var(--pure-black);
  border: 1px solid var(--border-10);
  border-left: 3px solid var(--signal-blue);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 24px 0;
}

.article .callout p {
  margin: 0;
  font-size: 15px;
}

/* ── Image in article ── */
.article-image {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--border-10);
  overflow: hidden;
  margin: 32px 0;
  box-shadow: var(--soft-shadow);
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-image figcaption {
  padding: 12px 16px;
  background: var(--pure-black);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--whisper-white);
  border-top: 1px solid var(--border-08);
}

/* ── Stats ── */
.stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding: 40px;
  background: var(--pure-black);
  border: 1px solid var(--border-10);
  border-radius: 4px;
  margin: 48px 0;
}

.stat {
  flex: 1;
  min-width: 120px;
}

.stat__number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--pure-white);
  line-height: 1.0;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 13px;
  color: var(--whisper-white);
}

/* ── Tips / List sections ── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tip-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--pure-black);
  border: 1px solid var(--border-08);
  border-radius: 4px;
}

.tip-item__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--signal-blue);
  letter-spacing: 0.5px;
  flex-shrink: 0;
  padding-top: 2px;
  min-width: 28px;
}

.tip-item__content h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--pure-white);
}

.tip-item__content p {
  font-size: 14px;
  margin: 0;
}

/* ── Section Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border-06);
  margin: 0;
}

/* ── CTA Banner ── */
.cta-band {
  background: linear-gradient(135deg, rgba(0,7,205,0.2) 0%, transparent 60%);
  border: 1px solid var(--border-10);
  border-radius: 4px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(0,255,255,0.06) 0%, transparent 70%);
}

.cta-band h2 {
  margin-bottom: 16px;
  position: relative;
}

.cta-band p {
  max-width: 520px;
  margin: 0 auto 32px;
  position: relative;
}

.cta-band .btn {
  position: relative;
}

/* ── Footer ── */
.footer {
  background: var(--pure-black);
  border-top: 1px solid var(--border-08);
  padding: 48px 0 32px;
  margin-top: 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer__brand p {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 280px;
}

.footer__col h4 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--pure-white);
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  font-size: 14px;
  color: var(--ghost-white);
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--pure-white);
}

.footer__bottom {
  border-top: 1px solid var(--border-06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom p {
  font-size: 13px;
  color: var(--whisper-white);
  margin: 0;
}

.footer__bottom a {
  font-size: 13px;
  color: var(--whisper-white);
}

.footer__bottom a:hover {
  color: var(--pure-white);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 48px);
  max-width: 760px;
  background: var(--pure-black);
  border: 1px solid var(--border-12);
  border-radius: 4px;
  padding: 20px 24px;
  box-shadow: var(--soft-shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner__text {
  flex: 1;
  min-width: 200px;
  font-size: 14px;
  color: var(--ghost-white);
  margin: 0;
}

.cookie-banner__text a {
  color: var(--signal-blue);
}

.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--whisper-white);
}

.breadcrumb li::after {
  content: '/';
  color: var(--border-12);
}

.breadcrumb li:last-child::after {
  display: none;
}

.breadcrumb a {
  color: var(--ghost-white);
}

.breadcrumb a:hover {
  color: var(--pure-white);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; line-height: 0.95; }
  h2 { font-size: 1.75rem; }
  section { padding: 60px 0; }

  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 28px;
    padding: 28px;
  }

  .cta-band {
    padding: 36px 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1;
    justify-content: center;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Accessibility ── */
:focus-visible {
  outline: 2px solid var(--signal-blue);
  outline-offset: 2px;
}

/* ── Utility ── */
.text-mono {
  font-family: var(--font-mono);
}

.text-cyan {
  color: var(--cyan);
}

.text-blue {
  color: var(--signal-blue);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
