/* =========================================================
   BestAISuccess — styles.css
   ========================================================= */

:root{
  --navy:        #101a33;
  --navy-hover:  #1b2748;
  --gold:        #c6a24c;
  --gold-hover:  #b69343;
  --gold-tint:   #fbeed6;

  --text:        #0f172a;
  --muted:       #68788e;
  --line:        #e4e8ed;

  --bg:          #ffffff;
  --surface:     #f7f8fa;
  --band:        #eaeef0;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16,26,51,.05);
  --shadow-md: 0 8px 24px -10px rgba(16,26,51,.18);
  --shadow-lg: 0 20px 44px -18px rgba(16,26,51,.28);
  --shadow-gold: 0 16px 34px -14px rgba(198,162,76,.55);

  --header-h: 60px;
  --ease: cubic-bezier(.2,.7,.3,1);
}

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

html{ scroll-behavior:smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body{
  margin:0;
  font-family:'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color:var(--text);
  background:var(--bg);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3{ margin:0; line-height:1.12; letter-spacing:-.02em; font-weight:700; }
p{ margin:0; }
ul,ol{ margin:0; padding:0; list-style:none; }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

.wrap{ width:100%; max-width:1200px; margin:0 auto; padding:0 24px; }
.gold{ color:var(--gold); }

:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
  border-radius:6px;
}

/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:13px 24px;
  border:1px solid transparent;
  border-radius:var(--r-sm);
  font-family:inherit;
  font-size:15px;
  font-weight:600;
  letter-spacing:-.01em;
  cursor:pointer;
  white-space:nowrap;
  transition:
    transform .22s var(--ease),
    box-shadow .22s var(--ease),
    background-color .2s var(--ease),
    border-color .2s var(--ease),
    color .2s var(--ease);
  will-change:transform;
}
.btn--sm{ padding:10px 18px; font-size:14.5px; }
.btn--block{ display:flex; width:100%; }

.btn .arrow{
  width:16px; height:16px; flex:none;
  transition:transform .28s var(--ease);
}
.btn:hover .arrow{ transform:translateX(4px); }

