/* ============================================================
   landing.css — marketing page only (index.html)
   ============================================================ */

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

:root {
  --bg: #0b0e14;
  --bg-raised: #12161f;
  --bg-sunken: #0d1119;
  --bg-panel: #0f131c;
  --border: #232838;
  --border-soft: #181e2a;
  --text: #e6e8ef;
  --text-muted: #8b93a7;
  --text-faint: #5a637a;
  --text-heading: #fff;
  
  /* Primary accent - Purple */
  --accent-primary: #727FD5;
  --accent-primary-hover: #5a66c4;
  --accent-primary-soft: rgba(114, 127, 213, 0.12);
  --accent-primary-glow: rgba(114, 127, 213, 0.25);


  /* Secondary accent - Crimson */
  --accent-crimson: #e14164;
  --accent-crimson-hover: #c73052;
  --accent-crimson-soft: rgba(225, 65, 100, 0.12);
  --accent-crimson-glow: rgba(225, 65, 100, 0.25);
/*   
  --accent-crimson: #F04579;
  --accent-crimson-hover: #D62F61;
  --accent-crimson-soft: rgba(240, 69, 121, 0.12);
  --accent-crimson-glow: rgba(240, 69, 121, 0.25); */

  
  /* Keep both accents available */
  --accent: var(--accent-primary);
  --accent-hover: var(--accent-primary-hover);
  --accent-soft: var(--accent-primary-soft);
  --accent-glow: var(--accent-primary-glow);
  
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius-pill: 40px;
  --radius-lg: 16px;
  --radius-md: 8px;
}

body {
  font-family: 'Urania Light', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HIGHLIGHTER EFFECT - Reusable class
   ============================================================ */
/* 
.highlight {
  color: var(--accent-crimson);
  font-weight: 700;
  display: inline-block;
  position: relative;
  padding: 0 8px;
  z-index: 1;
}

.highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(225, 65, 100, 0.25);
  transform: skewX(-6deg) scaleX(1.05);
  z-index: -1;
  border-radius: 4px;
  padding: 0 4px;
} */

/* Lighter highlighter for subtitles */
.highlight{
  color: var(--accent-crimson);
  font-weight: 600;
  display: inline-block;
  position: relative;
  padding: 0 6px;
  z-index: 1;
}

.highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  width: 100%;
  height: 55%;
  background: rgba(225, 65, 100, 0.15);
  transform: skewX(-4deg);
  z-index: -1;
  border-radius: 3px;
}

/* ============================================================
   SECTIONS — with generous vertical spacing
   ============================================================ */

section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-soft);
}

/* Hero needs less top padding due to fixed navbar and video */
.hero {
  padding-top: 80px;
  padding-bottom: 100px;
}

/* More breathing room for key content sections */
#features {
  padding-top: 120px;
  padding-bottom: 120px;
}

.use-cases {
  padding-top: 120px;
  padding-bottom: 120px;
}

#contact {
  padding-top: 24px;
  padding-bottom: 24px;
}

#contact .section-title {
  font-size: 38px;
}

.section-title {
  font-size: 70px;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: var(--text-heading);
}

.section-sub {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 640px;
}

.text-muted {
  color: var(--text-muted);
}

.badge-status {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 6px;
}

/* ============================================================
   HERO with VIDEO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, #442D81 0%, #0b0e14 85%);
  opacity: 0.55;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 40px 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(114, 127, 213, 0.15);
  border: 1px solid var(--accent);
  color: #b8b2ff;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  letter-spacing: 0.4px;
  margin-bottom: 24px;
}

.hero-badge-crimson {
  background: var(--accent-crimson-soft);
  border-color: var(--accent-crimson);
  color: #ffb3c4;
}

.hero h1 {
  font-size: 64px;
  font-weight: 400;
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  /* font-weight: bold; */
}


.hero h1 span {
  /* color: var(--accent-crimson); */
  /* Crimson highlight */
  /* font-weight: 700; */
  display: inline-block;
  position: relative;
}

/* .hero h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 4px;
  background-color: var(--accent-crimson);
  border-radius: 2px;
} */

.hero p {
  font-size: 20px;
  color: #c8cee4;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 40px;
  font-size: 14px;
  color: var(--text-faint);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-stats i {
  color: var(--accent-crimson-glow);
}

@media (max-width: 820px) {
  .hero h1 {
    font-size: 40px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }
}


/* ============================================================
   FEATURE GRID
   ============================================================ */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 44px;
}

.card-feature {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: 0.2s;
}

.card-feature:hover {
  border-color: var(--accent-crimson);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--accent-crimson-glow);
}

.card-feature i {
  color: var(--accent);
  font-size: 28px;
  margin-bottom: 14px;
  display: inline-block;
}

.card-feature h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--text-heading);
}

.card-feature p {
  color: var(--text-muted);
  font-size: 14px;
}

