/* =====================================================================
   TRADE AI GENIE — NEON FUTURISTIC DESIGN SYSTEM
   ---------------------------------------------------------------------
   1. Design tokens            6. Sections
   2. Base & typography        7. Footer
   3. Layout & ambient light   8. Motion
   4. Header & navigation      9. Responsive
   5. Shared components       10. Reduced motion
   All colours come from the tokens below — do not hard-code colours
   in individual rules; add a token instead.
   Illustrations: assets/images/*.svg  ·  UI icons: inline Lucide sprite
   ===================================================================== */

/* 1. DESIGN TOKENS ---------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #02091F;
  --bg-secondary: #07152F;
  --panel: #071A3D;
  --panel-2: #0A2147;

  /* Neon palette */
  --blue: #087BFF;
  --cyan: #00E5FF;
  --purple: #A000FF;
  --pink: #EC28FF;
  --green: #00E676;
  --gold: #FFD600;
  --red: #FF3D71;

  /* RGB channels for alpha use: rgba(var(--cyan-rgb), .3) */
  --bg-rgb: 2, 9, 31;
  --panel-rgb: 7, 26, 61;
  --panel2-rgb: 10, 33, 71;
  --blue-rgb: 8, 123, 255;
  --cyan-rgb: 0, 229, 255;
  --purple-rgb: 160, 0, 255;
  --pink-rgb: 236, 40, 255;
  --green-rgb: 0, 230, 118;
  --gold-rgb: 255, 214, 0;
  --red-rgb: 255, 61, 113;

  /* Text */
  --text: #FFFFFF;
  --text-2: #B8C9E8;
  --muted: #B8C9E8;          /* legacy alias */
  --muted2: #8298BC;

  /* Lines */
  --line: rgba(var(--cyan-rgb), .16);
  --line-strong: rgba(var(--cyan-rgb), .38);

  /* Gradients */
  --grad-primary: linear-gradient(115deg, #A000FF 0%, #C214FF 50%, #EC28FF 100%);
  --grad-blue: linear-gradient(115deg, #087BFF 0%, #00E5FF 100%);
  --grad-success: linear-gradient(115deg, #00B85E 0%, #00E676 100%);
  --grad-gold: linear-gradient(100deg, #FFF3A6 0%, #FFD600 45%, #FFB300 100%);
  --grad-neon-line: linear-gradient(90deg, transparent, var(--blue), var(--cyan), var(--purple), var(--pink), transparent);
  --grad-card: linear-gradient(150deg, rgba(var(--panel2-rgb), .92) 0%, rgba(var(--panel-rgb), .9) 55%, rgba(7, 21, 47, .94) 100%);

  /* Glows */
  --glow-blue: 0 0 0 1px rgba(var(--blue-rgb), .35), 0 0 18px rgba(var(--blue-rgb), .28), 0 0 42px rgba(var(--cyan-rgb), .10);
  --glow-cyan: 0 0 0 1px rgba(var(--cyan-rgb), .45), 0 0 18px rgba(var(--cyan-rgb), .30), 0 0 44px rgba(var(--cyan-rgb), .12);
  --glow-purple: 0 0 0 1px rgba(var(--purple-rgb), .40), 0 0 20px rgba(var(--purple-rgb), .32), 0 0 46px rgba(var(--pink-rgb), .14);
  --glow-green: 0 0 0 1px rgba(var(--green-rgb), .40), 0 0 16px rgba(var(--green-rgb), .30);
  --glow-gold: 0 0 0 1px rgba(var(--gold-rgb), .38), 0 0 18px rgba(var(--gold-rgb), .24);
  --shadow-depth: 0 18px 48px rgba(0, 0, 0, .38);

  /* Shape & type */
  --radius-card: 20px;
  --radius-control: 12px;
  --radius-pill: 999px;
  --focus-ring: 0 0 0 3px rgba(var(--cyan-rgb), .35);
  --font: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* 2. BASE & TYPOGRAPHY ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 94px; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(var(--blue-rgb), .16), transparent 70%),
    radial-gradient(ellipse 50% 35% at 92% 22%, rgba(var(--purple-rgb), .12), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #04112B 50%, var(--bg) 100%);
  background-color: var(--bg);
}
::selection { color: var(--text); background: rgba(var(--purple-rgb), .45); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--text); text-wrap: balance; }
p { color: var(--text-2); }

.gold-text {
  color: var(--gold);
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(var(--gold-rgb), .22));
}
.blue-text {
  color: var(--cyan);
  background: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 55%, var(--purple) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(var(--cyan-rgb), .25));
}
.overline {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 2.4px;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(var(--cyan-rgb), .35);
}
.overline::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad-blue); box-shadow: 0 0 8px var(--cyan); }
.section-heading.center .overline::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad-blue); box-shadow: 0 0 8px var(--cyan); }

/* 3. LAYOUT & AMBIENT LIGHT ------------------------------------------- */
.container { width: min(1200px, calc(100% - 48px)); margin: auto; }
.section { position: relative; padding: 104px 0; }
.section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background-image:
    linear-gradient(rgba(var(--cyan-rgb), .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--cyan-rgb), .025) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.section > .container { position: relative; z-index: 1; }
.page-glow {
  position: fixed; z-index: -1; width: 520px; height: 520px; border-radius: 50%;
  filter: blur(110px); opacity: .32; pointer-events: none;
}
.glow-one { background: rgba(var(--blue-rgb), .4); top: 8%; left: -300px; }
.glow-two { background: rgba(var(--purple-rgb), .32); right: -340px; top: 55%; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

/* 4. HEADER & NAVIGATION ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: 82px;
  background: rgba(var(--bg-rgb), .8);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--grad-neon-line); opacity: .7;
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  display: block; width: 210px; height: auto; max-height: 56px;
  object-fit: contain; object-position: left center;
  filter: drop-shadow(0 0 12px rgba(var(--cyan-rgb), .22));
  transition: filter .35s var(--ease), transform .35s var(--ease);
}
.brand:hover .brand-logo { filter: drop-shadow(0 0 20px rgba(var(--cyan-rgb), .55)); transform: translateY(-2px); }
.footer-logo { width: 210px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > a {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  border: 1px solid transparent;
  transition: color .22s, background .22s, border-color .22s, box-shadow .22s, text-shadow .22s;
}
.main-nav > a:hover { color: var(--text); background: rgba(var(--blue-rgb), .1); text-shadow: 0 0 10px rgba(var(--cyan-rgb), .6); }
.main-nav > a.active:not(.nav-cta) {
  color: var(--text);
  background: linear-gradient(135deg, rgba(var(--purple-rgb), .28), rgba(var(--blue-rgb), .18));
  border-color: rgba(var(--pink-rgb), .45);
  box-shadow: 0 0 16px rgba(var(--purple-rgb), .35), inset 0 0 12px rgba(var(--pink-rgb), .12);
  text-shadow: 0 0 10px rgba(var(--pink-rgb), .55);
}
.main-nav .nav-cta {
  margin-left: 10px; padding: 9px 16px; font-weight: 700; color: var(--text);
  background: var(--grad-primary);
  border: 1px solid rgba(var(--pink-rgb), .7);
  box-shadow: 0 0 18px rgba(var(--purple-rgb), .4);
}
.main-nav .nav-cta:hover { color: var(--text); background: var(--grad-primary); box-shadow: var(--glow-purple); transform: translateY(-1px); }

.menu-toggle {
  display: none; padding: 8px; cursor: pointer;
  border: 1px solid rgba(var(--cyan-rgb), .4); border-radius: 10px;
  background: rgba(var(--panel-rgb), .85); box-shadow: 0 0 14px rgba(var(--cyan-rgb), .2);
}
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 5. SHARED COMPONENTS ------------------------------------------------ */

/* Icons (Lucide sprite) */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
/* Neon icon tile — colour follows the nearest --accent */
.icon-tile {
  display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px;
  color: var(--accent-text, var(--accent, var(--cyan)));
  border: 1px solid rgba(var(--accent-rgb, var(--cyan-rgb)), .5);
  background: radial-gradient(circle at 30% 25%, rgba(var(--accent-rgb, var(--cyan-rgb)), .28), rgba(var(--accent-rgb, var(--cyan-rgb)), .06) 70%);
  box-shadow: 0 0 16px rgba(var(--accent-rgb, var(--cyan-rgb)), .25), inset 0 0 10px rgba(var(--accent-rgb, var(--cyan-rgb)), .15);
}
.icon-tile .icon { width: 21px; height: 21px; filter: drop-shadow(0 0 5px rgba(var(--accent-rgb, var(--cyan-rgb)), .7)); }

/* Buttons: .btn + .btn-primary | .btn-ghost (secondary) | .btn-success
   States: :hover, :active, :disabled / .is-disabled, .is-loading      */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 13px 24px; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius-control);
  font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--text);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), filter .22s, border-color .22s, background .22s;
}
.btn .icon { transition: transform .22s var(--ease); }
.btn:hover .icon { transform: translate(2px, -2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  background: var(--grad-primary);
  border-color: rgba(var(--pink-rgb), .7);
  box-shadow: 0 8px 24px rgba(var(--purple-rgb), .35), 0 0 22px rgba(var(--pink-rgb), .25), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary::before {
  content: ""; position: absolute; top: -60%; left: -35%; width: 25%; height: 220%;
  transform: rotate(25deg); background: rgba(255, 255, 255, .35); filter: blur(8px);
  transition: left .65s ease; pointer-events: none;
}
.btn-primary:hover { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 12px 30px rgba(var(--purple-rgb), .45), 0 0 34px rgba(var(--pink-rgb), .45); }
.btn-primary:hover::before { left: 125%; }
.btn-ghost, .btn-secondary {
  background: rgba(var(--panel-rgb), .75);
  border-color: rgba(var(--blue-rgb), .75);
  box-shadow: inset 0 0 18px rgba(var(--blue-rgb), .1);
}
.btn-ghost:hover, .btn-secondary:hover { transform: translateY(-3px); border-color: var(--cyan); background: rgba(var(--blue-rgb), .16); box-shadow: var(--glow-cyan); }
.btn-success { background: var(--grad-success); border-color: rgba(var(--green-rgb), .8); color: #00140A; box-shadow: 0 0 20px rgba(var(--green-rgb), .3); }
.btn-success:hover { transform: translateY(-3px); box-shadow: var(--glow-green), 0 0 36px rgba(var(--green-rgb), .35); }
.btn:disabled, .btn.is-disabled, .btn[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed; pointer-events: none; filter: grayscale(.4); box-shadow: none; transform: none;
}
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: var(--text);
  animation: spin .8s linear infinite;
}

.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--accent, var(--cyan)); transition: color .2s, text-shadow .2s, gap .2s; }
.text-link .icon { width: 16px; height: 16px; }
.text-link:hover { gap: 12px; color: var(--text); text-shadow: 0 0 12px rgba(var(--cyan-rgb), .7); }

