/* app/assets/tailwind/marketing.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --bg: #FAFAF9;
  --bg-alt: #F3F2F0;
  --bg-dark: #0C0C0C;
  --bg-card: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-muted: #9A9A9A;
  --text-on-dark: #E8E8E6;
  --accent: #1B4332;
  --accent-light: #2D6A4F;
  --accent-surface: #D8F3DC;
  --border: #E5E4E2;
  --border-light: #EDEDEB;
  --red-flag: #C1121F;
  --green-ok: #2D6A4F;
  --amber: #E5A100;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'DM Mono', 'SF Mono', monospace;
  --max-w: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

/* =========== UTILITY =========== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-surface);
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 500;
}

.badge-dark {
  color: var(--accent-surface);
  background: var(--accent);
}

h1, h2, h3, h4, h5 { line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }

.h-display {
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.h-section {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.h-card { font-size: 22px; letter-spacing: -0.01em; }

.text-large {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.text-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.serif { font-family: var(--font-serif); }
.mono { font-family: var(--font-mono); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--bg-dark);
  color: #fff;
}
.btn-primary:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--text);
  background: var(--bg-alt);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 13px 16px;
}
.btn-ghost:hover { color: var(--text); }

/* =========== NAV =========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--text-muted); }

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

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 400;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta .btn { padding: 9px 20px; font-size: 14px; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* =========== HERO =========== */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  text-align: center;
}

.hero-badge { margin-bottom: 24px; }

.hero h1 {
  max-width: 800px;
  margin: 0 auto 24px;
}

.hero .text-large {
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
}

/* Dashboard Mockup */
.dashboard-mock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.04),
    0 8px 32px rgba(0,0,0,0.06),
    0 24px 60px rgba(0,0,0,0.04);
}

.dash-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-alt);
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.dash-titlebar-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}

.dash-body {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  min-height: 420px;
}

.dash-sidebar {
  border-right: 1px solid var(--border-light);
  padding: 20px 16px;
}

.dash-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.dash-sidebar-item.active {
  background: var(--accent-surface);
  color: var(--accent);
  font-weight: 500;
}

.dash-sidebar-item svg { width: 16px; height: 16px; opacity: 0.6; }

.dash-main { padding: 24px; }

.dash-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.dash-main-title { font-size: 18px; font-weight: 600; }

.dash-status-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
}

.pill-pass { background: #D8F3DC; color: #1B4332; }
.pill-flag { background: #FFE8E8; color: #C1121F; }
.pill-review { background: #FFF3CD; color: #856404; }

.dash-content-block {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  position: relative;
}

.dash-flag {
  border-left: 3px solid var(--red-flag);
  background: #FFF8F8;
}

.dash-flag-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-flag);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-panel {
  border-left: 1px solid var(--border-light);
  padding: 20px;
}

.dash-panel-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.audit-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12px;
}

.audit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.audit-dot-green { background: var(--green-ok); }
.audit-dot-amber { background: var(--amber); }
.audit-dot-red { background: var(--red-flag); }

.audit-text { color: var(--text-secondary); line-height: 1.5; }
.audit-time { color: var(--text-muted); font-family: var(--font-mono); font-size: 10px; margin-top: 2px; }

.credit-bar-wrap { margin-top: 24px; }
.credit-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.credit-bar {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}
.credit-bar-fill {
  height: 100%;
  width: 62%;
  background: var(--accent);
  border-radius: 3px;
}

/* =========== SOCIAL PROOF BAR =========== */
.proof-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.proof-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.proof-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.proof-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.proof-logo {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.5;
  letter-spacing: -0.01em;
}

/* =========== PROBLEM =========== */
.problem { background: var(--bg-dark); color: var(--text-on-dark); }

.problem h2 { color: #fff; margin-bottom: 20px; }
.problem .text-large { color: rgba(255,255,255,0.6); max-width: 640px; margin-bottom: 60px; }

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

.problem-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.problem-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--red-flag);
  font-size: 18px;
}

.problem-card h4 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 10px;
  font-weight: 500;
}

.problem-card p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
}

/* =========== SOLUTION =========== */
.solution-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.solution-header .badge { margin-bottom: 20px; }
.solution-header h2 { margin-bottom: 16px; }

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

.solution-step {
  background: var(--bg-card);
  padding: 40px 28px;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}

.solution-step h4 {
  font-size: 17px;
  margin-bottom: 10px;
  font-weight: 600;
}

.solution-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.solution-step .step-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

/* =========== MODULES =========== */
.modules-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.modules-header .badge { margin-bottom: 20px; }
.modules-header h2 { margin-bottom: 16px; }

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

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.25s ease;
}

.module-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(27, 67, 50, 0.06);
  transform: translateY(-2px);
}

.module-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.module-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
}

.module-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.module-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.module-features li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-features li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* =========== INDUSTRIES =========== */
.industries { background: var(--bg-alt); }

.industries-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.industries-header .badge { margin-bottom: 20px; }
.industries-header h2 { margin-bottom: 16px; }

.industry-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.industry-tab {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 7px;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.industry-tab.active {
  background: var(--bg-dark);
  color: #fff;
}

.industry-content {
  display: none;
}

.industry-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.industry-text h3 {
  font-size: 28px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.industry-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}

.industry-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.industry-list li {
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
}

.industry-list li span {
  color: var(--accent);
  font-size: 16px;
  margin-top: 2px;
}

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

.industry-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.industry-mock-title {
  font-weight: 600;
  font-size: 15px;
}

.rule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.rule-item:last-child { border-bottom: none; }

.rule-name { color: var(--text); font-weight: 500; }
.rule-status {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 100px;
}

/* =========== HOW IT WORKS =========== */
.how-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.how-header .badge { margin-bottom: 20px; }
.how-header h2 { margin-bottom: 16px; }

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.how-steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-surface), var(--accent), var(--accent-surface));
  z-index: 0;
}

