/* ===========================================================
   ClutchTweaks — design tokens
   =========================================================== */
:root {
  --bg: #14161b;
  --surface: #1b1e24;
  --line: #2b2f38;
  --text: #edeff3;
  --muted: #949aa6;
  --cyan: #4fd8e8;
  --amber: #ffa451;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1120px;
}

/* ===========================================================
   Reset & base
   =========================================================== */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text); }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.75rem;
}

section > .wrap {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

section {
  border-top: 1px solid var(--line);
  scroll-margin-top: 76px;
}

.hero { border-top: none; scroll-margin-top: 0; }

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

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--amber);
  color: #1a1204;
}
.btn-primary:hover { background: #ffb46e; }

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

/* ===========================================================
   Header
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header.scrolled {
  background: rgba(20, 22, 27, 0.86);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a:not(.btn) {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.site-nav a:not(.btn):hover { color: var(--text); }

.nav-cta { padding: 0.6rem 1.15rem; font-size: 0.875rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===========================================================
   Hero
   =========================================================== */
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  min-height: 78vh;
}

.hero-copy h1 {
  font-size: clamp(2.75rem, 4vw + 1.25rem, 4.25rem);
  font-weight: 700;
}

.hero-sub {
  max-width: 42ch;
  font-size: 1.125rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Hero entrance — one orchestrated sequence, not per-section scroll effects */
.reveal-1, .reveal-2, .reveal-3, .reveal-4 {
  opacity: 0;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.18s; }
.reveal-3 { animation-delay: 0.3s; }
.reveal-4 { animation-delay: 0.24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-visual {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.5rem;
}

.scope { width: 100%; height: auto; display: block; overflow: visible; }

.scope-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.scope-trace {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.5s forwards;
  filter: drop-shadow(0 0 6px rgba(79, 216, 232, 0.35));
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.readout {
  position: absolute;
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
}

.readout-1 { top: 1.75rem; left: 1.75rem; }
.readout-2 { bottom: 1.75rem; right: 1.75rem; text-align: right; }

.readout-value {
  font-size: 1.75rem;
  color: var(--text);
  line-height: 1;
}

.readout-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* ===========================================================
   Services — spec list
   =========================================================== */
.spec-list { margin-top: 2.5rem; }

.spec-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding: 1.85rem 0;
  border-top: 1px solid var(--line);
}
.spec-row:first-child { border-top: 1px solid var(--line); }

.spec-row h3 {
  font-size: 1.0625rem;
  font-weight: 600;
}

.spec-row p {
  max-width: 52ch;
  color: var(--muted);
  margin: 0;
}

/* ===========================================================
   Pricing — channel strips
   =========================================================== */
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: -0.25rem;
}

.strip-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 2.5rem;
}

.strip {
  padding: 2.5rem;
  position: relative;
}
.strip:first-child { border-right: 1px solid var(--line); }

.strip-featured { background: rgba(255, 164, 81, 0.05); }

.strip-tag {
  font-size: 0.8rem;
  color: var(--amber);
  margin: 0 0 1rem;
  font-weight: 600;
}

.strip-head { margin-bottom: 1.75rem; }

.strip-head h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0;
}

.strip-list { margin-bottom: 2rem; }

.strip-list li {
  position: relative;
  padding-left: 1.25rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.strip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 7px;
  height: 1px;
  background: var(--cyan);
}

.strip-cta { width: 100%; }

.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2rem;
  margin-bottom: 0;
}

/* ===========================================================
   How it works
   =========================================================== */
.steps {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
}

.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.steps li:first-child { border-top: 1px solid var(--line); }

.step-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.35rem;
}

.steps p {
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}

/* ===========================================================
   FAQ
   =========================================================== */
.faq-list { margin-top: 2rem; }

.faq-item {
  border-top: 1px solid var(--line);
  padding: 1.35rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: 1.5rem;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--muted);
  transition: transform 0.2s ease;
}
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 1.5px; }
.faq-icon::after { top: 0; left: 7px; width: 1.5px; height: 16px; }

.faq-item[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }

.faq-item p {
  color: var(--muted);
  max-width: 60ch;
  margin: 1rem 0 0;
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.footer-tag, .footer-contact p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.footer-contact p + p { margin-top: 0.4rem; }

.footer-legal {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.9rem;
}

.disclaimer {
  color: var(--muted);
  font-size: 0.8rem;
  padding-bottom: 2.5rem;
  margin: 0;
  opacity: 0.75;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 3rem;
    padding-bottom: 3rem;
    min-height: 0;
  }
  .hero-visual { order: -1; }

  .spec-row { grid-template-columns: 1fr; gap: 0.5rem; }

  .strip-pair { grid-template-columns: 1fr; }
  .strip:first-child { border-right: none; border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  section > .wrap { padding-top: 3.5rem; padding-bottom: 3.5rem; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(20, 22, 27, 0.98);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.open { max-height: 320px; }
  .site-nav a:not(.btn) { padding: 1rem 1.75rem; border-top: 1px solid var(--line); }
  .nav-cta { margin: 1rem 1.75rem; }

  .nav-toggle { display: flex; }

  .footer-inner { flex-direction: column; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-1, .reveal-2, .reveal-3, .reveal-4 { animation: none; opacity: 1; }
  .scope-trace { animation: none; stroke-dashoffset: 0; }
}
