/* ============================================================
   AeonLogic design system
   One file, shared by every page. Colors, type, spacing and
   every component live here. Change a token once, it changes
   everywhere.
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #05070d;            /* near black */
  --bg-navy: #0a1220;       /* deep navy */
  --bg-panel: #0e1626;      /* charcoal navy panel */
  --bg-raise: #121c30;      /* raised card */

  /* Lines */
  --line: rgba(148, 178, 255, 0.14);
  --line-strong: rgba(148, 178, 255, 0.26);

  /* Text */
  --text: #f2f6ff;          /* crisp white */
  --muted: #96a3bd;
  --faint: #6b7893;

  /* Accents */
  --accent: #2e7dff;        /* electric blue */
  --accent-2: #38d6f5;      /* restrained cyan */
  --accent-soft: rgba(46, 125, 255, 0.14);

  /* Type */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --container: 1120px;
  --space-section: clamp(64px, 9vw, 112px);
  --radius: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: var(--text);
}

/* ---------- Utilities ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

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

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: clamp(15.5px, 1.6vw, 18px); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-name b { color: var(--accent-2); font-weight: 700; }

.site-nav { display: none; }
.site-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 2px;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); }

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

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(180deg, #3d88ff 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(46, 125, 255, 0.28);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(46, 125, 255, 0.38); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

.btn-sm { padding: 9px 18px; font-size: 14.5px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 78% -10%, rgba(46, 125, 255, 0.22), transparent 62%),
    radial-gradient(700px 420px at 12% 8%, rgba(56, 214, 245, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-navy) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  /* faint engineering grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 178, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px 480px at 60% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(720px 480px at 60% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 780px;
  padding-block: clamp(84px, 12vw, 148px);
}

.hero h1 {
  font-size: clamp(34px, 5.6vw, 60px);
  margin-bottom: 22px;
}

.hero .lede {
  color: var(--muted);
  font-size: clamp(16.5px, 1.9vw, 19.5px);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  background: linear-gradient(180deg, var(--bg-raise) 0%, var(--bg-panel) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.card h3 { font-size: 18.5px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

.card .glyph {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid rgba(46, 125, 255, 0.3);
  margin-bottom: 16px;
}
.card .glyph svg { width: 20px; height: 20px; stroke: var(--accent-2); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 600;
}

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: 1fr; gap: 18px; counter-reset: step; }

.step {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 26px 74px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 26px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(46, 125, 255, 0.35);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Industries ---------- */

.industry-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }

.industry-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-raise) 0%, var(--bg-panel) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.industry-card.featured { border-color: rgba(46, 125, 255, 0.45); }
.industry-card h3 { font-size: 20px; margin-bottom: 10px; }
.industry-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(680px 300px at 50% -20%, rgba(46, 125, 255, 0.25), transparent 65%),
    var(--bg-navy);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding-block: clamp(64px, 8vw, 96px);
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 30px; }

/* ---------- Form (contact page) ---------- */

.form-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 40px);
}

.contact-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
.contact-side h2 { font-size: 24px; margin-bottom: 12px; }
.contact-side p { color: var(--muted); margin-bottom: 22px; font-size: 15.5px; }

.contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.contact-item .glyph { flex: none; margin-bottom: 0; }
.contact-item span { color: var(--muted); font-size: 15.5px; }
.contact-item a { color: var(--text); font-weight: 600; }
.contact-item a:hover { color: var(--accent-2); }

/* ---------- Demo placeholder (HVAC) ---------- */

.demo-panel {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
}
.demo-panel .glyph { margin-inline: auto; }
.demo-panel h3 { font-size: 19px; margin-bottom: 10px; }
.demo-panel p { color: var(--muted); font-size: 15.5px; max-width: 520px; margin-inline: auto; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-block: 44px;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: var(--muted); font-size: 14.5px; }
.footer-nav a:hover { color: var(--text); }
.footer-note { color: var(--faint); font-size: 13.5px; width: 100%; }

/* ---------- Prose (about / privacy) ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(22px, 2.8vw, 30px); margin: 40px 0 14px; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.prose ul { padding-left: 22px; margin-bottom: 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .nav-toggle span { transition: none; }
}

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .site-nav { display: flex; gap: 26px; }
  .nav-toggle { display: none; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { padding: 26px; }
  .step::before { position: static; margin-bottom: 14px; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
}

/* Mobile nav sheet */
@media (max-width: 899px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: rgba(6, 9, 16, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px 22px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }
}