.feature-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ============================================================
   USE CASES
   ============================================================ */

.use-cases {
  background: var(--bg-panel);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.use-case-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: 0.25s;
}

.use-case-card:hover {
  border-color: var(--accent-crimson);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px var(--accent-crimson-glow);
}

.use-case-img {
  width: 100%;
  height: 160px;
  background: #1a1f36;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5268;
  font-size: 14px;
  overflow: hidden;
}

.use-case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.use-case-body {
  padding: 20px 22px 24px;
}

.use-case-body h4 {
  font-size: 18px;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.use-case-body p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.use-case-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 12px;
  border-radius: 20px;
  border: 1px solid #2a3048;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 14, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.nav-links a {
  color: var(--text-muted);
  transition: 0.2s;
}

.nav-links a:hover {
  color: var(--text-heading);
}

.nav-links a.current {
  color: var(--text-heading);
}

.nav-cta {
  background: var(--accent-primary);
  color: #fff !important;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  transition: 0.2s;
}

.nav-cta:hover {
  background: var(--accent-primary-hover);
  box-shadow: 0 4px 16px var(--accent-primary-glow);
  color: #fff !important;
}

.hamburger {
  display: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
    gap: 14px;
  }
  .nav-links.open {
    display: flex;
  }
  .hamburger {
    display: block;
  }
}

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

.btn {
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  box-shadow: 0 8px 28px var(--accent-primary-glow);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid #3a405a;
  color: var(--text);
}

.btn-outline:hover {
  background: rgba(114, 127, 213, 0.08);
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-heading);
}

.btn-danger {
  background: transparent;
  border: 1px solid #4a2530;
  color: var(--danger);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.08);
  border-color: var(--danger);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}

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

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

footer {
  background: #090c12;
  padding: 50px 0 30px;
  border-top: 1px solid var(--border-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: #b0b8cf;
  font-size: 14px;
  margin-bottom: 6px;
  transition: 0.2s;
}

.footer-col a:hover {
  color: var(--accent-crimson);
}

.footer-col .logo img {
  height: 32px;
  width: auto;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-faint);
}

.socials {
  display: flex;
  gap: 18px;
}

.socials a {
  color: var(--text-muted);
  font-size: 18px;
  transition: 0.2s;
}

.socials a:hover {
  color: var(--accent-crimson);
}

/* ============================================================
   TOAST (shared, used by app pages)
   ============================================================ */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  max-width: 360px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.toast-error {
  border-color: #4a2530;
  color: #fca5a5;
}

/* ============================================================
   SUB-PAGE HERO — used on pricing / use-cases / docs
   ============================================================ */

.page-hero {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--border-soft);
  background: radial-gradient(circle at 15% 0%, rgba(114, 127, 213, 0.16) 0%, var(--bg) 60%);
}

.page-hero .hero-badge {
  margin-bottom: 20px;
}

.page-hero h1 {
  font-size: 52px;
  font-weight: 400;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 760px;
}

.page-hero p {
  font-size: 19px;
  color: #c8cee4;
  max-width: 600px;
}

@media (max-width: 820px) {
  .page-hero h1 {
    font-size: 36px;
  }
}

.page-hero-media {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.65;
  z-index: 0;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.35) 0%, rgba(11, 14, 20, 0.75) 65%, var(--bg) 100%);
  z-index: 1;
}

.page-hero-media .container {
  position: relative;
  z-index: 2;
}

/* ============================================================
   HOW IT WORKS — process steps
   ============================================================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  margin-top: 48px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 0 28px 0 0;
  border-right: 1px solid var(--border-soft);
}

.step-card:last-child {
  border-right: none;
  padding-right: 0;
}

.step-number {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-crimson);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  display: block;
}

.step-card h3 {
  font-size: 18px;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .step-card {
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    padding: 0 0 24px 0;
    margin-bottom: 24px;
  }
  .step-card:last-child {
    border-bottom: none;
  }
}

/* ============================================================
   INTEGRATIONS strip
   ============================================================ */

.integrations {
  background: var(--bg-panel);
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.integration-tile {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: 0.2s;

  /* Changed layout properties */
  display: flex;
  flex-direction: column;
  /* Stacks the icon above the text */
  align-items: center;
  /* Centers the icon and text horizontally */
  justify-content: center;
  /* Centers content vertically if height is applied */
  gap: 12px;
  /* Adjusted space between icon and text */
}

.tile-icon {
  width: 32px;
  /* Slightly increased for better balance in a stacked layout */
  height: 32px;
  object-fit: contain;
}


.integration-tile:hover {
  border-color: var(--accent-crimson-soft);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px var(--accent-crimson);
}

.integration-tile i {
  font-size: 26px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
  transition: 0.2s;
}

.integration-tile:hover i {
  color: var(--accent);
}

.integration-tile span {
  font-size: 13px;
  color: var(--text-muted);
}

.integrations-footnote {
  margin-top: 28px;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 48px;
  align-items: start;
}

.price-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  position: relative;
}

