/* ═══════════════════════════════════════════════════════════════
   RavenGate — Marketing site
   Extends style.css (tokens, .card, .btn, .badge, .tag, .eyebrow,
   .gradient-text). This file adds layout/section/nav/footer rules
   for the public marketing pages only.
   ═══════════════════════════════════════════════════════════════ */

/* ── Section backgrounds (alternating rhythm) ─────────────────────── */
.mkt-bg-1 { background: #04070e; }
.mkt-bg-2 { background: #010205; }
.mkt-bg-3 { background: #08050d; }
.mkt-bg-4 { background: #1b2a4c; }
.mkt-bg-5 { background: #505259; }

/* ── Layout primitives ─────────────────────────────────────────────── */
.mkt-section {
  padding: var(--section-pad-y) var(--section-pad-x);
}
.mkt-container {
  max-width: var(--container-xxl);
  margin: 0 auto;
}
.mkt-h2 {
  font-size: var(--text-h3, 3rem);
  margin-bottom: 16px;
}
.mkt-sub {
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.6;
  max-width: 640px;
}
.mkt-head {
  margin-bottom: 56px;
}
.mkt-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.mkt-head.center .mkt-sub { margin-left: auto; margin-right: auto; }

/* ── Nav ───────────────────────────────────────────────────────────── */
.mkt-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--section-pad-x);
  background: rgba(6, 9, 18, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.mkt-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
}
.mkt-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.mkt-nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.mkt-nav-links a:hover { color: var(--text); }
.mkt-nav-actions { display: flex; align-items: center; gap: 10px; }
.mkt-nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  cursor: pointer;
}

@media (max-width: 900px) {
  .mkt-nav-links { display: none; }
  .mkt-nav-toggle { display: flex; }
  .mkt-nav.mkt-nav-open .mkt-nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 24px var(--section-pad-x);
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
  }
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.mkt-hero {
  padding: calc(var(--section-pad-y) * 1.3) var(--section-pad-x) var(--section-pad-y);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mkt-hero::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  width: 900px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(91,140,255,0.16), transparent);
  pointer-events: none;
}
.mkt-hero h1 {
  font-size: var(--text-h1, 5.25rem);
  line-height: 1.1;
  max-width: 880px;
  margin: 0 auto 24px;
  position: relative;
}
.mkt-hero .mkt-sub {
  margin: 0 auto 36px;
  font-size: 20px;
}
.mkt-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

/* ── Feature grids ─────────────────────────────────────────────────── */
.mkt-grid {
  display: grid;
  gap: 24px;
}
.mkt-grid-2 { grid-template-columns: repeat(2, 1fr); }
.mkt-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mkt-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) {
  .mkt-grid-2, .mkt-grid-3, .mkt-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mkt-grid-2, .mkt-grid-3, .mkt-grid-4 { grid-template-columns: 1fr; }
}

.mkt-feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.mkt-feature-icon .material-symbols-rounded { font-size: 24px; }

/* ── Numbered feature sections (Features page) ───────────────────── */
.mkt-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.mkt-feature-row.reverse .mkt-feature-media { order: 2; }
@media (max-width: 900px) {
  .mkt-feature-row, .mkt-feature-row.reverse .mkt-feature-media { grid-template-columns: 1fr; order: initial; }
  .mkt-feature-row { grid-template-columns: 1fr; }
}
.mkt-feature-row + .mkt-feature-row { margin-top: 96px; }
.mkt-feature-index {
  font-family: var(--font);
  font-weight: 800;
  font-size: 14px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.mkt-feature-media {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 32px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.mkt-bullet-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.mkt-bullet-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text-dim); font-size: 15px;
}
.mkt-bullet-list .material-symbols-rounded {
  color: var(--accent); font-size: 20px; flex-shrink: 0; margin-top: 1px;
}

/* ── Pricing ──────────────────────────────────────────────────────── */
.mkt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill, 999px);
  padding: 6px;
  margin: 0 auto 48px;
}
.mkt-toggle button {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: var(--radius-pill, 999px);
  cursor: pointer;
  transition: all var(--transition);
}
.mkt-toggle button.active {
  background: var(--accent);
  color: #fff;
}
.mkt-toggle .save-tag {
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
}

.mkt-price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.mkt-price-card.featured {
  border-color: var(--border-strong);
  box-shadow: var(--glow-accent);
}
.mkt-price-card h3 { font-size: 22px; margin-bottom: 8px; }
.mkt-price-card .mkt-price-desc { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; min-height: 42px; }
.mkt-price-value { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.mkt-price-value .amount { font-family: var(--font); font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
.mkt-price-value .period { color: var(--text-faint); font-size: 14px; }
.mkt-price-note { color: var(--text-faint); font-size: 13px; margin-bottom: 24px; }
.mkt-price-card .btn { margin-bottom: 28px; }
.mkt-price-card .mkt-bullet-list { margin-top: 0; }

.mkt-yearly .mkt-monthly-only,
.mkt-monthly .mkt-yearly-only { display: none; }

/* ── Code block ───────────────────────────────────────────────────── */
.mkt-code {
  background: rgba(8,13,26,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  overflow-x: auto;
  line-height: 1.8;
}
.mkt-code .accent { color: var(--accent); }
.mkt-code .purple { color: var(--purple); }
.mkt-code .green { color: var(--green); }
.mkt-code .comment { color: var(--text-faint); }

/* ── Steps (How it works) ─────────────────────────────────────────── */
.mkt-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.mkt-step + .mkt-step { margin-top: 56px; }
.mkt-step-num {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-strong);
  display: grid; place-items: center;
  font-family: var(--font); font-weight: 800; font-size: 18px;
  color: var(--accent);
}

/* ── Testimonials ─────────────────────────────────────────────────── */
.mkt-testimonial p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}
.mkt-testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.mkt-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: grid; place-items: center;
  font-family: var(--font); font-weight: 700; color: #fff; font-size: 14px;
  flex-shrink: 0;
}
.mkt-testimonial-author .name { font-weight: 600; font-size: 14px; }
.mkt-testimonial-author .role { color: var(--text-faint); font-size: 13px; }

/* ── FAQ accordion ────────────────────────────────────────────────── */
.mkt-accordion-item {
  border-bottom: 1px solid var(--border);
}
.mkt-accordion-item:first-child { border-top: 1px solid var(--border); }
.mkt-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: 22px 0;
  cursor: pointer;
}
.mkt-accordion-trigger .material-symbols-rounded {
  color: var(--text-faint);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.mkt-accordion-item.open .mkt-accordion-trigger .material-symbols-rounded {
  transform: rotate(180deg);
  color: var(--accent);
}
.mkt-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s var(--ease-standard, ease);
}
.mkt-accordion-panel p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  padding-bottom: 22px;
  max-width: 720px;
}

/* ── CTA band ─────────────────────────────────────────────────────── */
.mkt-cta {
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(91,140,255,0.12), rgba(157,107,255,0.10));
  padding: 64px 5%;
}
.mkt-cta h2 { font-size: var(--text-h4, 2.5rem); margin-bottom: 12px; }
.mkt-cta .mkt-sub { margin: 0 auto 28px; }

/* ── Footer ───────────────────────────────────────────────────────── */
.mkt-footer {
  border-top: 1px solid var(--border);
  padding: 48px var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.mkt-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.mkt-footer-links a {
  color: var(--text-faint);
  font-size: 13px;
  text-decoration: none;
}
.mkt-footer-links a:hover { color: var(--text-dim); }
.mkt-footer-copy { color: var(--text-faint); font-size: 13px; }
