/* ==========================================================================
   Omega AI — omegaai.com.au
   Dark-only brand system derived from the Omega AI logo.
   Palette: near-black navy surfaces, brushed silver type, cyan circuit accent.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand surfaces */
  --bg: #070a11;
  --surface: #0d131f;
  --surface-2: #141c2b;

  /* Silver type */
  --silver-hi: #f2f5f9;
  --silver: #c3ccd9;
  --silver-lo: #8b97a8;

  /* Cyan accent */
  --cyan: #22a7ff;
  --cyan-bright: #4fc3ff;
  --cyan-deep: #0a6fd0;

  --border: rgba(80, 120, 160, 0.18);
  --border-strong: rgba(80, 120, 160, 0.34);

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.18vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.45rem, 1.2rem + 1.1vw, 2.125rem);
  --text-2xl: clamp(1.9rem, 1.35rem + 2.4vw, 3.25rem);
  --text-hero: clamp(2.25rem, 1.2rem + 4.4vw, 4.5rem);

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --content: 1180px;
  --content-narrow: 720px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 200ms var(--ease);
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  color-scheme: dark;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--silver);
  background: var(--bg);
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: var(--cyan-bright);
  text-decoration-color: rgba(79, 195, 255, 0.4);
  text-underline-offset: 3px;
  transition: color var(--t);
}
a:hover {
  color: var(--silver-hi);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--silver-hi);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-weight: 600;
}

p,
li {
  text-wrap: pretty;
}

ul[role='list'] {
  list-style: none;
}

::selection {
  background: rgba(34, 167, 255, 0.3);
  color: var(--silver-hi);
}

:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.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;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--cyan-deep);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-4);
}

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  position: relative;
}
.section--tight {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}
.section--alt {
  background: linear-gradient(180deg, rgba(13, 19, 31, 0) 0%, rgba(13, 19, 31, 0.75) 40%, rgba(13, 19, 31, 0) 100%);
}

.narrow {
  max-width: var(--content-narrow);
}

.stack > * + * {
  margin-top: var(--space-4);
}

.grid {
  display: grid;
  gap: var(--space-5);
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  font-weight: 500;
  margin-bottom: var(--space-4);
}
.eyebrow--silver {
  color: var(--silver-lo);
}

.section-title {
  font-size: var(--text-xl);
  max-width: 22ch;
}
.section-title--wide {
  max-width: 34ch;
}

.lead {
  font-size: var(--text-lg);
  color: var(--silver);
  max-width: 60ch;
  line-height: 1.55;
}

.muted {
  color: var(--silver-lo);
}
.small {
  font-size: var(--text-sm);
}
.xs {
  font-size: var(--text-xs);
}

.silver-grad {
  background: linear-gradient(160deg, var(--silver-hi) 8%, #d7dee8 42%, var(--silver-lo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.cyan {
  color: var(--cyan-bright);
}

.body-copy p + p {
  margin-top: var(--space-4);
}
.body-copy p,
.body-copy li {
  max-width: 68ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--t), border-color var(--t), color var(--t), box-shadow var(--t), transform var(--t);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, var(--cyan) 0%, var(--cyan-deep) 100%);
  color: #04121f;
  box-shadow: 0 0 0 1px rgba(79, 195, 255, 0.35), 0 10px 30px -12px rgba(34, 167, 255, 0.65);
}
.btn-primary:hover {
  color: #04121f;
  background: linear-gradient(180deg, var(--cyan-bright) 0%, var(--cyan) 100%);
  box-shadow: 0 0 0 1px rgba(79, 195, 255, 0.6), 0 14px 36px -12px rgba(34, 167, 255, 0.8);
}

.btn-ghost {
  background: rgba(20, 28, 43, 0.6);
  border-color: var(--border-strong);
  color: var(--silver-hi);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--silver-hi);
  background: rgba(20, 28, 43, 0.95);
}

.btn-sm {
  padding: 0.6rem 1.05rem;
  font-size: var(--text-xs);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.text-link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--cyan-bright);
}
.text-link::after {
  content: '→';
  transition: transform var(--t);
}
.text-link:hover::after {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 17, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--silver-hi);
  flex-shrink: 0;
}
.brand svg {
  width: 32px;
  height: 32px;
  flex: none;
}
.brand-word {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-word b {
  color: var(--cyan-bright);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-4), 2vw, var(--space-8));
}
.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--silver);
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  padding-block: 4px;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--silver-hi);
}
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* The nav also carries a CTA for the mobile panel — hide it on desktop. */
@media (min-width: 901px) {
  .nav > .btn {
    display: none;
  }
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--silver-hi);
}

