/* Aizera Labs Hub — Quiet Luxury Editorial + Brand Book v1.0 */
:root {
  --bg-page: #FAFBFD;
  --bg-cream: #F4EDE2;
  --surface: #FFFFFF;
  --navy: #222D4C;
  --navy-deep: #18213B;
  --navy-muted: #52607E;
  --teal: #00AFA6;
  --teal-soft: #E6F7F5;
  --amber: #FFB82E;
  --amber-soft: #FFF3D6;
  --border-subtle: rgba(34, 45, 76, 0.12);
  --border-card: rgba(34, 45, 76, 0.13);

  /* For You / Sleep Zone (Positioning PDF p.5 + sampled twilight scene) */
  --sleep-zone-top: #EBE4FA;
  --sleep-zone-bot: #DFD5F7;
  --sleep-navy: #252F67;
  --sleep-purple: #6255A2;
  --sleep-lavender: #E4DDFA;

  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 28px rgba(34, 45, 76, 0.05), 0 1px 3px rgba(34, 45, 76, 0.04);
  --shadow-card-hover: 0 16px 38px rgba(34, 45, 76, 0.09), 0 2px 6px rgba(34, 45, 76, 0.05);
  --container-max: 1140px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--navy);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  margin: 0;
  line-height: 1.6;
  overflow-x: clip;
  width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 251, 253, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand-home {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-home img {
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-muted);
  transition: color 180ms ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--navy);
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 76px;
  background:
    radial-gradient(560px 420px at 78% 48%, rgba(0, 175, 166, 0.10), transparent 68%),
    radial-gradient(420px 320px at 66% 76%, rgba(255, 184, 46, 0.09), transparent 70%),
    linear-gradient(180deg, #FAFBFD 0%, #F5F2EB 100%);
  border-bottom: 2px solid var(--border-subtle);
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(34, 45, 76, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 45, 76, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.05) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}

.eyebrow-bar {
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--amber);
}

/* Distinct section pill labels */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.badge-business {
  background: var(--teal-soft);
  color: #007D76;
  border: 1px solid rgba(0, 175, 166, 0.25);
}

.badge-foryou {
  background: #FFFFFF;
  color: var(--sleep-purple);
  border: 1px solid rgba(98, 85, 162, 0.28);
}

.badge-zera {
  background: var(--amber-soft);
  color: var(--navy);
  border: 1px solid rgba(255, 184, 46, 0.45);
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--navy);
  animation: blurReveal 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-subtitle {
  margin: 0 0 32px;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--navy-muted);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(34, 45, 76, 0.16);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--navy-deep);
  box-shadow: 0 10px 24px rgba(34, 45, 76, 0.22);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 650ms ease;
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  border-color: var(--border-card);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #FFFFFF;
  border-color: rgba(34, 45, 76, 0.28);
}

/* Seamless floating Hero Zera — zero box, zero border */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-zera-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px 0;
}

.hero-zera-glow {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 175, 166, 0.14) 0%, rgba(255, 184, 46, 0.08) 48%, transparent 74%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.hero-zera-stage img {
  position: relative;
  z-index: 1;
  width: 248px;
  height: auto;
  object-fit: contain;
}

.zera-caption {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-muted);
  text-align: center;
  letter-spacing: 0.01em;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-header {
  max-width: 660px;
  margin-bottom: 44px;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 35px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.section-lead {
  margin: 0;
  font-size: 17px;
  color: var(--navy-muted);
}

/* 01 · For Business — Pure Crisp White */
.zone-business {
  background: #FFFFFF;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-top-color: var(--teal);
}

.card-logo-slot {
  min-height: 58px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(34, 45, 76, 0.08);
}

.card-logo-slot img {
  height: 48px;
  width: auto;
}

.wordmark-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.wordmark-name {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.wordmark-by {
  font-size: 13px;
  font-weight: 400;
  margin-top: 2px;
}

.card-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.card-headline {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.28;
  color: var(--navy);
}

.card-desc {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--navy-muted);
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.btn-card:hover,
.btn-card:focus-visible {
  background: var(--teal);
  transform: translateY(-1px);
}

.card-domain {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-muted);
}

/* 02 · For You — Rich Separated Lavender Band + Seamless Twilight Sleep Showcase */
.zone-foryou {
  padding: 104px 0;
  background: linear-gradient(180deg, var(--sleep-zone-top) 0%, var(--sleep-zone-bot) 100%);
  border-top: 2px solid rgba(98, 85, 162, 0.22);
  border-bottom: 2px solid rgba(98, 85, 162, 0.22);
}

.zone-foryou .section-title {
  color: var(--sleep-navy);
}

.zone-foryou .section-lead {
  color: #464272;
}

.sleep-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 24px;
  background: linear-gradient(180deg, #1E2864 0%, #343C88 52%, #7174C2 100%);
  border-radius: 26px;
  overflow: hidden;
  padding: 44px 48px;
  color: #FFFFFF;
  box-shadow: 0 22px 54px rgba(37, 47, 103, 0.22);
}

.sleep-content {
  position: relative;
  z-index: 2;
}

.sleep-showcase .wordmark-name {
  color: #FFFFFF;
}

.sleep-showcase .wordmark-by {
  color: var(--sleep-lavender);
}

.sleep-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9BDF5;
  margin: 20px 0 8px;
}

