/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #0a0a0c;
  --bg-2:      #141418;
  --bg-3:      #1c1c22;
  --ink:       #f7f7f8;
  --ink-soft:  rgba(247,247,248,0.78);
  --mute:      #9a9aa2;
  --accent:    #3a86ff;
  --accent-2:  #6ea8ff;
  --line:      rgba(247,247,248,0.12);
  --line-2:    rgba(247,247,248,0.22);

  --gradient-1: #3a86ff;
  --gradient-2: #8338ec;
  --gradient-3: #06ffa5;
  --gradient-4: #ff006e;

  --font-display: "IBM Plex Mono", "Courier New", monospace;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.accent-text { color: var(--accent); }
.accent-dot { color: var(--accent); }

.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal[data-split] { opacity: 1; transform: none; }

.badge {
  display: inline-flex; align-items: center;
  padding: .45rem .9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--ink-soft);
  font-family: var(--font-display);
}

/* =============================================================
   4. Typography
   ============================================================= */
.kicker, .section-kicker {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.08;
  margin-bottom: 2.5rem;
  max-width: 18ch;
}

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 500;
  transition: transform .25s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.btn-primary {
  background: var(--accent);
  color: #04070f;
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1rem; }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,12,0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.nav-logo { display: flex; align-items: center; gap: .6rem; }
.nav-logo-badge {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  color: var(--accent);
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.nav-links { display: none; align-items: center; gap: 1.8rem; }
.nav-links a {
  font-size: .92rem; color: var(--ink-soft);
  position: relative; padding-block: .3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--accent);
  transition: right .3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: none; }
.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .25s var(--ease-out), opacity .25s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mob-nav {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.mob-nav.is-open { display: block; }
.mob-nav-inner {
  display: flex; flex-direction: column; gap: 1.1rem;
  padding: 1.5rem 1.25rem 2rem;
  animation: mobNavIn .25s var(--ease-out);
}
@keyframes mobNavIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mob-nav-inner { animation: none; }
}
.mob-nav a { font-family: var(--font-display); font-size: 1rem; color: var(--ink-soft); }
.mob-nav .btn { align-self: flex-start; margin-top: .5rem; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--nav-h) + 2rem) 4rem;
  overflow: clip;
}
.hero-gradient {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle 640px at var(--mx, 50%) var(--my, 35%), var(--gradient-1) 0%, transparent 55%),
    radial-gradient(circle 760px at calc(var(--mx, 50%) + 18%) calc(var(--my, 35%) - 14%), var(--gradient-2) 0%, transparent 55%),
    radial-gradient(circle 520px at calc(var(--mx, 50%) - 20%) calc(var(--my, 35%) + 20%), var(--gradient-3) 0%, transparent 60%),
    var(--bg);
  opacity: .35;
  filter: blur(70px) saturate(140%);
  transition: background .4s linear;
}
.hero-inner { max-width: 880px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 6.4vw, 4.4rem);
  line-height: 1.12;
  margin-bottom: 1.6rem;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.hero-note { font-size: .84rem; color: var(--mute); font-family: var(--font-display); }

/* =============================================================
   8. Manifesto
   ============================================================= */
