/* ============================================================
   OpSpot landing v2 (OPS-97). Dark agency-OS system.
   Reference feel: huly.io. Brand hues from the OpSpot design
   system: violet 5A34D6, gold E0A458, green 5FD87F.
   Scoped to the homepage only; other pages keep styles.css.
   ============================================================ */

:root {
  --ink: #07070b;
  --ink-2: #0b0b11;
  --panel: #101018;
  --panel-2: #14141d;
  --line: rgba(213, 212, 246, 0.09);
  --line-strong: rgba(213, 212, 246, 0.16);
  --text: #f2f2f7;
  --muted: #9d9dae;
  --faint: #6b6b7c;
  --violet: #5a34d6;
  --violet-bright: #8f7bff;
  --lavender: #d5d4f6;
  --gold: #e0a458;
  --green: #5fd87f;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --container: 1160px;
  --radius: 14px;
  /* Damped cursor spotlight center (main-v2.js writes these). */
  --spot-x: 50%;
  --spot-y: 35%;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

::selection { background: rgba(90, 52, 214, 0.45); color: #fff; }

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

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

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

.container-narrow { max-width: 820px; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(7, 7, 11, 0.88), rgba(7, 7, 11, 0.55) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 30% 25%, var(--violet-bright), var(--violet) 55%, #2c1870);
  box-shadow: 0 0 14px rgba(90, 52, 214, 0.55);
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 14px;
  font-size: 15px;
  color: var(--muted);
}

.nav-links a:hover { color: var(--text); }

.nav-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover { color: var(--text); border-color: rgba(213, 212, 246, 0.34); }

.btn-solid {
  color: #0d0716;
  background: #f2f2f7;
}

.btn-solid:hover { transform: translateY(-1px); }

.btn-lg { padding: 16px 26px; font-size: 16px; }

/* The one warm thing on the page: huly-style glow pill. */
.btn-glow {
  position: relative;
  color: #221204;
  background: linear-gradient(180deg, #fdfdfd, #efe7dc);
  padding: 17px 30px;
  font-size: 16px;
  box-shadow:
    0 0 22px rgba(224, 164, 88, 0.55),
    0 0 70px rgba(224, 164, 88, 0.28),
    0 0 130px rgba(143, 123, 255, 0.18);
}

.btn-glow:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 26px rgba(224, 164, 88, 0.7),
    0 0 90px rgba(224, 164, 88, 0.36),
    0 0 150px rgba(143, 123, 255, 0.24);
}

.btn-arrow { font-size: 18px; transform: translateY(-1px); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-fx { position: absolute; inset: 0; }

#fluid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Static fallback + base atmosphere under the canvas. */
.hero-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 44% at 72% 82%, rgba(90, 52, 214, 0.30), transparent 70%),
    radial-gradient(40% 34% at 24% 24%, rgba(143, 123, 255, 0.10), transparent 70%),
    radial-gradient(30% 26% at 82% 30%, rgba(224, 164, 88, 0.05), transparent 70%);
}

/* Dot texture, revealed near the damped cursor spotlight. */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(213, 212, 246, 0.34) 1px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(240px at var(--spot-x) var(--spot-y), #000 25%, transparent 75%);
  mask-image: radial-gradient(240px at var(--spot-x) var(--spot-y), #000 25%, transparent 75%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    /* Text-column scrim: the words always win over the water. */
    linear-gradient(100deg, rgba(7, 7, 11, 0.78) 0%, rgba(7, 7, 11, 0.42) 36%, transparent 58%),
    linear-gradient(to bottom, rgba(7, 7, 11, 0.66), transparent 26%, transparent 62%, var(--ink) 96%),
    radial-gradient(120% 90% at 50% 42%, transparent 52%, rgba(7, 7, 11, 0.62));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 96px;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--violet-bright);
  margin: 0 0 22px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 7.2vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
  max-width: 21ch;
  background: linear-gradient(135deg, #ffffff 30%, var(--lavender) 62%, #a9a4e8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 22px rgba(7, 7, 11, 0.6));
}

.hero-sub {
  max-width: 560px;
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 40px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--faint);
}

/* ---------- sections ---------- */

.section { padding: 140px 0 0; }

main > .section:last-of-type { padding-bottom: 140px; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  background: linear-gradient(135deg, #ffffff 35%, var(--lavender) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead {
  max-width: 620px;
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 48px;
}

/* ---------- Founder OS frame ---------- */

.os-frame {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(20, 20, 29, 0.92), rgba(12, 12, 18, 0.96));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 90px rgba(90, 52, 214, 0.10);
  overflow: hidden;
}

.os-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.os-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(213, 212, 246, 0.14); }

