/* Aviation AI Solutions — public marketing pages */
:root {
  color-scheme: dark light;
  --canvas: #f7f6f2;
  --surface: #ffffff;
  --ink: #182532;
  --muted: #52616d;
  --rule: #d9dedf;
  --dark: #14212c;
  --accent: #355b72;
  --accent-hover: #2a4a5d;
  --focus: #355b72;
  --error: #9b2c2c;
  --success: #2d6a4f;
  --max: 1200px;
  --read: 720px;
  --gutter: 48px;
  --section-y: 68px;
  --radius-btn: 5px;
  --radius-panel: 7px;
  --shadow-subtle: 0 1px 2px rgba(24, 37, 50, 0.06);
  --sans:
    "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", ui-serif, Georgia, "Times New Roman", serif;
  --mono:
    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;
  --transition: 150ms ease;
  --header-h: 64px;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #f7f6f2;
  --surface: #ffffff;
  --ink: #182532;
  --muted: #52616d;
  --rule: #d9dedf;
  --dark: #14212c;
  --accent: #355b72;
  --accent-hover: #2a4a5d;
  --focus: #355b72;
  --shadow-subtle: 0 1px 2px rgba(24, 37, 50, 0.06);
}

[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0f1923;
  --surface: #14212c;
  --ink: #eef2f5;
  --muted: #a8b4bd;
  --rule: #2a3a47;
  --dark: #0a1118;
  --accent: #6a9bb5;
  --accent-hover: #8ab4c9;
  --focus: #8ab4c9;
  --shadow-subtle: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #0f1923;
    --surface: #14212c;
    --ink: #eef2f5;
    --muted: #a8b4bd;
    --rule: #2a3a47;
    --dark: #0a1118;
    --accent: #6a9bb5;
    --accent-hover: #8ab4c9;
    --focus: #8ab4c9;
    --shadow-subtle: none;
  }
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-btn);
}

.skip-link:focus {
  left: var(--gutter);
}

.footer-blurb {
  margin: 16px 0 0;
  max-width: 36ch;
  color: #c5cdd4;
}

.product-mark-ai {
  font-weight: 500;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--sans);
  font-weight: 600;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.read {
  max-width: var(--read);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  min-height: 44px;
}

.wordmark--lockup {
  gap: 0;
}

.site-logo {
  display: none;
  height: 42px;
  width: auto;
  max-width: min(300px, 56vw);
}

.site-header .site-logo {
  height: 72px;
  max-width: min(480px, 78vw);
}

.site-footer .site-logo {
  max-width: min(260px, 72vw);
}

.site-footer .site-logo--on-dark {
  display: block;
}

html[data-theme="light"] .site-header .site-logo--on-light {
  display: block;
}

html[data-theme="light"] .site-header .site-logo--on-dark {
  display: none;
}

html[data-theme="dark"] .site-header .site-logo--on-dark {
  display: block;
}

html[data-theme="dark"] .site-header .site-logo--on-light {
  display: none;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .site-header .site-logo--on-dark {
    display: block;
  }
  html:not([data-theme]) .site-header .site-logo--on-light {
    display: none;
  }
}

@media (prefers-color-scheme: light) {
  html:not([data-theme]) .site-header .site-logo--on-light {
    display: block;
  }
  html:not([data-theme]) .site-header .site-logo--on-dark {
    display: none;
  }
}

.wordmark--on-dark {
  color: #e8edf1;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-btn);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition), background var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--ink);
  background: var(--canvas);
}

.nav-desktop a[aria-current="page"] {
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.btn-primary {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

[data-theme="dark"] .btn-primary {
  color: var(--dark);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary {
    color: var(--dark);
  }
}

.btn-primary:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: #f7f6f2;
}

[data-theme="dark"] .btn-primary:hover {
  color: var(--dark);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-outline:hover {
  border-color: var(--muted);
}

.btn-text {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  font-weight: 500;
}

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

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--rule);
  background: var(--surface);
  padding: 12px var(--gutter) 20px;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile .btn-primary {
  margin-top: 12px;
  width: 100%;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Sections */
.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--rule);
}

.section:first-of-type {
  border-top: none;
}

.section-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: var(--read);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
}

.section-intro--compact {
  margin-bottom: 24px;
}

.section--canvas {
  background: var(--canvas);
}

.section--surface {
  background: var(--surface);
}

.section--compact {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* Hero */
.hero {
  padding: 56px 0 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.85vw, 52px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  max-width: none;
  text-wrap: balance;
}

.hero-lead {
  margin: 0 0 26px;
  color: var(--muted);
  max-width: 38ch;
  font-size: clamp(17px, 0.35vw + 16px, 19px);
  font-weight: 400;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-photo {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-panel);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  background: var(--canvas);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.hero-photo--landscape img {
  aspect-ratio: 16 / 10;
  object-position: center 42%;
}

/* Product showcases */
.product-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--surface);
}

