/* ==========================================================================
   3P Technologies — Design System v2 (2026)
   Dark-first, glass + aurora aesthetic. No framework dependency.
   ========================================================================== */

:root {
  /* Brand */
  --brand-500: #196BAC;
  --brand-700: #003863;
  --brand-300: #6DCFF6;
  --brand-200: #a9e6fb;
  --violet: #7b6cff;
  --mint: #3ee6c1;
  --amber: #ffb547;
  --rose: #ff6b8a;

  /* Surfaces */
  --bg: #030b16;
  --bg-2: #061426;
  --bg-3: #0a1c33;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-solid: #0b1a2e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #e8f1fa;
  --text-2: #a7b8cc;
  --text-3: #6f849c;

  /* Gradients */
  --grad: linear-gradient(120deg, #6DCFF6 0%, #3c9be0 45%, #7b6cff 100%);
  --grad-brand: linear-gradient(135deg, #196BAC, #6DCFF6);

  /* Type */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }
::selection { background: rgba(109, 207, 246, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-300); outline-offset: 3px; border-radius: 6px; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--brand-300); color: #021; padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Global background ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-fx::after {
  content: ""; position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  animation: drift 22s ease-in-out infinite alternate;
}
.orb-1 { width: 620px; height: 620px; background: radial-gradient(circle, rgba(25,107,172,.9), transparent 65%); top: -260px; left: -160px; }
.orb-2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(123,108,255,.55), transparent 65%); top: -120px; right: -180px; animation-duration: 28s; animation-delay: -6s; }
.orb-3 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(109,207,246,.35), transparent 65%); top: 55vh; left: 40%; animation-duration: 32s; animation-delay: -12s; opacity: .35; }
@keyframes drift {
  0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(60px, 40px, 0) scale(1.1); }
  100% { transform: translate3d(-40px, 80px, 0) scale(.95); }
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }
.section-alt { background: linear-gradient(180deg, transparent, rgba(10, 28, 51, .55) 15%, rgba(10, 28, 51, .55) 85%, transparent); }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mt-5 { margin-top: 64px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 40px; }
.muted { color: var(--text-2); }
.small { font-size: .9rem; }
.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; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-weight: 800; line-height: 1.1; letter-spacing: -.025em; color: #fff; }
.display { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -.04em; line-height: 1.02; }
.h1 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -.035em; }
.h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.03em; }
.h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--text-2); line-height: 1.7; }
.gradient-text {
  background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-300); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.center .eyebrow::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(109,207,246,.08); border: 1px solid rgba(109,207,246,.22);
  font-size: .85rem; color: var(--brand-200); font-weight: 600;
  backdrop-filter: blur(8px);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(62,230,193,.6); animation: ping 2s infinite; margin-left: 6px; }