.os-url {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}

.os-tabbar {
  display: flex;
  gap: 4px;
  padding: 12px 14px 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.os-tab {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px 13px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}

.os-tab:hover { color: var(--text); }

.os-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--violet-bright);
}

.os-pane { display: none; padding: 26px 22px 30px; min-height: 230px; }

.os-pane.is-active { display: block; }

.os-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.os-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(213, 212, 246, 0.025);
  padding: 18px;
}

.os-card-label {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.os-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
}

.os-row-line { border-bottom: 1px solid var(--line); padding: 13px 0; }

.os-list .os-row-line:last-child { border-bottom: 0; }

.os-list > .os-row > span:first-child { min-width: 180px; }

.os-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
}

.os-pill-gold { color: var(--gold); border-color: rgba(224, 164, 88, 0.45); }
.os-pill-violet { color: var(--violet-bright); border-color: rgba(143, 123, 255, 0.45); }
.os-pill-green { color: var(--green); border-color: rgba(95, 216, 127, 0.4); }

.os-ok {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(95, 216, 127, 0.7);
}

.os-mono { font-family: var(--font-mono); font-size: 13.5px; }

.os-receipts .os-row { gap: 18px; }

.os-muted { color: var(--faint); }

.os-caption {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--faint);
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  border-top: 1px solid var(--line-strong);
  padding-top: 26px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--violet-bright);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 14px 0 10px;
}

.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- bento ---------- */

.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.bento-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 20, 29, 0.7), rgba(12, 12, 18, 0.9));
  padding: 30px 30px 26px;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.bento-card:hover { border-color: rgba(143, 123, 255, 0.35); }

.bento-card h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 12px;
}

.bento-card .lead-in {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  margin-right: 6px;
}

.bento-card p { margin: 0; font-size: 15px; color: var(--faint); }

/* ---------- FAQ ---------- */

.faq-list details {
  border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--violet-bright);
  transition: transform 160ms ease;
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p {
  margin: 0;
  padding: 0 0 24px;
  color: var(--muted);
  max-width: 640px;
}

/* ---------- final CTA + form ---------- */

.section-cta { text-align: center; }

.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 18px;
  background: linear-gradient(135deg, #ffffff 30%, var(--lavender) 62%, #a9a4e8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-cta .section-lead { margin-left: auto; margin-right: auto; }

.section-cta .hero-cta { justify-content: center; }

.contact-block {
  margin-top: 90px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 20, 29, 0.7), rgba(12, 12, 18, 0.9));
  padding: 34px;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

#contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

.form-wide { margin-top: 16px; }

#contact-form input,
#contact-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: rgba(7, 7, 11, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 12px 14px;
  transition: border-color 140ms ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--violet-bright);
}

#contact-form textarea { resize: vertical; }

.form-foot {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.form-status { margin: 0; font-size: 14.5px; color: var(--muted); }

.form-status.is-ok { color: var(--green); }

.form-status.is-err { color: #e08a7a; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  margin-top: 140px;
  padding: 64px 0 40px;
  background: var(--ink-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p { color: var(--faint); font-size: 14.5px; margin: 16px 0 0; }

.footer-brand a:hover { color: var(--text); }

.footer-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 6px;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--muted); }

.footer-col a:hover { color: var(--text); }

.footer-legal {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}

.footer-legal p { margin: 0; }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.2, 0.6, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .bento { grid-template-columns: 1fr; }
  .os-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .section { padding-top: 96px; }
  .hero-content { padding-top: 130px; padding-bottom: 72px; }
  .hero-sub { font-size: 16.5px; }
  .btn-ghost.btn-lg { padding: 15px 22px; }
  .os-list > .os-row > span:first-child { min-width: 0; }
  .os-row { flex-wrap: wrap; gap: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-block { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-actions .btn-ghost { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  /* fluid.js also checks this and never starts the simulation. */
  #fluid-canvas { display: none; }
  .hero-grid {
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0.14;
  }
}
