/* ============================================================
   SOLÈY — Shared Design System
   Type pairing: Newsreader (serif headings) + Inter Tight (UI)
   ============================================================ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  /* Color */
  --navy-deep:#08111f;
  --navy:#0d1829;
  --navy-mid:#131e35;
  --navy-light:#1a2741;
  --navy-card:#162136;
  --gold:#f59e0b;
  --gold-light:#fbbf24;
  --gold-soft:rgba(245,158,11,0.12);
  --gold-border:rgba(245,158,11,0.22);
  --white:#ffffff;
  --text:#e6ecf7;
  --text-body:#b8c3d9;
  --text-muted:#7a8aa8;
  --line:rgba(255,255,255,0.07);
  --line-strong:rgba(255,255,255,0.13);
  --card:rgba(255,255,255,0.025);
  --card-hover:rgba(255,255,255,0.04);

  /* Type */
  --font-serif:'Newsreader',Georgia,serif;
  --font-sans:'Inter Tight','Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,monospace;

  /* Layout */
  --max:1440px;
  --pad:clamp(20px,5vw,72px);
  --radius:14px;
  --radius-lg:20px;
}

html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:var(--font-sans);
  background:var(--navy);
  color:var(--text);
  font-size:17px;
  line-height:1.65;
  font-weight:400;
  letter-spacing:-0.005em;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
  font-feature-settings:'ss01','cv11';
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;border:none;background:none;color:inherit}

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */

.eyebrow{
  font-family:var(--font-sans);
  font-size:12.5px;
  font-weight:500;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--gold);
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:'';
  width:18px;
  height:1px;
  background:var(--gold);
  opacity:0.6;
}

.display-xl{
  font-family:var(--font-serif);
  font-size:clamp(2.85rem,5.7vw,5.25rem);
  font-weight:400;
  line-height:1.02;
  letter-spacing:-0.025em;
  color:var(--white);
}
.display-lg{
  font-family:var(--font-serif);
  font-size:clamp(2.4rem,4.5vw,4.25rem);
  font-weight:400;
  line-height:1.05;
  letter-spacing:-0.022em;
  color:var(--white);
}
.display-md{
  font-family:var(--font-serif);
  font-size:clamp(2.05rem,3.45vw,3.2rem);
  font-weight:400;
  line-height:1.08;
  letter-spacing:-0.02em;
  color:var(--white);
}
.display-sm{
  font-family:var(--font-serif);
  font-size:clamp(1.6rem,2.35vw,2.25rem);
  font-weight:400;
  line-height:1.15;
  letter-spacing:-0.015em;
  color:var(--white);
}
em.accent,.accent{
  font-style:italic;
  color:var(--gold);
  font-weight:400;
}

.lede{
  font-size:19px;
  line-height:1.6;
  color:var(--text-body);
  font-weight:400;
  max-width:60ch;
}

.body{
  font-size:17px;
  line-height:1.65;
  color:var(--text-body);
  font-weight:400;
}

.label{
  font-size:13px;
  font-weight:500;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--text-muted);
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding-left:var(--pad);
  padding-right:var(--pad);
  width:100%;
}

section{
  padding:clamp(72px,9vw,140px) 0;
}

.section-head{
  display:flex;
  flex-direction:column;
  gap:18px;
  max-width:880px;
  margin-bottom:64px;
}

