/* =========================================
   CaskFlow — Financial Terminal Aesthetic
   ========================================= */

:root {
  --bg: #0A0F1A;
  --surface: #111827;
  --surface-2: #1a2234;
  --amber: #E8A020;
  --amber-dim: #a87518;
  --teal: #0EA5A0;
  --teal-dim: #0a7a78;
  --warning: #ef4444;
  --text: #F4F4F5;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --border: rgba(255,255,255,0.07);
  --border-amber: rgba(232, 160, 32, 0.25);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,15,26,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
  background: rgba(232,160,32,0.12);
  border: 1px solid rgba(232,160,32,0.3);
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.logo-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 32px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--teal);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.hero-headline {
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}
.hero-headline .amber { color: var(--amber); }
.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted-2);
  max-width: 480px;
  margin-bottom: 36px;
}
/* TERMINAL BLOCK */
.terminal-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(232,160,32,0.05), 0 24px 48px rgba(0,0,0,0.4);
}
.terminal-header {
  background: var(--surface-2);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-amber { background: #eab308; }
.dot-green { background: #22c55e; }
.terminal-title { font-size: 11px; color: var(--muted); }
.terminal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.terminal-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.terminal-row .muted { font-size: 10px; letter-spacing: 0.1em; color: var(--muted); white-space: nowrap; }
.terminal-row .value-lg { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.terminal-row .value-md { font-size: 14px; font-weight: 500; }
.amber { color: var(--amber); }
.teal { color: var(--teal); }
.warning { color: var(--warning); }
.terminal-footer {
  background: var(--surface-2);
  padding: 8px 20px;
  border-top: 1px solid var(--border);
}
.terminal-footer .muted { font-size: 10px; color: var(--muted); }
.hero-cta-group { margin-top: 28px; }
.hero-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: #0a0f1a;
  padding: 14px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: -0.01em;
}
.hero-cta-btn:hover { background: #f0ac28; transform: translateY(-1px); }
.hero-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
}
/* SHARED */
.label {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(232,160,32,0.08);
  border: 1px solid rgba(232,160,32,0.2);
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 32px;
}
.mono { font-family: 'JetBrains Mono', monospace; }
/* MANIFESTO */
.manifesto { padding: 100px 32px; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.manifesto-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start; }
.manifesto-stat { font-size: clamp(48px, 6vw, 80px); font-weight: 800; letter-spacing: -0.04em; color: var(--amber); margin-bottom: 12px; line-height: 1; }
.manifesto-body { font-size: 17px; line-height: 1.75; color: var(--muted-2); margin-bottom: 20px; }
.manifesto-body:last-child { margin-bottom: 0; }
.manifesto-highlight { color: var(--text); font-size: 18px; }
/* HOW */
.how { padding: 100px 32px; }
.how-inner { max-width: 1100px; margin: 0 auto; }
.how-headline { font-size: clamp(36px, 4.5vw, 52px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 64px; line-height: 1.1; }
.how-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.how-step {
  padding: 40px;
  border: 1px solid var(--border);
  margin: -1px 0 0 -1px;
  transition: background 0.2s;
}
.how-step:hover { background: rgba(232,160,32,0.03); }
.step-num { font-size: 11px; color: var(--amber); letter-spacing: 0.1em; margin-bottom: 16px; }
.step-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.step-content p { font-size: 14px; line-height: 1.7; color: var(--muted-2); }
/* OUTCOMES */
.outcomes { padding: 100px 32px; background: var(--surface); border-top: 1px solid var(--border); }
.outcomes-inner { max-width: 1100px; margin: 0 auto; }
.outcomes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-bottom: 48px; }
.outcome-card {
  padding: 40px;
  border: 1px solid var(--border);
  margin: -1px 0 0 -1px;
}
.outcome-icon { margin-bottom: 20px; }
.outcome-stat { font-family: 'JetBrains Mono', monospace; font-size: 40px; font-weight: 700; color: var(--amber); letter-spacing: -0.03em; margin-bottom: 8px; line-height: 1; }
.outcome-label { font-size: 14px; color: var(--muted-2); line-height: 1.5; }
.outcomes-note { font-size: 15px; color: var(--muted); font-style: italic; text-align: center; }
/* CLOSING */
.closing { padding: 100px 32px; }
.closing-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.closing-headline { font-size: clamp(36px, 4.5vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 24px; }
.closing-body { font-size: 17px; line-height: 1.7; color: var(--muted-2); margin-bottom: 40px; }
.closing-statement { border-left: 2px solid var(--amber); padding-left: 24px; }
.closing-quote { font-size: 20px; line-height: 1.5; font-weight: 600; color: var(--text); font-style: italic; }
.closing-terminal { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
/* FOOTER */
.footer { padding: 48px 32px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-tagline { font-size: 13px; color: var(--muted); }
.footer-legal { font-size: 12px; color: var(--muted); opacity: 0.6; }
/* HERO — 2-column layout */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-text-col { display: flex; flex-direction: column; }
.hero-visual-col { position: relative; }
.hero-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.hero-callout {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border-amber);
  border-radius: 10px;
  padding: 14px 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.callout-inner { display: flex; flex-direction: column; gap: 4px; }
.callout-label { font-size: 9px; letter-spacing: 0.12em; color: var(--muted); }
.callout-value { font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 700; color: var(--amber); line-height: 1; }
.callout-sub { font-size: 10px; color: var(--muted); }

/* PROBLEM */
.problem { padding: 100px 32px; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.problem-inner { max-width: 1100px; margin: 0 auto; }
.problem-stat { font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -0.04em; color: var(--amber); line-height: 1.1; margin-bottom: 48px; }
.problem-body-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.problem-body { font-size: 16px; line-height: 1.8; color: var(--muted-2); margin-bottom: 20px; }
.problem-highlight { color: var(--text); font-size: 17px; font-weight: 500; }

/* HOW — 3-column cards */
.how { padding: 100px 32px; }
.how-inner { max-width: 1100px; margin: 0 auto; }
.how-header { margin-bottom: 56px; }
.how-header .label { margin-bottom: 20px; display: block; }
.how-headline { font-size: clamp(36px, 4.5vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.how-step:hover { border-color: var(--border-amber); box-shadow: 0 0 24px rgba(232,160,32,0.08); }
.how-step-cta { border-color: rgba(232,160,32,0.2); background: linear-gradient(135deg, var(--surface) 0%, rgba(232,160,32,0.04) 100%); }
.step-icon { margin-bottom: 4px; }
.step-detail { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--border); }
.step-detail-label { font-size: 9px; letter-spacing: 0.1em; color: var(--amber); display: block; margin-bottom: 6px; }
.step-detail-value { font-size: 11px; color: var(--muted); line-height: 1.5; }
.step-cta-link { margin-top: auto; display: inline-block; color: var(--amber); font-size: 13px; font-weight: 600; font-family: 'JetBrains Mono', monospace; text-decoration: none; letter-spacing: -0.01em; }
.step-cta-link:hover { text-decoration: underline; }

/* FOUNDER STORY */
.founder-story { padding: 100px 32px; background: var(--surface); border-top: 1px solid var(--border); }
.founder-story-inner { max-width: 1100px; margin: 0 auto; }
.founder-story-content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.founder-narrative { font-size: 26px; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 28px; font-style: italic; }
.founder-body { font-size: 16px; line-height: 1.8; color: var(--muted-2); margin-bottom: 20px; }
.founder-answer-block {
  background: rgba(232,160,32,0.06);
  border: 1px solid rgba(232,160,32,0.25);
  border-radius: 10px;
  padding: 24px;
  margin: 28px 0;
  text-align: center;
}
.founder-answer-label { font-size: 10px; letter-spacing: 0.1em; color: var(--muted); display: block; margin-bottom: 8px; }
.founder-answer-value { font-family: 'JetBrains Mono', monospace; font-size: 52px; font-weight: 700; color: var(--amber); letter-spacing: -0.03em; line-height: 1; display: block; margin-bottom: 8px; }
.founder-answer-sub { font-size: 12px; color: var(--muted); }
.founder-story-terminal { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.story-terminal-inner { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.story-terminal-footer { background: var(--surface-2); border-top: 1px solid var(--border); padding: 10px 24px; }
.story-terminal-footer .muted { font-size: 10px; color: var(--muted); }
.terminal-row-highlight { background: rgba(232,160,32,0.08); border-radius: 6px; padding: 14px 16px; margin-top: 8px; border: 1px solid rgba(232,160,32,0.15); }

/* CLOSING — answer + pricing side-by-side (legacy, now solo variant used) */
.closing { padding: 100px 32px; }
.closing-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
/* Solo variant — centered CTA block without sidebar pricing */
.closing-solo { padding: 80px 32px; border-top: 1px solid var(--border); }
.closing-solo-inner { max-width: 640px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.closing-headline { font-size: clamp(36px, 4.5vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 24px; }
.closing-body { font-size: 17px; line-height: 1.7; color: var(--muted-2); margin-bottom: 36px; }
.closing-answer { display: flex; align-items: baseline; gap: 12px; margin-bottom: 32px; }
.answer-label { font-size: 12px; color: var(--muted); }
.answer-value { font-family: 'JetBrains Mono', monospace; font-size: 48px; font-weight: 700; color: var(--amber); letter-spacing: -0.03em; }
.answer-sub { font-size: 12px; color: var(--muted); }
.closing-cta-group { display: flex; flex-direction: column; gap: 12px; }
.closing-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: #0a0f1a;
  padding: 14px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: -0.01em;
  width: fit-content;
}
.closing-cta-btn:hover { background: #f0ac28; transform: translateY(-1px); }
.closing-cta-sub { font-size: 12px; color: var(--muted); }
.closing-pricing { display: flex; flex-direction: column; gap: 20px; }
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pricing-card-featured { border-color: rgba(232,160,32,0.3); background: linear-gradient(135deg, var(--surface) 0%, rgba(232,160,32,0.04) 100%); }
.pricing-badge { font-size: 10px; letter-spacing: 0.1em; color: var(--amber); background: rgba(232,160,32,0.1); border: 1px solid rgba(232,160,32,0.2); padding: 4px 10px; border-radius: 4px; display: inline-block; margin-bottom: 4px; width: fit-content; }
.pricing-card-header { display: flex; justify-content: space-between; align-items: baseline; }
.pricing-plan-label { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.pricing-price { font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.pricing-period { font-size: 14px; color: var(--muted); font-weight: 400; }
.pricing-desc { font-size: 13px; line-height: 1.6; color: var(--muted-2); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pricing-features li { font-size: 13px; color: var(--muted-2); display: flex; align-items: center; gap: 8px; }
.pricing-features li::before { content: '✓'; color: var(--teal); font-size: 11px; }
.pricing-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text); background: var(--surface-2);
  transition: border-color 0.15s, background 0.15s;
  margin-top: auto;
}
.pricing-cta:hover { border-color: rgba(255,255,255,0.2); background: var(--surface); }
.pricing-cta-featured { background: var(--amber); color: #0a0f1a; border-color: var(--amber); }
.pricing-cta-featured:hover { background: #f0ac28; border-color: #f0ac28; }

/* PRICING SECTION (standalone, from #pricing anchor) */
.pricing-section {
  padding: 96px 32px;
  border-top: 1px solid var(--border);
}
.pricing-section-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.pricing-section-label { margin-bottom: -32px; }
.pricing-section-headline {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
}
.pricing-section-sub {
  font-size: 16px;
  color: var(--muted-2);
  text-align: center;
  margin-top: -24px;
}
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}
.pricing-trust {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: -24px;
}

/* FAQ accordion */
.pricing-faq {
  width: 100%;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  color: var(--text);
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  gap: 16px;
}
.faq-question:hover { color: var(--amber); }
.faq-icon {
  font-size: 20px;
  color: var(--muted);
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
}
.faq-answer { padding: 0 0 20px; }
.faq-answer p { font-size: 14px; line-height: 1.7; color: var(--muted-2); }

@media (max-width: 600px) {
  .pricing-cards { grid-template-columns: 1fr; }
  .pricing-section-headline { font-size: 26px; }
}

/* FOOTER */
.footer-cta-block { text-align: center; padding-bottom: 48px; }
.footer-cta-headline { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.footer-cta-sub { font-size: 16px; color: var(--muted-2); margin-bottom: 28px; }
.footer-email-form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto 12px; }
.footer-email-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.footer-email-input::placeholder { color: var(--muted); }
.footer-email-input:focus { border-color: rgba(232,160,32,0.4); }
.footer-email-btn {
  background: var(--amber); color: #0a0f1a;
  padding: 12px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  border: none; cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.footer-email-btn:hover { background: #f0ac28; }
.footer-email-note { font-size: 11px; color: var(--muted); }
.footer-divider { border-top: 1px solid var(--border); margin-bottom: 32px; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr; }
  .founder-story-content, .problem-body-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-content, .closing-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; }
  .problem-label, .how-label, .founder-story-label { margin-bottom: 16px; }
  .founder-answer-value { font-size: 40px; }
  .pricing-card-header { flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 36px; }
  .callout-value { font-size: 22px; }
  .terminal-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-email-form { flex-direction: column; }
  .footer-email-btn { width: 100%; }
}