/* ============================================
   TOKENS
   ============================================ */
:root {
  --bg: #0A0D12;
  --bg-card: #12161D;
  --bg-card-alt: #171C24;
  --border: #232A36;
  --text: #EDEFF2;
  --text-muted: #8A94A6;
  --text-faint: #4C5568;

  --accent: #00E5C7;
  --accent-dim: #0C4A44;
  --warm: #FF6A3D;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 3px;
  --max-w: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--accent); color: var(--bg); }

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

/* subtle film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   LAYOUT HELPERS
   ============================================ */
.section { padding: 120px 24px; border-top: 1px solid var(--border); }
.section-alt { background: linear-gradient(180deg, rgba(0,229,199,0.03), transparent 40%); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-contact { text-align: center; }
.section-contact .section-lead { margin-left: auto; margin-right: auto; }

.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  max-width: 720px;
  margin-bottom: 20px;
}
.section-contact .section-title { margin-left: auto; margin-right: auto; }

.section-lead {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 56px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #06110F; }
.btn-primary:hover { background: #33ecd3; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-small { padding: 9px 16px; font-size: 13px; }
.btn-large { padding: 17px 34px; font-size: 15px; }

.btn-plan {
  width: 100%;
  background: transparent;
  border-color: var(--border);
  color: var(--text);
  margin-top: 28px;
}
.btn-plan:hover { border-color: var(--accent); color: var(--accent); }
.btn-plan-featured { background: var(--accent); color: #06110F; border-color: var(--accent); }
.btn-plan-featured:hover { background: #33ecd3; color: #06110F; }

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,13,18,0.85);
  backdrop-filter: blur(10px);
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.logo-dot { color: var(--accent); }

.timeline-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.timeline-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.timeline-nav a:hover { color: var(--text); }
.timeline-nav .tc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.topbar-scrubber { height: 2px; background: var(--border); }
.topbar-scrubber-fill { height: 100%; width: 0%; background: var(--accent); transition: width 0.1s linear; }

@media (max-width: 760px) {
  .timeline-nav { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero { padding: 96px 24px 0; position: relative; }
.hero-inner { max-width: var(--max-w); margin: 0 auto; padding-bottom: 72px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.rec-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 0 rgba(255,106,61,0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,106,61,0.45); }
  70% { box-shadow: 0 0 0 8px rgba(255,106,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,106,61,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 9vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.hero-title-accent { color: var(--accent); }

.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* waveform strip beneath hero */
.hero-strip {
  height: 64px;
  border-top: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-strip-track {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 24px;
  white-space: nowrap;
  animation: scrollWave 18s linear infinite;
}
@keyframes scrollWave {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   WORK GRID
   ============================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.work-card {
  background: var(--bg);
  padding: 32px 28px;
}
.work-tc {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.work-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 10px;
}
.work-card p { color: var(--text-muted); font-size: 14.5px; }

@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; }
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.portfolio-link:hover { color: var(--accent); border-color: var(--accent); }
.portfolio-link-arrow { transition: transform 0.15s ease; }
.portfolio-link:hover .portfolio-link-arrow { transform: translateX(4px); }

/* ============================================
   PLANS
   ============================================ */
.billing-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 40px;
  gap: 4px;
}
.billing-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.billing-btn.is-active { background: var(--bg-card-alt); color: var(--text); }
.billing-btn .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 6px;
  border-radius: 2px;
}

.plans-ruler {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 28px;
}
.plans-ruler span { width: 1px; height: 8px; background: var(--text-faint); }

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

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan-card-featured {
  background: var(--bg-card-alt);
  border-color: var(--accent-dim);
}

.plan-highlight {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--accent);
  color: #06110F;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  font-weight: 600;
}

/* clip-length bar: encodes plan tier as a "clip" on the timeline */
.plan-clip {
  height: 6px;
  border-radius: 2px;
  background: var(--border);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.plan-clip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: 2px;
}
.plan-clip-start::after { width: 30%; opacity: 0.7; }
.plan-clip-pro::after { width: 60%; }
.plan-clip-premium::after { width: 100%; }

.plan-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}
.plan-desc { color: var(--text-muted); font-size: 13.5px; margin-bottom: 24px; }

.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.currency { font-size: 15px; color: var(--text-muted); }
.amount { font-family: var(--font-display); font-size: 40px; font-weight: 700; }
.period { font-size: 14px; color: var(--text-muted); }

.plan-annual-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); margin-bottom: 16px; }

.plan-features { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.plans-footnote {
  margin-top: 36px;
  font-size: 14px;
  color: var(--text-muted);
}
.plans-footnote a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }

@media (max-width: 860px) {
  .plans-grid { grid-template-columns: 1fr; }
  .plans-ruler { display: none; }
}

/* ============================================
   PROCESS
   ============================================ */
.process-list { display: flex; flex-direction: column; }
.process-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.process-row:last-child { border-bottom: 1px solid var(--border); }
.process-tc {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  padding-top: 4px;
}
.process-row h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 8px;
}
.process-row p { color: var(--text-muted); font-size: 15px; max-width: 560px; }

@media (max-width: 600px) {
  .process-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ============================================
   CONTACT
   ============================================ */
.contact-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer { border-top: 1px solid var(--border); padding: 28px 24px; }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-faint);
}
.footer-tc { font-family: var(--font-mono); }
