/* aegory.com — brand tokens from docs/brand/README.md. Logical properties throughout (RTL/LTR). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plex-arabic-400.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Plex Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/plex-arabic-600.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Plex Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/plex-arabic-700.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@property --ang {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --red: #e12326;
  --red-bright: #ee2525;
  --red-deep: #831918;
  --font: 'Inter', 'Plex Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'SFMono-Regular', Menlo, Consolas, monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --hdr-h: 68px;
}
:root,
[data-theme='dark'] {
  --bg: #0a0b0d;
  --bg-2: #0e1013;
  --surface: #131519;
  --surface-2: #181b20;
  --border: #262a31;
  --text: #eceef2;
  --muted: #9ca1ab;
  --accent: #e12326;
  --accent-text: #ff5a5c;
  --on-accent: #ffffff;
  --glow: rgba(225, 35, 38, 0.35);
  --glow-soft: rgba(225, 35, 38, 0.12);
  --grid-line: rgba(255, 255, 255, 0.04);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --ok: #3ecf8e;
  --console-bg: #07080a;
  color-scheme: dark;
}
[data-theme='light'] {
  --bg: #f4f5f7;
  --bg-2: #eceef2;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --border: #dde0e6;
  --text: #0b0c0f;
  --muted: #555b66;
  --accent: #c81e24;
  --accent-text: #b81b21;
  --on-accent: #ffffff;
  --glow: rgba(200, 30, 36, 0.22);
  --glow-soft: rgba(200, 30, 36, 0.07);
  --grid-line: rgba(11, 12, 15, 0.05);
  --shadow: 0 30px 70px -35px rgba(20, 24, 32, 0.35);
  --ok: #138a52;
  --console-bg: #0d0f12;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}
:lang(ar) body,
body:lang(ar) {
  line-height: 1.85;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}
:lang(ar) h1,
:lang(ar) h2,
:lang(ar) h3 {
  letter-spacing: 0;
  line-height: 1.4;
}
p {
  margin: 0 0 1em;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.narrow {
  max-width: 820px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.88rem;
}
.center {
  text-align: center;
  justify-content: center;
}
.ic {
  width: 22px;
  height: 22px;
  flex: none;
}
.ic-xs {
  width: 18px;
  height: 18px;
}
[dir='rtl'] .flip-rtl,
[dir='ltr'] .flip-ltr {
  transform: scaleX(-1);
}
.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 8px;
  transition: top 0.2s;
}
.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s, background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 30px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  background: var(--red-bright);
  box-shadow: 0 14px 40px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent-text);
  color: var(--accent-text);
  transform: translateY(-2px);
}
.btn-sm {
  min-height: 38px;
  padding: 7px 16px;
  font-size: 0.88rem;
}
.btn-lg {
  min-height: 52px;
  padding: 13px 26px;
  font-size: 1rem;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.icon-btn:hover {
  border-color: var(--accent-text);
  color: var(--accent-text);
}
.icon-btn .ic {
  width: 19px;
  height: 19px;
  grid-area: 1 / 1;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
[data-theme='dark'] .ic-moon,
[data-theme='light'] .ic-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
}
.link {
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ------------------------------------------------------------------ header */
.hdr {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.hdr.scrolled,
.hdr.open,
.pg-legal .hdr {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.hdr-in {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--hdr-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 1.02rem;
}
.brand img {
  width: 32px;
  height: 32px;
}
.nav {
  display: flex;
  gap: 4px;
  margin-inline-start: 12px;
}
.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover,
.nav a.active {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
}
.nav a.active::after {
  content: '';
  position: absolute;
  inset-inline: 40%;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.menu-btn {
  display: none;
}
.menu-btn .ic-close,
.hdr.open .menu-btn .ic-open {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
.hdr.open .menu-btn .ic-close {
  opacity: 1;
  transform: none;
}
.drawer {
  border-top: 1px solid var(--border);
}
.drawer-in {
  display: grid;
  gap: 4px;
  padding-block: 14px 22px;
}
.drawer-in a:not(.btn) {
  padding: 12px 6px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.drawer-in .btn {
  margin-top: 12px;
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--hdr-h) + 48px) 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.9;
}
.hero-glow {
  position: absolute;
  z-index: -2;
  inset-inline-end: -10%;
  top: 0;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  filter: blur(20px);
  animation: breathe 9s ease-in-out infinite;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero-in {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: 56px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 26px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--glow);
  animation: ping 2s infinite;
}
.hero-title {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
:lang(ar) .hero-title {
  font-weight: 700;
  line-height: 1.3;
  font-size: clamp(2.3rem, 5vw, 4.1rem);
}
.hero-title .ln {
  display: block;
}
.hl {
  background: linear-gradient(100deg, var(--red-bright) 0%, #ff8a7a 25%, var(--red) 50%, var(--red-deep) 75%, var(--red-bright) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
[data-theme='light'] .hl {
  background-image: linear-gradient(100deg, var(--accent) 0%, #e8513f 25%, var(--red-deep) 50%, var(--accent) 100%);
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 32px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 520px;
}
.orb {
  position: relative;
  width: min(420px, 82vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease);
}
.rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ring {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
}
.r2 {
  stroke-dasharray: 2 10;
  stroke: color-mix(in srgb, var(--accent-text) 45%, var(--border));
}
.r3 {
  stroke: color-mix(in srgb, var(--accent-text) 25%, var(--border));
}
.arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  transform-origin: 200px 200px;
  filter: drop-shadow(0 0 6px var(--glow));
}
.a1 {
  animation: spin 14s linear infinite;
}
.a2 {
  animation: spin 9s linear infinite reverse;
  stroke-width: 2;
  opacity: 0.7;
}
.r2 {
  transform-origin: 200px 200px;
  animation: spin 40s linear infinite;
}
.mark {
  position: relative;
  width: 46%;
  height: auto;
  filter: drop-shadow(0 20px 40px var(--glow));
  animation: float 6s ease-in-out infinite;
}
.scan-beam {
  position: absolute;
  inset-inline: 22%;
  top: 22%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
  box-shadow: 0 0 18px 2px var(--glow);
  border-radius: 2px;
  animation: beam 3.6s ease-in-out infinite;
  opacity: 0.85;
}
.console {
  position: absolute;
  inset-inline-start: -4%;
  bottom: 0;
  width: min(390px, 92%);
  border-radius: 14px;
  border: 1px solid #23262d;
  background: color-mix(in srgb, var(--console-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  color: #d9dce3;
  font-family: var(--mono);
  font-size: 0.8rem;
  overflow: hidden;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid #1d2026;
  background: #0f1115;
}
.console-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2c3038;
}
.console-bar span:first-child {
  background: var(--red);
}
.console-bar b {
  margin-inline-start: auto;
  font-weight: 500;
  color: #7d828d;
  font-size: 0.75rem;
}
.console-body {
  padding: 14px 16px 16px;
  min-height: 162px;
  display: grid;
  align-content: start;
  gap: 4px;
  text-align: left;
}
.cl {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: lineIn 0.35s var(--ease) both;
}
.prompt {
  color: var(--red-bright);
}
.cl-dim {
  color: #8a8f99;
  padding-inline-start: 14px;
}
.cl-bad {
  color: #ff6b6d;
}
.cl-ok {
  color: #4fdc9b;
}
.cl-live {
  color: #4fdc9b;
  font-weight: 600;
}
.cl-live span {
  animation: blink 1.4s steps(2) infinite;
}
.caret::after {
  content: '▍';
  color: var(--red-bright);
  margin-inline-start: 2px;
  animation: blink 1s steps(2) infinite;
}
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 2px solid var(--border);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: cue 1.8s ease-in-out infinite;
}

/* ------------------------------------------------------------------ sections */
.sec {
  position: relative;
  padding-block: clamp(80px, 11vw, 140px);
}
.sec-alt {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%);
}
.sec-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
:lang(ar) .kicker {
  letter-spacing: 0;
  font-size: 0.92rem;
}
.kicker::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.sec-title {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 800;
}
:lang(ar) .sec-title {
  font-weight: 700;
}
.sec-lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}
.grid {
  display: grid;
  gap: 20px;
}
.g3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.card h3 {
  font-size: 1.18rem;
  font-weight: 700;
}
.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent-text) 40%, var(--border));
  box-shadow: var(--shadow);
}
.spot::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), var(--glow-soft), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}
.spot:hover::before {
  opacity: 1;
}
.card-ic {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 12px;
  color: var(--accent-text);
  background: var(--glow-soft);
  border: 1px solid color-mix(in srgb, var(--accent-text) 25%, transparent);
  transition: transform 0.4s var(--ease);
}
.card:hover .card-ic {
  transform: rotate(-6deg) scale(1.06);
}
.card-ic.warn {
  color: #f5a524;
  background: rgba(245, 165, 36, 0.1);
  border-color: rgba(245, 165, 36, 0.25);
}
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: 6px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
:lang(ar) .tag {
  text-transform: none;
  letter-spacing: 0;
}

