/* ================================================================================
   AG LANDING: the landing page (/{lang}/), rebuilt 2026-11-06.

   Loads after eq-system.css and before eq-fx.css. Every rule is scoped to
   `.ag-home` or an `ag-` class, so no other page changes because of this file.

   The world: a black studio. Near-black ground, one rendered object lit in
   Agon cyan and blue (static/eq-hero3d.js), white display type set tight in
   Inter Tight, hairline frames with small node marks, and the product's own
   screens as the pictures. Contrast does the hierarchy: white for what you
   read first, a cool grey for what explains it, a dimmer grey for meta. Color
   keeps its single meaning: cyan acts or is live, green is a gain, gold sits
   beside evidence, red is a loss.
   ================================================================================ */

.ag-home {
  --ag-ground: #020306;
  --ag-ground-2: #04060a;
  --ag-surface: #06080d;
  --ag-surface-2: #0a0e15;
  --ag-ink: #f5f8fb;
  --ag-ink-2: #b6c1cd;      /* 10.9:1 on the ground: explanation */
  --ag-ink-3: #8794a4;      /* 6.4:1: meta and labels */
  --ag-line: rgba(255, 255, 255, 0.09);
  --ag-line-2: rgba(255, 255, 255, 0.15);
  --ag-line-3: rgba(255, 255, 255, 0.24);
  --ag-cyan: #00b2fc;
  --ag-cyan-2: #7fd3ff;
  --ag-cyan-ink: #d2edff;
  --ag-blue: #002b86;
  --ag-gold: #e7c078;
  --ag-green: #3fcf9b;
  --ag-red: #ff5a67;
  --ag-orange: #ff8a5c;
  --ag-display: "Inter Tight", "Inter Tight Fallback", "Inter", "Inter Fallback", sans-serif;
  --ag-text: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ag-mono: "IBM Plex Mono", "IBM Plex Mono Fallback", SFMono-Regular, Consolas, monospace;
  --ag-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ag-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 64px -12px rgba(0, 0, 0, 0.7);

  background: var(--ag-ground);
  color: var(--ag-ink);
  font-family: var(--ag-text);
  overflow-x: clip;
}

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

.ag-wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
  position: relative;
}

.ag-home :where(h1, h2, h3) {
  color: var(--ag-ink);
  margin: 0;
}

.ag-home :where(p) {
  margin: 0;
}

.ag-home :where(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --- Shared type ------------------------------------------------------------ */
.ag-h2 {
  font-family: var(--ag-display);
  font-size: clamp(2.125rem, 1.25rem + 2.6vw, 3.625rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.ag-h3 {
  font-family: var(--ag-display);
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.ag-lede {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--ag-ink-2);
  max-width: 40rem;
  text-wrap: pretty;
}

.ag-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ag-ink-3);
}

.ag-note svg {
  flex: none;
  margin-top: 2px;
}

.ag-head {
  margin-bottom: clamp(40px, 5vw, 72px);
}

.ag-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
}

/* --- Buttons. Pills, sentence case, one weight. ----------------------------- */
.ag-home .ag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--ag-text);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  transition:
    background-color 160ms var(--ag-ease),
    border-color 160ms var(--ag-ease),
    color 160ms var(--ag-ease),
    transform 160ms var(--ag-ease),
    box-shadow 240ms var(--ag-ease);
}

.ag-home .ag-btn svg {
  transition: transform 240ms var(--ag-ease);
}

.ag-home .ag-btn:hover svg {
  transform: translateX(3px);
}

.ag-home .ag-btn--primary {
  background: var(--ag-cyan);
  color: #03101e;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 10px 28px -8px rgba(0, 178, 252, 0.55);
}

.ag-home .ag-btn--primary:hover {
  background: #2cc1ff;
  color: #03101e;
  text-decoration: none;
  transform: translateY(-1px);
}

.ag-home .ag-btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--ag-line-3);
  color: var(--ag-ink);
}

.ag-home .ag-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  text-decoration: none;
}