.pill b { background: var(--grad-brand); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: .75rem; letter-spacing: .02em; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(62,230,193,.6); } 80%,100% { box-shadow: 0 0 0 10px rgba(62,230,193,0); } }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: 18px; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bx: 50%; --by: 50%;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem; letter-spacing: -.005em;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background .3s, border-color .3s, color .3s;
  isolation: isolate; overflow: hidden; white-space: nowrap; will-change: transform;
}
.btn i { transition: transform .35s var(--spring); font-size: .9em; }
.btn:hover i.fa-arrow-right, .btn:hover i.fa-arrow-up-right { transform: translateX(4px); }
.btn-primary {
  color: #02121f; background: linear-gradient(135deg, #8fdcfa, #6DCFF6 40%, #3c9be0);
  box-shadow: 0 10px 30px -8px rgba(109,207,246,.55), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120px circle at var(--bx) var(--by), rgba(255,255,255,.65), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover { box-shadow: 0 18px 44px -10px rgba(109,207,246,.75), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-ghost { color: #fff; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(109,207,246,.5); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand-300); }
.link-arrow i { transition: transform .3s var(--spring); }
.link-arrow:hover i { transform: translateX(5px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 14px 0 auto; z-index: 100;
  transition: inset .4s var(--ease), transform .45s var(--ease);
}
.site-header.hide { transform: translateY(-130%); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h); padding: 0 12px 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background .4s, border-color .4s, box-shadow .4s, height .4s var(--ease);
}
.site-header.scrolled { inset-block-start: 10px; }
.site-header.scrolled .nav {
  height: 64px;
  background: rgba(6, 16, 30, .72); border-color: var(--line);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
}
.brand img { height: 44px; width: auto; transition: height .4s var(--ease); }
.site-header.scrolled .brand img { height: 38px; }
.nav-links { display: flex; align-items: center; gap: 4px; padding: 0; list-style: none; }
.nav-links > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--text-2);
  transition: color .25s, background .25s;
}
.nav-link:hover, .nav-link[aria-current="page"], .has-menu:focus-within > .nav-link { color: #fff; background: rgba(255,255,255,.06); }
.nav-link[aria-current="page"] { color: var(--brand-300); }
.nav-link .fa-chevron-down { font-size: .65rem; transition: transform .3s; }
.has-menu:hover .fa-chevron-down, .has-menu:focus-within .fa-chevron-down { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 10px); left: 50%; min-width: 320px;
  transform: translate(-50%, 8px) scale(.98); opacity: 0; visibility: hidden;
  padding: 10px; border-radius: 20px;
  background: rgba(8, 20, 38, .94); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.menu a { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 14px; transition: background .2s; }
.menu a:hover { background: rgba(255,255,255,.06); }
.menu .mi {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(25,107,172,.35), rgba(109,207,246,.15)); color: var(--brand-300);
  border: 1px solid rgba(109,207,246,.2);
}
.menu strong { display: block; color: #fff; font-size: .95rem; }
.menu span { display: block; color: var(--text-3); font-size: .82rem; line-height: 1.4; margin-top: 2px; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); position: relative; }
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 17px; } .nav-toggle span:nth-child(2) { top: 22px; } .nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  background: rgba(3, 11, 22, .96); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  clip-path: circle(0% at calc(100% - 50px) 50px); transition: clip-path .7s var(--ease-out); visibility: hidden;
}
.nav-open .mobile-menu { clip-path: circle(150% at calc(100% - 50px) 50px); visibility: visible; }
.mobile-menu a.m-link {
  font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; color: #fff;
  padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center;
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease-out);
}
.mobile-menu a.m-link i { font-size: 1rem; color: var(--brand-300); }
.mobile-menu .m-sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0 14px; opacity: 0; transition: opacity .5s; }
.mobile-menu .m-sub a { font-size: .92rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
.nav-open .mobile-menu a.m-link, .nav-open .mobile-menu .m-sub { opacity: 1; transform: none; }
.mobile-menu .btn { margin-top: 24px; opacity: 0; transition: opacity .5s .4s; }
.nav-open .mobile-menu .btn { opacity: 1; }
@media (max-width: 1080px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav { padding: 0 10px 0 18px; }
}
@media (min-width: 1081px) { .mobile-menu { display: none; } }
body.nav-open { overflow: hidden; }

/* Scroll progress */
.progress-bar { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); box-shadow: 0 0 12px rgba(109,207,246,.8); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 60px) 0 80px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .65; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }
.hero-grid > *, .split > *, .article-layout > * { min-width: 0; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 26px 0 24px; }
.hero .lead { max-width: 600px; margin-bottom: 38px; }
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.08em; }
.rotator > span { grid-area: 1 / 1; transform: translateY(110%); opacity: 0; transition: transform .8s var(--ease-out), opacity .6s; padding-bottom: .08em; }
.rotator > span.on { transform: translateY(0); opacity: 1; }
.rotator > span.off { transform: translateY(-110%); opacity: 0; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 46px; color: var(--text-3); font-size: .9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { color: var(--mint); }
@media (max-width: 1024px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { max-width: 560px; } }

/* Hero visual (floating windows) */
.hero-visual { position: relative; perspective: 1400px; min-height: 460px; }
.window {
  position: relative; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 30, 54, .92), rgba(7, 18, 34, .94));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(109,207,246,.05), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .75rem; color: var(--text-3); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; display: inline-block; }
