/* =========================================
   ONE SEC FLOW — STYLESHEET
   ========================================= */

/* ── Reset & Base ──────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

:root {
  --bg:        #0A0A0A;
  --bg-panel:  #111111;
  --bg-card:   #131313;
  --text:      #F0EDE8;
  --muted:     #888880;
  --border:    rgba(255,255,255,0.08);
  --accent:    #2563EB;
  --accent-hov:#1D4ED8;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w:     1200px;
  --section-pad: 80px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 4.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 2.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); }
h4 { font-size: 1.25rem; font-weight: 700; }

p { color: var(--muted); line-height: 1.8; }

/* ── Layout Utilities ──────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: var(--section-pad) 0; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-header p {
  margin-top: 16px;
  font-size: 1.1rem;
}

/* ── Divider ───────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ── Buttons ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hov);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

/* ── Fade-in Animation ─────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════
   NAV
   ═══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  border-bottom-color: var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 36px;
  width: 36px;
  border-radius: 8px;
}

.nav-logo-text {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

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

.nav-cta { margin-left: 8px; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 16px 0 24px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--text); }

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 0 64px;
  overflow: hidden;
}

/* Grain overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* Geometric grid lines */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-eyebrow span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 18px;
}

.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--muted);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.hero-trust-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   WHAT WE DO
   ═══════════════════════════════════════ */
.what-we-do .cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px 40px;
  transition: border-color 0.3s ease;
}

.card:hover { border-color: rgba(255,255,255,0.15); }

.card-number {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 20px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.card h3 { margin-bottom: 16px; }
.card p { font-size: 0.95rem; }

/* ═══════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════ */
.how-it-works .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.how-it-works .steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(33.33% - 0px);
  width: calc(66.66%);
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step {
  padding: 0 40px 0 0;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 32px;
  background: var(--bg);
  transition: border-color 0.3s, color 0.3s;
}

.step:hover .step-num {
  border-color: var(--accent);
  color: var(--accent);
}

.step h3 { margin-bottom: 12px; }
.step p { font-size: 0.95rem; }

/* ═══════════════════════════════════════
   WHO IT'S FOR
   ═══════════════════════════════════════ */
.who-its-for .section-header { margin-bottom: 28px; }

.who-its-for .callouts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.callout {
  padding: 32px 36px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.3s;
}

.callout:hover { border-color: rgba(255,255,255,0.15); }

.callout-emoji {
  font-size: 1.5rem;
  margin-bottom: 16px;
  display: block;
}

.callout h4 { margin-bottom: 10px; color: var(--text); }
.callout p { font-size: 0.9rem; }

/* ═══════════════════════════════════════
   AI CONSULTING
   ═══════════════════════════════════════ */
.ai-consulting {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.consulting-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.consulting-left .section-header { margin-bottom: 0; }
.consulting-left h2 { margin-bottom: 20px; }
.consulting-left p { margin-bottom: 32px; }

.consulting-formats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.format-card {
  padding: 32px 36px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.3s;
}

.format-card:hover { border-color: rgba(255,255,255,0.15); }
.format-card h4 { color: var(--text); margin-bottom: 8px; }
.format-card p { font-size: 0.9rem; }

/* ═══════════════════════════════════════
   RESULTS / STATS
   ═══════════════════════════════════════ */
.results .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat {
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-right: none;
  transition: background 0.3s;
}

.stat:last-child { border-right: 1px solid var(--border); }
.stat:hover { background: var(--bg-card); }

.stat-value {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
}

.stat-value span { color: var(--text); }

.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   PRICING
   ═══════════════════════════════════════ */
.pricing .pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.pricing-card {
  padding: 40px 40px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s;
}

.pricing-card:hover { border-color: rgba(255,255,255,0.15); }
.pricing-card.featured { border-color: var(--accent); }

.pricing-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 20px;
  width: fit-content;
}

.pricing-card h3 { margin-bottom: 12px; }
.pricing-card .pricing-desc { font-size: 0.95rem; margin-bottom: 32px; flex: 1; }

.pricing-price {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

.pricing-price-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: auto;
  margin-bottom: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ═══════════════════════════════════════
   FAQ
   ═══════════════════════════════════════ */
.faq .faq-list {
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}

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

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  color: var(--muted);
}

.faq-item.open .faq-icon {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer-inner {
  padding-bottom: 24px;
}

.faq-answer-inner p { font-size: 0.95rem; }

.faq-item.open .faq-answer { max-height: 300px; }

/* ═══════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════ */
.final-cta {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: var(--section-pad) 0;
}

.final-cta h2 { margin-bottom: 16px; max-width: 600px; margin-left: auto; margin-right: auto; }
.final-cta p { font-size: 1.1rem; margin-bottom: 40px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img { height: 28px; width: 28px; border-radius: 6px; }

.footer-logo-text {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 800;
}

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

.footer-links a {
  font-size: 0.825rem;
  color: var(--muted);
  transition: color 0.2s;
}

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

.footer-legal {
  font-size: 0.775rem;
  color: var(--muted);
  text-align: right;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --section-pad: 64px; }

  .results .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat { border-right: none !important; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1),
  .stat:nth-child(2) { border-bottom: none; }

  .consulting-inner { gap: 48px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 52px; }

  .container { padding: 0 20px; }

  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  h2 { font-size: clamp(1.3rem, 4.5vw, 1.8rem); }

  .what-we-do .cards-grid { grid-template-columns: 1fr; }
  .card { padding: 28px 28px; }

  .how-it-works .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .how-it-works .steps::before { display: none; }
  .step { padding: 0; }

  .who-its-for .callouts { grid-template-columns: 1fr; }
  .callout { padding: 32px; }

  .consulting-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .results .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 32px 28px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-legal { text-align: left; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 12px; }
  .results .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: none; }
  .stat:last-child { border-bottom: 1px solid var(--border); }
}