.ag-home .ag-btn--lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 1rem;
}

.ag-led {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--ag-cyan);
  box-shadow: 0 0 0 3px rgba(0, 178, 252, 0.18);
}

/* ================================================================================
   HERO
   ================================================================================ */
.ag-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(112px, 12vw, 168px);
  background: var(--ag-ground);
}

/* The light field the object sits in: Agon blue wide, cyan tight. */
.ag-hero__field {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 52% at 74% 44%, rgba(0, 92, 230, 0.30), transparent 70%),
    radial-gradient(22% 28% at 72% 42%, rgba(0, 178, 252, 0.20), transparent 70%),
    radial-gradient(60% 40% at 20% 0%, rgba(0, 43, 134, 0.22), transparent 70%);
}

.ag-hero__field::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, var(--ag-ground));
}

.ag-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}

.ag-hero__copy {
  position: relative;
  z-index: 2;
  padding-block: clamp(8px, 2vw, 40px);
}

.ag-hero__title {
  font-family: var(--ag-display);
  font-size: clamp(2.75rem, 1.3rem + 3.9vw, 4.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.042em;
  text-wrap: balance;
  max-width: 13ch;
}

.ag-hero__sub {
  margin-top: clamp(20px, 2.4vw, 28px);
  max-width: 34rem;
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--ag-ink-2);
  text-wrap: pretty;
}

.ag-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 3vw, 40px);
}

.ag-hero__note {
  margin-top: 18px;
  font-size: 0.8125rem;
  color: var(--ag-ink-3);
}

.ag-hero__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 620px;
  justify-self: end;
}

.ag-hero3d {
  position: absolute;
  inset: -2%;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1200ms var(--ag-ease), transform 1600ms var(--ag-ease);
}

.ag-hero3d.is-ready {
  opacity: 1;
  transform: none;
}

.ag-hero3d__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* No WebGL2: a still of the same object, drawn in CSS, so the stage is
   never empty. A hexagon in dark chrome with a cyan edge light. */
.ag-hero3d__still {
  display: none;
}

.ag-hero3d.is-fallback {
  opacity: 1;
  transform: none;
}

.ag-hero3d.is-fallback .ag-hero3d__still {
  display: block;
  position: absolute;
  inset: 24%;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
  background:
    linear-gradient(135deg, rgba(127, 211, 255, 0.55), transparent 38%),
    linear-gradient(315deg, rgba(0, 92, 230, 0.6), transparent 45%),
    linear-gradient(180deg, #1a2433, #070a10);
}

/* Floating facts over the object. They carry text, so they get a solid
   enough backing to read at 4.5:1 over any frame of the render. */
.ag-float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  padding: 10px 14px 10px 12px;
  border-radius: 12px;
  background: rgba(8, 11, 17, 0.78);
  border: 1px solid var(--ag-line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 32px -8px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ag-ink);
  animation: ag-bob 7s ease-in-out infinite alternate;
}

.ag-float--a { top: 7%; left: 4%; animation-delay: -1s; }

@keyframes ag-bob {
  from { transform: translateY(-5px); }
  to { transform: translateY(5px); }
}

/* ================================================================================
   AI AGENT (in development). Type and hairlines only: no frame, no cards.
   ================================================================================ */
.ag-ai {
  position: relative;
  isolation: isolate;
  padding: clamp(88px, 9vw, 140px) 0;
  background: var(--ag-ground);
}

.ag-ai::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(45% 55% at 18% 20%, rgba(0, 92, 230, 0.16), transparent 70%);
}

.ag-ai__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--ag-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ag-gold);
}

.ag-ai__tag .ag-led {
  background: var(--ag-gold);
  box-shadow: none;
}

.ag-ai__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.ag-ai__step {
  padding-top: 24px;
  border-top: 1px solid var(--ag-line-2);
}

.ag-ai__num {
  display: block;
  margin-bottom: 16px;
  font-family: var(--ag-mono);
  font-size: 0.8125rem;
  color: var(--ag-cyan);
}

