/* ==========================================================================
   Orbit — SaaS landing page template
   Light theme. All design tokens in :root — recolour from here.
   ========================================================================== */

:root{
  --bg:        #ffffff;
  --bg-soft:   #f6f7fb;
  --bg-ink:    #0e1220;
  --panel:     #ffffff;
  --line:      #e6e8ef;
  --line-2:    #d7dae4;
  --text:      #10131c;
  --text-dim:  #565d70;
  --text-mute: #8b91a3;
  --brand:     #0891b2;
  --brand-2:   #6366f1;
  --brand-soft:#e7f6fa;
  --good:      #059669;

  --font-display:'Space Grotesk', system-ui, sans-serif;
  --font-body:'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap:1120px;
  --gutter:clamp(20px,5vw,48px);
  --radius:18px;
  --radius-s:11px;
  --shadow-s:0 1px 2px rgba(16,19,28,.06), 0 6px 20px -12px rgba(16,19,28,.18);
  --shadow-l:0 30px 70px -30px rgba(16,19,28,.28);
  --ease:cubic-bezier(.22,1,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms!important; transition-duration:.001ms!important; }
  .js [data-reveal]{ opacity:1!important; transform:none!important; }
}

body{
  background:var(--bg); color:var(--text);
  font-family:var(--font-body); font-size:16px; line-height:1.65;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
::selection{ background:var(--brand); color:#fff; }

h1,h2,h3,h4{ font-family:var(--font-display); font-weight:600; line-height:1.1; letter-spacing:-.02em; }
h1{ font-size:clamp(2.5rem,6vw,4rem); }
h2{ font-size:clamp(1.8rem,3.6vw,2.6rem); }
h3{ font-size:1.12rem; }

.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:var(--gutter); }
section{ padding-block:clamp(3.5rem,8vw,6.5rem); }

.eyebrow{
  font-family:var(--font-display); font-weight:600;
  font-size:.75rem; letter-spacing:.16em; text-transform:uppercase; color:var(--brand);
}
:focus-visible{ outline:2px solid var(--brand-2); outline-offset:3px; border-radius:4px; }
.skip-link{ position:absolute; left:-999px; top:0; background:var(--brand); color:#fff; padding:.7em 1.2em; z-index:200; }
.skip-link:focus{ left:0; }

/* ---- buttons ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  font-family:var(--font-display); font-weight:600; font-size:.95rem;
  padding:.85em 1.5em; border-radius:999px; border:1px solid transparent; cursor:pointer;
  transition:transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
  white-space:nowrap;
}
.btn-primary{ background:var(--bg-ink); color:#fff; box-shadow:var(--shadow-s); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:var(--shadow-l); }
.btn-ghost{ background:var(--bg); border-color:var(--line-2); color:var(--text); }
.btn-ghost:hover{ border-color:var(--brand); color:var(--brand); }
.btn-small{ padding:.6em 1.1em; font-size:.86rem; }
.btn-block{ width:100%; }
.link-plain{ font-size:.92rem; color:var(--text-dim); font-weight:500; }
.link-plain:hover{ color:var(--text); }

/* ---- header ---- */
.site-header{ position:sticky; top:0; z-index:100; background:rgba(255,255,255,.8); backdrop-filter:blur(12px); border-bottom:1px solid transparent; transition:border-color .3s; }
.site-header.is-stuck{ border-bottom-color:var(--line); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:1.5rem; height:70px; }
.brand{ display:inline-flex; align-items:center; gap:.5rem; font-family:var(--font-display); font-weight:700; font-size:1.15rem; }
.brand-mark{ width:20px; height:20px; border-radius:6px; background:conic-gradient(from 140deg, var(--brand), var(--brand-2), var(--brand)); }
.main-nav{ display:flex; gap:.3rem; margin-inline:auto; }
.main-nav a{ padding:.5rem .85rem; border-radius:999px; font-size:.92rem; color:var(--text-dim); transition:color .2s, background .2s; }
.main-nav a:hover{ color:var(--text); background:var(--bg-soft); }
.header-actions{ display:flex; align-items:center; gap:1rem; }
.nav-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:0; padding:6px; cursor:pointer; }
.nav-toggle span{ width:22px; height:2px; background:var(--text); transition:transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ---- hero ---- */
.hero{
  text-align:center; padding-top:clamp(3rem,7vw,5.5rem);
  background:
    radial-gradient(60% 50% at 50% 0%, var(--brand-soft), transparent 70%),
    linear-gradient(180deg,#fff,var(--bg-soft));
}
.hero-inner{ display:flex; flex-direction:column; align-items:center; }
.badge{
  display:inline-flex; align-items:center; gap:.6em;
  background:var(--panel); border:1px solid var(--line); box-shadow:var(--shadow-s);
  border-radius:999px; padding:.4em .9em .4em .5em; font-size:.83rem; color:var(--text-dim);
  margin-bottom:1.8rem;
}
.badge span{ background:var(--brand); color:#fff; font-weight:600; font-size:.72rem; padding:.25em .6em; border-radius:999px; }
.hero h1{ margin-bottom:1.2rem; }
.hero-sub{ max-width:52ch; color:var(--text-dim); font-size:clamp(1.02rem,1.6vw,1.2rem); }
.hero-cta{ display:flex; gap:.6rem; margin:2rem 0 .8rem; width:min(440px,100%); }
.hero-cta input{
  flex:1; border:1px solid var(--line-2); border-radius:999px; padding:.85em 1.2em; font:inherit; background:#fff;
}
.hero-cta input:focus{ outline:none; border-color:var(--brand); }
.hero-fine{ font-size:.82rem; color:var(--text-mute); }

/* ---- hero app shot ---- */
.hero-shot{
  width:min(960px,100%); margin-top:3.5rem;
  background:var(--panel); border:1px solid var(--line); border-radius:16px;
  box-shadow:var(--shadow-l); overflow:hidden; text-align:left;
}
.shot-bar{ display:flex; gap:.4rem; padding:.8rem 1rem; border-bottom:1px solid var(--line); background:var(--bg-soft); }
.shot-bar span{ width:10px; height:10px; border-radius:50%; background:var(--line-2); }
.shot-body{ display:grid; grid-template-columns:180px 1fr; min-height:340px; }
.shot-side{ border-right:1px solid var(--line); padding:1.2rem; background:var(--bg-soft); }
.shot-logo{ width:70px; height:12px; border-radius:4px; background:var(--brand); margin-bottom:1.4rem; }
.shot-side ul{ list-style:none; display:grid; gap:.55rem; }
.shot-side li{ font-size:.85rem; color:var(--text-mute); padding:.4em .6em; border-radius:8px; }
.shot-side li.on{ background:var(--brand-soft); color:var(--brand); font-weight:600; }
.shot-main{ padding:1.4rem; }
.shot-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:1.2rem; }
.shot-head b{ font-family:var(--font-display); font-size:1.1rem; }
.shot-head span{ font-size:.8rem; color:var(--text-mute); }
.shot-cols{ display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.shot-tag{ font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-mute); }
.shot-card{
  background:var(--bg); border:1px solid var(--line); border-radius:10px;
  padding:.7rem .8rem; margin-top:.6rem; font-size:.82rem; box-shadow:var(--shadow-s);
}
.shot-card i{ display:block; height:4px; border-radius:3px; background:var(--line); margin-top:.5rem; position:relative; }
.shot-card i::after{ content:""; position:absolute; inset:0 auto 0 0; width:var(--w,30%); background:linear-gradient(90deg,var(--brand),var(--brand-2)); border-radius:3px; }

/* ---- logos ---- */
.logos{ padding-block:2.6rem; border-block:1px solid var(--line); background:var(--bg-soft); }
.logos-label{ text-align:center; font-size:.8rem; color:var(--text-mute); text-transform:uppercase; letter-spacing:.1em; margin-bottom:1.3rem; }
.logo-row{ display:flex; justify-content:center; flex-wrap:wrap; gap:2.4rem; }
.logo-row span{ font-family:var(--font-display); font-weight:600; font-size:1.05rem; color:var(--text-mute); opacity:.8; }

/* ---- section head ---- */
.section-head{ text-align:center; max-width:640px; margin:0 auto 3rem; }
.section-head h2{ margin-top:.6rem; }
.section-sub{ margin-top:.8rem; color:var(--text-dim); }

/* ---- features ---- */
.feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.3rem; }
.feature{
  border:1px solid var(--line); border-radius:var(--radius); padding:1.7rem; background:var(--panel);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature:hover{ transform:translateY(-4px); box-shadow:var(--shadow-l); border-color:var(--line-2); }
.feature-ic{
  width:44px; height:44px; display:grid; place-items:center; border-radius:12px;
  background:var(--brand-soft); color:var(--brand); font-size:1.3rem; margin-bottom:1rem;
}
.feature h3{ margin-bottom:.4rem; }
.feature p{ color:var(--text-dim); font-size:.92rem; }
.feature kbd{
  font-family:var(--font-body); font-size:.78rem; background:var(--bg-soft);
  border:1px solid var(--line-2); border-bottom-width:2px; border-radius:5px; padding:.1em .4em;
}

/* ---- how ---- */
.how{ background:var(--bg-soft); border-block:1px solid var(--line); }
.how-steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.6rem; counter-reset:step; }
.how-step{ position:relative; padding-top:.5rem; }
.how-num{
  width:34px; height:34px; display:grid; place-items:center; border-radius:50%;
  background:var(--bg-ink); color:#fff; font-family:var(--font-display); font-weight:600; font-size:.9rem;
  margin-bottom:1rem;
}
.how-step h3{ margin-bottom:.4rem; }
.how-step p{ color:var(--text-dim); font-size:.92rem; }

/* ---- pricing ---- */
.toggle{
  display:inline-flex; gap:.25rem; margin-top:1.6rem;
  background:var(--bg-soft); border:1px solid var(--line); border-radius:999px; padding:.25rem;
}
.toggle button{
  border:0; background:none; cursor:pointer; font-family:var(--font-display); font-weight:600;
  font-size:.86rem; color:var(--text-dim); padding:.55em 1.1em; border-radius:999px; transition:background .2s, color .2s;
}
.toggle button.is-active{ background:var(--bg); color:var(--text); box-shadow:var(--shadow-s); }
.toggle em{ font-style:normal; color:var(--good); font-size:.78rem; }

.price-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.3rem; align-items:start; }
.plan{
  border:1px solid var(--line); border-radius:var(--radius); padding:1.9rem; background:var(--panel);
  display:flex; flex-direction:column; gap:.5rem;
}
.plan-featured{ border-color:var(--brand); box-shadow:var(--shadow-l); position:relative; }
.plan-flag{
  position:absolute; top:-.75rem; left:1.9rem;
  background:var(--brand); color:#fff; font-family:var(--font-display); font-weight:600;
  font-size:.7rem; text-transform:uppercase; letter-spacing:.05em; padding:.3em .8em; border-radius:999px;
}
.plan h3{ font-size:1.2rem; }
.plan-for{ color:var(--text-mute); font-size:.86rem; min-height:2.4em; }
.plan-price{ display:flex; align-items:baseline; gap:.4rem; margin:.6rem 0 1.1rem; }
.plan-price .amount{ font-family:var(--font-display); font-weight:700; font-size:2.4rem; }
.plan-price .per{ font-size:.82rem; color:var(--text-mute); }
.plan-feats{ list-style:none; display:grid; gap:.6rem; margin-top:1.3rem; }
.plan-feats li{ position:relative; padding-left:1.6rem; font-size:.9rem; color:var(--text-dim); }
.plan-feats li::before{ content:"✓"; position:absolute; left:0; color:var(--brand); font-weight:700; }

/* ---- quote ---- */
.quote{ background:var(--bg-ink); color:#fff; }
.quote figure{ max-width:780px; text-align:center; }
.quote blockquote{ font-family:var(--font-display); font-weight:500; font-size:clamp(1.3rem,2.6vw,1.9rem); line-height:1.35; letter-spacing:-.01em; }
.quote figcaption{ display:flex; align-items:center; justify-content:center; gap:.9rem; margin-top:1.8rem; font-size:.88rem; color:rgba(255,255,255,.7); text-align:left; }
.q-avatar{ width:42px; height:42px; border-radius:50%; display:grid; place-items:center; background:var(--brand); color:#fff; font-family:var(--font-display); font-weight:600; font-size:.85rem; }
.quote figcaption b{ color:#fff; }

/* ---- faq ---- */
.faq-list{ max-width:760px; margin-inline:auto; display:grid; gap:.7rem; }
.faq details{ border:1px solid var(--line); border-radius:var(--radius-s); background:var(--panel); padding:0 1.3rem; }
.faq summary{
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
  padding:1.15rem 0; cursor:pointer; font-family:var(--font-display); font-weight:600; font-size:1rem;
  list-style:none;
}
.faq summary::-webkit-details-marker{ display:none; }
.chev{ width:10px; height:10px; border-right:2px solid var(--brand); border-bottom:2px solid var(--brand); transform:rotate(45deg); transition:transform .3s var(--ease); flex-shrink:0; }
.faq details[open] .chev{ transform:rotate(225deg); }
.faq details p{ padding:0 0 1.2rem; color:var(--text-dim); font-size:.94rem; max-width:60ch; }

/* ---- cta ---- */
.cta{ text-align:center; }
.cta-inner{
  max-width:640px; margin-inline:auto;
  border:1px solid var(--line); border-radius:var(--radius);
  background:radial-gradient(70% 120% at 50% 0%, var(--brand-soft), transparent 70%), var(--panel);
  padding:clamp(2.2rem,5vw,3.6rem);
}
.cta h2{ margin-bottom:.6rem; }
.cta p{ color:var(--text-dim); }
.cta .hero-cta{ margin-inline:auto; }

/* ---- footer ---- */
.site-footer{ border-top:1px solid var(--line); background:var(--bg-soft); padding-block:3rem 1.6rem; }
.footer-inner{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:2rem; }
.footer-brand p{ margin-top:.7rem; color:var(--text-mute); font-size:.88rem; max-width:28ch; }
.footer-col h4{ font-size:.78rem; text-transform:uppercase; letter-spacing:.1em; color:var(--text-mute); margin-bottom:.9rem; }
.footer-col a{ display:block; padding:.28rem 0; font-size:.9rem; color:var(--text-dim); }
.footer-col a:hover{ color:var(--brand); }
.footer-base{ display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-top:2.4rem; padding-top:1.4rem; border-top:1px solid var(--line); font-size:.8rem; color:var(--text-mute); }

/* ---- reveal ---- */
.js [data-reveal]{ opacity:0; transform:translateY(20px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].in{ opacity:1; transform:none; }

/* ---- responsive ---- */
@media (max-width:960px){
  .feature-grid,.how-steps,.price-grid{ grid-template-columns:1fr 1fr; }
  .plan-featured{ order:-1; }
  .footer-inner{ grid-template-columns:1fr 1fr; }
}
@media (max-width:780px){
  .main-nav{
    position:fixed; inset:70px 0 auto 0; flex-direction:column; margin:0; gap:0;
    background:rgba(255,255,255,.98); backdrop-filter:blur(14px); border-bottom:1px solid var(--line);
    padding:1rem var(--gutter) 1.6rem; transform:translateY(-120%); transition:transform .35s var(--ease);
  }
  .main-nav.open{ transform:none; }
  .main-nav a{ padding:.9rem 0; border-bottom:1px solid var(--line); border-radius:0; }
  .nav-toggle{ display:flex; }
  .header-actions .link-plain{ display:none; }
  .shot-body{ grid-template-columns:1fr; }
  .shot-side{ display:none; }
  .shot-cols{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .feature-grid,.how-steps,.price-grid,.footer-inner{ grid-template-columns:1fr; }
  .hero-cta{ flex-direction:column; }
  .hero-cta .btn{ width:100%; }
}