/* steps */
.steps-wrap {
  position: relative;
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: s;
}
.steps-track {
  position: absolute;
  inset-inline: 10%;
  top: 34px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}
.steps-fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: calc(var(--p, 0) * 100%);
  background: linear-gradient(90deg, var(--red-deep), var(--red-bright));
  box-shadow: 0 0 12px var(--glow);
  border-radius: 2px;
  transition: width 0.15s linear;
}
[dir='rtl'] .steps-fill {
  background: linear-gradient(270deg, var(--red-deep), var(--red-bright));
}
.step {
  position: relative;
  text-align: center;
}
.step-ic {
  position: relative;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease);
}
.step.on .step-ic {
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--glow-soft), 0 0 30px var(--glow);
  transform: scale(1.05);
}
.step-ic .ic {
  width: 26px;
  height: 26px;
}
.step-n {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 700;
}
.step h3 {
  font-size: 1.1rem;
}
.step p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}

/* bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.bento > * {
  grid-column: span 2;
}
.bento-studio,
.bento-cc {
  grid-column: span 3;
}
.bento-cc {
  order: 1;
}
.bento-core {
  order: 2;
}
.bento-agent {
  order: 3;
}
.bento-kit {
  order: 4;
}
.bento > .soon {
  order: 5;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-block: 20px;
}
.bento > .soon .tag {
  margin: 0 !important;
}
.bento > .soon ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.bento-studio {
  background: radial-gradient(120% 120% at 100% 0%, var(--glow-soft), transparent 50%), var(--surface);
}
[dir='rtl'] .bento-studio {
  background: radial-gradient(120% 120% at 0% 0%, var(--glow-soft), transparent 50%), var(--surface);
}
.soon {
  border-style: dashed;
  background: transparent;
  display: grid;
  align-content: center;
}
.soon ul {
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.soon li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.soon-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--accent-text);
  animation: ping 2.4s infinite;
}

/* tabs */
.tablist {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 40px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab {
  position: relative;
  z-index: 1;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s;
}
.tab[aria-selected='true'] {
  color: var(--on-accent);
}
.tab-ink {
  position: absolute;
  z-index: 0;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--w, 0);
  transform: translateX(var(--x, 0));
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 8px 24px -8px var(--glow);
  transition: transform 0.45s var(--ease), width 0.45s var(--ease);
}
html:not(.js) .tab[aria-selected='true'] {
  background: var(--accent);
}
.tabpanel {
  display: grid;
  grid-template-columns: 0.75fr 1.6fr;
  align-items: center;
  gap: 48px;
  animation: panelIn 0.6s var(--ease) both;
}
.tabpanel[hidden] {
  display: none;
}
.tp-copy h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
}
.tp-copy p {
  color: var(--muted);
}
.frame {
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0b0c0f;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease);
}
.frame-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #121418;
  border-bottom: 1px solid #1f2228;
}
.frame-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2b2f37;
}
.frame-bar span:first-child {
  background: var(--red);
}
.frame img {
  width: 100%;
  height: auto;
}