.window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-bar em { margin-left: 10px; font-style: normal; }
.code { font-family: var(--mono); font-size: .82rem; line-height: 1.9; padding: 18px 20px 22px; color: #c9d7e8; min-height: 250px; white-space: pre; overflow: hidden; }
.code .k { color: #c792ea; } .code .s { color: #a5e8a0; } .code .f { color: #82aaff; } .code .c { color: #5d7591; } .code .n { color: #f78c6c; } .code .t { color: var(--brand-300); }
.caret { display: inline-block; width: 8px; height: 1.1em; background: var(--brand-300); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hv-main { transform: rotateY(-10deg) rotateX(6deg); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 16px;
  background: rgba(10, 24, 44, .85); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); box-shadow: 0 24px 50px -18px rgba(0,0,0,.8);
  font-size: .88rem; animation: bob 6s ease-in-out infinite;
}
.float-card strong { display: block; color: #fff; font-size: 1rem; line-height: 1.2; }
.float-card small { color: var(--text-3); }
.float-card .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #02121f; background: var(--grad-brand); }
.float-card.fc-1 { top: -18px; right: -10px; }
.float-card.fc-2 { bottom: 26px; left: -34px; animation-delay: -3s; }
.float-card.fc-2 .ic { background: linear-gradient(135deg, var(--mint), #1fb59a); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 640px) { .float-card.fc-2 { left: -6px; } .float-card.fc-1 { right: -6px; } .hero-visual { min-height: 380px; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 28px 0; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; color: var(--text-3); font-weight: 700; font-size: 1.05rem; white-space: nowrap; transition: color .3s; }
.marquee-item i { font-size: 1.6rem; }
.marquee-item:hover { color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-label { text-align: center; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }

/* ---------- Cards ---------- */
.card {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--radius); padding: clamp(24px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s, background .4s;
  overflow: hidden; isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(109,207,246,.13), transparent 45%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(109,207,246,.8), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; letter-spacing: -.02em; }
.card p { color: var(--text-2); font-size: .98rem; }
.card .link-arrow { margin-top: 22px; }
.icon-box {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 24px;
  color: var(--brand-300);
  background: linear-gradient(135deg, rgba(25,107,172,.4), rgba(109,207,246,.1));
  border: 1px solid rgba(109,207,246,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 10px 30px -10px rgba(109,207,246,.4);
  transition: transform .5s var(--spring);
}
.card:hover .icon-box { transform: scale(1.08) rotate(-6deg); }
.icon-box.violet { color: #b3aaff; background: linear-gradient(135deg, rgba(123,108,255,.35), rgba(123,108,255,.08)); border-color: rgba(123,108,255,.3); }
.icon-box.mint { color: var(--mint); background: linear-gradient(135deg, rgba(62,230,193,.28), rgba(62,230,193,.06)); border-color: rgba(62,230,193,.28); }
.icon-box.amber { color: var(--amber); background: linear-gradient(135deg, rgba(255,181,71,.28), rgba(255,181,71,.06)); border-color: rgba(255,181,71,.28); }
.card-num { position: absolute; top: 22px; right: 26px; font-family: var(--mono); font-size: .8rem; color: var(--text-3); }
.checks { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 18px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: .96rem; }
.checks li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .7rem; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; margin-top: 3px; color: #02121f; background: var(--grad-brand); }
.checks.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .checks.cols-2 { grid-template-columns: 1fr; } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2vw, 22px); }
.bento > .b-4 { grid-column: span 4; } .bento > .b-3 { grid-column: span 3; } .bento > .b-2 { grid-column: span 2; } .bento > .b-6 { grid-column: span 6; }
@media (max-width: 1024px) { .bento > .b-4, .bento > .b-2 { grid-column: span 3; } }
@media (max-width: 720px) { .bento > * { grid-column: span 6 !important; } }
.b-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 720px) { .b-feature { grid-template-columns: 1fr; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text-2); }

/* Mini UI viz inside cards */
.mini-ui { border-radius: 14px; background: rgba(3, 11, 22, .6); border: 1px solid var(--line); padding: 16px; font-family: var(--mono); font-size: .78rem; }
.test-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed var(--line); color: var(--text-2); }
.test-row:last-child { border-bottom: 0; }
.test-row .st { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .6rem; flex: none; border: 1.5px solid var(--text-3); }
.test-row .st.pass { background: var(--mint); border-color: var(--mint); color: #022; }
.test-row .st.run { border-color: var(--brand-300); border-top-color: transparent; animation: spin .8s linear infinite; }
.test-row .ms { margin-left: auto; color: var(--text-3); }
@keyframes spin { to { transform: rotate(360deg); } }
.gantt { display: grid; gap: 10px; }
.gantt-row { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; color: var(--text-3); }
.gantt-track { position: relative; height: 14px; border-radius: 7px; background: rgba(255,255,255,.04); }
.gantt-bar { position: absolute; top: 0; bottom: 0; border-radius: 7px; background: var(--grad-brand); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease-out); }
.in .gantt-bar, .gantt.in .gantt-bar { transform: scaleX(1); }
.gantt-bar.v { background: linear-gradient(90deg, var(--violet), #a79cff); }
.gantt-bar.m { background: linear-gradient(90deg, #1fb59a, var(--mint)); }
.gantt-bar.r { background: linear-gradient(90deg, #ff4d6d, var(--rose)); }
.risk-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(255,107,138,.1); border: 1px solid rgba(255,107,138,.3); color: #ffb3c3; font-size: .72rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.02); overflow: hidden; }
.stat { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); position: relative; }
.stat:last-child { border-right: 0; }
.stat-num { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { color: var(--text-2); margin-top: 10px; font-size: .95rem; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- Process / timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.steps-v::before { top: 0; bottom: 0; left: 27px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--line-2), transparent); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step-dot { width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #02121f; background: var(--grad-brand); box-shadow: 0 0 0 8px var(--bg), 0 0 0 9px var(--line-2), 0 10px 30px -6px rgba(109,207,246,.6); position: relative; z-index: 1; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: .94rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 0; bottom: 0; left: 27px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--line-2), transparent); }
  .step { text-align: left; display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 0; }
  .step-dot { margin: 0; }
}

/* ---------- Industry tiles ---------- */
.tile {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--radius);
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s, background .3s;
}
.tile:hover { transform: translateY(-4px); border-color: rgba(109,207,246,.4); background: rgba(109,207,246,.06); }
.tile .icon-box { margin: 0; width: 50px; height: 50px; font-size: 1.15rem; flex: none; }
.tile h3 { font-size: 1.08rem; letter-spacing: -.01em; }
.tile p { color: var(--text-3); font-size: .88rem; margin-top: 2px; }
.tile .fa-arrow-right { margin-left: auto; color: var(--text-3); transition: transform .3s, color .3s; }
.tile:hover .fa-arrow-right { transform: translateX(4px); color: var(--brand-300); }

/* ---------- Visual frame (image) ---------- */
.frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform 1.2s var(--ease-out); }
.frame:hover img { transform: scale(1.05); }
.frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(3,11,22,.7)); pointer-events: none; }
.frame-badge { position: absolute; left: 20px; bottom: 20px; z-index: 2; }
.glow-wrap { position: relative; }
.glow-wrap::before { content: ""; position: absolute; inset: 10% 10% -6%; background: var(--grad); filter: blur(70px); opacity: .25; z-index: -1; border-radius: 50%; }

/* ---------- Page hero (inner) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(70px, 10vw, 120px)) 0 clamp(56px, 7vw, 90px); overflow: hidden; }
.page-hero .lead { max-width: 680px; margin-top: 22px; }
.page-hero.center .lead { margin-inline: auto; }
.page-hero h1 { max-width: 950px; }
.page-hero.center h1 { margin-inline: auto; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; color: var(--text-3); margin-bottom: 26px; padding: 0; list-style: none; }
.center .crumbs { justify-content: center; }
.crumbs a:hover { color: var(--brand-300); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs [aria-current] { color: var(--text-2); }
.hero-rings { position: absolute; top: 50%; right: -180px; width: 640px; height: 640px; transform: translateY(-50%); pointer-events: none; opacity: .6; }
.hero-rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(109,207,246,.14); animation: rings 10s linear infinite; }
.hero-rings span:nth-child(2) { inset: 80px; animation-duration: 16s; animation-direction: reverse; border-style: dashed; }
.hero-rings span:nth-child(3) { inset: 160px; animation-duration: 22s; }
.hero-rings span::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-300); box-shadow: 0 0 20px var(--brand-300); }
@keyframes rings { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .hero-rings { right: -360px; opacity: .35; } }

/* ---------- Feature rows (services detail) ---------- */
.feature-row { padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 0; }
.feature-row .num { font-family: var(--mono); font-size: .85rem; color: var(--brand-300); margin-bottom: 14px; display: block; }
.feature-row h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 18px; }
.feature-row p { color: var(--text-2); margin-bottom: 14px; }

/* Visual panels (CSS illustrations) */
.panel {
  position: relative; aspect-ratio: 5/4; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(109,207,246,.18), transparent 55%), radial-gradient(circle at 80% 90%, rgba(123,108,255,.2), transparent 55%), linear-gradient(180deg, #0b1d35, #06111f);
  border: 1px solid var(--line-2); display: grid; place-items: center;
}
.panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 32px 32px; }
.panel-icon { position: relative; width: 120px; height: 120px; border-radius: 32px; display: grid; place-items: center; font-size: 3rem; color: #02121f; background: var(--grad-brand); box-shadow: 0 30px 60px -10px rgba(109,207,246,.5); animation: bob 7s ease-in-out infinite; z-index: 2; }
.panel .orbit { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(109,207,246,.25); animation: rings 30s linear infinite; }
.panel .orbit.o2 { width: 46%; animation-duration: 20s; animation-direction: reverse; border-style: solid; border-color: rgba(123,108,255,.25); }
.panel .sat { position: absolute; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(10,24,44,.9); border: 1px solid var(--line-2); color: var(--brand-300); }
.panel .orbit .sat { top: -23px; left: calc(50% - 23px); animation: rings 30s linear infinite reverse; }
.panel .orbit.o2 .sat { top: auto; bottom: -23px; animation-duration: 20s; animation-direction: normal; color: #b3aaff; }

/* ---------- Blog ---------- */
.filter-bar { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 40px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--text-2); border: 1px solid var(--line-2); background: rgba(255,255,255,.03); transition: all .25s; }
.chip:hover { color: #fff; border-color: rgba(109,207,246,.4); }
.chip.active { color: #02121f; background: var(--brand-300); border-color: var(--brand-300); }
.search { position: relative; min-width: min(320px, 100%); flex: 0 1 320px; }
.search input { width: 100%; padding: 12px 16px 12px 44px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); outline: none; transition: border-color .25s, background .25s; }
.search input:focus { border-color: var(--brand-300); background: rgba(255,255,255,.07); }
.search i { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.post-card { display: flex; flex-direction: column; padding: 0; height: 100%; }
.post-card .thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .6s; filter: saturate(.85); }
.post-card:hover .thumb img { transform: scale(1.07); filter: saturate(1.1); }
.post-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(3,11,22,.85)); }
.post-card .cat { position: absolute; top: 16px; left: 16px; z-index: 2; font-size: .75rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(3,11,22,.7); border: 1px solid rgba(109,207,246,.35); color: var(--brand-300); backdrop-filter: blur(8px); }
.post-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--text-3); margin-bottom: 12px; }
.post-meta i { margin-right: 5px; }
.post-card h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 10px; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.post-card p { font-size: .94rem; }
.post-card .link-arrow { margin-top: auto; padding-top: 18px; }
.post-card.featured { display: grid; grid-template-columns: 1.15fr 1fr; }
.post-card.featured .thumb { aspect-ratio: auto; min-height: 340px; }
.post-card.featured .body { padding: clamp(28px, 4vw, 48px); justify-content: center; }
.post-card.featured h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
@media (max-width: 860px) { .post-card.featured { grid-template-columns: 1fr; } .post-card.featured .thumb { min-height: 220px; } }
.empty { display: none; text-align: center; padding: 60px 0; color: var(--text-3); }
.is-hidden { display: none !important; }

/* Article */
.article-hero { padding-bottom: 40px; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); margin-top: -10px; aspect-ratio: 21/9; box-shadow: 0 40px 90px -40px rgba(0,0,0,.9); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 1024px) { .article-layout { grid-template-columns: 1fr; } .article-aside { display: none; } }
.prose { font-size: 1.08rem; line-height: 1.85; color: #c8d5e4; max-width: 760px; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-top: 2.2em; color: #fff; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.prose a { color: var(--brand-300); text-decoration: underline; text-decoration-color: rgba(109,207,246,.4); text-underline-offset: 3px; }
.prose strong { color: #fff; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--brand-300); }
.prose .intro { font-size: 1.25rem; line-height: 1.7; color: #fff; font-weight: 500; }
.prose code { font-family: var(--mono); font-size: .88em; padding: .15em .45em; border-radius: 6px; background: rgba(109,207,246,.1); color: var(--brand-200); }
.prose pre { position: relative; font-family: var(--mono); font-size: .86rem; line-height: 1.7; padding: 22px 24px; border-radius: 16px; background: #050f1d; border: 1px solid var(--line-2); overflow-x: auto; color: #c9d7e8; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose pre[data-lang]::before { content: attr(data-lang); position: absolute; top: 10px; right: 14px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.prose blockquote { border-left: 3px solid var(--brand-300); padding: 6px 0 6px 22px; color: #fff; font-size: 1.15rem; font-style: italic; }
.callout { display: flex; gap: 16px; padding: 20px 22px; border-radius: 16px; background: rgba(109,207,246,.07); border: 1px solid rgba(109,207,246,.22); font-size: 1rem; }
.callout i { color: var(--brand-300); margin-top: 5px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: #fff; font-weight: 700; background: rgba(255,255,255,.03); }
.article-aside { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 20px; }
.toc { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.toc h4, .share h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; font-size: .9rem; color: var(--text-2); border-left: 2px solid transparent; transition: color .2s, border-color .2s; line-height: 1.4; }
.toc a:hover { color: #fff; }
.toc a.active { color: var(--brand-300); border-left-color: var(--brand-300); }
.share { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); }
.share-btns { display: flex; gap: 10px; }
.share-btns a, .share-btns button { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text-2); transition: all .25s; }
.share-btns a:hover, .share-btns button:hover { color: #02121f; background: var(--brand-300); border-color: var(--brand-300); transform: translateY(-3px); }
.author-box { display: flex; gap: 18px; align-items: center; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.02); margin-top: 56px; }
.author-box .av { width: 60px; height: 60px; flex: none; border-radius: 16px; background: #071628 url("../favicon.svg") center/62% no-repeat; border: 1px solid var(--line-2); }
.author-box strong { color: #fff; display: block; }
.author-box p { color: var(--text-2); font-size: .94rem; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq details { border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.025); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(109,207,246,.35); background: rgba(109,207,246,.04); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 26px; font-weight: 700; font-size: 1.06rem; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; font-weight: 400; border: 1px solid var(--line-2); color: var(--brand-300); transition: transform .4s var(--spring), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: rgba(109,207,246,.12); }
.faq .answer { padding: 0 26px 24px; color: var(--text-2); }
.faq .answer p + p { margin-top: 10px; }
.faq-group { margin-bottom: 56px; }
.faq-group > h2 { font-size: 1.4rem; margin-bottom: 20px; display: flex; gap: 12px; align-items: center; }
.faq-group > h2 i { color: var(--brand-300); font-size: 1.1rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(3, 11, 22, .5); outline: none; transition: border-color .25s, box-shadow .25s; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236DCFF6' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { background: var(--bg-2); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-300); box-shadow: 0 0 0 4px rgba(109,207,246,.12); }
.form-note { font-size: .84rem; color: var(--text-3); }

/* Contact cards */
.contact-card { text-align: left; }
.contact-card a.big { display: inline-block; margin-top: 14px; font-weight: 800; font-size: 1.15rem; color: var(--brand-300); }

/* ---------- CTA ---------- */
.cta {
  position: relative; border-radius: 32px; padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px); text-align: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 20% 0%, rgba(109,207,246,.28), transparent 50%), radial-gradient(circle at 90% 100%, rgba(123,108,255,.32), transparent 55%), linear-gradient(135deg, #0a2747, #071629);
  border: 1px solid rgba(109,207,246,.25);
}
.cta::before { content: ""; position: absolute; inset: -2px; z-index: -2; background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, rgba(109,207,246,.9) 80%, transparent 90%); animation: spin-angle 6s linear infinite; border-radius: inherit; }
.cta::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 31px; background: radial-gradient(circle at 20% 0%, rgba(109,207,246,.22), transparent 50%), radial-gradient(circle at 90% 100%, rgba(123,108,255,.28), transparent 55%), linear-gradient(135deg, #0a2747, #071629); }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-angle { to { --angle: 360deg; } }
.cta h2 { max-width: 800px; margin: 0 auto 18px; }
.cta p { max-width: 620px; margin: 0 auto 36px; color: var(--text-2); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: clamp(40px, 6vw, 80px); padding: clamp(60px, 8vw, 96px) 0 32px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(6,20,38,.6), #020811); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand img { height: 50px; width: auto; margin-bottom: 20px; }
.footer-brand p { color: var(--text-2); max-width: 340px; font-size: .96rem; }
.site-footer h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer ul a, .site-footer ul li { color: var(--text-2); font-size: .95rem; transition: color .2s; }
.site-footer ul a:hover { color: var(--brand-300); }
.socials { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--text-2); border: 1px solid var(--line-2); background: rgba(255,255,255,.03); transition: all .3s var(--spring); }
.socials a:hover { color: #02121f; background: var(--brand-300); border-color: var(--brand-300); transform: translateY(-4px) rotate(-6deg); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--text-3); }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--brand-300); }
.footer-word { font-size: clamp(4rem, 17vw, 15rem); font-weight: 900; letter-spacing: -.06em; line-height: .8; text-align: center; margin-top: 48px; background: linear-gradient(180deg, rgba(109,207,246,.16), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; pointer-events: none; white-space: nowrap; }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,24,44,.85); border: 1px solid var(--line-2); color: var(--brand-300); backdrop-filter: blur(10px); opacity: 0; transform: translateY(20px) scale(.8); transition: all .4s var(--spring); pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand-300); color: #02121f; }
.to-top svg { position: absolute; inset: -1px; width: 52px; height: 52px; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke: var(--brand-300); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 30px); opacity: 0; padding: 12px 20px; border-radius: 999px; background: var(--brand-300); color: #02121f; font-weight: 700; transition: all .4s var(--spring); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Legal / prose pages ---------- */
.legal .prose h2 { font-size: 1.4rem; }
.legal-updated { display: inline-flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--text-3); margin-top: 18px; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 0 60px; }
.nf-code { font-size: clamp(7rem, 26vw, 16rem); font-weight: 900; line-height: .9; letter-spacing: -.06em; background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite, glitch 4s steps(1) infinite; }
@keyframes glitch { 0%, 92%, 100% { transform: none; } 93% { transform: translate(-4px, 2px) skewX(6deg); } 95% { transform: translate(4px, -2px) skewX(-6deg); } 97% { transform: translate(-2px, 0); } }

/* ---------- Reveal animations ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal="up"], .js [data-reveal=""] { transform: translateY(40px); }
.js [data-reveal="left"] { transform: translateX(-50px); }
.js [data-reveal="right"] { transform: translateX(50px); }
.js [data-reveal="zoom"] { transform: scale(.92); }
.js [data-reveal="blur"] { filter: blur(12px); transform: translateY(20px); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--wi) * 55ms + 100ms); }
.split-words.in .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .split-words .w > span { transform: none; }
  .marquee-track { animation: none; }
}

@media print {
  .site-header, .site-footer, .bg-fx, .to-top, .progress-bar, .article-aside, .cta { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { color: #000; }
}

/* ---------- Email fallback panel ---------- */
.mail-panel {
  position: fixed; left: 50%; bottom: 24px; z-index: 400; width: min(440px, calc(100% - 32px));
  padding: 22px 22px 18px; border-radius: 20px;
  background: rgba(8, 20, 38, .97); border: 1px solid rgba(109,207,246,.35);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.85); backdrop-filter: blur(18px);
  transform: translate(-50%, 30px); opacity: 0; visibility: hidden;
  transition: transform .45s var(--spring), opacity .3s, visibility .3s;
}
.mail-panel.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.mail-panel strong { display: flex; gap: 10px; align-items: center; color: #fff; font-size: 1.02rem; padding-right: 30px; }
.mail-panel strong i { color: var(--brand-300); }
.mail-panel p { color: var(--text-2); font-size: .9rem; margin-top: 6px; }
.mail-panel .mp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mail-panel .mp-to { font-size: .82rem; color: var(--text-3); margin-top: 12px; }
.mail-panel .mp-to b { color: var(--brand-300); font-weight: 600; }
.mail-panel .mp-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; font-size: 1.3rem; line-height: 1; color: var(--text-2); border: 1px solid var(--line-2); }
.mail-panel .mp-close:hover { color: #fff; border-color: var(--brand-300); }