/* dark */
.btn--dark{ background:var(--navy); color:#fff; box-shadow:var(--shadow-sm); }
.btn--dark:hover{ background:var(--navy-hover); transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn--dark:active{ transform:translateY(0) scale(.985); box-shadow:var(--shadow-sm); }

/* ghost / outline on light */
.btn--ghost{ background:#fff; color:var(--text); border-color:var(--line); box-shadow:var(--shadow-sm); }
.btn--ghost:hover{ border-color:#c9d2dc; transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn--ghost:active{ transform:translateY(0) scale(.985); }

.btn--outline{ background:#fff; color:var(--text); border-color:var(--line); }
.btn--outline:hover{ background:var(--navy); color:#fff; border-color:var(--navy); transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn--outline:active{ transform:translateY(0) scale(.985); }

/* gold */
.btn--gold{ background:var(--gold); color:#fff; }
.btn--gold:hover{ background:var(--gold-hover); transform:translateY(-2px); box-shadow:var(--shadow-gold); }
.btn--gold:active{ transform:translateY(0) scale(.985); }

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(255,255,255,.88);
  backdrop-filter:saturate(180%) blur(12px);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid transparent;
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck{
  border-bottom-color:var(--line);
  box-shadow:0 1px 14px rgba(16,26,51,.06);
}

.header-inner{
  height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.logo{ display:inline-flex; align-items:center; gap:10px; font-weight:700; font-size:20px; letter-spacing:-.02em; }
.logo-mark{
  width:32px; height:32px; flex:none;
  display:grid; place-items:center;
  background:var(--navy); color:var(--gold);
  border-radius:9px;
  transition:transform .4s var(--ease);
}
.logo-mark svg{ width:17px; height:17px; }
.logo:hover .logo-mark{ transform:rotate(90deg) scale(1.06); }

.nav{ display:flex; align-items:center; gap:28px; }
.nav .btn, .nav .nav-link--signin{ display:none; }

.nav-link{
  position:relative;
  font-size:15px; font-weight:500; color:#4a5a70;
  padding:4px 0;
  transition:color .2s var(--ease);
}
.nav-link::after{
  content:''; position:absolute; left:0; bottom:0;
  width:100%; height:2px; background:var(--gold);
  border-radius:2px;
  transform:scaleX(0); transform-origin:right;
  transition:transform .3s var(--ease);
}
.nav-link:hover{ color:var(--text); }
.nav-link:hover::after{ transform:scaleX(1); transform-origin:left; }

.header-actions{ display:flex; align-items:center; gap:18px; }

/* hamburger */
.menu-toggle{
  display:none;
  width:40px; height:40px;
  padding:0; border:0; background:transparent;
  cursor:pointer;
  position:relative;
}
.menu-toggle span{
  position:absolute; left:10px;
  display:block; width:20px; height:2px;
  background:var(--text); border-radius:2px;
  transition:transform .3s var(--ease), opacity .2s var(--ease);
}
.menu-toggle span:nth-child(1){ top:14px; }
.menu-toggle span:nth-child(2){ top:19px; }
.menu-toggle span:nth-child(3){ top:24px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-5px) rotate(-45deg); }

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.hero{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,#f2f5f9 0%, #f8f7f4 32%, var(--surface) 100%);
  padding:96px 0 104px;
}
.hero-glow{
  position:absolute; inset:-30% -10% auto -10%;
  height:520px;
  background:
    radial-gradient(42% 60% at 18% 30%, rgba(174,199,229,.42) 0%, transparent 70%),
    radial-gradient(44% 62% at 82% 22%, rgba(226,205,163,.40) 0%, transparent 72%);
  filter:blur(6px);
  pointer-events:none;
}
.hero-inner{ position:relative; text-align:center; }

.badge{
  display:inline-flex; align-items:center; gap:7px;
  padding:7px 16px;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(16,26,51,.09);
  border-radius:var(--r-pill);
  font-size:13.5px; font-weight:600; color:#334158;
  box-shadow:var(--shadow-sm);
}
.badge svg{ width:14px; height:14px; color:var(--gold); }

.hero-title{
  margin:26px auto 0;
  max-width:14ch;
  font-size:clamp(2.6rem, 6.4vw, 5.1rem);
  font-weight:700;
  letter-spacing:-.035em;
}

.hero-sub{
  margin:24px auto 0;
  max-width:52ch;
  font-size:clamp(1rem, 1.35vw, 1.18rem);
  color:var(--muted);
  font-weight:400;
}

.hero-actions{
  margin-top:38px;
  display:flex; justify-content:center; flex-wrap:wrap; gap:14px;
}

/* stats */
.stats{
  margin:88px auto 0;
  max-width:1020px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:28px;
}
.stat{ text-align:center; }
.stat-num{
  font-size:clamp(1.9rem, 3.1vw, 2.6rem);
  font-weight:700;
  letter-spacing:-.035em;
  line-height:1.05;
  font-variant-numeric:tabular-nums;
}
.stat-label{ margin:6px 0 0; font-size:14.5px; color:var(--muted); }

/* ---------------------------------------------------------
   SECTIONS
   --------------------------------------------------------- */
.section{ padding:104px 0; }
.features{ background:var(--surface); }
.steps{ background:var(--band); }
.pricing{ background:var(--surface); }

.section-head{ text-align:center; max-width:640px; margin:0 auto 62px; }
.section-head h2{ font-size:clamp(1.95rem, 3.6vw, 2.85rem); letter-spacing:-.03em; }
.section-head p{ margin-top:16px; color:var(--muted); font-size:1.05rem; }

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

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  box-shadow:var(--shadow-sm);
}

/* ---------------------------------------------------------
   FEATURE CARDS
   --------------------------------------------------------- */
.feature{
  padding:28px 26px 30px;
  transition:transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
  will-change:transform;
  outline-offset:4px;
}
.feature:hover,
.feature:focus-visible{
  transform:translateY(-6px);
  box-shadow:var(--shadow-lg);
  border-color:#d9dfe7;
}
.feature-icon{
  display:grid; place-items:center;
  width:46px; height:46px;
  background:var(--gold-tint);
  color:var(--gold);
  border-radius:11px;
  transition:transform .32s var(--ease), background-color .28s var(--ease);
}
.feature-icon svg{ width:21px; height:21px; }
.feature:hover .feature-icon,
.feature:focus-visible .feature-icon{
  transform:translateY(-2px) scale(1.09) rotate(-5deg);
  background:#f7e3bd;
}
.feature h3{ margin-top:22px; font-size:1.18rem; font-weight:600; letter-spacing:-.02em; }
.feature p{ margin-top:10px; color:var(--muted); font-size:.96rem; }

/* ---------------------------------------------------------
   STEPS
   --------------------------------------------------------- */
.steps-grid{ gap:36px; max-width:1080px; margin:0 auto; }
.step{ text-align:center; padding:0 12px; }
.step-icon{
  display:grid; place-items:center;
  width:64px; height:64px; margin:0 auto;
  background:var(--navy); color:#fff;
  border-radius:50%;
  position:relative;
  transition:transform .32s var(--ease), box-shadow .32s var(--ease);
}
.step-icon svg{ width:26px; height:26px; }
.step-icon::after{
  content:''; position:absolute; inset:-6px;
  border:2px solid var(--gold);
  border-radius:50%;
  opacity:0; transform:scale(.85);
  transition:opacity .32s var(--ease), transform .32s var(--ease);
}
.step:hover .step-icon{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.step:hover .step-icon::after{ opacity:1; transform:scale(1); }

.step h3{ margin-top:22px; font-size:1.28rem; font-weight:600; }
.step p{ margin-top:12px; color:var(--muted); font-size:.98rem; max-width:34ch; margin-inline:auto; }

/* ---------------------------------------------------------
   PRICING
   --------------------------------------------------------- */
.price-grid{ align-items:start; }

.plan{
  position:relative;
  padding:38px 30px 34px;
  display:flex; flex-direction:column;
  text-align:center;
  transition:transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
  will-change:transform;
}
.plan:hover{ transform:translateY(-6px); box-shadow:var(--shadow-lg); border-color:#d9dfe7; }

.plan--popular{
  border:2px solid var(--gold);
  box-shadow:var(--shadow-md);
}
.plan--popular:hover{ border-color:var(--gold); box-shadow:var(--shadow-lg); }

.plan-flag{
  position:absolute; top:-15px; left:50%;
  transform:translateX(-50%);
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 15px;
  background:var(--gold); color:#fff;
  border-radius:var(--r-pill);
  font-size:12.5px; font-weight:600;
  white-space:nowrap;
  box-shadow:0 6px 16px -6px rgba(198,162,76,.7);
}
.plan-flag svg{ width:13px; height:13px; }

.plan-name{ font-size:1.42rem; font-weight:600; letter-spacing:-.02em; }
.plan-price{ margin-top:10px; display:flex; align-items:baseline; justify-content:center; gap:2px; }
.plan-price .amount{ font-size:2.9rem; font-weight:700; letter-spacing:-.04em; }
.plan-price .per{ font-size:1rem; color:var(--muted); }

.plan-list{ margin:26px 0 30px; display:grid; gap:13px; text-align:left; }
.plan-list li{
  position:relative;
  padding-left:26px;
  font-size:.96rem;
  color:#3c4a5e;
}
.plan-list li::before{
  content:'';
  position:absolute; left:2px; top:.42em;
  width:11px; height:6px;
  border-left:2px solid var(--gold);
  border-bottom:2px solid var(--gold);
  transform:rotate(-45deg);
}
.plan .btn{ margin-top:auto; }

/* ---------------------------------------------------------
   CTA BAND
   --------------------------------------------------------- */
.cta-band{ background:var(--navy); color:#fff; padding:104px 0; }
.cta-inner{ text-align:center; }
.cta-band h2{ font-size:clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing:-.03em; }
.cta-band p{ margin:18px auto 0; max-width:54ch; color:rgba(255,255,255,.72); font-size:1.05rem; }
.cta-band .btn{ margin-top:36px; padding:15px 30px; font-size:1rem; }

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.site-footer{ background:var(--surface); border-top:1px solid var(--line); padding:30px 0; }
.footer-inner{ display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.footer-brand{ display:inline-flex; align-items:center; gap:9px; font-weight:600; font-size:1.02rem; }
.footer-mark{ color:var(--gold); display:inline-grid; place-items:center; transition:transform .4s var(--ease); }
.footer-mark svg{ width:17px; height:17px; }
.footer-brand:hover .footer-mark{ transform:rotate(90deg); }
.footer-copy{ font-size:.9rem; color:var(--muted); }

/* ---------------------------------------------------------
   SCROLL REVEAL
   --------------------------------------------------------- */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible{ opacity:1; transform:none; }

/* stagger children within a grid */
.grid-3 .reveal:nth-child(2){ transition-delay:.08s; }
.grid-3 .reveal:nth-child(3){ transition-delay:.16s; }
.grid-3 .reveal:nth-child(4){ transition-delay:.06s; }
.grid-3 .reveal:nth-child(5){ transition-delay:.14s; }
.grid-3 .reveal:nth-child(6){ transition-delay:.22s; }

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 980px){
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .price-grid{ grid-template-columns:1fr; max-width:460px; margin-inline:auto; }
  .plan--popular{ order:-1; }
  .stats{ grid-template-columns:repeat(2,1fr); gap:38px 20px; }
}

@media (max-width: 760px){
  .menu-toggle{ display:block; }
  .signin-desktop, .cta-desktop{ display:none; }

  .nav{
    position:absolute;
    top:var(--header-h); left:0; right:0;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:8px 24px 20px;
    background:#fff;
    border-bottom:1px solid var(--line);
    box-shadow:0 18px 30px -20px rgba(16,26,51,.4);

    opacity:0;
    visibility:hidden;
    transform:translateY(-10px);
    transition:opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
  }
  .nav.is-open{ opacity:1; visibility:visible; transform:none; }

  .nav .nav-link{ padding:14px 2px; border-bottom:1px solid var(--line); font-size:16px; }
  .nav .nav-link::after{ display:none; }
  .nav .nav-link--signin{ display:block; }
  .nav .btn{ display:inline-flex; margin-top:16px; }

  .hero{ padding:68px 0 76px; }
  .hero-title{ max-width:18ch; }
  .stats{ margin-top:62px; }
  .section{ padding:76px 0; }
  .section-head{ margin-bottom:44px; }
  .grid-3{ grid-template-columns:1fr; gap:20px; }
  .steps-grid{ gap:44px; }
  .cta-band{ padding:76px 0; }
  .footer-inner{ justify-content:center; text-align:center; }
}

@media (max-width: 420px){
  .hero-actions .btn{ width:100%; }
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.001ms !important;
    transition-duration:.001ms !important;
  }
  .reveal{ opacity:1; transform:none; }
}