.ag-ai__step p {
  margin-top: 12px;
  line-height: 1.6;
  color: var(--ag-ink-2);
  max-width: 34ch;
  text-wrap: pretty;
}

/* ================================================================================
   SECTIONS: one rhythm, a light per section so the long page never scrolls
   as one flat surface (the owner's standing preference), and a hairline
   between sections so each one starts as a section.
   ================================================================================ */
.ag-section {
  position: relative;
  isolation: isolate;
  padding: clamp(88px, 9vw, 144px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--ag-ground);
}

.ag-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--ag-light, none);
}

/* The Bots Terminal: the pitch beside a live chart. */
.ag-desk { --ag-light: radial-gradient(45% 60% at 100% 40%, rgba(0, 92, 230, 0.16), transparent 70%); }

.ag-desk__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.ag-desk__copy .ag-lede {
  margin-top: 20px;
  max-width: 60ch;
}

.ag-desk__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.ag-term {
  border-radius: 18px;
  border: 1px solid var(--ag-line-2);
  background: var(--ag-surface);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 40px 100px -30px rgba(0, 92, 230, 0.35),
    0 24px 64px -16px rgba(0, 0, 0, 0.8);
}

.ag-term__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ag-line);
}

.ag-term__name {
  font-family: var(--ag-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ag-ink);
}

.ag-term__mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--ag-ink-2);
}

.ag-term__mode .ag-led {
  animation: ag-pulse 2.4s ease-in-out infinite;
}

@keyframes ag-pulse {
  50% { box-shadow: 0 0 0 6px rgba(0, 178, 252, 0); }
}

.ag-term__chart {
  padding: 16px 18px;
  min-height: 360px;
  contain: layout paint;
}

.ag-term__wait {
  display: grid;
  place-items: center;
  min-height: 340px;
  margin: 0;
  font-size: 0.875rem;
  color: var(--ag-ink-3);
}

.ag-term__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid var(--ag-line);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ag-ink-3);
}

.ag-term__change {
  font-family: var(--ag-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ag-cyan-ink);
}

.ag-proof { --ag-light: radial-gradient(40% 50% at 8% 0%, rgba(231, 192, 120, 0.07), transparent 70%), radial-gradient(40% 40% at 100% 100%, rgba(0, 43, 134, 0.16), transparent 70%); }

.ag-engine { background: var(--ag-ground-2); --ag-light: radial-gradient(50% 40% at 50% 30%, rgba(0, 178, 252, 0.10), transparent 70%); }

.ag-engine__verdict {
  max-width: 68ch;
  margin: clamp(32px, 4vw, 48px) 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ag-ink-2);
}

.ag-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.ag-list li {
  padding: 12px 0;
  border-top: 1px solid var(--ag-line);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ag-ink);
}

.ag-safety { --ag-light: radial-gradient(35% 40% at 15% 80%, rgba(0, 178, 252, 0.08), transparent 70%), radial-gradient(35% 40% at 90% 20%, rgba(0, 43, 134, 0.2), transparent 70%); }

.ag-card__lede {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ag-ink-2);
}

/* ================================================================================
   PROOF: the ledger
   ================================================================================ */

.ag-ledger {
  margin-top: 24px;
  border: 1px solid var(--ag-line-2);
  border-radius: 18px;
  overflow: hidden;
  background: var(--ag-surface);
}

.ag-ledger__t {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.ag-ledger__t th,
.ag-ledger__t td {
  padding: 18px 22px;
  border-top: 1px solid var(--ag-line);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
  color: var(--ag-ink-2);
}

.ag-ledger__t thead th {
  border-top: 0;
  padding-block: 14px;
  background: #090c12;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ag-ink-3);
}

.ag-ledger__t tbody th {
  color: var(--ag-ink);
  font-weight: 600;
  width: 32%;
}

.ag-ledger__t tbody tr {
  transition: background-color 160ms var(--ag-ease);
}

.ag-ledger__t tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.ag-ledger__result {
  color: var(--ag-gold) !important;
  font-weight: 600;
}

.ag-ledger__result.is-pending {
  color: var(--ag-orange) !important;
}

.ag-ledger__sample {
  font-family: var(--ag-mono);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.ag-ledger__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 24px;
}

.ag-ledger__foot .ag-note {
  margin: 0;
}

/* ================================================================================
   ENGINE
   ================================================================================ */

.ag-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(56px, 6vw, 88px) !important;
}