/* Neon card base — shared by every panel on the site.
   Set --accent / --accent-rgb on a card to recolour its border & glow. */
.neon-card, .tech-card, .benefit, .smart-panel, .contact-panel, .ai-banner, .code-window, .ai-points > div, .media-frame {
  --accent: var(--cyan); --accent-rgb: var(--cyan-rgb);
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(var(--accent-rgb), .3);
  border-radius: var(--radius-card);
  background: var(--grad-card);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .3), 0 0 22px rgba(var(--accent-rgb), .08), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.neon-card::before, .tech-card::before, .benefit::before, .smart-panel::before, .contact-panel::before, .ai-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), .16), transparent 45%);
}
/* glowing accent edge along the top of a card */
.neon-card::after, .tech-card::after, .benefit::after {
  content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px var(--accent); opacity: .75; transition: opacity .3s, left .3s, right .3s;
}
.neon-card:hover, .tech-card:hover, .benefit:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), .8);
  box-shadow: var(--shadow-depth), 0 0 0 1px rgba(var(--accent-rgb), .35), 0 0 30px rgba(var(--accent-rgb), .25);
}
.neon-card:hover::after, .tech-card:hover::after, .benefit:hover::after { opacity: 1; left: 0; right: 0; }

/* Accent modifiers (usable on any card, badge or icon tile) */
.accent-blue   { --accent: var(--blue);   --accent-rgb: var(--blue-rgb); }
.accent-cyan   { --accent: var(--cyan);   --accent-rgb: var(--cyan-rgb); }
.accent-purple { --accent: var(--purple); --accent-rgb: var(--purple-rgb); --accent-text: #C77DFF; }
.accent-pink   { --accent: var(--pink);   --accent-rgb: var(--pink-rgb); }
.accent-green  { --accent: var(--green);  --accent-rgb: var(--green-rgb); }
.accent-gold   { --accent: var(--gold);   --accent-rgb: var(--gold-rgb); }

/* Status badges — .badge + .badge-success | -danger | -info | -premium */
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px;
  border-radius: var(--radius-pill); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--accent, var(--cyan)); border: 1px solid rgba(var(--accent-rgb, var(--cyan-rgb)), .55);
  background: rgba(var(--accent-rgb, var(--cyan-rgb)), .1); box-shadow: 0 0 12px rgba(var(--accent-rgb, var(--cyan-rgb)), .2);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge-success { --accent: var(--green); --accent-rgb: var(--green-rgb); }
.badge-danger  { --accent: var(--red);   --accent-rgb: var(--red-rgb); }
.badge-info    { --accent: var(--cyan);  --accent-rgb: var(--cyan-rgb); }
.badge-premium { --accent: var(--gold);  --accent-rgb: var(--gold-rgb); }

/* Form controls — ready for future forms */
.form-control, .neon-input {
  width: 100%; min-height: 46px; padding: 11px 14px; color: var(--text); font: inherit; font-size: 14px;
  background: rgba(var(--bg-rgb), .7); border: 1px solid rgba(var(--blue-rgb), .45); border-radius: var(--radius-control);
  transition: border-color .2s, box-shadow .2s;
}
.form-control::placeholder, .neon-input::placeholder { color: var(--muted2); }
.form-control:focus, .neon-input:focus { outline: none; border-color: var(--cyan); box-shadow: var(--glow-cyan); }

/* Data table — ready for future tables; wrap in .table-wrap for mobile scroll */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--grad-card); }
.neon-table { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--text); }
.neon-table th { padding: 14px 16px; text-align: left; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--cyan); border-bottom: 1px solid rgba(var(--blue-rgb), .7); box-shadow: 0 1px 12px rgba(var(--blue-rgb), .25); }
.neon-table td { padding: 13px 16px; border-bottom: 1px solid rgba(var(--cyan-rgb), .08); color: var(--text-2); }
.neon-table tr:hover td { background: rgba(var(--blue-rgb), .06); }
.neon-table .is-total td { color: var(--pink); font-weight: 700; }

/* Skeleton loader */
.skeleton { border-radius: 8px; background: linear-gradient(90deg, rgba(var(--panel2-rgb), .8) 25%, rgba(var(--blue-rgb), .18) 50%, rgba(var(--panel2-rgb), .8) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }

/* Focus */
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 8px; }

/* Section headings */
.section-heading { max-width: 780px; margin-bottom: 52px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading.center .overline { justify-content: center; }
.section-heading.center > p:not(.overline) { margin-inline: auto; }
.section-copy h2, .section-heading h2, .ai-content h2, .smart-panel h2, .contact-panel h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.1; letter-spacing: -1.6px; margin: 16px 0 22px; }
.section-copy > p:not(.overline), .section-heading > p:not(.overline), .ai-content > p:not(.overline), .smart-copy > p:not(.overline), .contact-panel p:not(.overline) { font-size: 16px; line-height: 1.75; color: var(--text-2); max-width: 640px; }

/* 6. SECTIONS --------------------------------------------------------- */

