/* ==========================================================================
   AirChip Brand Tokens & Base Styles — October 2026 Trail Palette
   ========================================================================== */
:root {
  /* October 2026 Brand Tokens */
  --slate: #243333;             /* Main dark background. Also text color on light backgrounds */
  --slate-raised: #2E4041;      /* Cards and panels on dark */
  --slate-line: #3D5253;        /* Borders and dividers on dark */
  --cream: #F6F1EA;             /* Main light background, and primary text on dark */
  --card: #FFFDF8;              /* Cards on cream */
  --sand: #ECE3D6;              /* Muted panels on cream */
  --line: #E2D8CA;              /* Borders on cream */
  --text-muted-dark: #D9D0C3;   /* Secondary text on slate */
  --text-muted-light: #5A5650;  /* Secondary text on cream */
  --blue: #2A5FC4;              /* Secondary highlight: buttons, links and key numbers on cream */
  --sky: #8AB8FF;               /* The blue to use for text and icons on slate */
  --marigold: #F2A71B;          /* Special accent. Use sparingly */
  --rust: #B85A3C;              /* Brand accent: thin rules and edge stripes only */

  /* Typography */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout & Geometry */
  --radius: 16px;
  --radius-sm: 8px;
  --max-width: 1120px;
  --header-height: 72px;

  /* Backward Compatibility Aliases */
  --ac-carbon: var(--slate);
  --ac-carbon-raised: var(--slate-raised);
  --ac-carbon-border: var(--slate-line);
  --ac-cloud: var(--cream);
  --ac-mist: var(--text-muted-dark);
  --ac-slate: var(--text-muted-light);
  --ac-blue-light: var(--sky);
  --ac-blue: var(--blue);
  --ac-gold: var(--marigold);
  --ac-font-display: var(--font-display);
  --ac-font-body: var(--font-body);
  --ac-radius: var(--radius);
  --ac-radius-sm: var(--radius-sm);
  --ac-max-width: var(--max-width);
  --ac-header-height: var(--header-height);
}

/* ==========================================================================
   Reset & Document Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  color: var(--cream);
  background-color: var(--slate);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  background-color: var(--slate);
  color: var(--text-muted-dark);
  overflow-x: hidden;
  position: relative;
}

/* Skip link for keyboard accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--cream);
  color: var(--slate);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
  outline: 3px solid var(--sky);
}

/* Accessible focus styling */
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 4px;
}

/* Selection */
::selection {
  background-color: var(--sky);
  color: var(--slate);
}

/* Typography Defaults */
h1, h2, h3, h4, .brand-font {
  font-family: var(--font-display);
  color: var(--cream);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted-dark);
  font-size: 1.0625rem;
}

a {
  color: var(--sky);
  text-decoration: none;
  transition: color 0.18s ease;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 5vw, 40px);
  padding-right: clamp(20px, 5vw, 40px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(36, 51, 51, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--slate-line);
  z-index: 100;
  transition: background-color 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  padding: 6px 0;
  white-space: nowrap;
}

.brand-link:hover {
  color: #FFFFFF;
}

/* Header mark: ~40px high, width follows ratio (~1.97:1) */
.header-logo-icon {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cream);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--slate-line);
  background: rgba(46, 64, 65, 0.45);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #FFFFFF;
  border-color: var(--sky);
  background: rgba(46, 64, 65, 0.85);
}

@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }
  .brand-link {
    font-size: 1.2rem;
    gap: 10px;
  }
  .header-logo-icon {
    height: 34px;
    width: auto;
  }
  .nav-link {
    font-size: 0.8125rem;
    padding: 6px 12px;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 1000px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--slate);
}

/* Subtle outdoor screen ambient luminance catching the sun */
.hero-light-sweep {
  position: absolute;
  top: -15%;
  right: -10%;
  width: 75vw;
  max-width: 900px;
  height: 80vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
}

.hero-light-plane {
  width: 100%;
  height: 100%;
  transform: rotate(-14deg) skewX(-4deg);
  background: linear-gradient(
    135deg,
    rgba(242, 167, 27, 0.12) 0%,
    rgba(242, 167, 27, 0.04) 32%,
    rgba(138, 184, 255, 0.06) 65%,
    rgba(36, 51, 51, 0) 100%
  );
  filter: blur(60px);
  animation: solar-sweep 14s ease-in-out infinite alternate;
}

.hero-screen-edge {
  position: absolute;
  top: 18%;
  right: 12%;
  width: 420px;
  height: 280px;
  transform: rotate(-14deg);
  border-top: 1px solid rgba(246, 241, 234, 0.18);
  border-right: 1.5px solid rgba(184, 90, 60, 0.35); /* Thin rust accent */
  box-shadow: 
    0 -10px 40px rgba(242, 167, 27, 0.1),
    inset 0 1px 25px rgba(242, 167, 27, 0.06);
  pointer-events: none;
  opacity: 0.6;
  animation: edge-pulse 8s ease-in-out infinite alternate;
}

@keyframes solar-sweep {
  0% {
    transform: rotate(-14deg) skewX(-4deg) scale(1) translateY(0);
    opacity: 0.65;
  }
  50% {
    transform: rotate(-12deg) skewX(-2deg) scale(1.08) translateY(-15px);
    opacity: 0.85;
  }
  100% {
    transform: rotate(-14deg) skewX(-4deg) scale(1) translateY(0);
    opacity: 0.65;
  }
}