/* The line the five stages sit on, lit at the start and fading where a
   strategy is least likely to get. */
.ag-rail::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--ag-cyan), rgba(127, 211, 255, 0.35) 60%, rgba(255, 255, 255, 0.12));
}

.ag-rail__step {
  position: relative;
  display: flex;
  flex-direction: column;
}

.ag-rail__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 19px;
}

.ag-rail__dot {
  order: -1;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ag-ground-2);
  border: 1.5px solid var(--ag-cyan-2);
  box-shadow: 0 0 0 4px var(--ag-ground-2);
}

.ag-rail__num {
  padding: 0 6px;
  background: var(--ag-ground-2);
  font-family: var(--ag-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ag-cyan-2);
}

.ag-rail__title {
  font-family: var(--ag-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ag-rail__meta {
  margin-top: 4px !important;
  font-size: 0.75rem;
  color: var(--ag-ink-3);
}

.ag-rail__body {
  margin-top: 12px !important;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ag-ink-2);
}

.ag-rail__more {
  margin-top: 14px;
}

.ag-rail__more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ag-cyan-2);
}

.ag-rail__more summary::-webkit-details-marker {
  display: none;
}

.ag-rail__more summary svg {
  transition: transform 240ms var(--ag-ease);
}

.ag-rail__more[open] summary svg {
  transform: rotate(180deg);
}

.ag-rail__more ul {
  display: grid;
  gap: 6px;
  margin-top: 10px !important;
}

.ag-rail__more li {
  position: relative;
  padding-left: 14px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ag-ink-2);
}

.ag-rail__more li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 1px;
  background: var(--ag-cyan-2);
}

/* ================================================================================
   SAFETY
   ================================================================================ */
.ag-safety__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

/* ================================================================================
   THE CLOSE
   ================================================================================ */
.ag-final {
  position: relative;
  padding: clamp(88px, 9vw, 144px) 0 clamp(56px, 6vw, 88px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--ag-ground);
}

.ag-final__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(56px, 8vw, 112px) clamp(20px, 4vw, 48px) clamp(96px, 12vw, 176px);
  border-radius: 28px;
  border: 1px solid var(--ag-line-2);
  background: radial-gradient(70% 60% at 50% 0%, #0a0f18, #04060a 70%);
  text-align: center;
  box-shadow: var(--ag-shadow);
}

/* A horizon of light: the rim of a dark planet rising from below. */
.ag-final__horizon {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 0;
  width: 150%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, 86%);
  border-radius: 50%;
  border-top: 1px solid rgba(160, 225, 255, 0.9);
  background: radial-gradient(50% 50% at 50% 50%, #020306 92%, rgba(0, 92, 230, 0.55) 99%, transparent 100%);
  box-shadow:
    0 -2px 18px rgba(127, 211, 255, 0.5),
    0 -40px 120px rgba(0, 92, 230, 0.45),
    0 -120px 220px rgba(0, 43, 134, 0.5);
}

.ag-final__title {
  max-width: 18ch;
  font-family: var(--ag-display);
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.ag-final__sub {
  max-width: 40rem;
  margin-top: 22px !important;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--ag-ink-2);
}

.ag-final__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.ag-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 20px;
  padding: clamp(20px, 2.4vw, 28px) clamp(20px, 3vw, 36px);
  border-radius: 18px;
  border: 1px solid var(--ag-line-2);
  background: var(--ag-surface);
}