/* ---- Hero ---- */
.hero {
  isolation: isolate; min-height: 780px; display: flex; align-items: center; padding: 70px 0 110px; overflow: hidden;
  background:
    radial-gradient(ellipse at 74% 46%, rgba(var(--blue-rgb), .24), transparent 38%),
    radial-gradient(ellipse at 88% 72%, rgba(var(--purple-rgb), .18), transparent 32%),
    linear-gradient(135deg, var(--bg) 0%, #061638 58%, var(--bg) 100%);
}
.hero::before { display: none; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--grad-neon-line); box-shadow: 0 0 18px rgba(var(--cyan-rgb), .55);
}
.particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .85; }
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .4;
  background-image: linear-gradient(rgba(var(--cyan-rgb), .09) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--cyan-rgb), .09) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 50%, #000 5%, transparent 68%);
  mask-image: radial-gradient(ellipse at 72% 50%, #000 5%, transparent 68%);
}
/* vertical data streams */
.hero-streams { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-streams i {
  position: absolute; top: -200px; width: 1px; height: 180px;
  background: linear-gradient(180deg, transparent, rgba(var(--cyan-rgb), .9), transparent);
  box-shadow: 0 0 8px rgba(var(--cyan-rgb), .6); opacity: .55;
  animation: stream 7s linear infinite;
}
.hero-streams i:nth-child(1) { left: 54%; animation-delay: 0s; }
.hero-streams i:nth-child(2) { left: 63%; animation-delay: 2.4s; background: linear-gradient(180deg, transparent, rgba(var(--pink-rgb), .9), transparent); }
.hero-streams i:nth-child(3) { left: 71%; animation-delay: 4.1s; }
.hero-streams i:nth-child(4) { left: 82%; animation-delay: 1.2s; background: linear-gradient(180deg, transparent, rgba(var(--purple-rgb), .9), transparent); }
.hero-streams i:nth-child(5) { left: 91%; animation-delay: 3.3s; }
.hero-streams i:nth-child(6) { left: 8%; animation-delay: 5.2s; opacity: .3; }

.hero-layout { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; }
.hero-content { position: relative; }
.hero h1 {
  font-size: clamp(46px, 6.2vw, 84px); line-height: 1.02; letter-spacing: -3px;
  margin: 0 0 24px; text-shadow: 0 8px 42px rgba(0, 0, 0, .4);
}
.hero-subtitle { font: 600 20px/1.45 var(--display); color: #E4F3FF; margin-bottom: 12px; max-width: 560px; }
.hero-copy { max-width: 560px; font-size: 16px; line-height: 1.75; color: var(--text-2); }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 12px; margin-top: 48px; font-size: 11px; letter-spacing: 2.4px; color: var(--muted2); }
.proof-line { height: 2px; width: 44px; border-radius: 2px; background: var(--grad-blue); box-shadow: 0 0 10px var(--cyan); }

/* Hero visual — sphere centre sits at (50%, 45%) of the square */
.hero-visual { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1; justify-self: end; margin-right: -30px; }
.hero-core { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 30px 60px rgba(var(--blue-rgb), .25)); }
.orbit { position: absolute; top: 45%; left: 50%; border: 1px solid rgba(var(--cyan-rgb), .45); border-radius: 50%; transform: translate(-50%, -50%) rotate(-24deg); box-shadow: 0 0 16px rgba(var(--blue-rgb), .14); pointer-events: none; }
.orbit-a { width: 86%; height: 30%; }
.orbit-b { width: 96%; height: 44%; transform: translate(-50%, -50%) rotate(52deg); border-color: rgba(var(--purple-rgb), .5); }
.orbit-c { width: 70%; height: 70%; border-style: dashed; border-color: rgba(var(--cyan-rgb), .22); }
.planet-logo {
  position: absolute; z-index: 2; left: 50%; top: 42%; width: 38%; height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 10px rgba(var(--bg-rgb), .95)) drop-shadow(0 0 18px rgba(var(--cyan-rgb), .55));
}
.planet-label {
  position: absolute; z-index: 2; left: 0; right: 0; top: 53%; text-align: center;
  font: 700 12px/1.45 var(--display); letter-spacing: 3.5px; color: var(--text);
  text-shadow: 0 0 6px rgba(var(--bg-rgb), .9), 0 0 14px rgba(var(--cyan-rgb), .9);
}
.float-tag {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px;
  border: 1px solid rgba(var(--accent-rgb), .5); border-radius: 14px;
  background: rgba(var(--panel-rgb), .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 0 20px rgba(var(--accent-rgb), .22);
}
.float-tag .ft-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--accent); background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .45); }
.float-tag .ft-icon .icon { width: 17px; height: 17px; }
.float-tag b { display: block; font: 700 11px/1.2 var(--display); letter-spacing: 1.4px; color: var(--text); }
.float-tag small { display: block; font-size: 11px; line-height: 1.3; color: var(--text-2); }
.tag-ai { --accent: var(--pink); --accent-rgb: var(--pink-rgb); top: 11%; right: 2%; }
.tag-chain { --accent: var(--cyan); --accent-rgb: var(--cyan-rgb); bottom: 19%; right: -2%; }
.tag-web { --accent: var(--green); --accent-rgb: var(--green-rgb); top: 58%; left: -2%; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: 2.4px; color: var(--muted2); z-index: 3; }
.scroll-cue span { width: 1px; height: 26px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ---- Ticker ---- */
.ticker { overflow: hidden; padding: 16px 0; background: rgba(7, 21, 47, .9); border-block: 1px solid var(--line); box-shadow: inset 0 0 30px rgba(var(--blue-rgb), .08); }
.ticker-track { display: flex; align-items: center; justify-content: space-around; gap: 34px; min-width: 1200px; white-space: nowrap; will-change: transform; animation: ticker 30s linear infinite; }
.ticker span { font: 600 11px var(--display); letter-spacing: 2.4px; color: #B8DDFE; text-shadow: 0 0 12px rgba(var(--cyan-rgb), .3); }
.ticker .icon { width: 14px; height: 14px; color: var(--pink); fill: rgba(var(--pink-rgb), .35); filter: drop-shadow(0 0 6px var(--pink)); }

/* ---- About ---- */
.about-section .two-col { grid-template-columns: 1.05fr .95fr; }
.about-visual .overline { margin-bottom: 18px; }
.media-frame {
  --accent: var(--purple); --accent-rgb: var(--purple-rgb);
  padding: 18px; border-radius: 26px;
  background:
    linear-gradient(rgba(var(--cyan-rgb), .05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(var(--cyan-rgb), .05) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(circle at 50% 40%, rgba(var(--blue-rgb), .22), transparent 60%),
    var(--grad-card);
  box-shadow: var(--shadow-depth), var(--glow-purple);
}
.media-frame::after {  /* animated neon edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, var(--cyan), transparent 30%, transparent 70%, var(--pink)) 0 0 / 200% 200%;
  -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 exclude, linear-gradient(#000 0 0);
  animation: edge-shift 6s ease-in-out infinite alternate;
}
.media-frame img { display: block; width: 100%; animation: float-y 7s ease-in-out infinite; }
.media-caption {
  position: absolute; left: 22px; bottom: 20px; margin: 0; padding: 10px 16px;
  font: 700 13px/1.35 var(--display); letter-spacing: 2px; color: var(--text);
  border: 1px solid rgba(var(--gold-rgb), .4); border-radius: 12px;
  background: rgba(var(--bg-rgb), .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.media-caption b { color: var(--gold); text-shadow: 0 0 12px rgba(var(--gold-rgb), .45); }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.mission-grid > div {
  padding: 22px; border-radius: 18px; border: 1px solid rgba(var(--accent-rgb), .3);
  background: linear-gradient(150deg, rgba(var(--accent-rgb), .08), rgba(var(--panel-rgb), .6));
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.mission-grid > div:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 0 24px rgba(var(--accent-rgb), .18); }
.mission-grid h3 { font-size: 18px; margin: 16px 0 6px; }
.mission-grid p { font-size: 14px; line-height: 1.65; margin: 0; color: var(--text-2); }

/* ---- Technology cards (blue / purple / green / gold) ---- */
.tech-section { background: linear-gradient(180deg, transparent, rgba(7, 21, 47, .6), transparent); }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech-card {
  display: flex; flex-direction: column; padding: 26px 24px 28px;
  background: radial-gradient(circle at 85% 0%, rgba(var(--accent-rgb), .2), transparent 55%), var(--grad-card);
}
.tech-card:nth-child(1) { --accent: var(--blue);   --accent-rgb: var(--blue-rgb); }
.tech-card:nth-child(2) { --accent: var(--purple); --accent-rgb: var(--purple-rgb); --accent-text: #C77DFF; }
.tech-card:nth-child(3) { --accent: var(--green);  --accent-rgb: var(--green-rgb); }
.tech-card:nth-child(4) { --accent: var(--gold);   --accent-rgb: var(--gold-rgb); }
.tech-card:nth-child(2) .text-link { color: var(--pink); }
.card-art { width: 96px; height: 96px; margin: -4px 0 18px -10px; filter: drop-shadow(0 8px 18px rgba(var(--accent-rgb), .35)); transition: transform .4s var(--ease); }
.tech-card:hover .card-art { transform: translateY(-6px) scale(1.06); }
.card-number { position: absolute; right: 22px; top: 22px; font: 700 13px var(--display); color: var(--accent-text, var(--accent)); opacity: .8; }
.tech-card h3 { font-size: 20px; margin-bottom: 10px; }
.tech-card p { font-size: 14px; line-height: 1.65; color: var(--text-2); flex: 1; }

/* ---- Blockchain / connectivity ---- */
.blockchain-section { background: radial-gradient(ellipse at 78% 50%, rgba(var(--blue-rgb), .13), transparent 40%); }
.blockchain-section .two-col { grid-template-columns: 1fr 1fr; }
.feature-list { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-list > div {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px;
  border: 1px solid rgba(var(--accent-rgb), .22); border-radius: 16px; background: rgba(var(--panel-rgb), .55);
  transition: border-color .25s, background .25s, box-shadow .25s, transform .25s;
}
.feature-list > div:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), .65); background: rgba(var(--panel-rgb), .9); box-shadow: 0 0 22px rgba(var(--accent-rgb), .18); }
.feature-list .icon-tile { width: 42px; height: 42px; border-radius: 12px; }
.feature-list b { display: block; font: 700 11px/1 var(--display); letter-spacing: 1.5px; color: var(--accent-text, var(--accent)); margin-bottom: 6px; }
.feature-list strong, .feature-list small { display: block; }
.feature-list strong { font-size: 14.5px; line-height: 1.35; color: var(--text); }
.feature-list small { font-size: 13px; line-height: 1.5; margin-top: 4px; color: var(--muted2); }
.network-visual { position: relative; }
.network-svg { display: block; width: 100%; height: auto; overflow: visible; }
.network-svg text { fill: var(--text); font: 700 13px var(--display); }
.network-svg .net-hub-text { font-size: 14px; letter-spacing: 2.5px; }
.net-node rect { filter: drop-shadow(0 0 8px currentColor); }
.net-orbit { transform-box: fill-box; transform-origin: center; animation: spin 70s linear infinite; }
.net-flow { animation: dash-flow 1.6s linear infinite; }
.net-flow-slow { animation-duration: 3.2s; }
.net-dot { animation: dot-blink 2.6s ease-in-out infinite; }
.net-pulse { transform-box: fill-box; transform-origin: center; animation: ring-pulse 3s ease-out infinite; }
.block-caption { margin-top: 6px; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: 3px; color: var(--muted2); }

/* ---- AI banner ---- */
.ai-banner {
  --accent: var(--purple); --accent-rgb: var(--purple-rgb);
  display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 48px; padding: 48px 56px 48px 40px; border-radius: 28px;
  background: radial-gradient(ellipse at 22% 50%, rgba(var(--blue-rgb), .26), transparent 45%), radial-gradient(ellipse at 88% 12%, rgba(var(--purple-rgb), .28), transparent 45%), linear-gradient(120deg, #0B1D52 0%, #1A0B4F 55%, var(--bg-secondary) 100%);
  box-shadow: var(--shadow-depth), var(--glow-purple);
}
.ai-banner::after { /* slow light sweep */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(var(--cyan-rgb), .08) 45%, rgba(var(--pink-rgb), .1) 55%, transparent 70%) 0 0 / 250% 100%;
  animation: light-sweep 9s ease-in-out infinite;
}
.ai-graphic { position: relative; display: grid; place-items: center; min-height: 360px; }
.holo-cube { position: relative; z-index: 1; width: min(100%, 400px); animation: float-y 6s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(var(--purple-rgb), .35)); }
.ai-core {
  position: absolute; z-index: 2; left: 50%; top: 49%; transform: translate(-50%, -50%);
  font: 700 30px var(--display); letter-spacing: 2px; color: var(--text);
  text-shadow: 0 0 10px rgba(var(--cyan-rgb), .9), 0 0 24px rgba(var(--purple-rgb), .9);
  animation: float-y 6s ease-in-out infinite;
}
.ai-ring { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(var(--cyan-rgb), .35); border-radius: 50%; pointer-events: none; }
.ring-one { width: 92%; aspect-ratio: 1; transform: translate(-50%, -50%); border-style: dashed; }
.ring-two { width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-color: rgba(var(--pink-rgb), .3); }
.ai-content { position: relative; }
.ai-content h2 { font-size: clamp(32px, 3.6vw, 46px); }
.ai-content .btn { margin-top: 14px; }
.ai-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.ai-points > div { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; }
.ai-points b { font-size: 14px; line-height: 1.35; color: var(--text); }
.ai-points > div:hover { border-color: rgba(var(--accent-rgb), .75); box-shadow: 0 0 24px rgba(var(--accent-rgb), .22); transform: translateY(-4px); }

/* ---- Decentralization ---- */
.decentral-section { background: linear-gradient(180deg, transparent, rgba(7, 21, 47, .55), transparent); }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit { padding: 26px 24px; }
.benefit:nth-child(1) { --accent: var(--cyan);   --accent-rgb: var(--cyan-rgb); }
.benefit:nth-child(2) { --accent: var(--purple); --accent-rgb: var(--purple-rgb); --accent-text: #C77DFF; }
.benefit:nth-child(3) { --accent: var(--green);  --accent-rgb: var(--green-rgb); }
.benefit:nth-child(4) { --accent: var(--pink);   --accent-rgb: var(--pink-rgb); }
.benefit-top { display: flex; align-items: center; justify-content: space-between; }
.benefit-num { font: 700 13px var(--display); color: var(--accent-text, var(--accent)); opacity: .85; }
.benefit h3 { font-size: 18px; margin: 22px 0 8px; }
.benefit p { font-size: 14px; line-height: 1.65; margin: 0; color: var(--text-2); }

/* ---- Smart contracts / automation ---- */
.smart-panel {
  --accent: var(--purple); --accent-rgb: var(--purple-rgb);
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 52px; border-radius: 28px;
  background: radial-gradient(circle at 100% 0%, rgba(var(--blue-rgb), .18), transparent 40%), var(--grad-card);
  box-shadow: var(--shadow-depth), var(--glow-purple);
}
.smart-copy { position: relative; }
.smart-copy .text-link { color: var(--cyan); }
.about-section h2 { font-size: clamp(32px, 3.4vw, 44px); }
.smart-highlights { list-style: none; margin: 24px 0 26px; padding: 0; display: grid; gap: 10px; }
.smart-highlights li { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; color: var(--text); }
.smart-highlights .icon-tile { width: 38px; height: 38px; border-radius: 11px; }
.smart-highlights .icon-tile .icon { width: 18px; height: 18px; }

.code-window {
  --accent: var(--cyan); --accent-rgb: var(--cyan-rgb);
  border-radius: 18px; background: rgba(var(--bg-rgb), .94); border-color: rgba(var(--cyan-rgb), .45);
  box-shadow: var(--shadow-depth), 0 0 0 1px rgba(var(--cyan-rgb), .15), 0 0 40px rgba(var(--cyan-rgb), .18), 0 0 80px rgba(var(--purple-rgb), .15);
}
.window-top { height: 46px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: rgba(var(--panel-rgb), .95); border-bottom: 1px solid var(--line); }
.window-top > span { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.window-top > span:nth-child(2) { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.window-top > span:nth-child(3) { background: var(--green); box-shadow: 0 0 8px var(--green); }
.window-tab { margin-left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px 8px 0 0; font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--cyan); background: rgba(var(--bg-rgb), .9); border: 1px solid var(--line); border-bottom: 0; align-self: flex-end; }
.window-tab .icon { width: 14px; height: 14px; }
.code-lines { padding: 20px 0; font: 14px/2.1 ui-monospace, "Cascadia Code", "Consolas", monospace; color: #DCEBFF; counter-reset: none; }
.code-lines p { margin: 0; padding: 0 22px; color: inherit; white-space: nowrap; }
.code-lines i { display: inline-block; width: 34px; font-style: normal; color: #4F6890; user-select: none; }
.code-lines em { font-style: normal; color: var(--pink); }
.code-lines b { color: var(--gold); }
.code-lines u { text-decoration: none; color: var(--cyan); }
.code-lines var { font-style: normal; color: #9EB7FF; }
.code-lines strong { color: var(--green); text-shadow: 0 0 10px rgba(var(--green-rgb), .5); }
.code-lines .line-active { background: linear-gradient(90deg, rgba(var(--cyan-rgb), .12), transparent 80%); box-shadow: inset 2px 0 0 var(--cyan); }
.caret { display: inline-block; width: 8px; height: 16px; margin-left: 4px; vertical-align: -3px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: blink 1s steps(1) infinite; }
.exec-panel { margin: 0 16px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(var(--panel-rgb), .7); display: grid; gap: 8px; }
.exec-row { display: flex; align-items: center; gap: 10px; font: 12.5px ui-monospace, "Consolas", monospace; color: var(--text-2); }
.exec-row .icon { width: 16px; height: 16px; color: var(--cyan); }
.exec-row b { margin-left: auto; padding: 2px 10px; border-radius: var(--radius-pill); font: 700 10px var(--font); letter-spacing: 1.2px; text-transform: uppercase; }
.exec-row .ok { color: var(--green); background: rgba(var(--green-rgb), .12); border: 1px solid rgba(var(--green-rgb), .45); }
.exec-row .run { color: var(--gold); background: rgba(var(--gold-rgb), .1); border: 1px solid rgba(var(--gold-rgb), .45); animation: dot-blink 1.6s ease-in-out infinite; }
.exec-bar { height: 4px; margin-top: 4px; border-radius: 4px; background: rgba(var(--cyan-rgb), .12); overflow: hidden; }
.exec-bar i { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink)); box-shadow: 0 0 10px var(--cyan); animation: progress 2.6s var(--ease) infinite; }
.code-status { padding: 12px 20px; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: 1.2px; color: var(--muted2); }
.code-status span { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); color: var(--green); box-shadow: 0 0 10px var(--green); animation: status-pulse 2.4s ease-in-out infinite; }

/* ---- Roadmap timeline ---- */
.roadmap-section { background: linear-gradient(180deg, rgba(7, 21, 47, .45), rgba(var(--bg-rgb), .6)); }
.roadmap-grid { --gap: 26px; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px var(--gap); }
.roadmap-item {
  --accent: var(--cyan); --accent-rgb: var(--cyan-rgb);
  position: relative; padding: 26px; border-radius: var(--radius-card);
  border: 1px solid rgba(var(--accent-rgb), .28);
  background: radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), .14), transparent 50%), var(--grad-card);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .3);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.roadmap-item:nth-child(3n+1) { --accent: var(--blue);   --accent-rgb: var(--blue-rgb); }
.roadmap-item:nth-child(3n+2) { --accent: var(--purple); --accent-rgb: var(--purple-rgb); --accent-text: #C77DFF; }
.roadmap-item:nth-child(3n)   { --accent: var(--cyan);   --accent-rgb: var(--cyan-rgb); }
.roadmap-item.reveal.visible:hover, .roadmap-item:hover { transform: translateY(-6px); border-color: rgba(var(--accent-rgb), .75); box-shadow: var(--shadow-depth), 0 0 28px rgba(var(--accent-rgb), .22); }
.road-node {
  position: relative; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 50%;
  color: var(--accent-text, var(--accent)); background: radial-gradient(circle at 35% 30%, rgba(var(--accent-rgb), .4), rgba(var(--bg-rgb), .95) 70%);
  border: 1.5px solid var(--accent); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .1), 0 0 22px rgba(var(--accent-rgb), .45);
}
.road-node .icon { width: 22px; height: 22px; filter: drop-shadow(0 0 5px currentColor); }
/* connector from this node to the next card's node (3-column layout) */
.roadmap-item::after {
  content: ""; position: absolute; top: 52px; left: 80px; right: calc(-1 * var(--gap) - 26px); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), .15)) , rgba(var(--cyan-rgb), .1);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), .5);
}
.roadmap-item:nth-child(3n)::after, .roadmap-item:last-child::after { display: none; }
.phase {
  display: inline-block; padding: 4px 12px; font: 700 11px var(--display); letter-spacing: 1.8px;
  color: var(--accent-text, var(--accent)); border: 1px solid rgba(var(--accent-rgb), .5); border-radius: var(--radius-pill);
  background: rgba(var(--accent-rgb), .1); text-shadow: 0 0 10px rgba(var(--accent-rgb), .5);
}
.roadmap-item h3 { font-size: 19px; margin: 14px 0 8px; }
.roadmap-item p { font-size: 14px; line-height: 1.65; margin: 0; color: var(--text-2); }
.roadmap-note { text-align: center; font-size: 12px; color: var(--muted2); margin: 34px 0 0; }