.manifesto { padding-block: 5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.manifesto-text {
  max-width: 62ch; margin-inline: auto;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.5;
  text-align: center;
  color: var(--ink-soft);
}

/* =============================================================
   9. Sections generic
   ============================================================= */
.services, .compare, .about, .process, .work, .plans, .faq, .contact {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

/* Services */
.services-list { display: flex; flex-direction: column; }
.service-row {
  display: grid; grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}
.services-list .service-row:last-child { border-bottom: 1px solid var(--line); }
.service-num { font-family: var(--font-display); color: var(--mute); font-size: 1rem; padding-top: .2rem; }
.service-body h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: .7rem; }
.service-body p { color: var(--ink-soft); max-width: 62ch; margin-bottom: 1rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.service-tags li {
  font-size: .78rem; font-family: var(--font-display);
  padding: .35rem .7rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--mute);
}

/* Compare */
.compare-grid { display: grid; gap: 1.5rem; margin-bottom: 2.5rem; }
.compare-col { padding: 1.75rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.compare-head { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 1.2rem; }
.compare-head--off { color: var(--mute); }
.compare-head--on { color: var(--accent); }
.compare-list li { padding-block: .6rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; }
.compare-list li:first-child { border-top: none; }

/* About */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-text { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 56ch; }
.about-badges { display: flex; flex-wrap: wrap; gap: .7rem; margin-block: 1.4rem; }
.about-visual { display: flex; justify-content: center; }
.about-frame {
  width: 100%; max-width: 320px; aspect-ratio: 1;
  border: 1px solid var(--line-2); border-radius: 20px;
  background: linear-gradient(155deg, var(--bg-2), var(--bg-3));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: clip;
}
.about-frame::before {
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(circle at 50% 50%, var(--accent) 0%, transparent 60%);
  opacity: .18; filter: blur(40px);
}
.about-frame-badge {
  font-family: var(--font-display); font-weight: 700; font-size: 4rem; color: var(--accent);
  position: relative;
}

/* Process */
.process-grid { display: grid; gap: 1.5rem; }
.process-step { padding: 1.75rem; border: 1px solid var(--line); border-radius: 14px; }
.process-num { font-family: var(--font-display); color: var(--accent); font-size: 1.6rem; display: block; margin-bottom: 1rem; }
.process-step h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .6rem; }
.process-step p { color: var(--ink-soft); font-size: .92rem; }

/* Work */
.work-list { display: flex; flex-direction: column; }
.work-row {
  display: block; padding-block: 2rem;
  border-top: 1px solid var(--line);
  transition: background .25s var(--ease-out);
}
.work-list .work-row:last-child { border-bottom: 1px solid var(--line); }
.work-row:hover { background: var(--bg-2); }
.work-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.work-row-head h3 { font-family: var(--font-display); font-size: 1.4rem; }
.work-year { font-family: var(--font-display); color: var(--mute); font-size: .85rem; }
.work-desc { color: var(--ink-soft); max-width: 62ch; margin-bottom: .8rem; }
.work-link { font-family: var(--font-display); color: var(--accent); font-size: .88rem; }
.work-note { color: var(--mute); margin-top: 2rem; max-width: 62ch; }

/* Plans */
.plans-sub { color: var(--ink-soft); max-width: 62ch; margin-bottom: 2.5rem; margin-top: -1.5rem; }
.plans-grid { display: grid; gap: 1.25rem; margin-bottom: 2.5rem; }
.plan-card { padding: 1.6rem; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: .9rem; }
.plan-card h3 { font-family: var(--font-display); font-size: 1.05rem; }
.plan-card p { color: var(--ink-soft); font-size: .9rem; flex-grow: 1; }
.plans-cta { text-align: center; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); padding-block: 1.3rem; }
.faq-list .faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; font-family: var(--font-display); font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; flex-shrink: 0; transition: transform .25s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); margin-top: 1rem; max-width: 62ch; }

/* Contact */
.contact { text-align: center; border-top: 1px solid var(--line); }
.contact-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 3.2rem); margin-bottom: 1.2rem; }
.contact-sub { color: var(--ink-soft); max-width: 52ch; margin-inline: auto; margin-bottom: 2.5rem; }
.contact-links { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.contact-link {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: 1rem 2rem; border: 1px solid var(--line-2); border-radius: 14px;
  min-width: 260px;
  transition: border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.contact-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-link-label { font-family: var(--font-display); font-size: .78rem; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.contact-link-value { font-family: var(--font-display); font-size: 1.2rem; color: var(--accent); }
.contact-meta { display: flex; flex-direction: column; gap: .5rem; color: var(--mute); font-size: .85rem; font-family: var(--font-display); }

/* =============================================================
   10. Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line); padding-block: 3rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-tagline { color: var(--mute); max-width: 46ch; font-size: .92rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; }
.footer-links a { font-family: var(--font-display); font-size: .85rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--mute); font-size: .8rem; font-family: var(--font-display); margin-top: .5rem; }

/* =============================================================
   11. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .compare-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .mob-nav { display: none; }
  .about-grid { grid-template-columns: 1.1fr .9fr; }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .plans-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
  .container { padding-inline: 2rem; }
}

/* =============================================================
   12. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-gradient { animation: none; transition: none; }
  .reveal { transition-duration: .2s; }
}
