/* The Second CEO — landing. Dark executive theme, no dependencies. */

/* Self-hosted variable fonts (latin subset) — no Google Fonts request. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: #0b0f1a;
  --surface: #121828;
  --surface-2: #1a2136;
  --text: #f4f6fb;
  --text-muted: #9aa5bd;
  --accent: #d8b26e;
  --accent-strong: #e6c688;
  --accent-ink: #16120a;
  --border: #232b42;
  --ring: #d8b26e;
  --radius: 14px;
  --container: 1120px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 26, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  text-transform: uppercase;
}
.brand:hover { color: var(--text); }
.brand .brand-accent { color: var(--accent); }

.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a { color: var(--text-muted); font-size: 0.92rem; }
.header-nav a:hover { color: var(--text); }
.header-nav .lang-switch {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.85rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; }

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(216, 178, 110, 0.14) 0%, transparent 65%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  padding-top: 64px;
  padding-bottom: 72px;
  align-items: center;
}

.hero-eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero .lede {
  color: var(--text-muted);
  font-size: 1.13rem;
  max-width: 34em;
  margin-bottom: 30px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.cta-note {
  width: 100%;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.hero-portrait { position: relative; }

.hero-portrait img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
  height: auto;
  aspect-ratio: 1410 / 840;
  object-fit: cover;
}

.hero-portrait figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(11, 15, 26, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-portrait figcaption strong { color: var(--text); font-weight: 600; }

/* ---------- Sections ---------- */

section { padding: 72px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 40em;
  margin-bottom: 42px;
}

/* Problem */

.problem-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }

.problem-item {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.problem-item strong { color: var(--text); display: block; margin-bottom: 4px; }

/* Benefits */

.benefit-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }

.benefit-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s ease;
}
.benefit-card:hover { border-color: var(--accent); }

.benefit-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(216, 178, 110, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.benefit-card .icon svg { width: 21px; height: 21px; stroke: var(--accent); }

.benefit-card h3 { font-size: 1.06rem; font-weight: 600; margin-bottom: 8px; }
.benefit-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Steps */

.steps { display: grid; grid-template-columns: 1fr; gap: 28px; counter-reset: step; }

.step { position: relative; padding-left: 64px; }

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 0.97rem; max-width: 36em; }

/* Pricing */

.pricing-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 38px 34px;
  text-align: center;
}

.pricing-tag {
  display: inline-block;
  background: rgba(216, 178, 110, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.price {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price .per { font-family: var(--font-body); font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.pricing-features {
  list-style: none;
  margin: 28px 0;
  text-align: left;
}
.pricing-features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 0;
  color: var(--text-muted);
  font-size: 0.97rem;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features svg { width: 18px; height: 18px; stroke: var(--accent); flex-shrink: 0; margin-top: 4px; }

.pricing-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 16px; }

/* FAQ */

.faq { max-width: 760px; }

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  font-size: 1.02rem;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { color: var(--text-muted); padding: 0 0 18px; max-width: 60ch; }

/* Final CTA */

.final-cta { text-align: center; }
.final-cta .btn { margin-top: 10px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- Modal ---------- */

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  animation: modal-in 0.22s ease-out;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.modal-close:hover { color: var(--text); }

.modal-panel h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding-right: 32px;
}

.modal-panel .modal-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 22px; }

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}
.form-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216, 178, 110, 0.18);
}

.form-error {
  color: #e8896f;
  font-size: 0.88rem;
  margin: -6px 0 14px;
}

.code-feedback {
  background: rgba(216, 178, 110, 0.08);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 0.93rem;
  margin-bottom: 18px;
}

.modal-panel .btn { width: 100%; }

.modal-alt {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  min-height: 44px;
  font-family: var(--font-body);
}
.modal-alt:hover { color: var(--accent); }

.waitlist-success { text-align: center; padding: 18px 0 6px; }
.waitlist-success svg { width: 44px; height: 44px; stroke: var(--accent); margin: 0 auto 14px; }
.waitlist-success h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 8px; }
.waitlist-success p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Legal pages ---------- */

.legal { max-width: 760px; padding: 56px 0; }
.legal h1 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 24px; }
.legal h2 { font-size: 1.15rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 10px; }
.legal ul { padding-left: 20px; }

/* ---------- Responsive ---------- */

@media (min-width: 768px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; padding-top: 88px; padding-bottom: 96px; }
  .problem-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 34px; }
  .step { padding-left: 0; padding-top: 60px; }
  .step::before { top: 0; }
}

@media (min-width: 1024px) {
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
  section { padding: 96px 0; }
}

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