:root {
  --color-bg: #050a15;
  --color-text: #ffffff;
  --color-accent: #0047ff;
  --color-border: #1e293b;
  --color-muted: #94a3b8;
  --color-card-bg: #0a1128;
  --color-bar-founders: #ffffff;
  --color-bar-investors1: #0047ff;
  --color-bar-investors2: #4d84ff;
  --color-bar-esop: #334155;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-heading: "Georgia", "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 18px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 3.5rem;
  margin-top: 0;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

p, ul, ol {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

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

a:hover, a:focus {
  text-decoration: underline;
}

a:focus, button:focus, input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sticky Nav */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(5, 10, 21, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.nav-links {
  font-weight: 600;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

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

.nav-links a:hover {
  color: #fff;
  text-decoration: none;
}

/* Hero */
.hero {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--color-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 1rem 2rem;
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #3366ff;
  text-decoration: none;
}

.number, .calc-value {
  font-family: var(--font-mono);
}

.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.section:last-of-type {
  border-bottom: none;
}

/* Timeline Cards */
.timeline {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}

.timeline-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: 2rem;
  border-radius: 8px;
  flex: 1 0 300px;
  display: flex;
  flex-direction: column;
}

.timeline-card h3 {
  margin-top: 0;
  color: var(--color-accent);
}

.timeline-card .ticket-size {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1rem;
  display: block;
}

/* Calculator */
.calc-container {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 3rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.calc-group h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.calc-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.calc-row label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.calc-row input {
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-bg);
  color: var(--color-text);
  width: 100%;
}

/* Stacked Bar */
.stacked-bar-container {
  width: 100%;
  height: 50px;
  background-color: var(--color-bg);
  border-radius: 4px;
  display: flex;
  overflow: hidden;
  margin: 2rem 0;
  border: 1px solid var(--color-border);
}

.bar-segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: bold;
  transition: width 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
}

.bar-founders { background-color: var(--color-bar-founders); color: var(--color-bg); }
.bar-investors1 { background-color: var(--color-bar-investors1); color: #fff; }
.bar-investors2 { background-color: var(--color-bar-investors2); color: #fff; }
.bar-esop { background-color: var(--color-bar-esop); color: #fff; }

.legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.calc-results {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--color-border);
}

.result-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.result-row.total {
  font-weight: bold;
  color: var(--color-accent);
  font-size: 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* Checklist layout fix */
.checklist {
  list-style-type: none;
  padding-left: 0;
}

.checklist li {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
}

.checklist li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: bold;
  margin-right: 1rem;
  font-size: 1.2rem;
  flex-shrink: 0; /* Prevents wrapping issue */
  margin-top: -0.1rem;
}

.glossary-term, .faq-q {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
  font-family: var(--font-heading);
}

.glossary-def, .faq-a {
  margin-bottom: 2rem;
  color: var(--color-muted);
}

footer {
  padding: 4rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-muted);
}

footer a {
  color: var(--color-muted);
  margin: 0 10px;
}

.badge {
  display: inline-block;
  background-color: rgba(0, 71, 255, 0.1);
  color: var(--color-accent);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(0, 71, 255, 0.3);
}