.divider{
  height:1px;
  background:var(--line);
  width:100%;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav{
  position:fixed;
  top:0;left:0;right:0;
  z-index:100;
  height:80px;
  display:flex;
  align-items:center;
  transition:background .25s ease,backdrop-filter .25s ease,border-color .25s ease,box-shadow .25s ease,height .25s ease;
  border-bottom:1px solid transparent;
}
.nav.scrolled{
  background:rgba(8,17,31,0.82);
  backdrop-filter:blur(18px) saturate(1.4);
  -webkit-backdrop-filter:blur(18px) saturate(1.4);
  border-bottom-color:var(--line);
  box-shadow:0 16px 40px rgba(0,0,0,0.22);
  height:72px;
}
.nav-inner{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--pad);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
}
.nav-logo{display:flex;align-items:center}
.nav-logo img{height:150px;width:auto;object-fit:contain}
.nav-links{
  display:flex;
  gap:34px;
  list-style:none;
  align-items:center;
}
.nav-links a{
  color:var(--text-body);
  font-size:14.5px;
  font-weight:450;
  letter-spacing:-0.005em;
  transition:color .2s;
  position:relative;
}
.nav-links a:hover,.nav-links a.active{color:var(--white)}
.nav-links a.active::after{
  content:'';
  position:absolute;
  bottom:-22px;
  left:50%;
  transform:translateX(-50%);
  width:4px;height:4px;
  border-radius:50%;
  background:var(--gold);
}
.nav-actions{display:flex;align-items:center;gap:22px}
.nav-link-quiet{
  color:var(--text-body);
  font-size:14.5px;
  font-weight:450;
}
.nav-link-quiet:hover{color:var(--white)}
.mobile-menu-toggle,
.mobile-menu-close{
  display:none;
}
.mobile-menu{
  display:none;
}
.mobile-menu[hidden]{
  display:none !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-sans);
  font-size:15px;
  font-weight:500;
  letter-spacing:-0.005em;
  padding:13px 22px;
  border-radius:10px;
  transition:all .22s ease;
  white-space:nowrap;
  cursor:pointer;
}
.btn-gold{
  background:var(--gold);
  color:var(--navy-deep);
  font-weight:550;
}
.btn-gold:hover{
  background:var(--gold-light);
  transform:translateY(-1px);
  box-shadow:0 10px 28px -8px rgba(245,158,11,0.45);
}
.btn-ghost{
  background:transparent;
  color:var(--text);
  border:1px solid var(--line-strong);
}
.btn-ghost:hover{
  background:rgba(255,255,255,0.04);
  border-color:rgba(255,255,255,0.22);
}
.btn-arrow::after{content:'→';font-size:1em;transition:transform .22s}
.btn-arrow:hover::after{transform:translateX(3px)}
.btn:active,
.plan-cta:active,
.form-btn:active{
  transform:scale(.98);
}
.btn-sm{padding:10px 18px;font-size:14px}
.btn-lg{padding:16px 28px;font-size:16px}

/* ============================================================
   PILL / BADGE
   ============================================================ */

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 14px;
  border-radius:100px;
  font-size:12.5px;
  font-weight:500;
  letter-spacing:0.02em;
  background:var(--gold-soft);
  border:1px solid var(--gold-border);
  color:var(--gold);
}
.pulse{
  width:6px;height:6px;
  border-radius:50%;
  background:var(--gold);
  animation:pulse 2s infinite;
}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.7)}}

/* ============================================================
   CARDS
   ============================================================ */

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:32px;
  transition:border-color .3s ease,background .3s ease,transform .3s ease;
}
.card:hover{
  border-color:var(--line-strong);
  background:var(--card-hover);
}

/* ============================================================
   FOOTER
   ============================================================ */