.price-card.featured {
  border-color: var(--accent-crimson-soft);
  box-shadow: 0 0 0 1px var(--accent-crimson-soft), 0 24px 48px var(--accent-crimson-glow);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 30px;
  background: var(--accent-crimson);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.price-plan {
  font-size: 15px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.price-amount .value {
  font-size: 44px;
  color: var(--text-heading);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.price-amount .cadence {
  color: var(--text-faint);
  font-size: 14px;
}

.price-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.price-card .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 26px;
  font-size: 14px;
  padding: 11px 24px;
}

.price-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 22px;
}

.price-specs li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-specs li i {
  width: 14px;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 13px;
}

.price-specs li .spec-label {
  flex: 1;
  color: var(--text-muted);
  font-size: 13px;
}

.price-specs li .spec-value {
  color: var(--text-heading);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.price-features li {
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.price-features i {
  color: var(--success);
  font-size: 12px;
  margin-top: 3px;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-list {
  max-width: 760px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 22px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-size: 16px;
  color: var(--text-heading);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item p {
  color: var(--text-muted);
  font-size: 14px;
  padding-bottom: 18px;
  max-width: 620px;
}

/* ============================================================
   USE CASE DETAIL (use-cases.html)
   ============================================================ */

.usecase-detail-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.usecase-detail {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  transition: 0.25s;
}

.usecase-detail:hover {
  border-color: var(--accent-crimson);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--accent-crimson-glow);
}

.usecase-detail-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-crimson-soft);
  border: 1px solid #2a3048;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
}

.usecase-detail:hover .usecase-detail-icon {
  border-color: var(--accent-crimson);
}

.usecase-detail-icon i {
  font-size: 22px;
  color: var(--accent-crimson);
}

.usecase-detail h3 {
  font-size: 24px;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.usecase-detail>div>p.usecase-lead {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  max-width: 640px;
}

.usecase-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.usecase-steps li {
  font-size: 14px;
  color: var(--text);
  display: flex;
  gap: 10px;
}

.usecase-steps li .step-dot {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

@media (max-width: 640px) {
  .usecase-detail {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   LEGAL / POLICY PAGES
   ============================================================ */

.legal-content {
  max-width: 780px;
  margin-top: 8px;
}

.legal-updated {
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 36px;
}

.legal-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.legal-nav a {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  transition: 0.2s;
}

.legal-nav a:hover,
.legal-nav a.active {
  color: var(--accent-crimson);
  border-color: var(--accent-crimson);
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-heading);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 16px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--accent-crimson);
}

.legal-content a:hover {
  color: var(--accent-crimson-hover);
}

.legal-content strong {
  color: var(--text);
}

/* ============================================================
   404 / ERROR PAGE
   ============================================================ */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: none;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(225, 65, 100, 0.14) 0%, var(--bg) 60%);
}

.error-content {
  text-align: center;
  max-width: 560px;
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

.error-code {
  font-size: 130px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.error-code span {
  color: var(--accent-crimson);
}

.error-content h1 {
  font-size: 26px;
  font-weight: 400;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.error-content p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 440px;
  margin: 0 auto 32px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.error-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
}

.error-links a {
  color: var(--text-muted);
  transition: 0.2s;
}

.error-links a:hover {
  color: var(--accent-crimson);
}

@media (max-width: 480px) {
  .error-code {
    font-size: 88px;
  }
}

/* ============================================================
   DOCS
   ============================================================ */

.docs-search {
  margin-top: 32px;
  max-width: 480px;
  position: relative;
}

.docs-search i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
}

.docs-search input {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 13px 20px 13px 44px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.docs-search input::placeholder {
  color: var(--text-faint);
}

.docs-search input:focus-visible {
  outline: 2px solid var(--accent-crimson);
  outline-offset: 2px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.doc-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: 0.2s;
  display: block;
}

.doc-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.doc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.doc-card i.doc-icon {
  font-size: 22px;
  color: var(--accent);
}

.doc-card i.doc-arrow {
  font-size: 13px;
  color: var(--text-faint);
  transition: 0.2s;
}

.doc-card:hover i.doc-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.doc-card h3 {
  font-size: 17px;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.doc-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.docs-guides {
  margin-top: 20px;
}

.docs-guides h2.subhead {
  font-size: 28px;
  font-weight: 400;
  color: var(--text-heading);
  margin-bottom: 24px;
}

.guide-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-soft);
}

.guide-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
  font-size: 15px;
  transition: 0.2s;
}

.guide-list a:hover {
  color: var(--accent);
  padding-left: 10px;
}

.guide-list a span.guide-tag {
  color: var(--text-faint);
  font-size: 13px;
}