/* ---- FAQ ---- */
.faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; }
.faq-list { display: grid; gap: 12px; align-content: start; }
.faq-list details {
  border: 1px solid rgba(var(--cyan-rgb), .16); border-radius: 16px; background: rgba(var(--panel-rgb), .55);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.faq-list details:hover { border-color: rgba(var(--cyan-rgb), .42); }
.faq-list details[open] { border-color: rgba(var(--pink-rgb), .5); background: rgba(var(--panel-rgb), .9); box-shadow: 0 0 22px rgba(var(--purple-rgb), .2); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 22px; font-size: 15px; font-weight: 600; color: #EAF5FF; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  color: var(--cyan); border: 1px solid rgba(var(--cyan-rgb), .4); background: rgba(var(--cyan-rgb), .06);
  transition: transform .25s, color .25s, border-color .25s;
}
.faq-list summary > span .icon { width: 16px; height: 16px; }
.faq-list details[open] summary > span { transform: rotate(45deg); color: var(--pink); border-color: rgba(var(--pink-rgb), .6); }
.faq-list details p { margin: 0; padding: 0 64px 20px 22px; font-size: 14.5px; line-height: 1.7; color: var(--text-2); }

/* ---- Contact ---- */
.contact-panel {
  --accent: var(--gold); --accent-rgb: var(--gold-rgb);
  display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 56px; border-radius: 28px;
  background: radial-gradient(circle at 88% 50%, rgba(var(--purple-rgb), .3), transparent 38%), radial-gradient(circle at 15% 100%, rgba(var(--blue-rgb), .18), transparent 35%), var(--grad-card);
  box-shadow: var(--shadow-depth), var(--glow-gold);
}
.contact-panel::after { /* concentric signal rings */
  content: ""; position: absolute; z-index: -1; right: -60px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%); border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 38px, rgba(var(--cyan-rgb), .1) 39px 40px);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}
