/* =========================================================
   SOLACE — Sleep Lab · v2 "Night Bloom" design system
   ========================================================= */
:root{
  --violet:      #7C5CFF;
  --violet-2:    #A78BFF;
  --violet-deep: #2B1B54;
  --midnight:    #120A26;
  --midnight-2:  #1B1140;
  --coral:       #FF6154;
  --coral-2:     #FF8A6E;
  --lime:        #D6FF3F;
  --lav-50:      #F7F4FF;
  --lav-100:     #EFE9FF;
  --lav-200:     #E3DAFC;
  --ink:         #150E2B;
  --ash:         #6C6683;
  --white:       #ffffff;
  --line:        rgba(21,14,43,.10);
  --line-2:      rgba(255,255,255,.14);

  --grad-brand:  linear-gradient(135deg, var(--violet) 0%, #9B6BFF 45%, var(--coral) 100%);
  --grad-hero:   radial-gradient(circle at 15% 20%, rgba(124,92,255,.55), transparent 45%),
                 radial-gradient(circle at 85% 15%, rgba(255,97,84,.35), transparent 40%),
                 radial-gradient(circle at 50% 90%, rgba(214,255,63,.18), transparent 45%),
                 linear-gradient(180deg, var(--midnight) 0%, var(--midnight-2) 100%);

  --display: "Space Grotesk", "Inter", sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "Space Mono", "SFMono-Regular", Menlo, monospace;

  --container: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.16,1,.3,1);
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition-duration: 0.001ms !important; scroll-behavior:auto !important;}
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--lav-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--display); font-weight:600; margin:0 0 .5em; line-height:1.08; letter-spacing:-.01em; color: var(--ink); }
p{ margin:0 0 1em; }
.container{ max-width: var(--container); margin:0 auto; padding:0 32px; position:relative; z-index:2; }

:focus-visible{ outline: 2.5px solid var(--coral); outline-offset: 3px; border-radius: 3px; }

.gradient-text{
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip:text; color: transparent;
}