.sleep-headline {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 900;
  line-height: 1.22;
  color: #FFFFFF;
}

.sleep-desc {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.6;
  color: #E4DDFA;
  max-width: 46ch;
}

.sleep-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-sleep {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  color: var(--sleep-navy);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(15, 20, 54, 0.25);
  transition: background-color 180ms ease, transform 180ms ease;
}

.btn-sleep:hover,
.btn-sleep:focus-visible {
  background: var(--sleep-lavender);
  transform: translateY(-1px);
}

.sleep-domain {
  font-size: 13px;
  font-weight: 700;
  color: var(--sleep-lavender);
}

/* Seamless feather-blended Sleep scene (zero visible box border) */
.sleep-visual-blend {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -24px -28px -24px 0;
}

.sleep-visual-blend img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse 80% 82% at 54% 50%, #000 58%, transparent 98%);
  mask-image: radial-gradient(ellipse 80% 82% at 54% 50%, #000 58%, transparent 98%);
}

/* 03 · Meet Zera — Distinct Warm Editorial Ivory Surface */
.zone-zera {
  background: var(--bg-cream);
  border-bottom: 2px solid rgba(34, 45, 76, 0.10);
}

.zera-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 44px;
  align-items: center;
}

.zera-traits {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trait-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(34, 45, 76, 0.10);
  border-left: 4px solid var(--navy);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 4px 16px rgba(34, 45, 76, 0.04);
}

.trait-amber { border-left-color: var(--amber); }
.trait-teal { border-left-color: var(--teal); }
.trait-navy { border-left-color: var(--navy); }

.trait-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.dot-amber { background: var(--amber); }
.dot-teal { background: var(--teal); }
.dot-navy { background: var(--navy); }

.trait-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
}

.trait-sub {
  font-size: 13.5px;
  color: var(--navy-muted);
}

/* 04 · Work with us */
.zone-work {
  background: #FFFFFF;
}

.work-card {
  background: var(--navy);
  color: #FFFFFF;
  border-radius: 24px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.work-card .eyebrow {
  color: var(--amber);
  margin-bottom: 10px;
}

.work-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 900;
  line-height: 1.22;
}

.work-copy {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.80);
  max-width: 54ch;
}

.btn-amber {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  background: var(--amber);
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, filter 180ms ease;
}

.btn-amber:hover,
.btn-amber:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-page);
  padding: 28px 0 36px;
}

.footer-disclaimer {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(34, 45, 76, 0.08);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--navy-muted);
  max-width: 78ch;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--navy-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--navy);
}

/* Legal Draft Pages */
.legal-main {
  padding: 64px 0 88px;
}

.legal-container {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px;
}

.draft-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--amber-soft);
  border: 1px solid rgba(255, 184, 46, 0.55);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.legal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 40px 44px;
  box-shadow: var(--shadow-card);
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 16.5px;
  line-height: 1.78;
  color: #242E47;
}

.legal-card h1 {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.legal-meta {
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(34, 45, 76, 0.12);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: var(--navy-muted);
}

.legal-card h2 {
  margin: 26px 0 8px;
  font-size: 18.5px;
  font-weight: 700;
  color: var(--navy);
}

.legal-card p {
  margin: 0 0 12px;
  color: #36415C;
}

.legal-card a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-copy,
.hero-visual,
.product-card,
.sleep-showcase > div,
.zera-editorial > div,
.work-card > div {
  min-width: 0;
}

/* Motion */
@keyframes blurReveal {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title { animation: none; }
  .btn, .product-card, .btn-card, .btn-sleep, .btn-amber { transition: none; }
  .btn-primary::after { display: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-layout,
  .sleep-showcase,
  .zera-editorial {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .hero {
    padding: 44px 0 56px;
  }
  .section {
    padding: 64px 0;
  }
  .zone-foryou {
    padding: 72px 0;
  }
  .sleep-showcase {
    padding: 32px 26px 12px;
  }
  .sleep-visual-blend {
    margin: 0 -12px;
  }
  .sleep-visual-blend img {
    max-width: 310px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
  .main-nav {
    display: none;
  }
  .brand-home img {
    height: 36px;
    max-width: 200px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn,
  .btn-amber {
    width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
  .hero-zera-stage img {
    width: 190px;
  }
  .product-card,
  .work-card,
  .legal-card {
    padding: 24px 20px;
  }
  .sleep-showcase {
    padding: 28px 22px 10px;
  }
}
