/* =========================================================================
   AQUILIS — Design system
   Software, dados e IA para operações críticas
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
  --ink: #05070b;
  --ink-2: #080b11;
  --panel: #0a0e16;
  --panel-2: #0d131d;

  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #eaeef5;
  --text-2: #b8c1d0;
  --muted: #8a94a6;
  --faint: #5c6678;

  --gold: #e2b36a;
  --gold-2: #f3d8a6;
  --gold-dim: rgba(226, 179, 106, 0.12);
  --blue: #7fb0ff;
  --green: #5fe0a6;
  --red: #ff8080;

  --container: 1240px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --radius: 18px;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --font-serif: "Instrument Serif", "Georgia", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 80px;
}

/* -------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 10% -8%, rgba(226, 179, 106, 0.1), transparent 62%),
    radial-gradient(820px 620px at 92% 4%, rgba(72, 118, 210, 0.1), transparent 60%),
    linear-gradient(180deg, #070a11 0%, #05070b 45%, #05070b 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

strong {
  font-weight: 600;
}

::selection {
  background: var(--gold);
  color: #0b0906;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--gold);
  color: #100c06;
  font-weight: 600;
  font-size: 0.85rem;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

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

/* -------------------------------------------------------------------------
   3. Layout primitives
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding: clamp(76px, 10vw, 132px) 0;
}

.section--line {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.95rem, 3.6vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.lead {
  margin-top: 1.15rem;
  max-width: 64ch;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.7;
  color: var(--muted);
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.92rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease),
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    color 0.35s var(--ease);
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 0.35s var(--ease);
}

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

.btn--gold {
  background: linear-gradient(180deg, #f4d9a8, #ddae61);
  color: #140f07;
  box-shadow: 0 12px 34px -14px rgba(226, 179, 106, 0.65);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -16px rgba(226, 179, 106, 0.8);
}

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

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
}

.link-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* Reveal on scroll */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  will-change: opacity, transform;
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------------------------------
   4. Header / navigation
   ------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 2px;
  z-index: 120;
  background: linear-gradient(90deg, #8a6a2e, var(--gold), var(--gold-2));
  box-shadow: 0 0 18px rgba(226, 179, 106, 0.5);
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
}

