/* =========================================================
   Bibek Khatiwada, Portfolio
   Light, clean, blue/teal design system
   ========================================================= */

:root {
  --bg: #ffffff;
  --surface: #f3f8f9;
  --surface-2: #e9f2f3;
  --ink: #0b2230;
  --ink-2: #35505f;
  --muted: #667f8d;
  --line: #e0eaed;
  --line-2: #d2e0e3;

  --primary: #0d9488;
  --primary-d: #0b7d73;
  --primary-t: #e2f5f2;
  --accent: #2563eb;
  --accent-t: #e8f0ff;

  --grad: linear-gradient(90deg, #0d9488 0%, #2563eb 100%);
  --grad-soft: linear-gradient(135deg, #e2f5f2 0%, #e8f0ff 100%);

  --shadow-sm: 0 1px 2px rgba(11, 34, 48, .05);
  --shadow: 0 6px 24px rgba(11, 34, 48, .07);
  --shadow-lg: 0 18px 50px rgba(11, 34, 48, .12);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --container: 1160px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", var(--font);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-sm); font-weight: 600; font-size: .96rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(13,148,136,.28); }
.btn-primary:hover { background: var(--primary-d); box-shadow: 0 10px 26px rgba(13,148,136,.36); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-d); transform: translateY(-2px); }
.btn-block { width: 100%; }

.kicker {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary-d);
  background: var(--primary-t); padding: 5px 12px; border-radius: 100px; margin-bottom: 16px;
}
.kicker-light { background: rgba(255,255,255,.18); color: #d9fbf6; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 11px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  box-shadow: 0 6px 16px rgba(37,99,235,.25); flex: none;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font-family: var(--display); font-size: 1.02rem; }
.brand-copy span { font-size: .76rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a {
  padding: 9px 13px; border-radius: 8px; font-size: .93rem; font-weight: 500; color: var(--ink-2);
  transition: color .18s, background .18s; position: relative;
}
.nav > a:hover { color: var(--primary-d); background: var(--surface); }
.nav > a.active { color: var(--primary-d); }
.nav .nav-cta {
  margin-left: 6px; background: var(--primary); color: #fff; font-weight: 600;
  box-shadow: 0 6px 16px rgba(13,148,136,.26);
}
.nav .nav-cta:hover { background: var(--primary-d); color: #fff; }

.burger { display: none; width: 44px; height: 44px; border-radius: 10px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; background:
  radial-gradient(900px 420px at 85% -8%, var(--accent-t) 0%, transparent 60%),
  radial-gradient(760px 380px at 0% 4%, var(--primary-t) 0%, transparent 55%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: .84rem; font-weight: 600;
  color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: 6px 14px;
  border-radius: 100px; box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(13,148,136,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(13,148,136,0); } }

.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin-bottom: 20px; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 34em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .92rem; font-weight: 500; }
.hero-trust li { white-space: nowrap; }

/* Hero card */
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg); }
.hero-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hc-avatar { width: 40px; height: 40px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .9rem; flex: none; }
.hero-card-top strong { display: block; font-family: var(--display); font-size: .98rem; }
.hc-sub { font-size: .78rem; color: var(--muted); }
.hc-badge { margin-left: auto; background: var(--primary-t); color: var(--primary-d); font-weight: 700; font-size: .85rem; padding: 5px 11px; border-radius: 100px; }
.hc-chart { background: var(--surface); border-radius: 14px; padding: 10px; margin-bottom: 14px; }
.hc-chart svg { width: 100%; height: 128px; }
.hc-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hc-legend > div { background: var(--surface); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.hc-k { font-size: .74rem; color: var(--muted); }
.hc-v { font-weight: 700; font-size: .9rem; color: var(--primary-d); font-family: var(--display); }

/* ---------- Stats ---------- */
.stats { margin-top: -30px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 26px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--ink); letter-spacing: -.03em; }
.stat span { font-size: .84rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.section-sub { color: var(--ink-2); font-size: 1.05rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-photo {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); background: var(--grad-soft);
  border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow);
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.about-mono { font-family: var(--display); font-weight: 700; font-size: 5rem; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.about-chip { position: absolute; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 100px; padding: 9px 16px; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.chip-1 { top: 18px; left: -14px; }
.chip-2 { bottom: 20px; right: -14px; }
.about-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
.about-copy p { color: var(--ink-2); margin-bottom: 16px; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 22px 0 28px; }
.about-points li { display: flex; align-items: center; gap: 10px; font-size: .94rem; font-weight: 500; color: var(--ink); }
.about-points span { font-size: 1.05rem; }

/* ---------- Cards (services) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card-ic { width: 48px; height: 48px; border-radius: 13px; background: var(--grad-soft); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { font-size: .93rem; color: var(--muted); }

/* ---------- Tools built ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.tool {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.tool::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--grad); opacity: 0; transition: opacity .2s; }
.tool:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tool:hover::before { opacity: 1; }
.tool header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tool-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.3rem; }
.tool-tag { font-size: .72rem; font-weight: 600; color: var(--accent); background: var(--accent-t); padding: 4px 10px; border-radius: 100px; }
.tool h3 { font-size: 1.06rem; margin-bottom: 8px; }
.tool p { font-size: .9rem; color: var(--muted); }
.tool-note { text-align: center; color: var(--muted); margin-top: 26px; font-size: .95rem; }

/* ---------- Work / case studies ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.work {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-metric { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.work-metric strong { font-family: var(--display); font-size: 2rem; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; letter-spacing: -.03em; }
.work-metric span { font-size: .82rem; color: var(--muted); }
.work h3 { font-size: 1.12rem; margin-bottom: 4px; }
.work-industry { font-size: .78rem; font-weight: 600; color: var(--primary-d); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.work p { font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.work-tags li { font-size: .74rem; font-weight: 500; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 4px 10px; border-radius: 8px; }

/* ---------- Stack ---------- */
.stack-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stack-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.stack-col h4 { font-size: 1rem; margin-bottom: 16px; color: var(--primary-d); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { font-size: .86rem; font-weight: 500; padding: 7px 13px; border-radius: 100px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); }
.step-n { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.step h3 { font-size: 1.06rem; margin: 10px 0 8px; }
.step p { font-size: .9rem; color: var(--muted); }

/* ---------- Testimonial ---------- */
.testi { background: var(--grad); color: #fff; }
.quote { max-width: 760px; margin: 0 auto; text-align: center; }
.stars { color: #ffd166; font-size: 1.3rem; letter-spacing: 3px; margin-bottom: 18px; }
.quote blockquote { font-family: var(--display); font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.45; font-weight: 500; margin-bottom: 20px; }
.quote figcaption { font-weight: 600; opacity: .95; }
.quote figcaption span { opacity: .7; font-weight: 400; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.price { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.price-featured:hover { transform: translateY(-12px); }
.price-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; }
.price h3 { font-size: 1.2rem; margin-bottom: 10px; }
.price-amt { font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; margin-bottom: 4px; }
.price-amt .cur { font-size: 1.1rem; vertical-align: super; color: var(--muted); margin-right: 2px; }
.price-amt .per { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-for { font-size: .9rem; color: var(--muted); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.price ul { display: grid; gap: 11px; margin-bottom: 24px; }
.price ul li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--ink-2); }
.price ul li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 700; }
.price .btn { width: 100%; }
.price-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 26px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 780px; }
.faq-list { display: grid; gap: 12px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.02rem; padding: 16px 30px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--primary); font-weight: 400; transition: transform .2s; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { color: var(--muted); font-size: .95rem; padding-bottom: 18px; }

/* ---------- SEO longform (peek + fade + show more) ---------- */
.services-longform { max-width: 820px; margin: 46px auto 0; }
.longform { position: relative; max-height: 250px; overflow: hidden; transition: max-height .6s ease; }
.longform.expanded { max-height: 4600px; }
.longform p { color: var(--ink-2); margin-bottom: 14px; font-size: 1.01rem; }
.longform h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.longform a { color: var(--primary-d); font-weight: 500; border-bottom: 1px solid rgba(13,148,136,.35); }
.longform a:hover { border-color: var(--primary); }
.longform-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 130px;
  background: linear-gradient(180deg, transparent, var(--surface) 92%);
  pointer-events: none; transition: opacity .3s ease;
}
.longform.expanded .longform-fade { opacity: 0; }
.longform-toggle-wrap { display: flex; justify-content: center; margin-top: 22px; }
.longform-toggle {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem;
  color: var(--primary-d); background: var(--primary-t); border: 1px solid var(--line-2);
  padding: 11px 22px; border-radius: 100px; cursor: pointer;
  transition: background .18s, border-color .18s;
}
.longform-toggle:hover { background: #d3efeb; border-color: var(--primary); }
.longform-toggle .lf-arrow { display: inline-flex; transition: transform .25s; }
.longform-toggle.open .lf-arrow { transform: rotate(180deg); }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #fff; }
.contact .kicker { }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
.contact-copy h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.contact-copy > p { color: #b6c7d1; font-size: 1.05rem; margin-bottom: 26px; max-width: 34em; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: #d5e2e9; font-size: 1rem; }
.contact-list li span { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.contact-list a:hover { color: #fff; text-decoration: underline; }

.contact-form { background: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--ink); background: var(--bg); transition: border-color .18s, box-shadow .18s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,148,136,.15); }
.form-note { text-align: center; font-size: .9rem; margin-top: 12px; min-height: 1.2em; }
.form-note.ok { color: var(--primary-d); }
.form-note.err { color: #d64545; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: #08171f; color: #9fb2bc; padding: 54px 0 26px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { display: flex; gap: 14px; max-width: 340px; }
.footer-brand strong { color: #fff; font-family: var(--display); display: block; margin-bottom: 4px; }
.footer-brand p { font-size: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: start; }
.footer-nav a { font-size: .92rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 22px; font-size: .86rem; }
.to-top:hover { color: #fff; }

/* ---------- Reveal animation (only when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Back to top FAB ---------- */
.fab-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px;
  border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-lg); font-size: 1.2rem; opacity: 0; visibility: hidden;
  transform: translateY(10px) scale(.9); transition: all .25s ease;
}
.fab-top.show { opacity: 1; visibility: visible; transform: none; }
.fab-top:hover { background: var(--primary-d); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 460px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 360px; margin: 0 auto; }
  .stack-wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-featured { transform: none; }
  .price-featured:hover { transform: translateY(-4px); }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: none; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
}

@media (max-width: 960px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 22px 22px; box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav > a { padding: 13px 12px; font-size: 1rem; border-radius: 10px; }
  .nav > a:hover { background: var(--surface); }
  .nav .nav-cta { margin-left: 0; margin-top: 6px; text-align: center; justify-content: center; }
  .burger { display: block; }
  .about-points { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .hero { padding: 48px 0 64px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 12px; border-right: 1px solid var(--line); }
  .stat:nth-child(even) { border-right: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat:nth-child(5) { grid-column: 1 / -1; border-right: none; }
  .steps { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }

  /* Typography, scale down for phones */
  .hero { padding: 36px 0 52px; }
  .hero h1 { font-size: 1.85rem; line-height: 1.2; }
  .lede { font-size: 1rem; margin-bottom: 24px; }
  .eyebrow { font-size: .78rem; padding: 6px 12px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; padding: 12px 16px; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 1.5rem; }
  .section-sub { font-size: .98rem; }
  .about-copy h2, .contact-copy h2 { font-size: 1.55rem; }

  /* Hero performance card, tighten so nothing feels cramped */
  .hero-card { padding: 18px; }
  .hc-legend { gap: 8px; }
  .hc-legend > div { padding: 9px 10px; }
  .hc-k { font-size: .68rem; }
  .hc-v { font-size: .82rem; }

  /* Pricing / cards a touch tighter */
  .price { padding: 26px 22px; }
  .contact-form { padding: 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