.ag-contact__title {
  font-family: var(--ag-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ag-contact p {
  margin-top: 4px;
  font-size: 0.9375rem;
  color: var(--ag-ink-2);
}

.ag-home .ag-contact__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--ag-line-3);
  font-weight: 600;
  color: var(--ag-ink);
  text-decoration: none;
  transition: border-color 160ms var(--ag-ease), background-color 160ms var(--ag-ease);
}

.ag-home .ag-contact__link:hover {
  border-color: rgba(127, 211, 255, 0.6);
  background: rgba(0, 178, 252, 0.08);
  color: #fff;
  text-decoration: none;
}

/* ================================================================================
   FOOTER
   ================================================================================ */
.ag-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 6vw, 88px);
  border-top: 1px solid var(--ag-line);
  background: var(--ag-ground);
}

.ag-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 80px);
}

.ag-home .ag-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ag-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ag-ink);
  text-decoration: none;
}

.ag-footer__brand p {
  max-width: 36ch;
  margin-top: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ag-ink-3);
}

.ag-footer__social {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.ag-home .ag-footer__social a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--ag-line-2);
  color: var(--ag-ink-2);
  transition: color 160ms var(--ag-ease), border-color 160ms var(--ag-ease);
}

.ag-home .ag-footer__social a:hover {
  color: #fff;
  border-color: var(--ag-line-3);
}

.ag-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.ag-footer__h {
  margin-bottom: 14px !important;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ag-ink-3);
}

.ag-footer__col li + li {
  margin-top: 10px;
}

.ag-home .ag-footer__col a {
  font-size: 0.875rem;
  color: var(--ag-ink-2);
  text-decoration: none;
  transition: color 160ms var(--ag-ease);
}

.ag-home .ag-footer__col a:hover {
  color: #fff;
}

.ag-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(48px, 5vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--ag-line);
  font-size: 0.8125rem;
  color: var(--ag-ink-3);
}

.ag-footer__bottom svg {
  vertical-align: -2px;
  margin-inline: 4px;
  color: var(--ag-ink-3);
}

/* ================================================================================
   RESPONSIVE
   ================================================================================ */
@media (max-width: 1100px) {
  .ag-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 48px;
  }

  .ag-rail::before {
    display: none;
  }

  

  

  

  

  
}

@media (max-width: 991px) {
  .ag-hero {
    padding-top: 104px;
  }

  .ag-hero__grid,
  .ag-head--split,
  .ag-desk__grid,
  .ag-ai__steps,
  .ag-safety__grid,
  .ag-footer__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .ag-head--split {
    align-items: start;
    gap: 20px;
  }

  .ag-hero__title {
    max-width: 14ch;
  }

  .ag-hero__stage {
    justify-self: center;
    max-width: 560px;
    margin: -8px auto 0;
  }

  

  

  

  

  

  
}

@media (max-width: 640px) {
  .ag-hero__title {
    font-size: clamp(2.5rem, 1.6rem + 4.4vw, 3.25rem);
  }

  .ag-hero__actions .ag-btn,
  .ag-final__actions .ag-btn,
  .ag-desk__actions .ag-btn {
    flex: 1 1 100%;
  }

  .ag-float {
    max-width: 200px;
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  

  .ag-float--a { top: 2%; left: 0; }
  
  

  

    .ag-rail {
    grid-template-columns: minmax(0, 1fr);
  }

  

  

  

    

  

  

  

  

  

  

  

  

  /* The ledger becomes one labelled block per row. */
  .ag-ledger__t thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .ag-ledger__t tr {
    display: block;
    padding: 16px 18px;
    border-top: 1px solid var(--ag-line);
  }

  .ag-ledger__t tbody tr:first-child {
    border-top: 0;
  }

  .ag-ledger__t th,
  .ag-ledger__t td {
    display: block;
    width: auto !important;
    padding: 4px 0;
    border: 0;
  }

  .ag-ledger__t td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ag-ink-3);
  }

  .ag-ledger__sample {
    white-space: normal;
  }

  .ag-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

  .ag-contact {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-float{
    animation: none;
  }

  .ag-hero3d {
    transition: none;
  }
}