.nav::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.nav.is-scrolled {
  background: rgba(5, 7, 11, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav.is-scrolled::after {
  opacity: 1;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--container);
  height: var(--nav-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  transition: height 0.45s var(--ease);
}

.nav.is-scrolled .nav__inner {
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.24em;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.89rem;
  color: var(--text-2);
  transition: color 0.25s, background-color 0.25s;
}

.nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav__link[aria-current="true"] {
  color: #fff;
}

.nav__link[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__cta {
  padding: 0.62rem 1.15rem;
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.menu-toggle span {
  position: relative;
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease);
}

.menu-toggle span::before {
  top: -5px;
}

.menu-toggle span::after {
  top: 5px;
}

.menu-open .menu-toggle span {
  background: transparent;
}

.menu-open .menu-toggle span::before {
  transform: translateY(5px) rotate(45deg);
}

.menu-open .menu-toggle span::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* Mobile overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  align-content: center;
  gap: 0.35rem;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  background: rgba(5, 7, 11, 0.97);
  backdrop-filter: blur(20px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.menu-open .mobile-menu {
  visibility: visible;
  opacity: 1;
}

.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 6vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.mobile-menu__link small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.mobile-menu__foot {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* -------------------------------------------------------------------------
   5. Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(116px, 14vh, 158px) 0 clamp(52px, 7vh, 80px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 74px 74px;
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 28%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 65% 55% at 50% 28%, #000 20%, transparent 78%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 4.5vw, 64px);
}

.hero__title {
  margin: 0 0 1.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.3vw, 3.55rem);
  line-height: 1.06;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  color: var(--gold);
  letter-spacing: -0.005em;
}

.hero__lead {
  max-width: 50ch;
  font-size: clamp(0.95rem, 1.06vw, 1rem);
  line-height: 1.72;
  color: var(--text-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
  margin-top: clamp(26px, 3vw, 38px);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.hero__meta li {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.hero__meta b {
  display: inline-block;
  margin-right: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

/* Orbit diagram */
.orbit {
  position: relative;
  width: min(100%, 620px);
  margin-inline: auto;
  aspect-ratio: 1;
}

.orbit__stage {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}

.orbit__rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orbit__rings circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}

.orbit__rings .ring-gold {
  stroke: rgba(226, 179, 106, 0.16);
}

.orbit__rings .ring-dashed {
  stroke: rgba(226, 179, 106, 0.3);
  stroke-width: 1.4;
  stroke-dasharray: 1 9;
  stroke-linecap: round;
  transform-origin: 300px 300px;
  animation: spin 120s linear infinite;
}

.orbit__rings .glow {
  fill: url(#coreGlow);
  stroke: none;
}

.orbit__link {
  stroke: rgba(226, 179, 106, 0.22);
  stroke-width: 1;
  stroke-dasharray: 3 7;
  animation: dashFlow 7s linear infinite;
}

.orbit__node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  transform: translate(-50%, -50%);
}

.orbit__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.46rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(9, 13, 20, 0.86);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  color: #dde4ef;
  white-space: nowrap;
  box-shadow: 0 14px 34px -20px #000;
  animation: float 8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  transition: border-color 0.35s, color 0.35s, background-color 0.35s;
}

.orbit__chip i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 9px var(--gold);
}

.orbit__node:hover .orbit__chip {
  border-color: rgba(226, 179, 106, 0.55);
  color: #fff;
  background: rgba(20, 16, 10, 0.92);
}

.orbit__core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  transform: translate(-50%, -50%);
}

.orbit__badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(226, 179, 106, 0.34);
  border-radius: 30px;
  background: linear-gradient(160deg, #141a23, #070a10);
  box-shadow:
    0 0 0 9px rgba(226, 179, 106, 0.035),
    0 30px 70px -22px rgba(226, 179, 106, 0.4);
}

.orbit__badge::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(243, 216, 166, 0.7), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.orbit__badge svg {
  width: 40px;
  height: 40px;
}

.orbit__badge::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(226, 179, 106, 0.18);
  border-radius: 38px;
  animation: pulseRing 4.5s ease-out infinite;
}

.orbit__core-label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  color: var(--faint);
}

.orbit__caption {
  display: none;
}

/* -------------------------------------------------------------------------
   6. Marquee
   ------------------------------------------------------------------------- */
.marquee {
  position: relative;
  padding: 1.05rem 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  padding-right: 2.6rem;
}

.marquee span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #7b8598;
  white-space: nowrap;
}

.marquee span::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-left: 2.6rem;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
  vertical-align: middle;
}

/* -------------------------------------------------------------------------
   7. Product explorer
   ------------------------------------------------------------------------- */
.explorer {
  display: grid;
  grid-template-columns: minmax(270px, 350px) 1fr;
  align-items: start;
  gap: clamp(24px, 4vw, 60px);
}

.plist {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.plist__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "idx name arrow"
    "idx desc arrow";
  column-gap: 0.9rem;
  row-gap: 0.1rem;
  padding: 1rem 0.25rem 1rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--text-2);
  transition: background-color 0.35s var(--ease), padding-left 0.35s var(--ease);
}

.plist__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 58%;
  border-radius: 2px;
  background: var(--gold);
  transform: translateY(-50%) scaleY(0);
  transition: transform 0.4s var(--ease);
}

.plist__item:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 75%);
}

.plist__item[aria-selected="true"] {
  padding-left: 1.2rem;
  background: linear-gradient(90deg, rgba(226, 179, 106, 0.09), transparent 72%);
}

.plist__item[aria-selected="true"]::before {
  transform: translateY(-50%) scaleY(1);
}

.plist__idx {
  grid-area: idx;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--faint);
  transition: color 0.3s;
}

.plist__item[aria-selected="true"] .plist__idx {
  color: var(--gold);
}

.plist__name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
}

.plist__desc {
  grid-area: desc;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--muted);
}