@media (max-width: 900px) {
  .header-actions .btn {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #070a11;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) clamp(1.25rem, 4vw, 2.5rem) var(--space-6);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  }
  .nav[data-open='true'] {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav a {
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .nav .btn {
    display: inline-flex;
    margin-top: var(--space-4);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(var(--space-16), 9vw, var(--space-32)) clamp(var(--space-12), 7vw, var(--space-24));
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.glow--hero {
  width: min(760px, 105vw);
  height: min(560px, 70vh);
  top: -14%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 45%, rgba(34, 167, 255, 0.24) 0%, rgba(10, 111, 208, 0.1) 42%, rgba(7, 10, 17, 0) 72%);
}
.hero-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(100deg, transparent 18%, rgba(0, 0, 0, 0.35) 42%, #000 78%);
  mask-image: linear-gradient(100deg, transparent 18%, rgba(0, 0, 0, 0.35) 42%, #000 78%);
}
.hero-circuit path,
.hero-circuit line {
  stroke: var(--cyan);
  stroke-width: 1;
  fill: none;
  opacity: 0.45;
}
.hero-circuit circle {
  fill: var(--cyan-bright);
}

.hero h1 {
  font-size: var(--text-hero);
  max-width: 19ch;
  margin-bottom: var(--space-6);
}
.hero .lead {
  max-width: 62ch;
  margin-bottom: var(--space-8);
}

.trust-strip {
  margin-top: clamp(var(--space-10), 5vw, var(--space-16));
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-lo);
  font-family: var(--font-display);
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.trust-strip li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(34, 167, 255, 0.9);
  flex: none;
}

.hero-logo {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-logo img {
  width: min(100%, 420px);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 52%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 48%, #000 52%, transparent 76%);
}

.hero-split {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
@media (min-width: 980px) {
  .hero-split {
    grid-template-columns: 1.35fr 0.85fr;
  }
}

/* ---------- Page header (interior) ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(var(--space-12), 7vw, var(--space-24)) clamp(var(--space-8), 4vw, var(--space-12));
  overflow: hidden;
  isolation: isolate;
}
.page-hero h1 {
  font-size: var(--text-2xl);
  max-width: 24ch;
  margin-bottom: var(--space-5);
}
.glow--page {
  width: min(620px, 100vw);
  height: 420px;
  top: -30%;
  left: 12%;
  background: radial-gradient(circle, rgba(34, 167, 255, 0.18) 0%, rgba(7, 10, 17, 0) 70%);
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-5), 2.2vw, var(--space-8));
  overflow: hidden;
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(195, 204, 217, 0.22) 35%, rgba(79, 195, 255, 0.35) 65%, transparent);
}
.card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.card p {
  color: var(--silver-lo);
  font-size: var(--text-sm);
  line-height: 1.65;
}
.card p + p,
.card p + ul,
.card ul + p {
  margin-top: var(--space-3);
}
a.card,
.card--link {
  text-decoration: none;
  display: block;
}
a.card:hover,
.card--hover:hover {
  border-color: rgba(79, 195, 255, 0.55);
  background: var(--surface-2);
}
a.card h3 {
  color: var(--silver-hi);
}
.card-foot {
  margin-top: var(--space-5);
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  color: var(--cyan-bright);
}
.card-icon svg {
  width: 100%;
  height: 100%;
}

.tick-list {
  list-style: none;
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--silver);
}
.tick-list li {
  position: relative;
  padding-left: 1.5em;
}
.tick-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan-bright);
  font-size: 0.95em;
  line-height: 1.75;
}

.cross-list {
  list-style: none;
  display: grid;
  gap: var(--space-4);
}
.cross-list li {
  position: relative;
  padding-left: 2em;
  color: var(--silver);
}
.cross-list li::before {
  content: '×';
  position: absolute;
  left: 0.15em;
  top: -0.05em;
  color: var(--cyan-bright);
  font-size: 1.25em;
  line-height: 1.5;
}

/* ---------- Circuit divider ---------- */
.circuit-divider {
  width: 100%;
  height: 24px;
  color: var(--cyan);
  opacity: 0.55;
}
.circuit-divider svg {
  width: 100%;
  height: 24px;
}

/* ---------- Numbered feature grid ---------- */
.numbered {
  display: grid;
  gap: var(--space-5);
  counter-reset: n;
}
@media (min-width: 760px) {
  .numbered {
    grid-template-columns: 1fr 1fr;
  }
}
.numbered-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-5), 2vw, var(--space-6));
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4) var(--space-5);
  align-items: start;
  transition: border-color var(--t), background var(--t);
}
.numbered-item:hover {
  border-color: rgba(79, 195, 255, 0.45);
  background: var(--surface-2);
}
.numbered-item .num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cyan-bright);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(79, 195, 255, 0.32);
  border-radius: var(--radius-md);
  background: rgba(34, 167, 255, 0.07);
  line-height: 1;
}
.numbered-item h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.ba {
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
.ba div {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: var(--space-3);
  color: var(--silver-lo);
}
.ba span {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-top: 0.35em;
}
.ba .after span {
  color: var(--cyan-bright);
}
.ba .after {
  color: var(--silver);
}
.estimate {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
  width: 100%;
  font-size: var(--text-xs);
  color: var(--silver-lo);
  letter-spacing: 0.04em;
}
.estimate b {
  font-family: var(--font-display);
  color: var(--silver-hi);
  font-size: var(--text-sm);
  letter-spacing: 0;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
}
@media (min-width: 880px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step {
  position: relative;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}
.step::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(34, 167, 255, 0.8);
}
.step .step-n {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  display: block;
  margin-bottom: var(--space-2);
}
.step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.step p {
  font-size: var(--text-sm);
  color: var(--silver-lo);
}

/* ---------- Why / feature rows ---------- */
.why-list {
  list-style: none;
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 820px) {
  .why-list {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8) var(--space-10);
  }
}
.why-list li {
  padding-left: var(--space-6);
  border-left: 1px solid var(--border);
  position: relative;
}
.why-list li::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(34, 167, 255, 0.9);
}
.why-list h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}
.why-list p {
  font-size: var(--text-sm);
  color: var(--silver-lo);
}

