/* FlowGuide public site — Supabase-style dark design system (pure CSS, no JS) */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/Inter-Variable.3100e775e8.woff2") format("woff2");
}

:root {
  --bg: #0b0d0e;
  --bg-elevated: #161a1b;
  --bg-elevated-2: #1c2122;
  --bg-subtle: #101314;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #fafafa;
  --text-secondary: #b4b8b8;
  --text-tertiary: #7a8180;
  --accent: #3ecf8e;
  --accent-hover: #4ee0a0;
  --accent-press: #34b87d;
  --accent-soft: rgba(62, 207, 142, 0.12);
  --accent-ring: rgba(62, 207, 142, 0.35);
  --on-accent: #06120c;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 36px 90px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px var(--border), 0 0 80px -20px var(--accent-ring);
  --container: min(1120px, calc(100vw - 44px));
  --mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  color: var(--text);
  background: var(--bg);
  font-family: "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(60% 50% at 50% -10%, rgba(62, 207, 142, 0.1), transparent 60%),
    var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 14, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav,
.footer-inner {
  width: var(--container);
  margin: 0 auto;
}

.nav {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.01em;
}

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

.brand svg {
  display: block;
  width: 26px;
  height: 26px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 450;
}

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

.nav-cta {
  padding: 7px 15px;
  border-radius: 980px;
  background: var(--accent);
  color: var(--on-accent) !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

/* Layout */
.section {
  width: var(--container);
  margin: 0 auto;
  padding: 96px 0;
}

.section.compact {
  width: min(760px, calc(100vw - 44px));
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head .lede {
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 980px;
  background: var(--bg-elevated);
  color: var(--accent);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.01em;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* Typography */
h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6.6vw, 76px);
  font-weight: 680;
  line-height: 1.03;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 9px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lede {
  max-width: 600px;
  color: var(--text-secondary);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  font-weight: 400;
}

.gradient-text {
  background: linear-gradient(120deg, #fafafa 30%, var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto 0;
  height: 720px;
  background:
    radial-gradient(45% 45% at 70% 20%, rgba(62, 207, 142, 0.16), transparent 70%),
    radial-gradient(40% 40% at 20% 10%, rgba(56, 189, 248, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 56px;
  align-items: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 980px;
  padding: 0 24px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px var(--accent-ring);
}

.button.secondary {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text);
}

.button.secondary:hover {
  background: var(--bg-elevated-2);
  border-color: var(--accent-ring);
}

.hint {
  margin-top: 16px;
  color: var(--text-tertiary);
  font-size: 13.5px;
}

/* Product / editor mockup */
.product-shot {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}

.product-topbar {
  display: flex;
  gap: 7px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 13px 16px;
  background: var(--bg-subtle);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--border-strong);
}

.product-body {
  padding: 8px 20px;
}

.flow-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.flow-row:last-child {
  border-bottom: 0;
}

.step-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  font-family: var(--mono);
}

.step-title {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 600;
}

.step-copy {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 13.5px;
  line-height: 1.45;
}

/* Feature grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-subtle));
  padding: 26px 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card h2,
.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.card h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
}

.card .muted {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  color: var(--accent);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

/* Steps band */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}

.step h3 {
  font-size: 17px;
}

.step .muted {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* Spotlight */
.spotlight {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(50% 60% at 85% 50%, rgba(62, 207, 142, 0.08), transparent 70%),
    var(--bg-subtle);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr);
  gap: 56px;
  align-items: center;
}

.editor {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.editor-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-tertiary);
  font-family: var(--mono);
  font-size: 12.5px;
}

.editor-body {
  padding: 22px 20px;
  min-height: 150px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
}

.chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 7px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  background: var(--accent);
  transform: translateY(3px);
  animation: caret-blink 1.1s steps(1) infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

/* Flow guide screenshots */
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}

.shot {
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.shot:hover {
  transform: translateY(-3px);
  border-color: var(--accent-ring);
  box-shadow: var(--shadow-lg);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--border);
}

.shot figcaption {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 550;
}

.shot-num {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 780px) {
  .shots {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

/* Trust / install */
.trust {
  text-align: center;
}

.trust .lede {
  margin: 0 auto;
}

.notice {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-subtle));
  padding: 50px 40px;
  box-shadow: var(--glow);
}

.notice h2 {
  margin-bottom: 12px;
}

.notice .muted {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* Text helpers */
.muted {
  color: var(--text-secondary);
}

.list {
  padding-left: 20px;
  color: var(--text-secondary);
}

.list li + li {
  margin-top: 10px;
}

.list li::marker {
  color: var(--accent);
}

.policy-meta {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-bottom: 6px;
  font-family: var(--mono);
}

/* Long-form content pages */
.section.compact h1 {
  font-size: clamp(34px, 5vw, 50px);
  margin-bottom: 16px;
}

.section.compact > .lede {
  max-width: none;
  margin-bottom: 12px;
}

.section.compact h2 {
  font-size: 24px;
  margin-top: 44px;
  margin-bottom: 12px;
}

.section.compact > .section.compact {
  width: 100%;
  padding: 0;
}

.section.compact p {
  color: var(--text-secondary);
  font-size: 16.5px;
  line-height: 1.65;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.footer-inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--text-tertiary);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: var(--text-secondary);
}

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

/* Motion on load */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: reveal-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .reveal-2 {
    animation-delay: 0.08s;
  }

  .reveal-3 {
    animation-delay: 0.16s;
  }

  @keyframes reveal-up {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Responsive */
@media (max-width: 940px) {
  .grid-3,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  :root {
    font-size: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .hero-grid,
  .spotlight-grid,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .nav-links {
    gap: 18px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 22px 0;
  }
}

@media (max-width: 560px) {
  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}