.contact-copy { position: relative; }
.contact-panel h2 { margin-bottom: 12px; }
.contact-panel p { max-width: 540px; }
.contact-action { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 220px; }
.contact-icon {
  display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 20px; border-radius: 22px; color: var(--gold);
  border: 1px solid rgba(var(--gold-rgb), .55); background: radial-gradient(circle at 30% 25%, rgba(var(--gold-rgb), .3), rgba(var(--gold-rgb), .05) 70%);
  box-shadow: 0 0 30px rgba(var(--gold-rgb), .3); animation: float-y 5s ease-in-out infinite;
}
.contact-icon .icon { width: 32px; height: 32px; filter: drop-shadow(0 0 6px var(--gold)); }
.contact-action small { display: block; max-width: 230px; margin-top: 12px; font-size: 11px; color: var(--muted2); }

/* 7. FOOTER ----------------------------------------------------------- */
.site-footer { position: relative; padding: 48px 0 22px; background: linear-gradient(180deg, rgba(var(--bg-rgb), .55), rgba(var(--bg-rgb), .85)); border-top: 1px solid var(--line); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--grad-neon-line); opacity: .7; }
.footer-main { display: grid; grid-template-columns: 1fr 1.2fr 1.5fr; gap: 40px; align-items: center; padding-bottom: 35px; }
.footer-main > p { max-width: 300px; margin: 0; font-size: 13px; color: var(--text-2); }
.footer-links { display: flex; justify-content: flex-end; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-2); transition: color .2s, text-shadow .2s; }
.footer-links a:hover { color: var(--cyan); text-shadow: 0 0 10px rgba(var(--cyan-rgb), .6); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted2); }
.footer-bottom a { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); }

/* 8. MOTION ----------------------------------------------------------- */
/* Scroll-reveal system lives in section 11 (MOTION LAYER). */

.hero-grid { animation: grid-drift 28s linear infinite; }
.brand-logo { animation: logo-breathe 5s ease-in-out infinite; }
.orbit-a { animation: orbit-spin 22s linear infinite; }
.orbit-b { animation: orbit-spin-reverse 30s linear infinite; }
.orbit-c { animation: orbit-spin 44s linear infinite; }
.hero-core, .planet-logo, .planet-label { animation: float-y 7s ease-in-out infinite; }
.float-tag { animation: float-y 5s ease-in-out infinite; }
.tag-chain { animation-delay: 1.2s; } .tag-web { animation-delay: 2.1s; }
.ring-one { animation: ring-spin 40s linear infinite; }
.ring-two { animation: ring-spin-reverse 28s linear infinite; }