/* ---------- Offer detail blocks ---------- */
.offer {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.offer + .offer {
  margin-top: var(--space-8);
}
.offer-head {
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 28, 43, 0.9), rgba(13, 19, 31, 0));
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 860px) {
  .offer-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}
.offer-head h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.price-tag {
  font-family: var(--font-display);
  border: 1px solid rgba(79, 195, 255, 0.35);
  background: rgba(34, 167, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  min-width: 190px;
}
.price-tag .amount {
  display: block;
  font-size: var(--text-lg);
  color: var(--silver-hi);
  font-weight: 600;
}
.price-tag .note {
  display: block;
  font-size: var(--text-xs);
  color: var(--silver-lo);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}
.offer-body {
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  display: grid;
  gap: clamp(var(--space-6), 3vw, var(--space-10));
}
@media (min-width: 860px) {
  .offer-body {
    grid-template-columns: 1fr 1fr;
  }
}
.spec h4,
.card h4 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  margin-bottom: var(--space-3);
  font-weight: 500;
}
.spec + .spec {
  margin-top: var(--space-6);
}
.spec p,
.spec li {
  font-size: var(--text-sm);
  color: var(--silver-lo);
}
.spec p strong {
  color: var(--silver);
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
  font-size: var(--text-sm);
}
th,
td {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
thead th {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  font-weight: 500;
  background: rgba(20, 28, 43, 0.7);
  white-space: nowrap;
}
tbody th {
  color: var(--silver-hi);
  font-weight: 600;
  font-family: var(--font-display);
}
td {
  color: var(--silver-lo);
}
tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: none;
}
.table-scroll-hint {
  margin-top: var(--space-3);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: var(--space-3);
}
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color var(--t);
}
.faq details[open] {
  border-color: rgba(79, 195, 255, 0.4);
}
.faq summary {
  cursor: pointer;
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--silver-hi);
  font-size: var(--text-base);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--cyan-bright);
  font-size: 1.35em;
  line-height: 1;
  flex: none;
  transition: transform var(--t);
}
.faq details[open] summary::after {
  content: '−';
}
.faq .faq-body {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--silver-lo);
  font-size: var(--text-sm);
}
.faq .faq-body p + p {
  margin-top: var(--space-3);
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: var(--space-5);
}
.form-row {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  font-weight: 500;
}
.field .hint {
  font-size: var(--text-xs);
  color: var(--silver-lo);
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-body);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--silver-hi);
  font-size: var(--text-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #6b7688;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 167, 255, 0.18);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 2px;
}
.req {
  color: var(--cyan-bright);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(13, 19, 31, 0.85), rgba(7, 10, 17, 1));
}
.glow--cta {
  width: min(820px, 120vw);
  height: 460px;
  bottom: -55%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(34, 167, 255, 0.22) 0%, rgba(7, 10, 17, 0) 70%);
}
.cta-grid {
  display: grid;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
}
@media (min-width: 940px) {
  .cta-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding-block: var(--space-16) var(--space-8);
  font-size: var(--text-sm);
}
.footer-grid {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 780px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.site-footer h3 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  margin-bottom: var(--space-4);
  font-weight: 500;
}
.site-footer ul {
  list-style: none;
  display: grid;
  gap: var(--space-2);
}
.site-footer a {
  color: var(--silver-lo);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--silver-hi);
}
.site-footer .tagline {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-lo);
  margin-top: var(--space-4);
}
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  justify-content: space-between;
  color: var(--silver-lo);
  font-size: var(--text-xs);
}
.tas-mark {
  width: 42px;
  color: var(--cyan);
  opacity: 0.9;
}