@keyframes edge-pulse {
  0% {
    opacity: 0.45;
    box-shadow: 0 -8px 30px rgba(242, 167, 27, 0.08);
  }
  100% {
    opacity: 0.75;
    box-shadow: 0 -12px 55px rgba(242, 167, 27, 0.18);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.hero-mark-wrapper {
  margin-bottom: 32px;
}

/* Large winged mark: size by height, width follows ~1.97:1 */
.hero-mark {
  height: 72px;
  width: auto;
  display: block;
}

.hero-title {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--cream);
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero-supporting {
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  color: var(--text-muted-dark);
  line-height: 1.55;
  max-width: 680px;
  margin-bottom: 36px;
  text-wrap: pretty;
}

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

/* Primary CTA Button: Marigold accent with Slate text (6.54:1 contrast) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--slate);
  background-color: var(--marigold);
  border: 1px solid var(--marigold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #f7b538;
  border-color: #f7b538;
  color: var(--slate);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(242, 167, 27, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

/* Secondary Button / Link */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--slate-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  color: #FFFFFF;
  border-color: var(--sky);
  background: rgba(46, 64, 65, 0.5);
}

/* ==========================================================================
   Section 2: The Name
   ========================================================================== */
.section-name {
  padding: clamp(70px, 10vw, 120px) 0;
  position: relative;
  z-index: 2;
}

.name-card {
  background: var(--slate-raised);
  border: 1px solid var(--slate-line);
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 64px);
  position: relative;
  overflow: hidden;
}

/* Thin rust brand accent rule */
.name-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--rust) 0%, rgba(184, 90, 60, 0.6) 35%, transparent 75%);
}

.name-formula {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.name-description {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  color: var(--text-muted-dark);
  line-height: 1.5;
  max-width: 720px;
}

/* ==========================================================================
   Section 3: What We Believe
   ========================================================================== */
.section-beliefs {
  padding: clamp(70px, 10vw, 110px) 0;
  position: relative;
  z-index: 2;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sky);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: clamp(36px, 5vw, 56px);
}

.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.belief-card {
  background: var(--slate-raised);
  border: 1px solid var(--slate-line);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.belief-card:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 184, 255, 0.4);
}

.belief-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
}

.belief-text {
  font-size: 1.0625rem;
  color: var(--text-muted-dark);
  line-height: 1.55;
}

/* ==========================================================================
   Section 4: Who It Is For
   ========================================================================== */
.section-audience {
  padding: clamp(70px, 10vw, 110px) 0;
  position: relative;
  z-index: 2;
}

.audience-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.audience-item {
  background: var(--slate-raised);
  border: 1px solid var(--slate-line);
  border-radius: var(--radius);
  padding: 28px 32px;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-muted-dark);
  transition: border-color 0.2s ease;
}

.audience-item:hover {
  border-color: rgba(138, 184, 255, 0.35);
}

.audience-lead {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cream);
}

/* ==========================================================================
   Section 5: Stay Close
   ========================================================================== */
.section-stay-close {
  padding: clamp(70px, 10vw, 130px) 0 80px 0;
  position: relative;
  z-index: 2;
}

.stay-close-box {
  background: var(--slate-raised);
  border: 1px solid var(--slate-line);
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 64px);
  max-width: 800px;
  position: relative;
  overflow: hidden;
}

.stay-close-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(138, 184, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.stay-close-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--cream);
  margin-bottom: 16px;
}

.stay-close-text {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-muted-dark);
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 600px;
}

.contact-action-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.contact-email-badge {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sky);
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  background: rgba(36, 51, 51, 0.7);
  border: 1px solid var(--slate-line);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.contact-email-badge:hover {
  color: var(--cream);
  border-color: var(--sky);
  background: rgba(36, 51, 51, 0.95);
}

/* Optional Form Styling (ready if enabled) */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
}

.signup-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.signup-input {
  flex: 1 1 260px;
  background: var(--slate);
  border: 1px solid var(--slate-line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream);
  transition: border-color 0.2s ease;
}

.signup-input:focus {
  border-color: var(--sky);
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.signup-input::placeholder {
  color: var(--text-muted-light);
}

.form-feedback {
  font-size: 0.9375rem;
  min-height: 24px;
}

.form-feedback.success {
  color: #52C41A;
}

.form-feedback.error {
  color: #FF7875;
}

/* Honeypot field - visually hidden from real users */
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--slate-line);
  background-color: var(--slate);
  padding: 36px 0;
  font-size: 0.9375rem;
  color: var(--text-muted-dark);
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted-dark);
}

/* The screen's one marigold highlight in the footer */
.footer-domain {
  color: var(--marigold);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}

.footer-domain:hover {
  color: #f7b538;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted-dark);
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--cream);
}

/* ==========================================================================
   Auxiliary Pages (Privacy & 404)
   ========================================================================== */
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--slate);
}

.page-content-wrapper {
  flex: 1;
  padding: calc(var(--header-height) + 60px) 0 80px 0;
}

.prose-card {
  background: var(--slate-raised);
  border: 1px solid var(--slate-line);
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 56px);
  max-width: 760px;
}

.prose-card h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--cream);
  margin-bottom: 24px;
}

.prose-card p {
  color: var(--text-muted-dark);
  margin-bottom: 18px;
  line-height: 1.65;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--sky);
  margin-top: 24px;
}

.back-link:hover {
  color: var(--cream);
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-light-plane,
  .hero-screen-edge {
    animation: none !important;
  }
  .btn-primary,
  .belief-card,
  .audience-item {
    transition: none !important;
  }
}
