/* Aerra × proof-first × deep-navy-mint × architectural-linework */
:root {
  --page: #071422;
  --surface: #0f2438;
  --surface-glass: rgba(15, 36, 56, 0.72);
  --text: #eef6f4;
  --muted: #8aa3b0;
  --accent: #5eead4;
  --accent-alt: #2dd4bf;
  --ink: #061953;
  --line: rgba(94, 234, 212, 0.22);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --section-space: clamp(4rem, 8vw, 6.5rem);
  --rail-width: clamp(220px, 18vw, 280px);
  --content-max: 1180px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  line-height: 1.6;
  font-family: var(--font-body);
  background: var(--page);
  color: var(--text);
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

body, button, input, select, textarea { font: inherit; }

a { color: inherit; text-decoration: none; }

img, svg, video, canvas, iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.35rem, 4.8vw, 4.4rem);
  line-height: 1.02;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  line-height: 1.08;
  margin-bottom: 0.85rem;
  font-weight: 300;
}

h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.2;
  font-weight: 400;
}

p { color: var(--muted); }

.defs-cache {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.page-canvas {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: 100vh;
  max-width: 2160px;
  margin: 0 auto;
}

.site-rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 88%, var(--surface));
  backdrop-filter: blur(10px);
  z-index: 40;
}

.site-header {
  height: 100%;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  padding: 1.35rem 1.1rem 1.5rem;
  min-height: 100%;
  min-width: 0;
}

.brand {
  display: grid;
  grid-template-columns: minmax(0, 48px) minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.98rem;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  max-width: 64px;
  max-height: 64px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-logo svg { width: 100%; height: 100%; }

.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
}

.site-header nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.site-header nav a {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.site-header nav a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  background: var(--accent);
  color: var(--ink);
  border: 1px solid var(--accent);
  white-space: nowrap;
}

.page-flow {
  min-width: 0;
}

.section-inner {
  width: min(var(--content-max), calc(100% - clamp(1.25rem, 4vw, 3rem)));
  margin: 0 auto;
}

.hero {
  padding: clamp(2rem, 5vw, 4rem) 0 var(--section-space);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-copy { min-width: 0; }

.eyebrow, .section-kicker {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--accent);
}

.lead {
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  max-width: 42rem;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.75rem 0 1rem;
}

.button, .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button {
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid var(--line);
}

.button-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.button-secondary {
  background: transparent;
  color: var(--text);
}

.geo-line {
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-visual {
  overflow: hidden;
  width: 100%;
  max-height: min(55vh, 50vw);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 90%, var(--accent)), var(--page)),
    repeating-linear-gradient(118deg, transparent 0 54px, color-mix(in srgb, var(--accent) 8%, transparent) 55px 56px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  clip-path: inset(0 round var(--radius-lg));
}

.section {
  padding: var(--section-space) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.section-heading > p { font-size: 1.02rem; }

.proof-band {
  display: grid;
  gap: var(--section-space);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.card {
  min-width: 0;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.card p { margin-bottom: 0; }

.card-icon, .step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.85rem;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.card-icon svg, .step-icon svg {
  width: 26px;
  height: 26px;
}

.card-label {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.55rem;
}

.card small {
  display: block;
  color: var(--muted);
  margin-top: 0.45rem;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.process-list li {
  min-width: 0;
  display: flex;
  gap: 0.85rem;
  padding: 1.2rem;
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.step-icon { flex: 0 0 42px; margin-bottom: 0; }

.geo-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.geo-chip {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
}

.geo-chip strong, .geo-chip span { display: block; }

.geo-chip span {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.35rem;
}

.guide-body { min-width: 0; }

.chapter {
  min-width: 0;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.chapter li {
  color: var(--muted);
  margin: 0.45rem 0;
}

.faq-list { max-width: 52rem; }

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.faq-list p { padding-right: 1.5rem; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  background: var(--surface-glass);
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

input, select, textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 80%, var(--surface));
  color: var(--text);
  padding: 0.78rem;
  border-radius: var(--radius-md);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.form-message {
  color: var(--accent);
  margin: 0;
}

.tripscan-disclaimer {
  font-size: 0.82rem;
}

.site-footer {
  padding: 3.5rem 0 4rem;
  background: color-mix(in srgb, var(--surface) 70%, var(--page));
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.75rem;
}

.footer-brand { font-size: 1.35rem; }

.site-footer a {
  display: block;
  color: var(--muted);
  margin: 0.35rem 0;
}

@media (max-width: 1100px) {
  .page-canvas {
    grid-template-columns: 1fr;
  }

  .site-rail {
    position: sticky;
    top: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    min-height: auto;
    padding: 0.85rem 1rem;
  }

  .brand {
    grid-template-columns: 40px 1fr;
    flex: 1 1 auto;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .site-header nav {
    flex-direction: row;
    flex-wrap: wrap;
    order: 3;
    width: 100%;
  }

  .header-cta {
    margin-top: 0;
    margin-left: auto;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-height: min(44vh, 62vw);
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section-inner {
    width: min(100% - 1.4rem, var(--content-max));
  }

  .site-header nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .hero-visual {
    max-height: min(38vh, 72vw);
  }

  .cards-grid,
  .process-list,
  .geo-chips,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }

  h2 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .card,
  .card-icon,
  .step-icon,
  .card-icon svg,
  .step-icon svg,
  .card-icon path,
  .step-icon path {
    animation: none !important;
    transition: none !important;
  }
}