.plist__arrow {
  grid-area: arrow;
  align-self: center;
  width: 15px;
  height: 15px;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.plist__item:hover .plist__arrow,
.plist__item[aria-selected="true"] .plist__arrow {
  opacity: 1;
  transform: none;
}

.pdetail {
  min-width: 0;
}

.pdetail__copy {
  max-width: 62ch;
  margin-top: 2rem;
}

.pdetail__kicker {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.pdetail h3 {
  margin: 0.45rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.pdetail__desc {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text-2);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.4rem;
  margin: 1.4rem 0 1.6rem;
}

.feature-list li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.845rem;
  line-height: 1.45;
  color: var(--text-2);
}

.feature-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.5rem;
  border-radius: 1px;
  background: linear-gradient(135deg, #f2d29a, #c8944b);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(226, 179, 106, 0.45);
}

.pdetail.is-swapping .pdetail__copy,
.pdetail.is-swapping .app-window {
  opacity: 0;
  transform: translateY(6px);
}

.pdetail__copy,
.app-window {
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

/* App window */
.app-window {
  max-width: 660px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, #0c111a, #080b11 70%);
  box-shadow:
    0 50px 120px -60px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.app-window__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.app-window__dots {
  display: flex;
  gap: 0.3rem;
}

.app-window__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a3242;
}

.app-window__dots i:first-child {
  background: #3a2a2a;
}

.app-window__url {
  flex: 1;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #6c7688;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-window__body {
  display: grid;
  gap: 0.9rem;
  padding: clamp(14px, 2vw, 20px);
}

.app-window__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.app-window__label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6c7688;
}

.app-window__title {
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.52rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #909cb0;
  white-space: nowrap;
}

.pill--live {
  border-color: rgba(95, 224, 166, 0.32);
  background: rgba(95, 224, 166, 0.07);
  color: var(--green);
}

.pill--live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.9s ease-in-out infinite;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.kpi {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.022);
}

.kpi__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c7688;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi__value {
  display: inline-block;
  margin-top: 0.18rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #f0f4fa;
}

.kpi__delta {
  margin-left: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--green);
}

.kpi__delta.is-down {
  color: var(--red);
}

.chart {
  position: relative;
  height: 98px;
  padding: 6px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  overflow: hidden;
}

.chart svg {
  width: 100%;
  height: 100%;
}

.chart__line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawLine 1.1s var(--ease) forwards;
}

.chart__area {
  fill: url(#pdArea);
  animation: fadeIn 0.9s var(--ease) both;
}

.chart__dot {
  fill: var(--gold-2);
  filter: drop-shadow(0 0 6px rgba(226, 179, 106, 0.9));
}

.feed {
  display: grid;
  gap: 0.1rem;
}

.feed li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0.05rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #8c97a9;
}

.feed li:last-child {
  border-bottom: 0;
}

.feed__dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px currentColor;
}

.feed__dot--warn {
  background: var(--gold);
}

.feed__dot--err {
  background: var(--red);
}

.feed__time {
  margin-left: auto;
  color: #5c6678;
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
   8. Stats
   ------------------------------------------------------------------------- */
.stats {
  padding: clamp(44px, 6vw, 68px) 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(226, 179, 106, 0.035), transparent 70%);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding-inline: clamp(14px, 2.4vw, 34px);
  border-left: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.9vw, 3.1rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  color: #f4f7fb;
  font-variant-numeric: tabular-nums;
}

.stat strong em {
  font-style: normal;
  color: var(--gold);
}

.stat__label {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------------------------
   9. Sectors
   ------------------------------------------------------------------------- */
.sectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.sector {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.4rem;
  padding: clamp(20px, 3vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease);
}

.sectors .sector:nth-child(odd) {
  padding-right: clamp(18px, 3vw, 40px);
  border-right: 1px solid var(--line);
}

.sectors .sector:nth-child(even) {
  padding-left: clamp(18px, 3vw, 40px);
}

.sector__num {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--faint);
  padding-top: 0.35rem;
}

.sector h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.sector p {
  margin-top: 0.4rem;
  max-width: 46ch;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
}

.sector__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.sector__tags span {
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7d8798;
}

/* -------------------------------------------------------------------------
   10. AI section
   ------------------------------------------------------------------------- */
.ai {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

.deflist {
  display: grid;
  gap: 0;
  margin: 2rem 0 2.2rem;
  border-top: 1px solid var(--line);
}

.deflist li {
  padding: 1.1rem 0 1.1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid transparent;
  transition: border-color 0.35s, background-color 0.35s;
}

.deflist li:hover {
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(226, 179, 106, 0.05), transparent 70%);
}

.deflist h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.deflist h3 span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.deflist p {
  margin-top: 0.35rem;
  max-width: 52ch;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
}

.code-window {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, #0b1017, #070a0f);
  box-shadow: 0 40px 100px -60px #000;
  overflow: hidden;
}

.code-window__bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.code-window__file {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #7d8798;
}

.code-window__copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: #909cb0;
  transition: color 0.25s, border-color 0.25s;
}

.code-window__copy:hover {
  color: var(--gold);
  border-color: rgba(226, 179, 106, 0.4);
}

