:root {
  --bg: #0a0a0a;
  --bg-raised: #141414;
  --bg-card: #1a1a1a;
  --fg: #f0ede6;
  --fg-muted: #8a8680;
  --accent: #e8a020;
  --accent-glow: rgba(232, 160, 32, 0.15);
  --accent-dark: #c4871a;
  --green: #2dd36f;
  --red: #ff4d4f;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --max-w: 1120px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -300px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid #2a2a2a;
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
  width: fit-content;
}

.hero-badge span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--fg-muted);
  max-width: 540px;
  line-height: 1.7;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  border-top: 1px solid #1e1e1e;
  border-bottom: 1px solid #1e1e1e;
  padding: 48px 0;
}

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

.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat-item .stat-label {
  font-size: 14px;
  color: var(--fg-muted);
  margin-top: 4px;
}

/* ---------- Problem Section ---------- */
.problem {
  padding: 100px 0;
}

.problem h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.problem .sub {
  color: var(--fg-muted);
  font-size: 18px;
  margin-bottom: 48px;
  max-width: 560px;
}

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

.problem-card {
  background: var(--bg-raised);
  border: 1px solid #1e1e1e;
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: border-color 0.25s;
}

.problem-card:hover {
  border-color: #333;
}

.problem-card .icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.problem-card p {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Stack Section ---------- */
.stack {
  padding: 100px 0;
  background: var(--bg-raised);
}

.stack h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.stack .sub {
  color: var(--fg-muted);
  font-size: 18px;
  margin-bottom: 56px;
  max-width: 560px;
}

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

.stack-item {
  background: var(--bg);
  padding: 36px 28px;
}

.stack-item .num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.stack-item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.stack-item p {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Math Section ---------- */
.math {
  padding: 100px 0;
}

.math h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  text-align: center;
}

.math-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.math-box {
  background: var(--bg-card);
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  padding: 28px 32px;
  text-align: center;
  min-width: 180px;
}

.math-box .big {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}

.math-box .label {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 4px;
}

.math-sign {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--fg-muted);
}

.math-result {
  text-align: center;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--fg-muted);
}

.math-result strong {
  color: var(--green);
  font-size: 28px;
}

/* ---------- Closing ---------- */
.closing {
  padding: 100px 0 120px;
  text-align: center;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 700px;
  margin: 0 auto 20px;
}

.closing h2 em {
  font-style: normal;
  color: var(--accent);
}

.closing p {
  color: var(--fg-muted);
  font-size: 18px;
  max-width: 480px;
  margin: 0 auto;
}

/* ---------- Booking Form Card ---------- */
.booking-form-card {
  background: var(--bg-card);
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-top: 48px;
  max-width: 720px;
  box-shadow: 0 0 60px var(--accent-glow);
}

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

.form-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.form-header p {
  font-size: 14px;
  color: var(--fg-muted);
}

.booking-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.booking-form .form-group {
  margin-bottom: 16px;
}

.booking-form .form-group--full {
  grid-column: 1 / -1;
}

.booking-form label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin-bottom: 6px;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
  color: #444;
}

.booking-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a8680' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.booking-form textarea {
  resize: vertical;
  min-height: 90px;
}

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
  letter-spacing: -0.01em;
}

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

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

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  align-items: center;
  gap: 16px;
  background: rgba(45, 211, 111, 0.08);
  border: 1px solid rgba(45, 211, 111, 0.2);
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 16px;
}

.success-icon {
  width: 36px;
  height: 36px;
  background: var(--green);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.form-error {
  background: rgba(255, 77, 79, 0.08);
  border: 1px solid rgba(255, 77, 79, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--red);
  margin-top: 12px;
}

/* ---------- Trust Row ---------- */
.trust-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 13px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-icon { font-size: 15px; }

/* ---------- CTA button ---------- */
.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 32px;
  transition: background 0.2s, transform 0.15s;
}

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

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid #1e1e1e;
  padding: 40px 0;
}

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

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

footer p strong {
  color: var(--fg);
  font-weight: 500;
}

.footer-link {
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .problem-grid { grid-template-columns: 1fr; }
  .stack-list { grid-template-columns: 1fr; }
  .math-equation { flex-direction: column; gap: 12px; }
  .hero { min-height: auto; padding: 80px 0 60px; }
  .booking-form-card { padding: 24px 20px; margin-top: 32px; }
  .booking-form .form-row { grid-template-columns: 1fr; }
  .trust-row { gap: 16px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .trust-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}