/* TripScan variant — Creative Director / layered-cards / graphite-electric-blue */

:root {
  --page: #141820;
  --surface: #1e2430;
  --surface-raised: #252d3c;
  --text: #e8ecf4;
  --muted: #8b95a8;
  --accent: #276ef1;
  --accent-alt: #00b4ff;
  --accent-glow: rgba(39, 110, 241, 0.35);
  --ink-on-accent: #f0f4ff;
  --radius: 4px;
  --radius-card: 6px;
  --section-space: clamp(4rem, 8vw, 7rem);
  --rail-width: clamp(220px, 18vw, 280px);
  --content-max: 1280px;
  --font-display: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --shadow-depth-1: 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-depth-2: 0 2px 0 rgba(255, 255, 255, 0.05), 0 20px 48px rgba(0, 0, 0, 0.55);
  --shadow-depth-3: 0 3px 0 rgba(39, 110, 241, 0.12), 0 28px 64px rgba(0, 0, 0, 0.6);
  --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.55;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  background: var(--page);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

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.035em;
  line-height: 1.02;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.25rem, 4.8vw, 4.25rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  margin-bottom: 0.85rem;
}

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

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

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

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

.cd-rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2vw, 2rem);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: color-mix(in srgb, var(--page) 92%, var(--accent) 8%);
}

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

.brand-logo {
  display: block;
  width: clamp(40px, 5vw, 64px);
  height: clamp(40px, 5vw, 64px);
  max-width: 64px;
  max-height: 64px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
}

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

.cd-rail-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.15;
}

.cd-rail-title small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.15rem;
}

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

.cd-rail-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 0.55rem 0.65rem;
  border-left: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.cd-rail-nav a:hover {
  color: var(--text);
  border-left-color: var(--accent);
  background: rgba(39, 110, 241, 0.08);
}

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

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.header-cta {
  width: 100%;
  white-space: nowrap;
}

.header-cta,
.button-primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--accent-alt)));
  color: var(--ink-on-accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.header-cta:hover,
.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.cd-main {
  min-width: 0;
  padding: 0 clamp(1.25rem, 3vw, 3rem) clamp(2rem, 4vw, 4rem);
}

.section-inner {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
}

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

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

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

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

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

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

.geo-line {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: var(--hero-max-h-desktop);
  max-width: min(100%, 50vw);
  aspect-ratio: 4 / 3;
  margin-left: auto;
  border-radius: var(--radius-card);
  border: 1px solid rgba(39, 110, 241, 0.28);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 90%, var(--accent) 10%), var(--page)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 11px,
      rgba(39, 110, 241, 0.04) 11px,
      rgba(39, 110, 241, 0.04) 12px
    );
  box-shadow: var(--shadow-depth-3);
  clip-path: inset(0 round var(--radius-card));
}

.section {
  padding: var(--section-space) 0;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}

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

.cd-layer-stack {
  display: grid;
  gap: 1rem;
  position: relative;
}

.cd-layer-stack--process {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cd-layer-stack--proof {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cd-layer-stack--services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid {
  display: contents;
}

.card,
.process-list li,
.geo-chip {
  min-width: 0;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-depth-1);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

.card::before,
.process-list li::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(39, 110, 241, 0.06), transparent 55%);
}

.card:nth-child(1), .process-list li:nth-child(1) { transform: translateY(0); z-index: 4; }
.card:nth-child(2), .process-list li:nth-child(2) { transform: translateY(6px); z-index: 3; }
.card:nth-child(3), .process-list li:nth-child(3) { transform: translateY(12px); z-index: 2; }
.card:nth-child(4), .process-list li:nth-child(4) { transform: translateY(18px); z-index: 1; }
.card:nth-child(5) { transform: translateY(8px); }
.card:nth-child(6) { transform: translateY(14px); }

.card:hover,
.process-list li:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-depth-2), 0 0 0 1px rgba(39, 110, 241, 0.22);
  border-color: rgba(39, 110, 241, 0.35);
}

.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-alt);
  border: 1px solid rgba(39, 110, 241, 0.35);
  background: rgba(39, 110, 241, 0.1);
  border-radius: var(--radius);
}

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

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

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

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: contents;
}

.process-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

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

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

.geo-chip {
  padding: 1.1rem 1.2rem;
  border-left: 3px solid var(--accent);
}

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

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

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

.chapter {
  min-width: 0;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

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

.faq-list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 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.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--surface-raised);
  padding: 1.5rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-depth-2);
}

.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 rgba(255, 255, 255, 0.14);
  background: var(--page);
  color: var(--text);
  padding: 0.8rem;
  border-radius: var(--radius);
}

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

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

.tripscan-disclaimer {
  font-size: 0.78rem !important;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid var(--accent);
  background: rgba(39, 110, 241, 0.08);
}

.site-footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: color-mix(in srgb, var(--page) 85%, black);
}

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

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

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

.cd-iso-cutaway {
  position: relative;
}

.cd-iso-cutaway::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 48px;
  height: 48px;
  opacity: 0.35;
  background:
    linear-gradient(135deg, transparent 45%, var(--accent) 45%, var(--accent) 50%, transparent 50%),
    linear-gradient(45deg, transparent 45%, var(--accent-alt) 45%, var(--accent-alt) 50%, transparent 50%);
  pointer-events: none;
}

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

  .cd-rail {
    position: relative;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem clamp(1rem, 3vw, 1.5rem);
  }

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

  .cd-rail-nav {
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
    order: 3;
  }

  .cd-rail-nav a {
    border-left: none;
    border-bottom: 2px solid transparent;
  }

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

  .header-cta { width: auto; }

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

  .hero-visual {
    max-height: var(--hero-max-h-tablet);
    max-width: 100%;
    margin: 0 auto;
  }

  .cd-layer-stack--process,
  .cd-layer-stack--proof,
  .cd-layer-stack--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card:nth-child(n),
  .process-list li:nth-child(n) {
    transform: none;
  }

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

@media (max-width: 640px) {
  .cd-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cd-rail-nav { display: none; }

  .cd-rail-cta { margin-left: auto; }

  .hero-visual {
    max-height: var(--hero-max-h-mobile);
    aspect-ratio: 5 / 4;
  }

  .cd-layer-stack--process,
  .cd-layer-stack--proof,
  .cd-layer-stack--services,
  .geo-chips,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section { padding: 3.5rem 0; }

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

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

  .card,
  .process-list li,
  .header-cta,
  .button,
  .cd-rail-nav a {
    transition: none !important;
  }

  .card:nth-child(n),
  .process-list li:nth-child(n) {
    transform: none !important;
  }

  .card:hover,
  .process-list li:hover {
    transform: none !important;
  }
}