.code-window pre {
  margin: 0;
  padding: clamp(16px, 2vw, 22px);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.95vw, 0.76rem);
  line-height: 1.75;
  tab-size: 2;
  color: #c3cbd8;
}

.code-window .tok-key {
  color: var(--gold);
}

.code-window .tok-fn {
  color: #a9c7ff;
}

.code-window .tok-str {
  color: #92d6b4;
}

.code-window .tok-com {
  color: #5c6678;
  font-style: italic;
}

.code-window .tok-num {
  color: #e7a9a9;
}

.ai__note {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.ai__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.4rem;
}

.ai__chips span {
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b95a7;
}

/* -------------------------------------------------------------------------
   11. Process
   ------------------------------------------------------------------------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.steps::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
}

.step {
  position: relative;
  padding-top: 3.4rem;
}

.step__num {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(226, 179, 106, 0.35);
  border-radius: 50%;
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}

.step__out {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7f8a9c;
}

.step__out b {
  color: var(--gold);
  font-weight: 400;
}

/* -------------------------------------------------------------------------
   12. Manifesto
   ------------------------------------------------------------------------- */
.manifesto {
  padding: clamp(70px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}

.manifesto__inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.manifesto__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.75rem, 3.1vw, 2.6rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: #eef2f8;
  text-wrap: balance;
}

.manifesto__quote em {
  color: var(--gold);
  font-style: italic;
}

.manifesto__body p {
  margin-bottom: 1rem;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--muted);
}

.manifesto__body p:first-child {
  font-size: 1rem;
  color: var(--text-2);
}

.principles {
  display: grid;
  gap: 0;
  margin-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.principles li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--text-2);
}

.principles li span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--gold);
  padding-top: 0.2rem;
}

/* -------------------------------------------------------------------------
   13. Blog cards
   ------------------------------------------------------------------------- */
.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
  overflow: hidden;
}

.post {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(22px, 2.6vw, 30px);
  background: #080b11;
  transition: background-color 0.4s var(--ease);
}

.post:hover {
  background: #0b1017;
}

.post__meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.post__meta span:first-child {
  color: var(--gold);
}

.post h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.3s;
}

.post:hover h3 {
  color: var(--gold-2);
}

.post p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}

.post__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.post__more svg {
  width: 12px;
  height: 12px;
  transition: transform 0.35s var(--ease);
}

.post:hover .post__more svg {
  transform: translateX(4px);
}

/* -------------------------------------------------------------------------
   14. Contact
   ------------------------------------------------------------------------- */
.contact {
  position: relative;
  padding: clamp(76px, 10vw, 128px) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: min(900px, 100%);
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(226, 179, 106, 0.09), transparent 75%);
  pointer-events: none;
}

.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(360px, 0.82fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
}

.contact h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
}

.contact__list {
  display: grid;
  gap: 0;
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
  max-width: 420px;
}

.contact__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.contact__list span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.contact__list a,
.contact__list b {
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.3s;
}

.contact__list a:hover {
  color: var(--gold);
}

.form-card {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  box-shadow: 0 50px 120px -70px #000;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a94a6;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  transition: border-color 0.3s, background-color 0.3s;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a94a6' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}

.field select option {
  background: #0b1017;
  color: var(--text);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #4e5868;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(226, 179, 106, 0.55);
  background: rgba(226, 179, 106, 0.045);
}

.form-card .btn {
  width: 100%;
  margin-top: 0.3rem;
}

.form__status {
  min-height: 1.2rem;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--green);
}

.form__status.is-error {
  color: var(--red);
}

.form__hint {
  margin-top: 0.7rem;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--faint);
}

/* -------------------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------------------- */
.footer {
  padding: clamp(48px, 6vw, 76px) 0 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.footer__brand p {
  margin-top: 1rem;
  max-width: 34ch;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--muted);
}

.footer__social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #8a94a6;
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.footer__social a:hover {
  color: var(--gold);
  border-color: rgba(226, 179, 106, 0.45);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 15px;
  height: 15px;
}

.footer h4 {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6c7688;
}

.footer__col ul {
  display: grid;
  gap: 0.6rem;
}

.footer__col a {
  font-size: 0.85rem;
  color: var(--text-2);
  transition: color 0.3s;
}

.footer__col a:hover {
  color: var(--gold);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: #6c7688;
}

.footer__bottom span {
  color: var(--gold);
}