/* shared defence */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}
.split .sec-head {
  text-align: start;
  margin-inline: 0;
  margin-bottom: 28px;
}
.ticks {
  display: grid;
  gap: 12px;
}
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ticks .ic {
  color: var(--ok);
  margin-top: 4px;
}
.net {
  position: relative;
  aspect-ratio: 4 / 3;
}
.net-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ng0 {
  stop-color: var(--accent);
  stop-opacity: 0.22;
}
.ng1 {
  stop-color: var(--accent);
  stop-opacity: 0;
}
.net-halo {
  transform-origin: 240px 180px;
  animation: breathe 5s ease-in-out infinite;
}
.link {
  fill: none;
  stroke: var(--border);
  stroke-width: 2;
}
.link {
  stroke-dasharray: 4 8;
  animation: flow 1.6s linear infinite;
  stroke: color-mix(in srgb, var(--accent-text) 50%, var(--border));
}
.l2,
.l4 {
  animation-direction: reverse;
}
.attack {
  fill: none;
  stroke: #ff5a5c;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 14 200;
  animation: strike 3.2s ease-in infinite;
}
.at2 {
  animation-delay: 1.6s;
}
.node circle {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 2;
}
.n-hub circle {
  stroke: var(--accent);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 12px var(--glow));
}
.n-bad circle {
  fill: #ff5a5c;
  stroke: none;
  animation: badPulse 1.6s ease-in-out infinite;
  transform-origin: 40px 180px;
}
.n-a circle,
.n-b circle {
  animation: hit 3.2s infinite;
}
.n-b circle {
  animation-delay: 1.6s;
}
.n-c circle,
.n-d circle {
  stroke: var(--ok);
}
.shield-wave {
  fill: none;
  stroke: var(--ok);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: wave 3.2s ease-out infinite;
}
.w2 {
  animation-delay: 1.6s;
}
.x-mark {
  fill: none;
  stroke: var(--ok);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.net-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9%;
  height: auto;
  translate: -50% -50%;
}