@keyframes ticker { to { transform: translateX(-25%); } }
@keyframes orbit-spin { from { transform: translate(-50%, -50%) rotate(-24deg); } to { transform: translate(-50%, -50%) rotate(336deg); } }
@keyframes orbit-spin-reverse { from { transform: translate(-50%, -50%) rotate(52deg); } to { transform: translate(-50%, -50%) rotate(-308deg); } }
@keyframes ring-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes ring-spin-reverse { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes float-y { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes stream { from { transform: translateY(0); } to { transform: translateY(1200px); } }
@keyframes dash-flow { to { stroke-dashoffset: -44; } }
@keyframes dot-blink { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes ring-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
@keyframes status-pulse { 0%, 100% { box-shadow: 0 0 4px currentColor, 0 0 0 0 rgba(var(--green-rgb), .5); } 50% { box-shadow: 0 0 10px currentColor, 0 0 0 5px rgba(var(--green-rgb), 0); } }
@keyframes progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes edge-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes light-sweep { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
@keyframes logo-breathe { 0%, 100% { filter: drop-shadow(0 0 8px rgba(var(--cyan-rgb), .14)); } 50% { filter: drop-shadow(0 0 17px rgba(var(--cyan-rgb), .34)); } }
@keyframes grid-drift { from { background-position: 0 0; } to { background-position: 58px 58px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 9. RESPONSIVE ------------------------------------------------------- */
@media (max-width: 1180px) {
  .main-nav { gap: 2px; }
  .main-nav > a { padding: 7px 9px; font-size: 12.5px; }
  .brand-logo { width: 180px; }
  .hero-visual { margin-right: 0; }
  .tag-chain { right: 0; } .tag-web { left: 0; }
}
@media (max-width: 1050px) {
  .two-col, .about-section .two-col { gap: 48px; }
  .tech-grid, .benefit-grid, .ai-points { grid-template-columns: repeat(2, 1fr); }
  .ai-banner { gap: 28px; padding: 36px; }
  .smart-panel { gap: 36px; padding: 38px; }
  .feature-list { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 900px) {
  .container { width: min(100% - 40px, 680px); }
  .section { padding: 84px 0; }
  .site-header { height: 72px; }
  .menu-toggle { display: block; z-index: 102; }
  .main-nav {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; z-index: 101;
    visibility: hidden; opacity: 0; transform: translateY(-12px); pointer-events: none;
    transition: opacity .3s ease, transform .4s var(--ease-out), visibility 0s linear .4s;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 18px 22px;
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg));
    border-bottom: 1px solid var(--line-strong); box-shadow: 0 20px 40px rgba(0, 0, 0, .45), 0 10px 30px rgba(var(--blue-rgb), .1);
  }
  .main-nav.open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .3s ease, transform .4s var(--ease-out), visibility 0s; }
  .main-nav > a { opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .35s var(--ease-out), background .22s, color .22s; }
  .main-nav.open > a { opacity: 1; transform: none; }
  .main-nav.open > a:nth-child(2) { transition-delay: .04s; } .main-nav.open > a:nth-child(3) { transition-delay: .08s; } .main-nav.open > a:nth-child(4) { transition-delay: .12s; }
  .main-nav.open > a:nth-child(5) { transition-delay: .16s; } .main-nav.open > a:nth-child(6) { transition-delay: .2s; } .main-nav.open > a:nth-child(7) { transition-delay: .24s; } .main-nav.open > a:nth-child(8) { transition-delay: .28s; }
  .main-nav > a { padding: 12px 14px; font-size: 15px; }
  .main-nav .nav-cta { margin: 10px 0 0; justify-content: center; }

  .hero { min-height: 0; padding: 56px 0 96px; }
  .hero-layout { grid-template-columns: 1fr; gap: 10px; }
  .hero-visual { justify-self: center; max-width: 520px; }
  .hero h1 { letter-spacing: -2px; }
  .hero-proof { margin-top: 34px; }
  .scroll-cue { left: 20px; transform: none; }

  .two-col, .about-section .two-col, .blockchain-section .two-col, .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .network-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .ai-banner { grid-template-columns: 1fr; padding: 30px; gap: 4px; }
  .ai-graphic { min-height: 0; max-width: 380px; width: 100%; margin: 0 auto; }
  .smart-panel { grid-template-columns: 1fr; padding: 30px; }
  .roadmap-grid { grid-template-columns: 1fr 1fr; }
  .roadmap-item:nth-child(3n)::after { display: block; }
  .roadmap-item:nth-child(2n)::after { display: none; }
  .faq-layout { gap: 24px; }
  .contact-panel { flex-direction: column; align-items: flex-start; padding: 34px; }
  .contact-action { align-items: flex-start; text-align: left; }
  .footer-main { grid-template-columns: 1fr; gap: 18px; }
  .footer-bottom { display: grid; gap: 10px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  .brand-logo { width: 168px; max-height: 48px; }
  .hero h1 { font-size: clamp(42px, 12.5vw, 60px); }
  .hero-subtitle { font-size: 18px; }
  .hero-copy { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: space-between; }
  .float-tag { padding: 6px 10px 6px 6px; gap: 8px; border-radius: 11px; }
  .float-tag .ft-icon { width: 26px; height: 26px; border-radius: 8px; }
  .float-tag .ft-icon .icon { width: 14px; height: 14px; }
  .float-tag b { font-size: 9px; }
  .float-tag small { display: none; }
  .tag-ai { top: 6%; }
  .planet-label { font-size: 9px; letter-spacing: 2.5px; }
  .section-copy h2, .section-heading h2, .smart-panel h2, .contact-panel h2, .ai-content h2 { font-size: 32px; letter-spacing: -1px; }
  .tech-grid, .benefit-grid, .ai-points, .mission-grid, .feature-list { grid-template-columns: 1fr; }
  .media-frame { padding: 10px; border-radius: 20px; }
  .media-caption { left: 14px; bottom: 12px; font-size: 11px; padding: 8px 12px; }
  .ai-banner, .smart-panel, .contact-panel { padding: 22px; border-radius: 22px; }
  .code-lines { font-size: 12.5px; }
  .code-lines p { padding: 0 14px; }
  .code-lines i { width: 26px; }
  .window-tab { margin-left: 8px; font-size: 10px; }
  /* timeline becomes vertical */
  .roadmap-grid { grid-template-columns: 1fr; gap: 18px; }
  .roadmap-item, .roadmap-item:nth-child(n) { padding: 22px 22px 22px 92px; }
  .road-node { position: absolute; left: 20px; top: 22px; margin: 0; }
  .roadmap-item::after, .roadmap-item:nth-child(n)::after {
    display: block; top: 80px; left: 46px; right: auto; bottom: calc(-18px - 22px); width: 2px; height: auto;
    background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), .15));
  }
  .roadmap-item:last-child::after { display: none; }
  .roadmap-item h3 { margin-top: 10px; }
  .faq-list summary { padding: 16px 18px; font-size: 14.5px; }
  .faq-list details p { padding: 0 18px 18px; }
}

/* 10. REDUCED MOTION -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .particle-canvas, .hero-streams { display: none; }
  .tech-card:hover, .benefit:hover, .roadmap-item:hover, .btn:hover { transform: none !important; }
}

/* =====================================================================
   11. MOTION LAYER
   ---------------------------------------------------------------------
   Adds animation on top of the approved design. Nothing here changes
   colours, layout or content.
   a. Global animated background      e. Card hover & micro-interactions
   b. Hero intro sequence             f. Section-specific effects
   c. Scroll reveal system            g. Off-screen pausing
   d. Floating elements               h. Reduced motion
   Reveal usage:  class="reveal" data-reveal="up|drop|left|right|zoom|scale|fade|text"
   (script.js adds .in-view once, staggers siblings via --rd)
   ===================================================================== */

/* a. GLOBAL ANIMATED BACKGROUND --------------------------------------- */
.bg-layer { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; }
.bg-grid {
  position: absolute; inset: -46px; opacity: .45;
  background-image: linear-gradient(rgba(var(--cyan-rgb), .035) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--cyan-rgb), .035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 85%);
  animation: grid-pan 30s linear infinite; will-change: transform;
}
.bg-aurora::before, .bg-aurora::after {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform;
}
.bg-aurora::before { left: -20vmax; top: 10vh; background: radial-gradient(circle, rgba(var(--blue-rgb), .13), transparent 62%); animation: aurora-a 26s var(--ease-in-out) infinite alternate; }
.bg-aurora::after { right: -25vmax; bottom: -20vmax; background: radial-gradient(circle, rgba(var(--purple-rgb), .12), transparent 62%); animation: aurora-b 30s var(--ease-in-out) infinite alternate; }
.page-glow { will-change: transform; }
.glow-one { animation: glow-drift-a 24s var(--ease-in-out) infinite alternate; }
.glow-two { animation: glow-drift-b 28s var(--ease-in-out) infinite alternate; }
.section::before { display: none; }   /* replaced by the global moving grid */

/* b. HERO INTRO SEQUENCE (plays once on load) ------------------------- */
.site-header { animation: intro-down .9s var(--ease-out) both; }
.brand { animation: intro-fade 1s ease .2s both; }
@media (min-width: 901px) {
  .main-nav > a { animation: intro-drop .7s var(--ease-out) both; }
  .main-nav > a:nth-child(1) { animation-delay: .3s; } .main-nav > a:nth-child(2) { animation-delay: .36s; }
  .main-nav > a:nth-child(3) { animation-delay: .42s; } .main-nav > a:nth-child(4) { animation-delay: .48s; }
  .main-nav > a:nth-child(5) { animation-delay: .54s; } .main-nav > a:nth-child(6) { animation-delay: .6s; }
  .main-nav > a:nth-child(7) { animation-delay: .66s; }
}
.hero h1 { animation: intro-up 1s var(--ease-out) .35s both; }
.hero h1 .gold-text { display: inline-block; animation: intro-up-blur 1.1s var(--ease-out) .6s both; }
.hero-subtitle { animation: intro-up .9s var(--ease-out) .8s both; }
.hero-copy { animation: intro-up .9s var(--ease-out) .92s both; }
.hero-actions { animation: intro-up .9s var(--ease-out) 1.06s both; }
.hero-proof { animation: intro-fade 1s ease 1.3s both; }
.hero-visual { animation: intro-zoom 1.5s var(--ease-out) .3s both; }
.float-tag { animation: tag-in .8s var(--ease-out) both, float-y 5s ease-in-out infinite; }
.tag-ai { animation-delay: 1.1s, 1.9s; } .tag-web { animation-delay: 1.3s, 2.6s; } .tag-chain { animation-delay: 1.5s, 3.1s; }
.scroll-cue { animation: intro-fade 1s ease 1.7s both; }
.scroll-cue span { animation: cue-line 2.4s var(--ease-in-out) 2s infinite; transform-origin: top; }

/* c. SCROLL REVEAL SYSTEM --------------------------------------------- */
.js .reveal:not(.in-view) { opacity: 0; }
.js .reveal[data-reveal="up"]:not(.in-view)    { transform: translateY(32px); }
.js .reveal[data-reveal="drop"]:not(.in-view)  { transform: translateY(-40px); }
.js .reveal[data-reveal="left"]:not(.in-view)  { transform: translateX(-56px); }
.js .reveal[data-reveal="right"]:not(.in-view) { transform: translateX(56px); }
.js .reveal[data-reveal="zoom"]:not(.in-view)  { transform: scale(.95); }
.js .reveal[data-reveal="scale"]:not(.in-view) { transform: translateY(18px) scale(.96); }
.reveal.is-revealing {
  transition: opacity .85s ease, transform .9s var(--ease-out) !important;
  transition-delay: var(--rd, 0s) !important;
}
.reveal[data-reveal="drop"].is-revealing { transition: opacity .7s ease, transform .85s var(--ease-out) !important; transition-delay: var(--rd, 0s) !important; }
/* text blocks: children rise one after another, the container itself stays put */
.js .reveal[data-reveal="text"]:not(.in-view) { opacity: 1; }
.js .reveal[data-reveal="text"]:not(.in-view) > * { opacity: 0; transform: translateY(24px); }
.reveal[data-reveal="text"].is-revealing > * { transition: opacity .8s ease, transform .9s var(--ease-out); }
.reveal[data-reveal="text"].is-revealing > :nth-child(2) { transition-delay: .1s; }
.reveal[data-reveal="text"].is-revealing > :nth-child(3) { transition-delay: .22s; }
.reveal[data-reveal="text"].is-revealing > :nth-child(4) { transition-delay: .32s; }
.reveal[data-reveal="text"].is-revealing > :nth-child(5) { transition-delay: .42s; }
.reveal[data-reveal="text"].is-revealing > :nth-child(n+6) { transition-delay: .5s; }
/* images inside revealed blocks zoom 95% -> 100% */
.js .about-visual .media-frame img, .js .ai-graphic, .js .network-svg { scale: .95; transition: scale 1.2s var(--ease-out) .15s; }
.about-visual.in-view .media-frame img, .ai-banner.in-view .ai-graphic, .network-visual.in-view .network-svg { scale: 1; }

/* d. FLOATING ELEMENTS (different speeds = depth) --------------------- */
.card-art { animation: float-y 6s ease-in-out infinite; }
.tech-card:nth-child(2) .card-art { animation-duration: 7s; animation-delay: -2s; }
.tech-card:nth-child(3) .card-art { animation-duration: 5.5s; animation-delay: -1s; }
.tech-card:nth-child(4) .card-art { animation-duration: 6.5s; animation-delay: -3s; }
.holo-cube { animation: float-y-deep 6s ease-in-out infinite; }
.ai-core { animation: float-y-deep 6s ease-in-out infinite; }
.media-frame img { animation: float-y 8s ease-in-out infinite; }
.ft-icon { animation: icon-bob 4s ease-in-out infinite; }
.net-node { transform-box: fill-box; transform-origin: center; }
.network-visual.in-view .net-node { animation: node-pop .7s var(--ease-out) both, node-float 6s ease-in-out infinite; }
.network-visual.in-view .net-node:nth-last-of-type(4) { animation-delay: .35s, 1s; }
.network-visual.in-view .net-node:nth-last-of-type(3) { animation-delay: .5s, 2.2s; animation-duration: .7s, 7s; }
.network-visual.in-view .net-node:nth-last-of-type(2) { animation-delay: .65s, 1.6s; animation-duration: .7s, 5.5s; }
.network-visual.in-view .net-node:nth-last-of-type(1) { animation-delay: .8s, 2.8s; animation-duration: .7s, 6.5s; }
.js .network-visual:not(.in-view) .net-node { opacity: 0; }

/* e. CARD HOVER & MICRO-INTERACTIONS ---------------------------------- */
.tech-card, .benefit, .roadmap-item, .ai-points > div, .feature-list > div, .mission-grid > div {
  transition: transform .35s var(--ease-out), border-color .3s ease, box-shadow .35s ease, background-color .3s ease;
}
.neon-card::before, .tech-card::before, .benefit::before, .smart-panel::before, .contact-panel::before, .ai-banner::before {
  transition: transform .8s var(--ease-out), opacity .4s ease;
}
.tech-card:hover::before, .benefit:hover::before { transform: translate(10%, 8%) scale(1.25); }
.tech-card:hover, .benefit:hover, .ai-points > div:hover { border-color: rgba(var(--accent-rgb), .95); }
.icon-tile { transition: transform .35s var(--ease-out), box-shadow .3s ease; }
.benefit:hover .icon-tile, .ai-points > div:hover .icon-tile, .feature-list > div:hover .icon-tile,
.mission-grid > div:hover .icon-tile, .smart-highlights li:hover .icon-tile {
  transform: translateY(-2px) rotate(-8deg) scale(1.08);
  box-shadow: 0 0 24px rgba(var(--accent-rgb, var(--cyan-rgb)), .5), inset 0 0 12px rgba(var(--accent-rgb, var(--cyan-rgb)), .25);
}
.road-node { transition: transform .4s var(--ease-out), box-shadow .3s ease; }
.roadmap-item:hover .road-node { transform: scale(1.08); box-shadow: 0 0 0 7px rgba(var(--accent-rgb), .12), 0 0 30px rgba(var(--accent-rgb), .6); }

/* Buttons: gradient movement, slight scale, click ripple */
.btn-primary { background: linear-gradient(115deg, #A000FF 0%, #C214FF 25%, #EC28FF 50%, #C214FF 75%, #A000FF 100%) 0 0 / 200% 100%; transition: transform .25s var(--ease-out), box-shadow .3s ease, filter .25s, background-position .6s ease; }
.btn-primary:hover { background-position: 100% 0; transform: translateY(-3px) scale(1.02); }
.btn-ghost:hover, .btn-secondary:hover, .btn-success:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 70%); transform: scale(0); animation: ripple .65s ease-out forwards; }

/* Links: underline glow reveal */
.text-link, .footer-links a { position: relative; }
.text-link::after, .footer-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; border-radius: 1px;
  background: currentColor; box-shadow: 0 0 8px currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.text-link:hover::after, .footer-links a:hover::after { transform: scaleX(1); }

/* Navigation: sliding active indicator (desktop; created by script.js) */
.main-nav > a { z-index: 1; }
.nav-indicator {
  position: absolute; z-index: 0; left: 0; top: 0; height: 36px; width: 0; border-radius: 10px; opacity: 0;
  background: linear-gradient(135deg, rgba(var(--purple-rgb), .3), rgba(var(--blue-rgb), .2));
  border: 1px solid rgba(var(--pink-rgb), .5);
  box-shadow: 0 0 16px rgba(var(--purple-rgb), .4), inset 0 0 12px rgba(var(--pink-rgb), .14);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), height .5s var(--ease-out), opacity .3s ease;
}
@media (min-width: 901px) {
  .main-nav { position: relative; }
  .main-nav.has-indicator > a.active:not(.nav-cta) { background: transparent; border-color: transparent; box-shadow: none; }
}
@media (max-width: 900px) { .nav-indicator { display: none; } }