/* ---------- Calculator ---------- */
.calc {
  display: grid;
  gap: clamp(var(--space-6), 3vw, var(--space-10));
  align-items: start;
}
@media (min-width: 900px) {
  .calc {
    grid-template-columns: 1fr 1fr;
  }
}
.calc-inputs {
  display: grid;
  gap: var(--space-5);
}
.calc-out {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-5), 2.5vw, var(--space-8));
  display: grid;
  gap: var(--space-5);
}
.metric {
  display: grid;
  gap: var(--space-1);
}
.metric .k {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-lo);
}
.metric .v {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem);
  font-weight: 600;
  color: var(--silver-hi);
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.metric .v.accent {
  color: var(--cyan-bright);
}
.metric .sub {
  font-size: var(--text-xs);
  color: var(--silver-lo);
}
.disclaimer {
  border: 1px dashed rgba(139, 151, 168, 0.4);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--text-xs);
  color: var(--silver-lo);
  line-height: 1.6;
}
.range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: center;
}
.range-row output {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--silver-hi);
  min-width: 4.5ch;
  text-align: right;
}
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-deep), rgba(139, 151, 168, 0.25));
  border-radius: 2px;
  padding: 0;
  border: none;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan-bright);
  border: 2px solid #04121f;
  box-shadow: 0 0 10px rgba(34, 167, 255, 0.7);
  cursor: pointer;
}
input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan-bright);
  border: 2px solid #04121f;
  cursor: pointer;
}