/* plans */
.plans {
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
}
.plan h3 {
  font-size: 1.5rem;
  margin: 0;
}
.plan .muted {
  margin: 0;
}
.plan .ticks {
  flex: 1;
  margin-block: 8px 12px;
  color: var(--text);
}
.plan .ticks li {
  font-size: 0.96rem;
}
.plan.featured {
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--ang), var(--red-deep), var(--red-bright), transparent 40%, var(--red-deep) 70%, var(--red-bright)) border-box;
  border: 1.5px solid transparent;
  animation: rotateAng 6s linear infinite;
  box-shadow: 0 30px 80px -40px var(--glow);
}
.badge {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 700;
}
.included {
  margin-top: 28px;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.included h3 {
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.cols {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 32px;
  margin-bottom: 20px;
}
.included .small {
  margin: 0;
}

/* faq */
.faq {
  display: grid;
  gap: 12px;
}
.qa {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.qa[open] {
  border-color: color-mix(in srgb, var(--accent-text) 35%, var(--border));
  box-shadow: 0 20px 50px -35px var(--glow);
}
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa-ic {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), background-color 0.3s, border-color 0.3s;
}
.qa-ic::before,
.qa-ic::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 2px;
  margin: -1px 0 0 -5.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.qa-ic::after {
  transform: rotate(90deg);
}
.qa[open] .qa-ic {
  transform: rotate(180deg);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.qa[open] .qa-ic::after {
  transform: rotate(0deg);
}
.qa-a {
  padding: 0 22px 20px;
  color: var(--muted);
}
.qa[open] .qa-a {
  animation: lineIn 0.4s var(--ease) both;
}
.qa-a p {
  margin: 0;
}

/* contact */
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 88px) 24px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--ang), var(--border), var(--red-bright), var(--border) 30%, var(--border) 60%, var(--red-deep), var(--border)) border-box;
  border: 1.5px solid transparent;
  animation: rotateAng 10s linear infinite;
}
.cta-glow {
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 120%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  z-index: 0;
  animation: breathe 7s ease-in-out infinite;
}
.cta-panel > * {
  position: relative;
  z-index: 1;
}
.cta-panel .sec-head {
  margin-bottom: 32px;
}
.cta-panel .cta-row {
  margin-bottom: 18px;
}
.contact-addr {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.9rem;
}

/* footer */
.ftr {
  border-top: 1px solid var(--border);
  padding-top: 56px;
  background: var(--bg-2);
}
.ftr-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.ftr-brand p {
  margin-top: 16px;
  max-width: 380px;
  font-size: 0.93rem;
}
.ftr-h {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.ftr ul {
  display: grid;
  gap: 8px;
}
.ftr ul a {
  color: var(--muted);
  font-size: 0.93rem;
  transition: color 0.2s;
}
.ftr ul a:hover {
  color: var(--accent-text);
}
.ftr-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.to-top:hover {
  color: var(--accent-text);
}

/* legal + 404 */
.legal {
  padding-block: calc(var(--hdr-h) + 56px) 96px;
}
.legal .kicker a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legal .kicker::before {
  display: none;
}
.legal h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}
.legal p {
  color: var(--muted);
}
.nf {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 40px 24px;
  text-align: center;
}
.nf-mark {
  animation: float 6s ease-in-out infinite;
}
.nf-code {
  font-size: 4rem;
  font-weight: 800;
  margin: 0;
  color: var(--accent-text);
  letter-spacing: 0.1em;
}
.nf section {
  max-width: 420px;
}
.nf h1,
.nf h2 {
  font-size: 1.5rem;
}