.product-showcase {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.product-showcase:nth-child(2n) {
  border-right: none;
}

.product-showcase:nth-last-child(-n + 2) {
  border-bottom: none;
}

.product-showcase-media {
  margin: 0;
  border-bottom: 1px solid var(--rule);
  background: var(--canvas);
}

.product-showcase-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.product-showcase-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  margin: 0 0 12px;
}

.product-brand img {
  height: 28px;
  width: auto;
  max-width: 180px;
}

.product-brand--text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-brand--text span {
  font-weight: 500;
}

.product-showcase-body h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.capability-list {
  margin: 0 0 18px;
  padding-left: 1.15em;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.capability-list li {
  margin-bottom: 6px;
}

.product-visit {
  margin-top: auto;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.product-visit:hover {
  text-decoration: underline;
}

/* Workflow demonstration */
.workflow-note {
  max-width: 52ch;
}

.workflow-demo {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.workflow-demo li figure {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--surface);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.workflow-demo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--rule);
}

.workflow-demo figcaption {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.workflow-demo figcaption strong {
  color: var(--ink);
  font-weight: 600;
}

/* Company */
.company-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 36px;
  align-items: start;
}

.company-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.55;
}

.company-copy p:last-of-type {
  margin-bottom: 20px;
}

.company-photo {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.company-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 35%;
}

/* Newsletter strip */
.newsletter-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: 24px 32px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.newsletter-strip h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
}

.newsletter-strip-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 40ch;
}

.newsletter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  min-width: 3.5em;
}

.fineprint--compact {
  margin-top: 8px;
  font-size: 13px;
}

.footer-legal {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.55;
  color: #8a99a6;
  max-width: 62ch;
}

.status-msg {
  font-size: 15px;
  margin-bottom: 10px;
  min-height: 1.4em;
}

.status-msg.visible.success {
  color: var(--success);
}

.status-msg.visible.error {
  color: var(--error);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form.newsletter-form--inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.newsletter-form input[type="email"] {
  box-sizing: border-box;
  min-height: 44px;
  max-height: 48px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.25;
  border: 1px solid var(--rule);
  border-radius: var(--radius-btn);
  background: var(--canvas);
  color: var(--ink);
  width: 100%;
}

.newsletter-form.newsletter-form--inline input[type="email"] {
  width: auto;
  flex: 1 1 12rem;
  min-width: 0;
}

.fineprint {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 48px 0 40px;
  background: var(--dark);
  color: #c5cdd4;
  font-size: 15px;
  line-height: 1.6;
}

.site-footer a {
  color: #e8edf1;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
  margin-bottom: 32px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a99a6;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: #8a99a6;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.theme-toggle {
  font-family: inherit;
  font-size: 14px;
  color: #c5cdd4;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-btn);
  min-height: 44px;
  padding: 8px 14px;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

/* About page */
.page-hero {
  padding: 64px 0 48px;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.page-hero h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  margin: 0 0 16px;
}

.page-hero .lead {
  margin: 0;
  color: var(--muted);
  max-width: var(--read);
  font-weight: 400;
  line-height: 1.55;
}

.prose-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.prose-block:last-child {
  border-bottom: none;
}

.prose-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
}

.prose-block p {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.55;
}

.prose-block p:last-child {
  margin-bottom: 0;
}

.product-detail {
  margin-top: 20px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-panel);
}

.product-detail h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.product-detail p {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
}

.prose-signoff {
  margin-top: 20px;
  font-weight: 600;
  color: var(--ink);
}

.prose-tagline {
  margin-top: 6px;
  color: var(--accent);
  font-style: italic;
}

@media (min-width: 1024px) {
  .hero h1 {
    max-width: 9.35em;
  }
}

@media (max-width: 1024px) {
  :root {
    --gutter: 32px;
    --section-y: 52px;
  }
  .hero-grid,
  .company-split,
  .newsletter-strip {
    grid-template-columns: 1fr;
  }
  .product-showcase-grid {
    grid-template-columns: 1fr;
  }
  .product-showcase {
    border-right: none;
  }
  .product-showcase:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }
  .product-showcase:last-child {
    border-bottom: none;
  }
  .workflow-demo {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 17px;
  }
  .nav-desktop,
  .header-end .btn-primary.hide-mobile {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .hero-copy {
    order: 1;
  }
  .hero-photo {
    order: 2;
  }
  .hero h1 {
    max-width: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 20px;
    --section-y: 40px;
  }
  .hero {
    padding: 40px 0 48px;
  }
  .newsletter-form.newsletter-form--inline {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form.newsletter-form--inline input[type="email"] {
    width: 100%;
    flex: 0 0 auto;
  }
  .newsletter-label {
    min-width: 0;
  }
}
