
  :root {
    --ink: #05070d;
    --panel: #0a0e18;
    --edge: #161c2c;
    --pearl: #e7ecf3;
    --mute: #7c8699;
    --cyan: #5eead4;
    --sky: #3bb7ff;
    --gold: #d6b97b;
    --cyan-rgb: 94 234 212;
    --gold-rgb: 214 185 123;
    --ink-rgb: 5 7 13;
    --theme-bg: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(13,30,56,0.7), transparent 60%), radial-gradient(ellipse 70% 50% at 20% 100%, rgba(20,14,40,0.5), transparent 60%), radial-gradient(ellipse 60% 50% at 90% 80%, rgba(40,30,10,0.18), transparent 60%), linear-gradient(180deg, #04060c 0%, #050810 50%, #03050a 100%);
  }
  html, body {
    background: var(--ink);
    color: var(--pearl);
    font-family: 'Inter Tight', sans-serif;
    transition: background 600ms ease, color 600ms ease;
  }
  /* Smooth theme transition */
  .glass, .glass-strong, .hairline, .hairline-strong {
    transition: background 600ms ease, border-color 600ms ease, color 600ms ease;
  }
  /* Theme-aware tinted glass: backgrounds + borders pull from --cyan-rgb */
  .glass {
    background: linear-gradient(180deg, rgba(var(--cyan-rgb)/0.05), rgba(var(--ink-rgb)/0.6));
    border: 1px solid rgba(var(--cyan-rgb)/0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .glass-strong {
    background: linear-gradient(180deg, rgba(var(--cyan-rgb)/0.07), rgba(var(--ink-rgb)/0.7));
    border: 1px solid rgba(var(--cyan-rgb)/0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .grid-bg {
    background-image:
      linear-gradient(rgba(var(--cyan-rgb)/0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(var(--cyan-rgb)/0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    transition: background 600ms ease;
  }
  .arabic-pattern {
    background-image:
      radial-gradient(circle at 25% 25%, rgba(var(--gold-rgb)/0.05) 0, transparent 35%),
      radial-gradient(circle at 75% 75%, rgba(var(--cyan-rgb)/0.06) 0, transparent 35%),
      radial-gradient(circle at 50% 50%, rgba(var(--cyan-rgb)/0.03) 0, transparent 45%);
    transition: background 600ms ease;
  }
  .section-tag {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 16px;
    border: 1px solid rgba(var(--cyan-rgb)/0.35);
    background: linear-gradient(90deg, rgba(var(--cyan-rgb)/0.12), rgba(var(--cyan-rgb)/0.02));
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--cyan);
    white-space: nowrap;
    transition: color 600ms ease, border-color 600ms ease, background 600ms ease;
  }
  /* The kicker is the widest unbreakable run in the division hero, so on a
     phone `nowrap` forces the whole hero column past the viewport and the page
     scrolls sideways. Longer Arabic kickers make it worse. Let it wrap. */
  @media (max-width: 700px) {
    .section-tag {
      white-space: normal;
      align-items: flex-start;
    }
    .section-tag::before { margin-top: 5px; flex: 0 0 auto; }
  }
  .section-tag::before {
    content: ''; width: 7px; height: 7px; background: var(--cyan);
    border-radius: 999px; box-shadow: 0 0 14px var(--cyan), 0 0 4px var(--cyan);
  }
  .conic-ring {
    background: conic-gradient(from 0deg, transparent, rgba(var(--cyan-rgb)/0.45), transparent 40%, transparent 60%, rgba(var(--gold-rgb)/0.4), transparent);
    transition: background 600ms ease;
  }
  .gold-line {
    background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb)/0.65), transparent);
    height: 1px;
    transition: background 600ms ease;
  }
  .node-dot { box-shadow: 0 0 0 4px rgba(var(--cyan-rgb)/0.1), 0 0 16px rgba(var(--cyan-rgb)/0.55); }
  body { overflow-x: hidden; }
  ::selection { background: rgba(94,234,212,0.35); color: #fff; }

  /* Custom scrollbar */
  ::-webkit-scrollbar { width: 10px; background: #04060b; }
  ::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#1a2238,#0a0e18); border-radius: 999px; }
  ::-webkit-scrollbar-thumb:hover { background: #243049; }

  .hairline { border: 1px solid rgba(255,255,255,0.06); }
  .hairline-strong { border: 1px solid rgba(255,255,255,0.12); }

  /* Glow utilities */
  .glow-cyan { box-shadow: 0 0 40px -10px rgba(94,234,212,0.5), inset 0 0 20px -10px rgba(94,234,212,0.2); }
  .glow-gold { box-shadow: 0 0 40px -10px rgba(214,185,123,0.5), inset 0 0 20px -10px rgba(214,185,123,0.2); }
  .text-glow-cyan { text-shadow: 0 0 32px rgba(94,234,212,0.35); }
  .text-glow-gold { text-shadow: 0 0 32px rgba(214,185,123,0.35); }

  /* Conic shimmer */

  /* Animations */
  @keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  @keyframes spin-slower { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
  @keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  @keyframes pulse-glow { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
  @keyframes data-flow {
    0% { stroke-dashoffset: 200; opacity: 0; }
    20% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
  }
  @keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
  }
  @keyframes blip {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(3); opacity: 0; }
  }
  @keyframes dash-flow {
    to { stroke-dashoffset: -200; }
  }
  @keyframes packet {
    0%   { offset-distance: 0%;   opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
  }
  @keyframes leak-pulse {
    0%,100% { opacity: 0.35; transform: scale(1); }
    50%     { opacity: 1;    transform: scale(1.05); }
  }
  @keyframes ring-expand {
    0%   { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(2.4); opacity: 0; }
  }
  @keyframes flicker {
    0%,19%,21%,100% { opacity: 1; }
    20% { opacity: 0.3; }
  }
  @keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
  }
  .spin-slow { animation: spin-slow 40s linear infinite; }
  .spin-slower { animation: spin-slower 60s linear infinite; }
  .float-y { animation: float-y 6s ease-in-out infinite; }
  .pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
  .dash-flow { animation: dash-flow 3s linear infinite; }
  .leak-pulse { animation: leak-pulse 1.8s ease-in-out infinite; }
  .flicker { animation: flicker 5s linear infinite; }

  /* Shimmering gold/cyan text accent */
  .shimmer-gold {
    background: linear-gradient(90deg, #b48f4a 0%, #f3e2b2 20%, #d6b97b 50%, #f3e2b2 80%, #b48f4a 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 6s linear infinite;
  }
  .shimmer-cyan {
    background: linear-gradient(90deg, #2fb6a2 0%, #b5fff0 25%, #5eead4 55%, #b5fff0 80%, #2fb6a2 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 6s linear infinite;
  }

  /* 3D tilt setup */
  .tilt-root { perspective: 1200px; }
  .tilt-card { transform-style: preserve-3d; will-change: transform; transition: transform 120ms ease-out; }
  .tilt-layer-near { transform: translateZ(30px); }
  .tilt-layer-far  { transform: translateZ(-10px); }

  /* Type defaults */
  .display { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }
  .mono    { font-family: 'JetBrains Mono', monospace; }

  /* Subtle noise (no image) */
  .noise::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
    background-size: 3px 3px;
    mix-blend-mode: overlay;
    opacity: 0.5;
  }

  /* Section underline accent */

  /* Cursor spotlight */
  .spotlight {
    position: fixed; pointer-events: none; z-index: 1;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(94,234,212,0.06), transparent 60%);
    transform: translate(-50%,-50%);
    transition: opacity 200ms;
  }

  /* Marquee for content pillars */
  @keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  .marquee { animation: marquee 50s linear infinite; }

  /* Decorative corners */
  .corner-mark { position: absolute; width: 14px; height: 14px; border-color: rgba(94,234,212,0.45); }
  .corner-tl { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
  .corner-tr { top: -1px; right: -1px; border-top: 1px solid; border-right: 1px solid; }
  .corner-bl { bottom: -1px; left: -1px; border-bottom: 1px solid; border-left: 1px solid; }
  .corner-br { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }

  /* Hide scroll on horizontal scrollers */
  .no-scrollbar::-webkit-scrollbar { display: none; }
  .no-scrollbar { scrollbar-width: none; }

  /* Service node */

  /* Focus rings */
  button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 1px solid rgba(94,234,212,0.7); outline-offset: 2px;
  }

  /* RESPONSIVE TYPE OVERRIDES
     The base type rules apply text-[44px]/[64px]/[88px] etc which can overlap
     when the viewport sits between breakpoints. Hard-cap with clamp() to be safe. */
  h1.display { font-size: clamp(2rem, 6.5vw, 6.5rem) !important; line-height: 0.95 !important; }
  h2.display { font-size: clamp(1.6rem, 4.4vw, 4.2rem) !important; line-height: 1.08 !important; }
  h3.display { font-size: clamp(1.1rem, 2.2vw, 2.2rem) !important; line-height: 1.15 !important; }

  /* Global section spacing — generous vertical rhythm */
  section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
  @media (min-width: 1024px) {
    section {
      padding-top: 9rem;
      padding-bottom: 9rem;
    }
  }

  /* Improve body text readability */
  p { line-height: 1.75; }

  /* On very narrow screens, hide the telemetry rail entirely and tighten section padding */
  @media (max-width: 640px) {
    section { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
    .display { letter-spacing: -0.02em; }
  }

  /* Prevent any wide stat tile from overflowing */
  .tabular-nums { font-variant-numeric: tabular-nums; }

  /* Vertical margin glyphs . animated book-spine text floaters that fill side margins */
  .margin-glyph {
    position: fixed;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: rgba(var(--cyan-rgb)/0.45);
    pointer-events: none;
    white-space: nowrap;
    z-index: 5;
    text-shadow: 0 0 12px rgba(var(--cyan-rgb)/0.5);
    transition: color 600ms ease;
  }
  .margin-glyph.left  { left: 1.25rem; }
  .margin-glyph.right { right: 1.25rem; color: rgba(var(--gold-rgb)/0.5); text-shadow: 0 0 12px rgba(var(--gold-rgb)/0.5); }
  @media (max-width: 1280px) {
    .margin-glyph { display: none; }
  }