/* FAQ: smooth accordion (height animated by script.js) */
.faq-list details p { transition: opacity .35s ease .05s, transform .4s var(--ease-out); }
.faq-list details:not([open]) p, .faq-list details.is-closing p { opacity: 0; transform: translateY(-6px); }
.faq-list details.is-closing summary > span { transform: none; color: var(--cyan); border-color: rgba(var(--cyan-rgb), .4); }
.faq-list summary > span { transition: transform .4s var(--ease-out), color .25s, border-color .25s, box-shadow .25s; }
.faq-list summary:hover > span { box-shadow: 0 0 14px rgba(var(--cyan-rgb), .45); }

/* f. SECTION-SPECIFIC EFFECTS ----------------------------------------- */

/* About: energy wave sweeping the digital grid */
.media-frame::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(var(--cyan-rgb), .1) 55%, rgba(var(--cyan-rgb), .22) 50.5%, transparent);
  transform: translateY(-110%); animation: energy-scan 7s var(--ease-in-out) infinite;
}
.media-caption { z-index: 2; }

/* AI banner: energy pulse behind the cube */
.ai-graphic::before, .ai-graphic::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none; }
.ai-graphic::before { width: 48%; aspect-ratio: 1; translate: -50% -50%; background: radial-gradient(circle, rgba(var(--cyan-rgb), .3), rgba(var(--purple-rgb), .14) 45%, transparent 70%); animation: energy-pulse 4s ease-in-out infinite; }
.ai-graphic::after { width: 40%; aspect-ratio: 1; translate: -50% -50%; border: 1px solid rgba(var(--cyan-rgb), .5); animation: ring-wave 4s ease-out infinite; }

/* Code editor: lines type in, then execution status appears */
.js .code-window:not(.in-view) .code-lines p { clip-path: inset(0 100% 0 0); }
.code-window.in-view .code-lines p { animation: type-line .55s steps(22, end) both; }
.code-window.in-view .code-lines p:nth-child(1) { animation-delay: .5s; }
.code-window.in-view .code-lines p:nth-child(2) { animation-delay: 1s; }
.code-window.in-view .code-lines p:nth-child(3) { animation-delay: 1.5s; }
.code-window.in-view .code-lines p:nth-child(4) { animation-delay: 2s; }
.code-window.in-view .code-lines p:nth-child(5) { animation-delay: 2.5s; }
.code-window.in-view .code-lines p:nth-child(6) { animation-delay: 2.8s; }
.js .code-window:not(.in-view) .exec-row, .js .code-window:not(.in-view) .exec-bar { opacity: 0; }
.code-window.in-view .exec-row, .code-window.in-view .exec-bar { animation: intro-up .6s var(--ease-out) both; }
.code-window.in-view .exec-row:nth-child(1) { animation-delay: 3.2s; }
.code-window.in-view .exec-row:nth-child(2) { animation-delay: 3.6s; }
.code-window.in-view .exec-bar { animation-delay: 3.9s; }
.code-window.in-view .exec-row .ok { animation: badge-pop .5s var(--ease-out) 3.5s both; }

/* Timeline: connector draws after its card lands */
.js .roadmap-item::after { transform: scaleX(0); transform-origin: left center; transition: transform 1s var(--ease-in-out) calc(var(--rd, 0s) + .5s); }
.js .roadmap-item.in-view::after { transform: scaleX(1); }
@media (max-width: 600px) {
  .js .roadmap-item::after { transform: scaleY(0); transform-origin: center top; }
  .js .roadmap-item.in-view::after { transform: scaleY(1); }
}