.how-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.how-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

.how-step h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.how-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* =========== ROI =========== */
.roi { background: var(--bg-dark); color: var(--text-on-dark); }

.roi-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.roi-header .badge-dark { margin-bottom: 20px; }
.roi-header h2 { color: #fff; margin-bottom: 16px; }
.roi-header p { color: rgba(255,255,255,0.5); }

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

.roi-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}

.roi-metric {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  line-height: 1.1;
}

.roi-metric-label {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.roi-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
}

/* =========== TRUST =========== */
.trust-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.trust-header .badge { margin-bottom: 20px; }
.trust-header h2 { margin-bottom: 16px; }

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

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
}

.trust-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}

.trust-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* =========== PRICING =========== */
.pricing { background: var(--bg-alt); }

.pricing-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.pricing-header .badge { margin-bottom: 20px; }
.pricing-header h2 { margin-bottom: 16px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

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

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(27, 67, 50, 0.1);
  position: relative;
}

.pricing-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-tier {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pricing-card h4 {
  font-size: 22px;
  margin-bottom: 4px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-check {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

.pricing-card .btn { width: 100%; justify-content: center; }

/* =========== FINAL CTA =========== */
.final-cta {
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
  padding: 120px 24px;
}

.final-cta h2 {
  color: #fff;
  margin-bottom: 16px;
}

.final-cta p {
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.final-cta .hero-ctas { justify-content: center; }

.final-cta .btn-primary {
  background: #fff;
  color: var(--bg-dark);
}
.final-cta .btn-primary:hover {
  background: #f0f0f0;
}

.final-cta .btn-secondary {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.2);
}
.final-cta .btn-secondary:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

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

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

.footer-brand .nav-logo { margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 14px; color: var(--text-muted); max-width: 280px; line-height: 1.55; }

.footer-col h5 {
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-bottom-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

/* =========== ANIMATIONS =========== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

/* =========== RESPONSIVE =========== */
@media (max-width: 1024px) {
  .dash-body { grid-template-columns: 1fr 240px; }
  .dash-sidebar { display: none; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-flow { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .how-steps::before { display: none; }
  .roi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .mobile-toggle { display: block; }
  .hero { padding-top: 120px; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-panel { border-left: none; border-top: 1px solid var(--border-light); }
  .problem-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .solution-flow { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .industry-content.active { grid-template-columns: 1fr; }
  .industry-visual { display: none; }
  .roi-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .industry-tabs { flex-wrap: wrap; }
  .proof-inner { flex-direction: column; gap: 24px; }
}


/* =========== PAGE LAYOUT =========== */
.page-main {
  padding-top: 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.get-started-section {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}

/* =========== LEFT PANEL — FORM =========== */
.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
}

.form-inner {
  max-width: 460px;
  width: 100%;
}

.form-badge { margin-bottom: 28px; }

.form-inner h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.form-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* Email input group */
.input-group {
  margin-bottom: 16px;
}

.input-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.input-field {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.input-field::placeholder {
  color: var(--text-muted);
}

.input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.08);
}

.input-field.error {
  border-color: var(--red-flag);
  box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.06);
}

.input-error-msg {
  font-size: 13px;
  color: var(--red-flag);
  margin-top: 6px;
  display: none;
}

.input-error-msg.visible {
  display: block;
}

.submit-btn {
  width: 100%;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--bg-dark);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn .arrow {
  transition: transform 0.2s ease;
}

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

/* Loading state */
.submit-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.submit-btn.loading .btn-text { display: none; }
.submit-btn.loading .arrow { display: none; }
.submit-btn .spinner { display: none; }
.submit-btn.loading .spinner { display: block; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Success state */
.success-state {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.success-state.visible {
  display: block;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--accent);
}

.success-state h3 {
  font-size: 24px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.success-state p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.form-terms {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.form-terms a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}

.form-terms a:hover {
  color: var(--text);
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
}

.form-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form-divider-text {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* =========== RIGHT PANEL — INFO =========== */
.info-panel {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern */
.info-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Soft radial glow */
.info-panel::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(27, 67, 50, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.info-inner {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
}

.info-inner h2 {
  font-size: 28px;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.info-inner > p {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Steps */
.onboard-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 48px;
}

.onboard-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.onboard-step:first-child { padding-top: 0; }
.onboard-step:last-child { border-bottom: none; }

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-num-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  transition: all 0.3s ease;
}

.onboard-step.active .step-num-circle {
  border-color: var(--accent-light);
  background: var(--accent);
  color: #fff;
}

.step-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.onboard-step.active h4 {
  color: #fff;
}

.onboard-step:not(.active) h4 {
  color: rgba(255,255,255,0.5);
}

.step-content p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.55;
}

.onboard-step.active .step-content p {
  color: rgba(255,255,255,0.5);
}

/* Time estimate */
.time-estimate {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
}

.time-icon {
  font-size: 18px;
  opacity: 0.6;
}

.time-text {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.time-text strong {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

/* Trust badges on dark */
.info-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.info-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
}

.info-trust-icon {
  font-size: 14px;
  opacity: 0.5;
}