/* TripScan variant 1 — altitude-inspired editorial rail layout */
:root {
  --gl-bg: #050b16;
  --gl-bg-alt: #0a1424;
  --gl-surface: rgba(255, 255, 255, 0.06);
  --gl-surface-raised: rgba(255, 255, 255, 0.1);
  --gl-ink: #f4f7fb;
  --gl-ink-muted: rgba(244, 247, 251, 0.7);
  --gl-ink-subtle: rgba(244, 247, 251, 0.45);
  --gl-accent: #ffd75a;
  --gl-accent-cool: #8ccfff;
  --gl-accent-ink: #050b16;
  --gl-line: rgba(255, 255, 255, 0.2);
  --gl-glow: rgba(255, 215, 90, 0.35);
  --gl-radius: 29px;
  --gl-radius-lg: 70px;
  --gl-font-display: Georgia, "Times New Roman", serif;
  --gl-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rail-w: 260px;
  --content-max: 1180px;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  font-family: var(--gl-font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gl-ink);
  background: var(--gl-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(140, 207, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(255, 215, 90, 0.08), transparent 50%);
}

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(--gl-font-display);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 0.5rem;
}

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

/* Page shell — left rail + main */
.page-shell {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  min-height: 100vh;
}

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

.page-main::before,
.page-main::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gl-line);
  pointer-events: none;
  z-index: 5;
  opacity: 0.35;
}

.page-main::before { left: calc(var(--rail-w) + 33.333%); }
.page-main::after { left: calc(var(--rail-w) + 66.666%); }

/* Rail header */
.site-header {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  z-index: 40;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-right: 1px solid var(--gl-line);
  background: rgba(5, 11, 22, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: 100%;
  width: 100%;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  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(--gl-ink-subtle);
  font-family: var(--gl-font-body);
}

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

.site-header nav a {
  font-size: 0.82rem;
  color: var(--gl-ink-muted);
  padding: 0.65rem 0.85rem;
  border-radius: calc(var(--gl-radius) * 0.5);
  border: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.site-header nav a:hover {
  color: var(--gl-ink);
  border-color: var(--gl-line);
  background: var(--gl-surface);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.1rem;
  border-radius: var(--gl-radius);
  font-weight: 700;
  font-size: 0.82rem;
  background: linear-gradient(104deg, #ffe5ac 0%, #97bdde 100%);
  color: var(--gl-accent-ink);
  border: none;
  margin-top: auto;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}

.header-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

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

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section:nth-child(even) {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 40%, transparent);
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

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

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

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  max-width: 52ch;
  color: var(--gl-ink-muted);
}

/* Hero — altitude thirds band */
.hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
}

.hero-band {
  width: min(var(--content-max), calc(100% - clamp(1.5rem, 4vw, 3rem)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: var(--gl-radius);
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid var(--gl-line);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.button-primary {
  background: linear-gradient(104deg, #ffe5ac 0%, #97bdde 100%);
  color: var(--gl-accent-ink);
  border-color: transparent;
}

.button-secondary {
  background: var(--gl-surface);
  color: var(--gl-ink);
  backdrop-filter: blur(12px);
}

.button:hover { transform: translateY(-2px); }

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

.hero-visual {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 280px;
  border-radius: var(--gl-radius-lg);
  border: 1px solid var(--gl-line);
  background: var(--gl-surface);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 60px var(--gl-glow);
}

.hero-visual svg { width: 100%; height: 100%; display: block; }

.hero-visual:has(img)::before,
.hero-visual:has(img)::after,
.hero-visual:has(svg)::before,
.hero-visual:has(svg)::after { display: none !important; }

/* Bento services grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.bento-grid .card:nth-child(1) { grid-column: span 7; }
.bento-grid .card:nth-child(2) { grid-column: span 5; }
.bento-grid .card:nth-child(3) { grid-column: span 5; }
.bento-grid .card:nth-child(4) { grid-column: span 7; }

.card {
  min-width: 0;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--gl-radius);
  background: var(--gl-surface);
  border: 1px solid var(--gl-line);
  backdrop-filter: blur(14px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 90, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.card p { margin-bottom: 0; }

.card-icon,
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  color: var(--gl-accent);
  border: 1px solid rgba(255, 215, 90, 0.3);
  background: rgba(255, 215, 90, 0.08);
  border-radius: 14px;
}

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

.icon-draw path { stroke-dasharray: 34 8; animation: iconDraw 5.8s linear infinite; }
.icon-pulse { transform-box: fill-box; transform-origin: center; animation: iconPulse 3.8s ease-in-out infinite; }
.icon-slide { animation: iconSlide 4.6s ease-in-out infinite; }
.icon-spin { transform-box: fill-box; transform-origin: center; animation: iconSpin 10s linear infinite; }

@keyframes iconDraw { to { stroke-dashoffset: -84; } }
@keyframes iconPulse { 50% { transform: scale(0.88); opacity: 0.72; } }
@keyframes iconSlide { 50% { transform: translateX(3px); } }
@keyframes iconSpin { to { transform: rotate(360deg); } }

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

.card-value {
  display: block;
  margin-top: 1rem;
  color: var(--gl-accent);
  font-size: 1.05rem;
  font-weight: 700;
}

.card small {
  display: block;
  color: var(--gl-ink-subtle);
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

.card h3 { color: var(--gl-ink); }

/* Scenarios — staggered columns */
.stagger-grid {
  columns: 2;
  column-gap: 1rem;
}

.stagger-grid .card {
  break-inside: avoid;
  margin-bottom: 1rem;
}

/* Process empty list placeholder */
.process-list {
  list-style: none;
  padding: 2rem;
  margin: 0;
  border: 1px dashed var(--gl-line);
  border-radius: var(--gl-radius);
  min-height: 120px;
  background: var(--gl-surface);
}

/* Geography horizontal scroll */
.geo-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.geo-scroll::-webkit-scrollbar { height: 6px; }
.geo-scroll::-webkit-scrollbar-thumb {
  background: var(--gl-line);
  border-radius: 999px;
}

.geo-chip {
  flex: 0 0 min(340px, 85vw);
  scroll-snap-align: start;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--gl-line);
  border-radius: var(--gl-radius);
  background: var(--gl-surface);
  backdrop-filter: blur(12px);
}

.geo-chip strong {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--gl-font-display);
  font-size: 1.15rem;
}

.geo-chip span {
  display: block;
  color: var(--gl-ink-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Guide two-column */
.guide-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.chapter {
  padding: 1.35rem 1.5rem;
  border-radius: var(--gl-radius);
  border: 1px solid var(--gl-line);
  background: rgba(255, 255, 255, 0.03);
}

.chapter h3 {
  font-size: 1.05rem;
  color: var(--gl-accent-cool);
}

.chapter li {
  color: var(--gl-ink-muted);
  margin: 0.45rem 0;
  font-size: 0.92rem;
}

.chapter ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
}

/* FAQ grid */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  max-width: none;
}

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

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

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

.faq-list p {
  padding-right: 0.5rem;
  font-size: 0.95rem;
}

/* Contact split inverted */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--gl-radius-lg);
  background: var(--gl-surface-raised);
  border: 1px solid var(--gl-line);
  backdrop-filter: blur(20px);
}

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

input, select, textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--gl-line);
  background: rgba(5, 11, 22, 0.6);
  color: var(--gl-ink);
  padding: 0.85rem 1rem;
  border-radius: calc(var(--gl-radius) * 0.45);
  transition: border-color 0.2s var(--ease);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(140, 207, 255, 0.5);
}

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