footer{
  background:var(--navy-deep);
  border-top:1px solid var(--line);
  padding:80px 0 32px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1fr;
  gap:56px;
  margin-bottom:64px;
}
.footer-brand img{height:150px;width:auto;margin-bottom:20px;object-fit:contain}
.footer-brand p{
  font-size:15px;
  color:var(--text-muted);
  line-height:1.65;
  max-width:280px;
  margin-bottom:24px;
}
.f-social{display:flex;gap:8px}
.f-soc{
  width:36px;height:36px;
  border-radius:8px;
  background:var(--card);
  border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:600;
  color:var(--text-muted);
  transition:all .2s;
}
.f-soc:hover{border-color:var(--gold-border);color:var(--gold)}
.f-col h5{
  font-family:var(--font-sans);
  font-size:13px;
  font-weight:550;
  text-transform:uppercase;
  letter-spacing:0.1em;
  color:var(--text);
  margin-bottom:20px;
}
.f-col ul{list-style:none;display:flex;flex-direction:column;gap:12px}
.f-col a{
  font-size:14.5px;
  color:var(--text-muted);
  transition:color .2s;
}
.f-col a:hover{color:var(--white)}
.footer-bottom{
  padding-top:28px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
}
.footer-bottom p{font-size:13px;color:var(--text-muted)}
.f-legal{display:flex;gap:24px}
.f-legal a{font-size:13px;color:var(--text-muted);transition:color .2s}
.f-legal a:hover{color:var(--text)}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width:1024px){
  .footer-grid{grid-template-columns:1fr 1fr;gap:40px}
}
@media (max-width:768px){
  .nav{height:72px}
  .nav.scrolled{height:64px}
  .nav-inner{gap:12px;min-width:0}
  .nav-links{display:none}
  .nav-logo{flex-shrink:0;min-width:0;max-width:48%}
  .nav-logo img{
    height:64px;
    max-height:64px;
    max-width:100%;
    width:auto;
    object-fit:contain;
  }
  .nav-actions{
    gap:10px;
    flex-shrink:1;
    min-width:0;
    justify-content:flex-end;
    margin-left:auto;
  }
  .nav-link-quiet{
    display:none;
  }
  .nav .btn-sm{
    padding:9px 12px;
    font-size:13px;
  }
  .mobile-menu-toggle{
    width:42px;
    height:42px;
    border-radius:10px;
    border:1px solid var(--line-strong);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
    flex-shrink:0;
    margin-right:auto;
    background:rgba(255,255,255,0.035);
  }
  .mobile-menu-toggle span{
    width:18px;
    height:2px;
    border-radius:999px;
    background:var(--gold);
    display:block;
  }
  .mobile-menu{
    position:fixed;
    inset:0;
    z-index:120;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:32px;
    padding:88px var(--pad) 48px;
    background:rgba(8,17,31,0.98);
    opacity:0;
    visibility:hidden;
    transform:translateY(-10px);
    pointer-events:none;
    transition:opacity .24s ease,transform .24s ease,visibility .24s ease;
  }
  .mobile-menu.is-open{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
    pointer-events:auto;
  }
  .mobile-menu-close{
    position:absolute;
    top:20px;
    right:var(--pad);
    width:44px;
    height:44px;
    border-radius:50%;
    border:1px solid var(--line-strong);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--gold);
    font-size:28px;
    line-height:1;
    background:rgba(255,255,255,0.035);
  }
  .mobile-menu-links{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:20px;
  }
  .mobile-menu-links a{
    color:var(--white);
    font-family:var(--font-serif);
    font-size:clamp(2rem,9vw,3rem);
    line-height:1;
    text-decoration:none;
  }
  .mobile-menu-links a:focus-visible,
  .mobile-menu-close:focus-visible,
  .mobile-menu-toggle:focus-visible{
    outline:2px solid var(--gold);
    outline-offset:4px;
  }
  body.mobile-menu-open{
    overflow:hidden;
  }
  .footer-brand img{
    height:96px;
    max-height:96px;
    max-width:min(220px,70vw);
  }
  .footer-grid{grid-template-columns:1fr;gap:32px;margin-bottom:48px}
  .footer-brand p{max-width:100%}
  footer{padding:56px 0 28px}
  .footer-bottom{
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
  }
  .footer-bottom p{max-width:100%;word-break:break-word}
  .f-legal{
    flex-wrap:wrap;
    gap:12px 20px;
    max-width:100%;
  }
  .f-legal a{white-space:normal}
}
/* Long primary CTAs: allow wrapping on small screens only (desktop unchanged) */
@media (max-width:768px){
  .hero-actions .btn,
  .product-actions .btn,
  .pf-actions .btn,
  .bay-content .btn{
    white-space:normal;
    text-align:center;
    justify-content:center;
  }
  .hero-actions .btn.btn-lg,
  .product-actions .btn,
  .pf-actions .btn{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
  }
}
@media (max-width:480px){
  .nav{height:64px}
  .nav.scrolled{height:58px}
  .nav-inner{padding:0 clamp(14px,4vw,20px);gap:8px}
  .nav-logo{max-width:44%}
  .nav-logo img{height:52px;max-height:52px}
  .nav .btn-sm{
    padding:8px 10px;
    font-size:12px;
    letter-spacing:-0.02em;
  }
  footer{padding:44px 0 24px}
  .footer-grid{gap:28px;margin-bottom:40px}
  .f-col h5{margin-bottom:14px}
  .f-col ul{gap:10px}
}

@media (min-width:769px){
  .card:hover,
  .svc:hover,
  .ind:hover,
  .pillar:hover,
  .val:hover,
  .plan:hover,
  .cs-card:hover,
  .member:hover,
  .feat:hover{
    transform:translateY(-3px);
  }
}

.reveal-on-scroll{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .28s ease,transform .28s ease;
}
.reveal-on-scroll.is-visible{
  opacity:1;
  transform:translateY(0);
}

.field-error{
  color:#fca5a5;
  font-size:12px;
  line-height:1.4;
  margin-top:6px;
}
.fg input[aria-invalid="true"],
.fg textarea[aria-invalid="true"]{
  border-color:rgba(248,113,113,0.65);
}
.form-btn.is-loading{
  opacity:.78;
  cursor:wait;
}

@media (prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
  }
  .reveal-on-scroll{
    opacity:1;
    transform:none;
  }
}