/* ------------------------------------------------------------------ reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}
.js [data-delay='1'] {
  transition-delay: 0.08s;
}
.js [data-delay='2'] {
  transition-delay: 0.16s;
}
.js [data-delay='3'] {
  transition-delay: 0.24s;
}
.js [data-delay='4'] {
  transition-delay: 0.32s;
}
.js .hero [data-reveal]:nth-child(2) {
  transition-delay: 0.1s;
}
.js .hero [data-reveal]:nth-child(3) {
  transition-delay: 0.2s;
}
.js .hero [data-reveal]:nth-child(4) {
  transition-delay: 0.3s;
}
.js .hero [data-reveal]:nth-child(5) {
  transition-delay: 0.4s;
}
.js .hero-visual[data-reveal] {
  transform: translateY(28px) scale(0.96);
  transition-delay: 0.25s;
}
.js .hero-visual[data-reveal].in {
  transform: none;
}

/* ------------------------------------------------------------------ keyframes */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}
@keyframes shimmer {
  to {
    background-position: -250% 0;
  }
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 var(--glow);
  }
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
@keyframes beam {
  0%,
  100% {
    top: 24%;
    opacity: 0;
  }
  10%,
  90% {
    opacity: 0.9;
  }
  50% {
    top: 74%;
  }
}
@keyframes lineIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes cue {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(14px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@keyframes flow {
  to {
    stroke-dashoffset: -24;
  }
}
@keyframes strike {
  0% {
    stroke-dashoffset: 14;
    opacity: 1;
  }
  45% {
    stroke-dashoffset: -150;
    opacity: 1;
  }
  55%,
  100% {
    stroke-dashoffset: -150;
    opacity: 0;
  }
}
@keyframes hit {
  0%,
  40%,
  100% {
    stroke: var(--border);
  }
  45%,
  60% {
    stroke: #ff5a5c;
  }
}
@keyframes wave {
  0%,
  50% {
    opacity: 0;
    transform: scale(0.6);
  }
  60% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}
@keyframes badPulse {
  50% {
    transform: scale(1.25);
    opacity: 0.7;
  }
}
@keyframes rotateAng {
  to {
    --ang: 360deg;
  }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-grid;
  }
  .hero-in {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy .lead {
    margin-inline: auto;
  }
  .cta-row,
  .chips {
    justify-content: center;
  }
  .hero-visual {
    min-height: 480px;
  }
  .console {
    inset-inline-start: auto;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 560px;
    margin-inline: auto;
  }
  .steps-track {
    inset-inline: auto;
    inset-inline-start: 34px;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }
  .steps-fill {
    width: 100%;
    height: calc(var(--p, 0) * 100%);
    inset-block: 0 auto;
  }
  .step {
    display: grid;
    grid-template-columns: 70px 1fr;
    column-gap: 20px;
    text-align: start;
  }
  .step-ic {
    grid-row: span 2;
    margin: 0;
  }
  .step h3 {
    align-self: end;
    margin-bottom: 4px;
  }
  .tabpanel {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .tp-copy {
    text-align: center;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ftr-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .ftr-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .g3 {
    grid-template-columns: 1fr;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .bento > *,
  .bento-studio,
  .bento-cc,
  .bento > .soon {
    grid-column: auto;
  }
  .plans {
    max-width: 560px;
    margin-inline: auto;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding-inline: 18px;
  }
  .hide-sm {
    display: none;
  }
  .hero {
    padding-top: calc(var(--hdr-h) + 28px);
  }
  .hero-visual {
    min-height: 420px;
  }
  .orb {
    width: min(320px, 80vw);
  }
  .console {
    font-size: 0.72rem;
    width: 100%;
  }
  .cta-row .btn {
    flex: 1 1 100%;
  }
  .cols {
    grid-template-columns: 1fr;
  }
  .card,
  .plan,
  .included {
    padding: 24px;
  }
  .tablist {
    justify-content: flex-start;
  }
  .ftr-grid {
    grid-template-columns: 1fr 1fr;
  }
  .scroll-cue {
    display: none;
  }
}
@media (max-width: 420px) {
  .hide-xs {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .hero-canvas,
  .scan-beam {
    display: none;
  }
  .attack {
    stroke-dasharray: none;
    opacity: 0.6;
  }
  .shield-wave {
    opacity: 0;
  }
}
@media print {
  .hdr,
  .hero-canvas,
  .scroll-cue,
  .ftr {
    display: none;
  }
}