.eyebrow{
  font-family: var(--mono); font-size: 12px; letter-spacing:.14em; text-transform:uppercase;
  color: var(--violet); display:inline-flex; align-items:center; gap:10px; margin-bottom: 16px;
  padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--lav-100);
}
.eyebrow .dot{ width:8px; height:8px; border-radius:50%; background: var(--grad-brand); }
.on-dark .eyebrow{ background: rgba(255,255,255,.08); color: var(--violet-2); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view{ opacity:1; transform: translateY(0); }
.reveal-stagger > *{ transition-delay: calc(var(--i,0) * 90ms); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header{
  position: sticky; top:0; z-index: 200;
  background: rgba(247,244,255,0.72);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding: 18px 32px; max-width: var(--container); margin:0 auto; }
.logo{ float:left; width:12%; height:auto;}
.nav-links{ display:flex; gap: 38px; font-size: 14.5px; font-weight: 600; }
.nav-links a{ position:relative; padding: 6px 0; color: var(--ink); transition: color .2s var(--ease); }
.nav-links a::after{ content:""; position:absolute; left:0; right:100%; bottom:0; height: 2px; border-radius:2px; background: var(--grad-brand); transition: right .3s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after{ right:0; }
.nav-links a.active{ color: var(--violet); }
.nav-cta{ display:flex; align-items:center; gap: 20px; }
.nav-toggle{ display:none; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family: var(--body); font-weight:700; font-size: 14px;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap; position:relative;
}
.btn-primary{ background: var(--grad-brand); background-size: 160% 160%; background-position:0% 50%; color: var(--white); box-shadow: 0 10px 24px -8px rgba(124,92,255,.55); }
.btn-primary:hover{ background-position:100% 50%; transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(255,97,84,.55); }
.btn-ghost{ background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--violet); color: var(--violet); transform: translateY(-2px); }
.btn-outline-light{ background:transparent; border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-outline-light:hover{ background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }
.btn-lime{ background: var(--lime); color: var(--midnight); }
.btn-lime:hover{ transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(214,255,63,.5); }
.btn-sm{ padding: 9px 18px; font-size:13px; }

/* =========================================================
   ANIMATED HERO BANNER
   ========================================================= */
.banner-pc {float:left; width:100%; height:auto; margin-bottom:2vw;}
.banner-mob {float:left; width:100%; height:auto; margin-bottom:2vw; display:none; visibility:hidden;}   
   
.hero-banner{ float:left; width:100%; height:auto; background-color:#003366; margin-bottom:2vw;}
<!--.hero-banner::before{
  content:""; position:absolute; inset:0; z-index:-1; opacity:.5;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 75%);
}
-->
.orb{ position:absolute; border-radius:50%; filter: blur(50px); opacity:.65; z-index:-1; animation: float-orb 14s ease-in-out infinite; }
.orb-1{ width:340px; height:340px; background: var(--violet); top:-90px; left:-60px; animation-duration: 16s; }
.orb-2{ width:260px; height:260px; background: var(--coral); bottom:-60px; right:6%; animation-duration: 12s; animation-delay: -4s; }
.orb-3{ width:180px; height:180px; background: var(--lime); top:35%; right:28%; opacity:.35; animation-duration: 18s; animation-delay: -8s; }
@keyframes float-orb{
  0%,100%{ transform: translate(0,0) scale(1); }
  33%{ transform: translate(24px,-30px) scale(1.08); }
  66%{ transform: translate(-18px,18px) scale(.94); }
}

.hero-banner h1{ color: var(--white); font-size: clamp(38px,5.4vw,64px); max-width: 800px; }
.hero-banner p.lead{ color: rgba(255,255,255,.72); max-width: 540px; font-size: 17.5px; }

/* floating sleep glyphs */
.zzz{ position:absolute; font-family: var(--display); font-weight:700; color: rgba(255,255,255,.5); z-index:0; pointer-events:none; animation: drift 6s ease-in infinite; }
.zzz.z1{ font-size: 34px; top:18%; right:16%; animation-delay:0s; }
.zzz.z2{ font-size: 22px; top:30%; right:10%; animation-delay: 1.4s; color: var(--lime); }
.zzz.z3{ font-size: 16px; top:42%; right:20%; animation-delay: 2.8s; }
@keyframes drift{
  0%{ transform: translateY(0) rotate(-4deg); opacity:0; }
  15%{ opacity:.85; }
  100%{ transform: translateY(-70px) rotate(4deg); opacity:0; }
}

/* floating mattress stack graphic */
.float-mattress{ position:relative; width:100%; max-width:420px; margin-left:auto; animation: bob 5s ease-in-out infinite; }
@keyframes bob{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }
.mattress-stack{ display:flex; flex-direction:column; gap:8px; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.mattress-layer{ height:34px; border-radius:12px; position:relative; overflow:hidden; }
.mattress-layer::after{ content:""; position:absolute; inset:0; background: linear-gradient(115deg, rgba(255,255,255,.35), transparent 40%); }
.mattress-layer.l1{ background: linear-gradient(135deg,#fff,#EFE9FF); height:26px; }
.mattress-layer.l2{ background: linear-gradient(135deg,var(--violet-2),var(--violet)); }
.mattress-layer.l3{ background: linear-gradient(135deg,var(--violet),#5B3DE0); height:46px; }
.mattress-layer.l4{ background: linear-gradient(135deg,#5B3DE0,var(--violet-deep)); height:30px; }
.mattress-layer.l5{ background: linear-gradient(135deg,var(--violet-deep),#1B1140); height:56px; }

/* wave divider between hero and content */
.wave-divider{ display:block; width:100%; height:70px; margin-top:-2px; }
.wave-divider path{ fill: var(--lav-50); }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee{ background: var(--ink); color: var(--white); overflow:hidden; padding: 18px 0; border-top:1px solid var(--line-2); border-bottom:1px solid var(--line-2); }
.marquee-track{ display:flex; gap:64px; width:max-content; animation: marquee 26s linear infinite; }
.marquee-track span{ font-family: var(--mono); font-size:13px; letter-spacing:.08em; text-transform:uppercase; display:flex; align-items:center; gap:14px; white-space:nowrap; }
.marquee-track span::before{ content:"✦"; color: var(--lime); }
@keyframes marquee{ from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* =========================================================
   SECTIONS
   ========================================================= */
section{ padding: 108px 0; position:relative; }
.section-tight{ padding: 70px 0; }
.section-dark{ background: var(--ink); color: var(--white); }
.section-dark h2,.section-dark h3{ color: var(--white); }
.section-violet{ background: linear-gradient(180deg, var(--violet-deep), var(--midnight)); color:#fff; }
.section-violet h2, .section-violet h3{ color:#fff; }
.section-head{ max-width: 640px; margin-bottom: 60px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head p{ color: var(--ash); font-size: 17px; }
.section-dark .section-head p, .section-violet .section-head p{ color: rgba(255,255,255,.65); }

.grid{ display:grid; gap: 30px; }
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }

/* =========================================================
   CARDS
   ========================================================= */
.card{ background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow:hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.card:hover{ transform: translateY(-6px); box-shadow: 0 30px 50px -24px rgba(43,27,84,.35); border-color: transparent; }

.tilt-card{ transform-style: preserve-3d; will-change: transform; }

.glass{ background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); backdrop-filter: blur(16px); }

.product-card .thumb{ position:relative; display:flex; align-items:center; justify-content:center;border-bottom: 1px solid var(--line); }
.product-card .thumb::before{ content:""; position:absolute; inset:0; opacity:.9; }
.product-card.p-drift .thumb::before{ background: radial-gradient(circle at 30% 30%, #EFE9FF, #C9B8FF); }
.product-card.p-meridian .thumb::before{ background: radial-gradient(circle at 30% 30%, #C9B8FF, #7C5CFF); }
.product-card.p-anchor .thumb::before{ background: radial-gradient(circle at 30% 30%, #7C5CFF, #3A2A80); }
.product-card .thumb .thumb-label{ position:relative;}
.badge-float{ position:absolute; top:14px; left:14px; background: var(--lime); color: var(--midnight); font-family: var(--mono); font-size:10.5px; letter-spacing:.06em; padding:5px 12px; border-radius:999px; text-transform:uppercase; font-weight:700; z-index:2; }
.product-card .body{ padding: 26px 24px 28px; }
.product-card .tag{ font-family: var(--mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color: var(--violet); margin-bottom:10px; display:block; font-weight:700; }
.product-card h3{ font-size: 22px; margin-bottom:6px; }
.product-card .desc{ color: var(--ash); font-size:14.5px; margin-bottom:16px; }
.product-card .meta-row{ display:flex; align-items:center; justify-content:space-between; border-top: 1px solid var(--line); padding-top:16px; }
.price{ font-family: var(--mono); font-size: 16px; color: var(--ink); font-weight:700; }
.price .was{ font-weight:400; color: var(--ash); text-decoration: line-through; margin-right:8px; font-size:13px; }

.firmness{ display:flex; gap:4px; align-items:center; }
.firmness .dot{ width:7px; height:7px; border-radius:50%; background: var(--line); }
.firmness .dot.on{ background: var(--grad-brand); }

/* Blog card */
.blog-card{ background:transparent; border:none; }
.blog-card:hover{ transform:none; box-shadow:none; }
.blog-card .thumb{ aspect-ratio: 16/10; border-radius: var(--radius); margin-bottom: 20px; overflow:hidden; position:relative; }
.blog-card:hover h3{ color: var(--violet); }
.blog-date{ font-family: var(--mono); font-size:11.5px; color: var(--ash); letter-spacing:.05em; text-transform:uppercase; }
.blog-card h3{ font-size:20px; margin: 10px 0 8px; transition: color .25s; }
.blog-card p{ color: var(--ash); font-size:14.5px; }
.read-more{ font-size:13.5px; font-weight:700; color: var(--violet); display:inline-flex; gap:6px; align-items:center; margin-top:10px; }

/* Stat block */
.stat{ text-align:left; }
.stat .num{ font-family: var(--display); font-size: 50px; background: var(--grad-brand); -webkit-background-clip:text; background-clip:text; color:transparent; line-height:1; margin-bottom:10px; font-weight:700; }
.stat .label{ font-size:14px; color: var(--ash); }
.section-dark .stat .label, .section-violet .stat .label{ color: rgba(255,255,255,.6); }

/* Layer diagram (used on other pages) */
.layer-diagram{ display:flex; flex-direction:column; gap:4px; }
.layer-row{ display:grid; grid-template-columns: 30px 1fr auto; align-items:center; gap: 18px; padding: 17px 20px; border-radius: 10px; transition: transform .35s var(--ease); }
.layer-row:hover{ transform: translateX(8px); }
.layer-num{ font-family: var(--mono); font-size:12px; color: rgba(255,255,255,.5); }
.layer-name{ font-weight:700; font-size:15.5px; }
.layer-sub{ font-size:12.5px; opacity:.65; font-weight:400; }
.layer-mm{ font-family: var(--mono); font-size: 13px; color: rgba(255,255,255,.8); white-space:nowrap; }

/* Testimonial */
.testimonial{ background: var(--white); border:1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; position:relative; }
.testimonial::before{ content:"“"; position:absolute; top:10px; left:20px; font-family:var(--display); font-size:60px; color: var(--lav-200); z-index:0; }
.testimonial p{ font-size: 16.5px; color: var(--ink); position:relative; z-index:1; }
.testimonial .who{ font-family: var(--mono); font-size: 12px; text-transform:uppercase; letter-spacing:.06em; color: var(--ash); }

/* Table */
.spec-table{ width:100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td{ padding: 17px 14px; border-bottom: 1px solid var(--line); text-align:left; }
.spec-table th{ font-family: var(--mono); font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; color: var(--ash); font-weight:700; }
.spec-table tr:last-child td{ border-bottom:none; }
.spec-table tr:hover td{ background: var(--lav-50); }

/* Form */
.form-field{ margin-bottom: 20px; }
.form-field label{ display:block; font-size:13px; font-weight:700; margin-bottom:8px; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select{ width:100%; padding: 14px 16px; font-family: var(--body); font-size:14.5px; border:1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{ border-color: var(--violet); outline:none; box-shadow: 0 0 0 4px rgba(124,92,255,.15); }
.form-field textarea{ resize: vertical; min-height: 120px; }

/* Timeline */
.timeline{ position:relative; padding-left: 36px; }
.timeline::before{ content:""; position:absolute; left:6px; top:6px; bottom:6px; width:2px; background: var(--lav-200); border-radius:2px; }
.timeline-item{ position:relative; padding-bottom: 46px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{ content:""; position:absolute; left:-36px; top:4px; width:13px; height:13px; border-radius:50%; background: var(--grad-brand); box-shadow: 0 0 0 5px var(--lav-100); }
.timeline-item .yr{ font-family: var(--mono); font-size:13px; color: var(--violet); margin-bottom:4px; display:block; font-weight:700;}

/* Icon tile */
.icon-tile{ width:54px; height:54px; border-radius: 14px; background: var(--grad-brand); display:flex; align-items:center; justify-content:center; margin-bottom:20px; color: #fff; box-shadow: 0 10px 22px -8px rgba(124,92,255,.5); }

/* CTA band */
.cta-band{ background: var(--grad-hero); color: var(--white); border-radius: 24px; padding: 60px; display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; position:relative; overflow:hidden; }
.cta-band h2{ color:var(--white); font-size: 32px; margin-bottom:8px; }
.cta-band p{ color: rgba(255,255,255,.72); margin:0; }

/* Counter */
.counter{ display:inline-block; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background: var(--midnight); color: rgba(255,255,255,.72); padding: 80px 0 0; position:relative; overflow:hidden; }
.footer-grid{ display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-grid h4{ color: var(--white); font-size:13px; font-family: var(--mono); text-transform:uppercase; letter-spacing:.08em; margin-bottom:20px; }
.footer-grid li{ margin-bottom: 12px; font-size:14.5px; }
.footer-grid a:hover{ color: var(--violet-2); }
.footer-brand { float:left; width:70%; height:auto;}
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding: 26px 0; font-size: 13px; color: rgba(255,255,255,.45); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .grid-2{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .cta-band{ padding: 44px; }
  .float-mattress{ max-width: 320px; margin: 40px auto 0; }
  .banner-pc {float:left; width:100%; height:auto; margin-bottom:2vw; display:none; visibility:hidden;}
.banner-mob {float:left; width:100%; height:auto; margin-bottom:2vw;} 
  

}
@media (max-width: 760px){
  .nav-links{ position:fixed; inset: 73px 0 0 0; background: var(--lav-50); flex-direction:column; padding: 36px 32px; gap: 24px; font-size:18px; transform: translateY(-8px); opacity:0; pointer-events:none; transition: opacity .2s var(--ease), transform .2s var(--ease); z-index:150; }
  .nav-links.open{ opacity:1; pointer-events:auto; transform:translateY(0); }
  .nav-toggle{ display:flex; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px; }
  .nav-toggle span{ width:22px; height:2px; background:var(--ink); border-radius:2px; }
  .nav-cta .btn-primary{ display:none; }
  .grid-4, .grid-3{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap:32px; }
  section{ padding: 72px 0; }
  .cta-band{ flex-direction:column; align-items:flex-start; }
  .hero-banner{ padding: 96px 0 64px; }
  
.banner-pc {float:left; width:100%; height:auto; margin-bottom:2vw; display:none; visibility:hidden;}
.banner-mob {float:left; width:100%; height:auto; margin-bottom:2vw;}   

}
