/* Noema × technical-showcase × deep-navy-mint — layout system */
:root {
  --gl-bg: #061953;
  --gl-bg-deep: #04060f;
  --gl-bg-alt: #0b1d4a;
  --gl-surface: #0f2a5c;
  --gl-ink: #e8f4ff;
  --gl-ink-70: rgba(232, 244, 255, 0.7);
  --gl-ink-50: rgba(232, 244, 255, 0.5);
  --gl-muted: rgba(232, 244, 255, 0.55);
  --gl-accent: #5eead4;
  --gl-accent-glow: rgba(94, 234, 212, 0.35);
  --gl-mint: #97feed;
  --gl-hairline: rgba(232, 244, 255, 0.1);
  --radius: 0;
  --section-space: clamp(4rem, 8vw, 7rem);
  --rail-w: clamp(220px, 18vw, 280px);
  --font-display: Georgia, "Times New Roman", Times, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --hero-max-h-desktop: 55vh;
  --hero-max-h-tablet: 44vh;
  --hero-max-h-mobile: 38vh;
}

*, *::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: linear-gradient(165deg, var(--gl-bg) 0%, var(--gl-bg-deep) 55%, #020810 100%);
  color: var(--gl-ink);
}

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.02em;
  font-weight: 400;
}

h1 {
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
  line-height: 1.02;
  margin-bottom: 1.25rem;
}

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

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

p { color: var(--gl-ink-70); }

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

.site-rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.25rem 1rem 1.25rem 1.25rem;
  border-right: 1px solid var(--gl-hairline);
  background: color-mix(in srgb, var(--gl-bg-deep) 88%, transparent);
  z-index: 40;
  min-width: 0;
}

.rail-brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  max-width: 64px;
  max-height: 64px;
  flex: 0 0 auto;
  overflow: hidden;
}

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

.brand span:last-child {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.15;
  min-width: 0;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--gl-ink-50);
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
}

.rail-nav a {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gl-ink-50);
  padding: 0.55rem 0;
  border-bottom: 1px solid transparent;
}

.rail-nav a:hover {
  color: var(--gl-ink);
  border-bottom-color: var(--gl-accent);
}

.rail-cta {
  flex: 0 0 auto;
  margin-top: auto;
}

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

.section-inner {
  width: min(1180px, calc(100% - clamp(1.5rem, 4vw, 3rem)));
  margin: 0 auto;
}

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

.lead {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  max-width: 42rem;
  color: var(--gl-ink-70);
}

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

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

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

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

.geo-line {
  font-size: 0.78rem;
  color: var(--gl-ink-50);
  letter-spacing: 0.06em;
}

.hero-visual {
  overflow: hidden;
  width: 100%;
  max-height: var(--hero-max-h-desktop);
  max-width: min(100%, calc(var(--hero-max-h-desktop) * 1.35));
  aspect-ratio: 16 / 10;
  justify-self: end;
  border: 1px solid var(--gl-hairline);
  background: linear-gradient(145deg, var(--gl-bg-alt), var(--gl-bg-deep));
  position: relative;
  clip-path: inset(0 round 0);
}

.hero-visual-slot {
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.hero-data-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 1.25rem;
  border: 1px solid var(--gl-hairline);
}

.hero-data-cell {
  padding: 0.75rem 0.85rem;
  border-right: 1px solid var(--gl-hairline);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gl-ink-50);
}

.hero-data-cell:last-child { border-right: 0; }

.hero-data-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gl-mint);
  letter-spacing: 0;
  text-transform: none;
  margin-top: 0.25rem;
}

.preserve-defs {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.button, .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.2rem;
  border: 1px solid var(--gl-accent);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, color 0.25s ease;
}

.button-primary, .header-cta {
  background: var(--gl-accent);
  color: var(--gl-bg-deep);
}

.button-primary:hover, .header-cta:hover {
  background: var(--gl-mint);
}

.button-secondary {
  background: transparent;
  color: var(--gl-ink);
  border-color: var(--gl-hairline);
}

.button-secondary:hover {
  border-color: var(--gl-accent);
  color: var(--gl-accent);
}

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

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

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

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--gl-hairline);
  border: 1px solid var(--gl-hairline);
}

.card {
  min-width: 0;
  padding: 1.35rem;
  background: color-mix(in srgb, var(--gl-surface) 72%, var(--gl-bg-deep));
}

.card p { margin-bottom: 0; }

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

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

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

.card small {
  display: block;
  color: var(--gl-ink-50);
  margin-top: 0.45rem;
  font-size: 0.82rem;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--gl-hairline);
  border: 1px solid var(--gl-hairline);
}

.process-list li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.2rem;
  background: color-mix(in srgb, var(--gl-surface) 70%, var(--gl-bg-deep));
}

.step-icon { margin-bottom: 0; }

.geo-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--gl-hairline);
  border: 1px solid var(--gl-hairline);
}

.geo-chip {
  padding: 1.1rem 1.2rem;
  background: color-mix(in srgb, var(--gl-surface) 68%, var(--gl-bg-deep));
}

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

.geo-chip span {
  color: var(--gl-ink-70);
  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(--gl-hairline);
}

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

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

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

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--gl-ink);
}

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

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

.contact-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem;
  border: 1px solid var(--gl-hairline);
  background: color-mix(in srgb, var(--gl-surface) 65%, var(--gl-bg-deep));
}

.contact-form label {
  display: grid;
  gap: 0.3rem;
  color: var(--gl-ink-50);
  font-size: 0.78rem;
}

input, select, textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--gl-hairline);
  background: color-mix(in srgb, var(--gl-bg-deep) 80%, transparent);
  color: var(--gl-ink);
  padding: 0.75rem;
  border-radius: var(--radius);
}

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

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

.tripscan-disclaimer {
  font-size: 0.78rem !important;
  padding: 0.65rem 0;
  border-left: 2px solid var(--gl-accent);
  padding-left: 0.75rem;
}

.site-footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--gl-hairline);
  background: color-mix(in srgb, var(--gl-bg-deep) 92%, transparent);
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

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

.footer-coverage {
  font-size: 0.82rem;
  color: var(--gl-ink-50);
}

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

  .site-rail {
    position: relative;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.85rem 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--gl-hairline);
  }

  .rail-brand-row { flex: 1 1 auto; }

  .rail-nav {
    flex-direction: row;
    flex-wrap: wrap;
    order: 3;
    width: 100%;
    gap: 0.5rem 1rem;
  }

  .rail-nav a {
    padding: 0.35rem 0;
    border-bottom-width: 1px;
  }

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

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

  .hero-visual {
    max-height: var(--hero-max-h-tablet);
    max-width: min(100%, calc(var(--hero-max-h-tablet) * 1.35));
    justify-self: stretch;
  }

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

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

@media (max-width: 720px) {
  .hero-visual {
    max-height: var(--hero-max-h-mobile);
    max-width: min(100%, calc(var(--hero-max-h-mobile) * 1.35));
  }

  .hero-data-strip { grid-template-columns: 1fr; }

  .hero-data-cell {
    border-right: 0;
    border-bottom: 1px solid var(--gl-hairline);
  }

  .hero-data-cell:last-child { border-bottom: 0; }

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

  h1 { font-size: clamp(1.95rem, 9vw, 2.8rem); }
}

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

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