.form-message {
  color: var(--gl-accent-cool);
  margin: 0;
  font-size: 0.9rem;
}

/* Footer compact bar */
.site-footer {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--gl-line);
  background: var(--gl-bg-alt);
}

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

.footer-brand {
  font-family: var(--gl-font-display);
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.5rem;
}

.site-footer a {
  display: block;
  color: var(--gl-ink-muted);
  margin: 0.35rem 0;
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}

.site-footer a:hover { color: var(--gl-accent-cool); }

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

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

  .page-main::before,
  .page-main::after { display: none; }

  .site-header {
    position: sticky;
    height: auto;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--gl-line);
    padding: 0.85rem 1.25rem;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .brand {
    flex-direction: row;
    align-items: center;
  }

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

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

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

  .bento-grid .card:nth-child(n) {
    grid-column: span 12;
  }

  .guide-body { grid-template-columns: 1fr; }

  .faq-list { grid-template-columns: 1fr; }

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

  .stagger-grid { columns: 1; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 560px) {
  .site-header nav { display: none; }

  .header-cta { padding: 0.65rem 0.9rem; font-size: 0.78rem; }

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

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

  .hero { min-height: auto; padding-top: 2rem; }

  .hero-visual { min-height: 220px; border-radius: var(--gl-radius); }

  .hero-actions { flex-direction: column; }

  .button { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; }

  .section { padding: 3.5rem 0; }
}

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

  .card-icon, .step-icon,
  .card-icon svg, .step-icon svg,
  .card-icon path, .step-icon path,
  .icon-draw path, .icon-pulse, .icon-slide, .icon-spin {
    animation: none !important;
  }

  .card, .button, .header-cta { transition: none !important; }
}