/* Final CTA: breathing neon border + rising particles */
.contact-panel.in-view { animation: cta-glow 5s ease-in-out 1s infinite; }
.cta-particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cta-particles i {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan); opacity: 0;
  animation: rise 9s linear infinite;
}
.cta-particles i:nth-child(1) { left: 8%;  animation-delay: 0s; }
.cta-particles i:nth-child(2) { left: 22%; animation-delay: 2.5s; background: var(--pink); box-shadow: 0 0 8px var(--pink); animation-duration: 11s; }
.cta-particles i:nth-child(3) { left: 41%; animation-delay: 5s; width: 3px; height: 3px; }
.cta-particles i:nth-child(4) { left: 58%; animation-delay: 1.2s; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation-duration: 10s; }
.cta-particles i:nth-child(5) { left: 72%; animation-delay: 3.8s; }
.cta-particles i:nth-child(6) { left: 86%; animation-delay: 6.4s; background: var(--purple); box-shadow: 0 0 8px var(--pink); animation-duration: 12s; }
.cta-particles i:nth-child(7) { left: 94%; animation-delay: 7.6s; width: 3px; height: 3px; }

/* g. OFF-SCREEN PAUSING (class toggled by script.js) ----------------- */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

/* Keyframes */
@keyframes grid-pan { to { transform: translate3d(46px, 46px, 0); } }
@keyframes aurora-a { to { transform: translate3d(18vmax, 22vh, 0) scale(1.15); } }
@keyframes aurora-b { to { transform: translate3d(-22vmax, -18vh, 0) scale(1.1); } }
@keyframes glow-drift-a { to { transform: translate3d(140px, 120px, 0); } }
@keyframes glow-drift-b { to { transform: translate3d(-160px, -140px, 0); } }
@keyframes intro-down { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes intro-drop { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes intro-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes intro-up-blur { from { transform: translateY(34px); opacity: 0; filter: blur(8px); } to { transform: none; opacity: 1; filter: drop-shadow(0 0 14px rgba(var(--gold-rgb), .22)); } }
@keyframes intro-zoom { from { transform: scale(.88); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tag-in { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@keyframes cue-line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes float-y-deep { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }
@keyframes icon-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2px; } }
@keyframes node-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes node-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
@keyframes energy-scan { 0% { transform: translateY(-110%); } 60%, 100% { transform: translateY(260%); } }
@keyframes energy-pulse { 0%, 100% { scale: .9; opacity: .65; } 50% { scale: 1.15; opacity: 1; } }
@keyframes ring-wave { 0% { scale: .8; opacity: .8; } 100% { scale: 2.1; opacity: 0; } }
@keyframes type-line { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes badge-pop { 0% { scale: .6; opacity: 0; } 70% { scale: 1.1; opacity: 1; } 100% { scale: 1; } }
@keyframes cta-glow {
  0%, 100% { box-shadow: var(--shadow-depth), 0 0 0 1px rgba(var(--gold-rgb), .38), 0 0 18px rgba(var(--gold-rgb), .24); }
  50% { box-shadow: var(--shadow-depth), 0 0 0 1px rgba(var(--gold-rgb), .6), 0 0 34px rgba(var(--gold-rgb), .4), 0 0 70px rgba(var(--purple-rgb), .25); }
}
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translateY(-320px); opacity: 0; } }

/* h. REDUCED MOTION --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .bg-grid, .bg-aurora::before, .bg-aurora::after, .page-glow, .cta-particles, .media-frame::before, .ai-graphic::after { animation: none !important; }
  .cta-particles, .media-frame::before, .ai-graphic::after { display: none; }
  *, *::before, *::after { animation-delay: 0s !important; }
  .js .reveal:not(.in-view), .js .reveal[data-reveal="text"]:not(.in-view) > * { opacity: 1 !important; transform: none !important; }
  .js .code-window:not(.in-view) .code-lines p { clip-path: none; }
  .js .code-window:not(.in-view) .exec-row, .js .code-window:not(.in-view) .exec-bar, .js .network-visual:not(.in-view) .net-node { opacity: 1; }
  .js .roadmap-item::after { transform: none !important; }
  .js .about-visual .media-frame img, .js .ai-graphic, .js .network-svg { scale: 1; }
}

/* =====================================================================
   12. PRELOADER — animated logo icon (markup + hide logic in index.html)
   While html.is-loading is set the page is locked and the hero intro
   waits, so the intro plays right after the preloader leaves.
   ===================================================================== */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background:
    radial-gradient(circle at 50% 46%, rgba(var(--blue-rgb), .22), transparent 38%),
    radial-gradient(circle at 50% 60%, rgba(var(--purple-rgb), .16), transparent 45%),
    var(--bg);
  transition: opacity .8s var(--ease-out), visibility 0s linear .8s;
}
.preloader::before { /* faint holographic grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(var(--cyan-rgb), .05) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--cyan-rgb), .05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 10%, transparent 55%); mask-image: radial-gradient(circle at 50% 46%, #000 10%, transparent 55%);
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader.is-done .pl-stage { transform: scale(1.12); filter: blur(2px); }
.preloader.is-done .pl-progress i { width: 100%; transition: width .35s ease; }
html.is-loading { overflow: hidden; }
html.is-loading body > :not(.preloader), html.is-loading body > :not(.preloader) * { animation-play-state: paused !important; }

.pl-stage { position: relative; width: 210px; height: 210px; display: grid; place-items: center; transition: transform .8s var(--ease-out), filter .8s ease; }
.pl-ring { position: absolute; inset: 0; border-radius: 50%; }
.pl-ring-a {
  border: 2px solid transparent; border-top-color: var(--cyan); border-right-color: rgba(var(--blue-rgb), .8); border-left-color: rgba(var(--pink-rgb), .55);
  filter: drop-shadow(0 0 8px rgba(var(--cyan-rgb), .7));
  animation: spin 1.6s linear infinite;
}
.pl-ring-b { inset: 18px; border: 1px dashed rgba(var(--purple-rgb), .55); animation: spin 9s linear infinite reverse; }
.pl-orbit { position: absolute; inset: -10px; border-radius: 50%; animation: spin 3.2s linear infinite; }
.pl-orbit i { position: absolute; left: 50%; top: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan), 0 0 24px rgba(var(--cyan-rgb), .6); }
.pl-orbit-2 { inset: 30px; animation-duration: 2.2s; animation-direction: reverse; }
.pl-orbit-2 i { width: 6px; height: 6px; margin-left: -3px; background: var(--pink); box-shadow: 0 0 10px var(--pink); }

.pl-icon { position: relative; width: 104px; animation: pl-float 2.6s ease-in-out .9s infinite; }
.pl-icon img {
  display: block; width: 100%; height: auto;
  clip-path: inset(100% 0 0 0);
  animation: pl-build .9s var(--ease-out) .1s forwards, pl-glow 2.6s ease-in-out 1s infinite;
}
.pl-shine { /* light sweep clipped to the icon shape */
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%) 0 0 / 250% 100% no-repeat;
  -webkit-mask: url("assets/images/logo-icon.png") center / contain no-repeat; mask: url("assets/images/logo-icon.png") center / contain no-repeat;
  animation: pl-shine 2.2s ease-in-out 1s infinite;
}

.pl-progress { position: relative; width: 190px; height: 3px; border-radius: 3px; background: rgba(var(--cyan-rgb), .12); overflow: hidden; }
.pl-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple), var(--pink)); box-shadow: 0 0 10px var(--cyan); animation: pl-progress 2.4s var(--ease-out) forwards; }
.pl-text { margin: 0; font: 600 11px var(--display); letter-spacing: 5px; color: var(--text-2); text-shadow: 0 0 10px rgba(var(--cyan-rgb), .4); }
.pl-dots b { font-weight: inherit; animation: dot-blink 1.2s ease-in-out infinite; }
.pl-dots b:nth-child(2) { animation-delay: .2s; } .pl-dots b:nth-child(3) { animation-delay: .4s; }
.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; }

@keyframes pl-build { to { clip-path: inset(0 0 0 0); } }
@keyframes pl-glow { 0%, 100% { filter: drop-shadow(0 0 8px rgba(var(--cyan-rgb), .45)); } 50% { filter: drop-shadow(0 0 22px rgba(var(--cyan-rgb), .75)) drop-shadow(0 0 30px rgba(var(--purple-rgb), .45)); } }
@keyframes pl-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes pl-shine { 0% { background-position: 150% 0; } 60%, 100% { background-position: -60% 0; } }
@keyframes pl-progress { 0% { width: 0; } 100% { width: 88%; } }

@media (prefers-reduced-motion: reduce) {
  .pl-ring-a, .pl-ring-b, .pl-orbit, .pl-icon, .pl-shine, .pl-dots b { animation: none !important; }
  .pl-icon img { clip-path: none; animation: none !important; filter: drop-shadow(0 0 12px rgba(var(--cyan-rgb), .55)); }
  .preloader.is-done .pl-stage { transform: none; filter: none; }
}
