/* ==========================================================================
   Setflow AI — site styles
   ========================================================================== */

:root {
  --bg: #0a0a0c;
  --bg-elev: #111114;
  --bg-card: #141418;
  --border: #1f1f25;
  --border-strong: #2a2a32;
  --text: #f5f5f7;
  --text-muted: #9a9aa6;
  --text-dim: #6a6a76;

  --accent-1: #3B9BFF;
  --accent-2: #7B5BFF;
  --accent-3: #9333EA;
  --accent-grad: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 50%, var(--accent-3) 100%);

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --pad-x: clamp(20px, 5vw, 48px);

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle ambient gradient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(59,155,255,0.08), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(147,51,234,0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

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

img, svg { display: block; max-width: 100%; }

/* ==========================================================================
   Typography
   ========================================================================== */

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

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
}

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section {
  padding: clamp(72px, 10vw, 128px) 0;
  position: relative;
}

section + section { border-top: 1px solid var(--border); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,12,0.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.nav-brand img { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg { width: 100%; height: 100%; }

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 12px var(--pad-x) 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a.btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 8px 28px -8px rgba(123,91,255,0.55);
}

.btn-primary:hover { transform: translateY(-1px); opacity: 0.95; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover { border-color: #3a3a44; background: rgba(255,255,255,0.02); }

.btn-arrow::after {
  content: '→';
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-arrow:hover::after { transform: translateX(3px); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: clamp(80px, 12vw, 140px);
  padding-bottom: clamp(60px, 8vw, 100px);
  text-align: center;
}

.hero-headline {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  max-width: 680px;
  margin: 1.4rem auto 2.4rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Stat bar
   ========================================================================== */

.stat-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  background: rgba(255,255,255,0.015);
}

.stat-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  display: block;
}

.stat .label {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  display: block;
}

@media (max-width: 760px) {
  .stat-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ==========================================================================
   Section header
   ========================================================================== */

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p { font-size: 1.05rem; }

/* ==========================================================================
   Pain points
   ========================================================================== */

.pain-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pain-list li {
  background: var(--bg-card);
  padding: 28px 28px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pain-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-grad);
  flex-shrink: 0;
  margin-top: 10px;
}

.transition-line {
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-align: center;
}

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

/* ==========================================================================
   Value props (3-col)
   ========================================================================== */

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(123,91,255,0.12);
  border: 1px solid rgba(123,91,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: var(--accent-1);
}

.card h3 { color: var(--text); margin-bottom: 10px; }
.card p { font-size: 0.95rem; margin: 0; }

@media (max-width: 860px) {
  .cards-3 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Steps (How it works)
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.step .step-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 16px;
}

.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; margin: 0; }

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

/* ==========================================================================
   Case studies
   ========================================================================== */

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

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

.case-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.case-headline {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.case-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.case-stats li {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.case-stats li strong {
  color: var(--text);
  font-weight: 500;
}

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

/* ==========================================================================
   Pricing
   ========================================================================== */

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

.tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
}

.tier.featured {
  border-color: rgba(123,91,255,0.5);
  background: linear-gradient(180deg, rgba(123,91,255,0.06), var(--bg-card) 60%);
}

.tier-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.tier-for {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.tier-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.guarantee {
  margin-top: 36px;
  padding: 24px 28px;
  border: 1px solid rgba(123,91,255,0.3);
  background: rgba(123,91,255,0.04);
  border-radius: var(--radius);
  text-align: center;
}

.guarantee strong { color: var(--text); }

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

/* ==========================================================================
   Founder teaser
   ========================================================================== */

.founder-teaser {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.founder-teaser h2 { margin-bottom: 16px; }
.founder-teaser p { font-size: 1.02rem; }

@media (max-width: 860px) {
  .founder-teaser { grid-template-columns: 1fr; padding: 32px; gap: 24px; }
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

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

.cta-section h2 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* ==========================================================================
   About page specifics
   ========================================================================== */

.about-story {
  max-width: 780px;
}

.about-story p {
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 1.6em;
  line-height: 1.7;
}

.about-story p strong { color: var(--text); }

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.number-cell {
  background: var(--bg-card);
  padding: 32px 20px;
  text-align: center;
}

.number-cell .big {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}

.number-cell .small {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
  display: block;
}

@media (max-width: 980px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}

.icp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.icp-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.icp-col h3 { margin-bottom: 20px; }
.icp-col ul { margin: 0; padding: 0; list-style: none; }
.icp-col li {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.96rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.icp-col li:first-child { border-top: 0; }
.icp-col li::before {
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 600;
}
.icp-col.fit li::before { content: '✓'; color: var(--accent-1); }
.icp-col.notfit li::before { content: '✕'; color: #6a6a76; }

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

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-wrap {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-wrap h1 { margin-bottom: 20px; }

.contact-wrap > p {
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.contact-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.contact-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 460px;
  margin: 0 auto;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-checks li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.contact-checks li::before {
  content: '✓';
  color: var(--accent-1);
  font-weight: 600;
  flex-shrink: 0;
}

.contact-secondary {
  margin-top: 40px;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.contact-secondary a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
}

.contact-secondary a:hover { border-color: var(--accent-2); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--bg-elev);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner .nav-brand { font-size: 1rem; }
.footer-inner small { color: var(--text-dim); font-size: 0.86rem; }

/* ==========================================================================
   Utility
   ========================================================================== */

.tech-line {
  font-size: 0.95rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  line-height: 1.7;
}
.tech-line strong { color: var(--text); font-weight: 500; }

ul.unstyled { list-style: none; padding: 0; margin: 0; }
