/* ===========================================================
 * Heimdall marketing site — single stylesheet, no build step.
 *
 * Visual language matches the Heimdall app (same accent indigo,
 * same panel/canvas dark surfaces, same Inter + JetBrains Mono
 * pairing). Tokens up top so the rest of the file is short.
 * =========================================================== */

:root {
  --bg:           #0a0a0f;
  --panel:        #13131b;
  --panel-2:      #1a1a24;
  --panel-3:      #21212d;
  --border:       rgba(255, 255, 255, 0.08);
  --border-2:     rgba(255, 255, 255, 0.14);
  --text-strong:  #f5f5f7;
  --text-body:    #d5d5de;
  --text-subtle:  #9999a8;
  --text-muted:   #6f6f7a;
  --accent:       #6366f1;
  --accent-dim:   #4f46e5;
  --accent-glow:  rgba(99, 102, 241, 0.28);
  --warn:         #f59e0b;
  --error:        #ef4444;
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow-card:  0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 24px -16px rgba(0, 0, 0, 0.6);
  --maxw:         1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; }

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

p { margin: 0 0 0.75em; color: var(--text-body); }

ul { padding-left: 0; list-style: none; margin: 0; }

code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.05em 0.4em;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-strong);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================ HEADER */

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

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-weight: 600;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text-strong);
}
.brand-text {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 0;
  font-size: 14px;
  color: var(--text-subtle);
}
.nav-links a:hover { color: var(--text-strong); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-cta .link {
  font-size: 14px;
  color: var(--text-subtle);
}
.nav-cta .link:hover { color: var(--text-strong); }

/* Mobile collapse: hide secondary nav links + sign-in link, keep brand + trial. */
@media (max-width: 720px) {
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav-cta .link { display: none; }
}

/* ============================================================ BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-strong);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  color: #fff;
}
.btn-ghost {
  background: var(--panel-2);
  color: var(--text-strong);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  background: var(--panel-3);
  color: var(--text-strong);
}
.btn-large {
  padding: 12px 20px;
  font-size: 15px;
}
.btn-block { width: 100%; }
.btn-arrow {
  transition: transform 120ms ease;
}
.btn:hover .btn-arrow { transform: translateX(2px); }

/* ============================================================ HERO */

.hero {
  position: relative;
  padding: 90px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  /* Subtle accent glow behind the helmet — adds depth without
     pulling focus from the icon itself. */
  content: "";
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 680px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  filter: blur(40px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }

.hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 144px;
  height: 144px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--border-2);
  color: var(--text-strong);
  cursor: pointer;
  margin-bottom: 28px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}
.hero-icon:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 0 32px var(--accent-glow), 0 0 0 1px var(--accent);
}
.hero-icon:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  line-height: 1;
}
.hero-tagline {
  margin: 0 0 18px;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  color: var(--text-subtle);
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.hero-note {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ============================================================ TRUST */

.trust {
  padding: 32px 0 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}
.trust-label {
  margin: 0 0 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-align: center;
}
.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--text-subtle);
}

/* ============================================================ SECTIONS */

.section {
  padding: 100px 0;
}
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.025), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.section-title {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-lead {
  max-width: 720px;
  margin: 0 0 48px;
  font-size: 1.05rem;
  color: var(--text-subtle);
  line-height: 1.65;
}

.grid {
  display: grid;
  gap: 16px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: border-color 120ms ease, transform 120ms ease;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.005em;
}
.card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-subtle);
  line-height: 1.6;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  margin-bottom: 16px;
}
.card-icon .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}

.link-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  cursor: pointer;
}
.link-eyebrow {
  margin: 0 0 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* ============================================================ STEPS */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  /* Two-column layout on wider viewports — 4 steps in 2x2 reads
     better than a long vertical list. Each card is self-contained
     so the order is left→right then down. */
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  margin-top: 2px;
}
.step-body {
  min-width: 0; /* allow text to wrap inside flex */
}
.step-body h3 {
  margin: 0 0 6px;
  color: var(--text-strong);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.3;
}
.step-body p {
  margin: 0;
  color: var(--text-subtle);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================ PRICING */

.pricing-grid {
  align-items: stretch;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 16px 48px -24px var(--accent-glow);
}
.pricing-pill {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}
.pricing-name {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pricing-price {
  margin: 0 0 4px;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}
.pricing-price span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}
.pricing-tagline {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-subtle);
}
.pricing-list {
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
  flex: 1;
}
.pricing-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-body);
}
.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================ ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.about-stats > div {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.stat-num {
  margin: 0 0 4px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}
.stat-label {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ============================================================ CTA BAND */

.cta-band {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.06) 50%, transparent 100%);
}
.cta-band h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1.2;
}
.cta-band p {
  margin: 0 0 28px;
  color: var(--text-subtle);
  font-size: 1rem;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ============================================================ FOOTER */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-tagline {
  margin: 12px 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.footer-heading {
  margin: 0 0 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.footer-grid ul li {
  margin-bottom: 8px;
}
.footer-grid ul a {
  color: var(--text-subtle);
}
.footer-grid ul a:hover { color: var(--text-strong); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--text-strong); }

/* ============================================================ MODAL */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.7);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 120ms ease, color 120ms ease;
}
.modal-close:hover {
  background: var(--panel-2);
  color: var(--text-strong);
}
.modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.modal-mark {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text-strong);
}
.modal-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-strong);
}
.modal-sub {
  margin: 2px 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.modal-body p {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.65;
}
.modal-section-label {
  margin: 18px 0 6px !important;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px !important;
  letter-spacing: 0.12em;
  color: var(--text-muted) !important;
}
.modal-section-label:first-child { margin-top: 0 !important; }
.modal-body em {
  font-style: italic;
  color: var(--text-strong);
}

/* ============================================================ FOCUS STATES */

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