/* Back to top */
.to-top {
  position: fixed;
  right: clamp(16px, 2.5vw, 28px);
  bottom: clamp(16px, 2.5vw, 28px);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(8, 11, 17, 0.8);
  backdrop-filter: blur(10px);
  color: var(--text-2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--ease), color 0.3s, border-color 0.3s;
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  color: var(--gold);
  border-color: rgba(226, 179, 106, 0.45);
}

/* -------------------------------------------------------------------------
   16. Animations
   ------------------------------------------------------------------------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -40;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(0.86);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* -------------------------------------------------------------------------
   17. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .explorer {
    grid-template-columns: minmax(240px, 300px) 1fr;
  }
}

@media (max-width: 980px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: clamp(36px, 7vw, 56px);
  }

  .hero__visual {
    order: 2;
  }

  .orbit {
    width: min(100%, 480px);
  }

  .explorer {
    grid-template-columns: 1fr;
  }

  .plist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .plist__item {
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .plist__item::before {
    top: auto;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
  }

  .plist__item[aria-selected="true"]::before {
    transform: scaleX(1);
  }

  .plist__item[aria-selected="true"] {
    padding-left: 0.9rem;
  }

  .ai,
  .manifesto__inner,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .app-window {
    max-width: 100%;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.2rem 2rem;
  }

  .steps::before {
    display: none;
  }

  .step {
    padding-top: 3.2rem;
    border-top: 1px solid var(--line);
  }

  .step__num {
    top: -19px;
  }

  .posts {
    grid-template-columns: 1fr;
  }

  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 0;
  }

  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .sectors {
    grid-template-columns: 1fr;
  }

  .sectors .sector:nth-child(odd),
  .sectors .sector:nth-child(even) {
    padding-inline: 0;
    border-right: 0;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 116px;
  }

  .hero__meta {
    gap: 0.8rem 1.4rem;
  }

  .hero__meta li {
    font-size: 0.62rem;
  }

  .orbit {
    width: min(100%, 380px);
  }

  .orbit__chip {
    padding: 0.36rem 0.55rem;
    font-size: 0.54rem;
    letter-spacing: 0.08em;
    gap: 0.3rem;
  }

  .orbit__badge {
    width: 72px;
    height: 72px;
    border-radius: 22px;
  }

  .orbit__badge svg {
    width: 32px;
    height: 32px;
  }

  .orbit {
    aspect-ratio: 1 / 1.02;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .kpis {
    grid-template-columns: 1fr 1fr;
  }

  .kpis .kpi:last-child {
    grid-column: 1 / -1;
  }

  .section-head--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .plist {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .stat,
  .stat:nth-child(3) {
    padding-left: 0;
    padding-top: 1.4rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stat:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .eyebrow {
    gap: 0.5rem;
    font-size: 0.56rem;
    letter-spacing: 0.16em;
  }

  .eyebrow::before {
    width: 16px;
  }

  .code-window pre {
    font-size: 0.62rem;
    line-height: 1.7;
  }

  .chart {
    height: 86px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------------------------------
   18. Blog page
   ------------------------------------------------------------------------- */
.page-head {
  padding: clamp(120px, 16vh, 170px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.page-head .lead {
  max-width: 60ch;
}

.article {
  max-width: 760px;
  padding: clamp(40px, 6vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}

.article h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 0.6rem;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.article__meta span:first-child {
  color: var(--gold);
}

.article p {
  margin-bottom: 1.15rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-2);
}

.article h3 {
  margin: 2rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}

.article ul {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  padding-left: 1.1rem;
  list-style: none;
}

.article ul li {
  position: relative;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-2);
}

.article ul li::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.article blockquote {
  margin: 1.8rem 0;
  padding: 1.2rem 0 1.2rem 1.4rem;
  border-left: 2px solid var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.45;
  color: #e6ecf5;
}

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Blog index */
.post-index {
  max-width: 760px;
  padding: clamp(24px, 3.2vw, 34px) 0 8px;
}

.post-index__label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.4rem;
}

.post-index__item {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.post-index__item small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.post-index__item span {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
  transition: color 0.25s var(--ease);
}

.post-index__item em {
  justify-self: end;
  text-align: right;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.post-index__item:hover span {
  color: var(--gold);
}

@media (max-width: 720px) {
  .nav__actions--blog .btn--ghost {
    display: none;
  }

  .nav__actions--blog .btn--gold {
    padding: 0.55rem 0.8rem;
    font-size: 0.72rem;
  }

  .post-index__item {
    grid-template-columns: 1.7rem 1fr;
    gap: 0.8rem;
  }

  .post-index__item em {
    display: none;
  }
}