/* ---------- Scorecard ---------- */
.scorecard {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.sc-head {
  padding: clamp(var(--space-5), 2.5vw, var(--space-8));
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: var(--space-4);
}
.sc-progress {
  display: grid;
  gap: var(--space-2);
}
.sc-bar {
  height: 3px;
  background: rgba(139, 151, 168, 0.2);
  border-radius: 2px;
  overflow: hidden;
}
.sc-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan-bright));
  border-radius: 2px;
  transition: width 400ms var(--ease);
}
.sc-count {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-lo);
}
.sc-body {
  padding: clamp(var(--space-5), 2.5vw, var(--space-8));
}
.sc-q {
  display: none;
}
.sc-q[data-active='true'] {
  display: block;
  animation: scIn 380ms var(--ease) both;
}
@keyframes scIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.sc-q h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.sc-q .sc-help {
  font-size: var(--text-sm);
  color: var(--silver-lo);
  margin-bottom: var(--space-5);
}
.sc-options {
  display: grid;
  gap: var(--space-2);
  border: none;
  margin: 0;
  padding: 0;
}
.sc-options legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.sc-opt {
  position: relative;
  display: block;
}
.sc-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.sc-opt span {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  background: var(--bg);
  color: var(--silver);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: border-color var(--t), background var(--t), color var(--t);
}
.sc-opt span::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--silver-lo);
  flex: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.sc-opt:hover span {
  border-color: rgba(79, 195, 255, 0.5);
  color: var(--silver-hi);
}
.sc-opt input:checked + span {
  border-color: var(--cyan);
  background: rgba(34, 167, 255, 0.09);
  color: var(--silver-hi);
}
.sc-opt input:checked + span::before {
  border-color: var(--cyan-bright);
  background: var(--cyan-bright);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.sc-opt input:focus-visible + span {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 2px;
}
.sc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.sc-error {
  font-size: var(--text-sm);
  color: #ffb3b3;
}
.sc-result {
  display: none;
  padding: clamp(var(--space-5), 2.5vw, var(--space-8));
}
.sc-result[data-active='true'] {
  display: block;
  animation: scIn 460ms var(--ease) both;
}
.sc-result-top {
  display: grid;
  gap: clamp(var(--space-6), 3vw, var(--space-8));
  align-items: center;
}
@media (min-width: 700px) {
  .sc-result-top {
    grid-template-columns: auto 1fr;
  }
}
.dial {
  width: 200px;
  height: 200px;
  position: relative;
  justify-self: center;
  flex: none;
}
.dial svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.dial-track {
  stroke: rgba(139, 151, 168, 0.18);
}
.dial-arc {
  /* stroke is set per-instance via a unique gradient id on the element */
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(34, 167, 255, 0.6));
  transition: stroke-dashoffset 1200ms var(--ease);
}
.dial-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.dial-value .n {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--silver-hi);
  line-height: 1;
}
.dial-value .of {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-lo);
  margin-top: 6px;
}
.band-name {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.sc-recs {
  margin-top: clamp(var(--space-6), 3vw, var(--space-8));
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: grid;
  gap: var(--space-4);
}
.sc-rec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
}
.sc-rec .i {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan-bright);
  border: 1px solid rgba(79, 195, 255, 0.32);
  border-radius: var(--radius-sm);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.sc-rec p {
  font-size: var(--text-sm);
  color: var(--silver);
}
.sc-breakdown {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-3);
}
.sc-bd-row {
  display: grid;
  grid-template-columns: 1fr 90px 3.5ch;
  gap: var(--space-3);
  align-items: center;
  font-size: var(--text-xs);
  color: var(--silver-lo);
}
.sc-bd-row .meter {
  height: 4px;
  background: rgba(139, 151, 168, 0.18);
  border-radius: 2px;
  overflow: hidden;
}
.sc-bd-row .meter i {
  display: block;
  height: 100%;
  background: var(--cyan);
  border-radius: 2px;
}
.sc-bd-row b {
  font-family: var(--font-display);
  color: var(--silver);
  text-align: right;
  font-weight: 500;
}

/* ---------- Course cards ---------- */
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.chip {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  border: 1px solid rgba(79, 195, 255, 0.3);
  background: rgba(34, 167, 255, 0.07);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
}
.chip--silver {
  color: var(--silver);
  border-color: var(--border-strong);
  background: rgba(20, 28, 43, 0.7);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Hero circuit draw-in ---------- */
.draw {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2600ms var(--ease) 200ms forwards;
}
.draw-2 {
  animation-delay: 600ms;
}
.draw-3 {
  animation-delay: 1000ms;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.node-pulse {
  opacity: 0;
  animation: nodeIn 700ms var(--ease) 1600ms forwards;
}
@keyframes nodeIn {
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .draw {
    stroke-dashoffset: 0;
    animation: none;
  }
  .node-pulse {
    opacity: 1;
    animation: none;
  }
}

/* ---------- Misc ---------- */
.pill-note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--border-strong);
  background: rgba(20, 28, 43, 0.6);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-lo);
}
.pill-note::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(34, 167, 255, 0.9);
}

.note-box {
  border: 1px solid var(--border);
  border-left: 2px solid var(--cyan);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  font-size: var(--text-sm);
  color: var(--silver-lo);
}
.note-box strong {
  color: var(--silver-hi);
}

.contact-lines {
  list-style: none;
  display: grid;
  gap: var(--space-5);
}
.contact-lines h3 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  margin-bottom: var(--space-2);
  font-weight: 500;
}
.contact-lines p {
  font-size: var(--text-sm);
  color: var(--silver);
}

.cal-placeholder {
  border: 1px dashed rgba(139, 151, 168, 0.35);
  border-radius: var(--radius-lg);
  background: rgba(13, 19, 31, 0.6);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  text-align: center;
  display: grid;
  gap: var(--space-4);
  place-items: center;
}
.cal-placeholder p {
  font-size: var(--text-sm);
  color: var(--silver-lo);
  max-width: 42ch;
}

.about-figure {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 35%, rgba(34, 167, 255, 0.14), rgba(7, 10, 17, 0) 65%), var(--surface);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  display: grid;
  place-items: center;
}
.about-figure img {
  width: min(100%, 380px);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 54%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 48%, #000 54%, transparent 78%);
}
.about-figure figcaption {
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-lo);
  text-align: center;
}
