@layer reset, tokens, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
}

@layer tokens {
  :root {
    --bg: #030508;
    --bg-elevated: #070d16;
    --surface: rgba(12, 22, 38, 0.72);
    --surface-solid: #0c1626;
    --surface-2: #111f33;
    --border: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(170, 180, 192, 0.28);
    --text: #f4f7fb;
    --muted: #8b9cb5;
    /* Brand-aligned palette — matches OraxAdmin logo (red O + platinum A + cyan network). Gold removed. */
    --gold: #aab4c0;          /* repurposed: platinum accent */
    --gold-light: #cdd6df;    /* platinum light */
    --gold-dark: #7f8b99;     /* platinum dark */
    --brand-red: #e21f26;
    --brand-red-light: #ff5a4d;
    --brand-red-dark: #b3141a;
    --platinum: #9aa6b2;
    /* Premium modern red gradient system */
    --grad-red: linear-gradient(135deg, #ff4b5c 0%, #f1242f 38%, #e21f26 62%, #b3141a 100%);
    --grad-red-bright: linear-gradient(135deg, #ff6675 0%, #fb2a37 38%, #ef242b 62%, #c1141b 100%);
    --glow-red: 0 14px 38px -8px rgba(226, 31, 38, 0.55), 0 6px 16px -4px rgba(226, 31, 38, 0.4);
    --glow-red-strong: 0 22px 56px -8px rgba(255, 75, 92, 0.6), 0 8px 22px -4px rgba(226, 31, 38, 0.5);
    --accent: #22d3ee;
    --accent-2: #0891b2;
    --green: #34d399;
    --red: #f87171;
    --gradient: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 35%, var(--accent) 70%, #67e8f9 100%);
    --gradient-cyan: linear-gradient(135deg, #0891b2, #22d3ee, #67e8f9);
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 0 60px rgba(34, 211, 238, 0.15);
    --font: "IBM Plex Sans Arabic", system-ui, sans-serif;
    --font-display: "Outfit", "IBM Plex Sans Arabic", sans-serif;
    --mono: "JetBrains Mono", Consolas, monospace;
    --nav-h: 76px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@layer base {
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }
  body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }
  body.en { direction: ltr; font-family: "Inter", var(--font); }
  body.ar { direction: rtl; }
  a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
  a:hover { color: var(--gold-light); text-decoration: none; }
  .mono { font-family: var(--mono); font-size: 0.88em; }
  .gradient-text {
    display: block;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .gold-text {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

@layer layout {
  .container { width: min(1180px, 100% - 48px); margin-inline: auto; }
  .section { padding: 110px 0; position: relative; }
  .section-alt {
    background:
      radial-gradient(ellipse 80% 50% at 50% 0%, rgba(34, 211, 238, 0.04), transparent),
      var(--bg-elevated);
  }
  .section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
  .section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.12;
  }
  .section-head p { color: var(--muted); font-size: 1.08rem; }
  .section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 16px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-gold);
    background: rgba(170, 180, 192, 0.06);
  }
  .section-tag::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold); box-shadow: 0 0 10px var(--gold);
  }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .grain {
    position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
  .aurora {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background:
      radial-gradient(ellipse 60% 45% at 15% 20%, rgba(34, 211, 238, 0.09), transparent),
      radial-gradient(ellipse 50% 40% at 85% 15%, rgba(170, 180, 192, 0.07), transparent),
      radial-gradient(ellipse 40% 35% at 50% 90%, rgba(52, 211, 153, 0.05), transparent);
  }
}

@layer components {
  /* Nav */
  .nav {
    position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
    height: var(--nav-h);
    backdrop-filter: blur(24px) saturate(1.5);
    background: rgba(3, 5, 8, 0.72);
    border-bottom: 1px solid var(--border);
    transition: all 0.35s var(--ease);
  }
  .nav.scrolled {
    background: rgba(3, 5, 8, 0.94);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
  .logo {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--font-display);
    font-weight: 800; font-size: 1.2rem; color: var(--text);
  }
  .logo-mark {
    width: 44px; height: 44px; border-radius: 14px;
    background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
    color: #1a1000;
    display: grid; place-items: center;
    box-shadow: 0 0 32px rgba(170, 180, 192, 0.35), inset 0 1px 0 rgba(255,255,255,0.35);
  }
  .logo-mark svg { width: 22px; height: 22px; }
  .logo-mark.orax-preview-active {
    background: #0a1420;
    border: 1px solid rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.2);
  }
  .logo-mark img.orax-logo-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    padding: 3px;
    background: #050a14;
  }

  .orax-logo-preview-banner {
    position: fixed;
    top: var(--nav-h, 76px);
    left: 0;
    right: 0;
    z-index: 9990;
    padding: 10px 16px;
    background: rgba(5, 10, 20, 0.94);
    border-bottom: 1px solid rgba(34, 211, 238, 0.35);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  }
  .orax-logo-preview-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  .orax-logo-preview-banner-thumb {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
    background: #0a1420;
    border: 1px solid rgba(170, 180, 192, 0.3);
  }
  .orax-logo-preview-banner-text {
    flex: 1;
    min-width: 180px;
    font-size: 0.9rem;
    color: var(--muted);
  }
  .orax-logo-preview-banner-text strong { color: var(--accent); }
  .orax-logo-preview-banner-name { color: var(--text); margin-inline-start: 6px; }
  .orax-logo-preview-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  .orax-lpb-btn {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-family: inherit;
  }
  .orax-lpb-primary {
    background: var(--gradient-cyan, linear-gradient(135deg, #0891b2, #22d3ee));
    color: #041018;
  }
  .orax-lpb-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
  }
  .orax-lpb-ghost:hover { color: var(--text); border-color: rgba(34, 211, 238, 0.4); }
  html.orax-logo-preview-on { scroll-padding-top: calc(var(--nav-h, 76px) + 56px); }
  .nav-links { display: flex; gap: 8px; align-items: center; }
  .nav-links a:not(.btn) {
    color: var(--muted); font-size: 0.9rem; font-weight: 500;
    padding: 8px 14px; border-radius: 10px;
    transition: all 0.2s;
  }
  .nav-links a:not(.btn):hover {
    color: var(--text); background: rgba(255,255,255,0.04);
  }
  .lang-toggle {
    border: 1px solid var(--border); background: rgba(255,255,255,0.04);
    color: var(--gold-light); padding: 8px 14px; border-radius: 10px;
    cursor: pointer; font-size: 0.8rem; font-weight: 700;
    font-family: var(--font-display);
  }
  .nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

  /* Buttons */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border-radius: 14px;
    font-weight: 700; font-size: 0.95rem;
    border: none; cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s;
    text-decoration: none; white-space: nowrap;
    position: relative; overflow: hidden;
  }
  .btn:hover { transform: translateY(-3px); text-decoration: none; }
  .btn-primary {
    background: var(--grad-red);
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: #fff;
    box-shadow: var(--glow-red), inset 0 1px 0 rgba(255,255,255,0.32), inset 0 -1px 0 rgba(0,0,0,0.2);
    transition: transform 0.25s var(--ease), box-shadow 0.35s, background-position 0.6s var(--ease);
  }
  .btn-primary::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.32) 18%, transparent 38%);
    transform: translateX(-130%); transition: transform 0.65s var(--ease);
  }
  .btn-primary:hover {
    background-position: 100% 50%;
    box-shadow: var(--glow-red-strong), inset 0 1px 0 rgba(255,255,255,0.42);
  }
  .btn-primary:hover::before { transform: translateX(130%); }
  .btn-glass {
    background: rgba(255,255,255,0.04);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
  }
  .btn-glass:hover {
    background: rgba(170, 180, 192, 0.08);
    border-color: var(--border-gold);
  }
  .btn-sm { padding: 10px 20px; font-size: 0.88rem; }
  .btn-lg { padding: 18px 36px; font-size: 1.05rem; border-radius: 16px; }

  /* Hero */
  .hero {
    position: relative; min-height: min(88vh, 800px); min-height: min(88dvh, 800px);
    padding: calc(var(--nav-h) + 14px) 0 48px;
    display: flex; align-items: flex-start; overflow: hidden;
  }
  #heroMesh { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; }
  .hero-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(ellipse 65% 55% at 20% 45%, rgba(34, 211, 238, 0.14), transparent),
      radial-gradient(ellipse 45% 40% at 80% 25%, rgba(170, 180, 192, 0.1), transparent);
  }
  .hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px;
    align-items: start;
  }
  .hero-panel-live {
    align-self: start;
    position: relative;
    top: auto;
  }
  .pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 20px; border-radius: 999px; margin-bottom: 28px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: var(--green); font-size: 0.82rem; font-weight: 600;
    backdrop-filter: blur(8px);
  }
  .pill-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 14px var(--green);
    animation: pulse 2s infinite;
  }
  @keyframes pulse { 50% { opacity: 0.35; transform: scale(0.85); } }
  .hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 900; line-height: 1.06;
    letter-spacing: -0.04em; margin-bottom: 24px;
  }
  .hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 36px; line-height: 1.75; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
  .hero-trust {
    display: flex; flex-wrap: wrap; gap: 32px;
    padding-top: 28px; border-top: 1px solid var(--border);
  }
  .hero-trust > div { position: relative; }
  .hero-trust strong {
    display: block; font-family: var(--font-display);
    font-size: 1.35rem; font-weight: 800;
    background: var(--gradient-cyan);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero-trust span { font-size: 0.85rem; color: var(--muted); }

  /* Hero panel */
  .hero-panel {
    background: rgba(8, 16, 28, 0.75);
    backdrop-filter: blur(32px) saturate(1.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow), var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,0.06);
    position: relative;
  }
  .hero-panel-live {
    padding: 18px 22px 16px;
    min-height: 0;
    max-height: none;
    border-top: 2px solid rgba(170, 180, 192, 0.28);
    border-bottom: 2px solid rgba(170, 180, 192, 0.28);
    background:
      radial-gradient(ellipse 90% 70% at 50% 0%, rgba(34, 211, 238, 0.08), transparent 55%),
      rgba(6, 12, 22, 0.88);
    box-shadow:
      var(--shadow),
      0 0 80px rgba(34, 211, 238, 0.08),
      0 0 120px rgba(170, 180, 192, 0.06),
      inset 0 1px 0 rgba(255,255,255,0.07);
  }
  .hero-panel-live.mesh-complete {
    animation: meshPanelPulse 3s ease-in-out infinite;
    border-color: rgba(52, 211, 153, 0.35);
  }
  @keyframes meshPanelPulse {
    0%, 100% { box-shadow: var(--shadow), 0 0 60px rgba(52, 211, 153, 0.12), inset 0 1px 0 rgba(255,255,255,0.07); }
    50% { box-shadow: var(--shadow), 0 0 100px rgba(52, 211, 153, 0.22), inset 0 1px 0 rgba(255,255,255,0.09); }
  }
  .live-mesh-brand { display: flex; flex-direction: column; gap: 6px; }
  .mesh-premium-badge {
    font-size: 0.62rem; font-weight: 800; letter-spacing: 0.22em;
    color: var(--gold); opacity: 0.85;
    font-family: var(--font-display);
  }
  .mesh-status-pill {
    padding: 6px 12px; border-radius: 999px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
    max-width: 52%; text-align: end;
  }
  .mesh-progress-track {
    position: relative; height: 4px; border-radius: 999px;
    background: rgba(255,255,255,0.06); margin-bottom: 12px; overflow: hidden;
  }
  .mesh-progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--accent), var(--green));
    border-radius: inherit;
    transition: width 0.55s var(--ease);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.5);
  }
  .mesh-progress-glow {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: meshProgressShine 2.4s linear infinite;
    pointer-events: none;
  }
  @keyframes meshProgressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }
  .mesh-visual-zone {
    width: 100%;
    margin-bottom: 4px;
  }
  .mesh-panel-bottom {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    clear: both;
  }
  .mesh-stats-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
  .mesh-stat {
    text-align: center; padding: 6px 6px; border-radius: 10px;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
  }
  .mesh-stat strong {
    display: block; font-family: var(--font-display);
    font-size: 1.15rem; font-weight: 800;
    background: var(--gradient-cyan);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .mesh-stat span { font-size: 0.68rem; color: var(--muted); }
  .hero-panel::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, rgba(170,180,192,0.45), rgba(34,211,238,0.3) 40%, transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
  }
  .panel-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; font-size: 0.78rem;
  }
  .live {
    display: flex; align-items: center; gap: 8px;
    color: var(--green); font-weight: 700; letter-spacing: 0.1em;
    font-family: var(--font-display);
  }
  .live span {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green); animation: pulse 1.5s infinite;
  }
  .panel-foot {
    margin-top: 12px; padding-top: 0;
    border-top: none;
    font-size: 0.72rem; color: var(--muted); text-align: center;
  }

  .mesh-nodes { position: relative; aspect-ratio: 1; max-height: 380px; margin: 0 auto; }
  .mesh-nodes-expanded {
    aspect-ratio: 2.5 / 1;
    width: 100%;
    max-width: 100%;
    max-height: 300px;
    min-height: 220px;
    height: auto;
    padding: 22px 28px 18px;
    filter: drop-shadow(0 8px 28px rgba(34, 211, 238, 0.1));
  }
  .mesh-nodes-expanded .mesh-lines {
    width: 100%;
    height: 100%;
  }
  .mesh-nodes-expanded .mesh-node {
    width: 58px; height: 58px;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  }
  .mesh-nodes-expanded .mesh-node.hub { width: 68px; height: 68px; }
  .mesh-nodes-expanded .mesh-flag { font-size: 1.15rem; }
  .mesh-nodes-expanded .mesh-city { font-size: 0.52rem; max-width: 64px; }
  .mesh-nodes-expanded .mesh-label { font-size: 0.5rem; }
  .mesh-nodes-expanded .mesh-ip { font-size: 0.48rem; }
  /* Wide rectangle — nodes spread; stats sit below .mesh-visual-zone */
  .mesh-nodes-expanded .mesh-node[data-node="0"] { top: 50%; left: 50%; transform: translate(-50%, -50%); }
  .mesh-nodes-expanded .mesh-node[data-node="1"] { top: 0%; left: 50%; transform: translate(-50%, 0); }
  .mesh-nodes-expanded .mesh-node[data-node="2"] { top: 32%; right: 0%; left: auto; bottom: auto; transform: none; }
  .mesh-nodes-expanded .mesh-node[data-node="3"] { bottom: 0%; top: auto; left: 50%; transform: translate(-50%, 0); }
  .mesh-nodes-expanded .mesh-node[data-node="4"] { top: 32%; left: 0%; right: auto; bottom: auto; transform: none; }
  .mesh-nodes-expanded .mesh-node[data-node="5"] {
    top: auto; bottom: 10%; right: 0%; left: auto;
    transform: none;
  }
  .mesh-nodes-expanded .mesh-node.connected[data-node="0"] { transform: translate(-50%, -50%) scale(1.05); }
  .mesh-nodes-expanded .mesh-node.connected[data-node="1"] { transform: translate(-50%, 0) scale(1.02); }
  .mesh-nodes-expanded .mesh-node.connected[data-node="3"] { transform: translate(-50%, 0) scale(1.02); }
  .mesh-nodes-expanded .mesh-node.connected[data-node="5"] { transform: scale(1.02); }
  .mesh-node {
    position: absolute; width: 76px; height: 76px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 16px;
    background: rgba(12, 24, 40, 0.9);
    border: 1.5px solid rgba(239, 68, 68, 0.45);
    transition: all 0.6s var(--ease);
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }
  .mesh-node.hub {
    width: 88px; height: 88px; border-radius: 50%;
    border-color: rgba(170, 180, 192, 0.4);
    background: radial-gradient(circle at 30% 30%, rgba(34,211,238,0.15), rgba(8,16,28,0.95));
  }
  .mesh-node.connected {
    border-color: var(--green);
    box-shadow: 0 0 32px rgba(52, 211, 153, 0.3), inset 0 0 20px rgba(52,211,153,0.08);
    transform: scale(1.02);
  }
  .mesh-node[data-node="0"] { top: 50%; left: 50%; transform: translate(-50%, -50%); }
  .mesh-node[data-node="1"] { top: 2%; left: 50%; transform: translate(-50%, 0); }
  .mesh-node[data-node="2"] { top: 22%; right: 0; }
  .mesh-node[data-node="3"] { bottom: 2%; left: 50%; transform: translate(-50%, 0); }
  .mesh-node[data-node="4"] { top: 22%; left: 0; }
  .mesh-node[data-node="5"] { top: 50%; left: 0; transform: translate(0, -50%); }
  .mesh-node.connected[data-node="0"] { transform: translate(-50%, -50%) scale(1.05); }
  .mesh-node.connected[data-node="5"] { transform: translate(0, -50%) scale(1.02); }
  .mesh-flag { font-size: 1.4rem; line-height: 1; }
  .mesh-label { font-weight: 800; font-size: 0.65rem; color: var(--gold); font-family: var(--font-display); }
  .mesh-city { font-size: 0.62rem; color: var(--muted); margin-top: 2px; text-align: center; max-width: 68px; }
  .mesh-ip { font-size: 0.55rem; color: var(--accent); margin-top: 2px; }
  .mesh-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .mesh-line {
    fill: none; stroke: url(#lineGrad); stroke-width: 2.5; stroke-linecap: round;
    stroke-dasharray: 1; stroke-dashoffset: 1;
    opacity: 0; filter: drop-shadow(0 0 6px rgba(34,211,238,0.5));
    transition: opacity 0.4s;
  }
  .mesh-line.active { opacity: 0.85; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease), opacity 0.4s; }
  .mesh-ring-line {
    fill: none; stroke: rgba(34,211,238,0.28); stroke-width: 1.5; stroke-linejoin: round;
    stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
    transition: stroke-dashoffset 1.8s var(--ease), opacity 0.5s;
  }
  .mesh-ring-line.active { opacity: 1; stroke-dashoffset: 0; }

  /* Marquee */
  .marquee-wrap {
    overflow: hidden; padding: 20px 0;
    border-block: 1px solid var(--border);
    background: rgba(8, 14, 24, 0.6);
    backdrop-filter: blur(12px);
  }
  .marquee {
    display: flex; gap: 48px; width: max-content;
    animation: marquee 35s linear infinite;
  }
  @keyframes marquee { to { transform: translateX(-50%); } }
  body.ar .marquee { animation-name: marqueeRtl; }
  @keyframes marqueeRtl { to { transform: translateX(50%); } }
  .marquee-item {
    display: flex; align-items: center; gap: 12px;
    white-space: nowrap; color: var(--muted); font-size: 0.92rem; font-weight: 500;
  }
  .marquee-item em { font-style: normal; color: var(--gold-light); font-weight: 700; }

  /* Stats */
  .stats-bar { margin-top: -56px; position: relative; z-index: 3; padding-bottom: 56px; }
  .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .stat {
    background: rgba(12, 22, 38, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px; text-align: center;
    backdrop-filter: blur(16px);
    transition: transform 0.3s var(--ease), border-color 0.3s;
  }
  .stat:hover { transform: translateY(-4px); border-color: var(--border-gold); }
  .stat-num {
    display: block; font-family: var(--font-display);
    font-size: 2.4rem; font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
  }
  .stat-lbl { font-size: 0.88rem; color: var(--muted); margin-top: 6px; display: block; }

  /* Showcase promos */
  .showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .showcase-card {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); min-height: 220px;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 32px; text-decoration: none; color: inherit;
    transition: transform 0.35s var(--ease), box-shadow 0.35s;
  }
  .showcase-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); text-decoration: none; color: inherit; }
  .showcase-card::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(3,5,8,0.95) 85%);
    z-index: 1;
  }
  .showcase-card-bg {
    position: absolute; inset: 0;
    background:
      radial-gradient(circle at 30% 30%, rgba(34,211,238,0.2), transparent 50%),
      radial-gradient(circle at 70% 60%, rgba(170,180,192,0.15), transparent 50%),
      var(--surface-solid);
  }
  .showcase-card:nth-child(2) .showcase-card-bg {
    background:
      radial-gradient(circle at 60% 40%, rgba(170,180,192,0.22), transparent 50%),
      radial-gradient(circle at 20% 70%, rgba(52,211,153,0.12), transparent 50%),
      var(--surface-solid);
  }
  .showcase-card > * { position: relative; z-index: 2; }
  .showcase-badge {
    display: inline-block; font-family: var(--font-display);
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em;
    color: var(--gold); margin-bottom: 12px;
  }
  .showcase-card h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; }
  .showcase-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
  .showcase-play {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--accent); font-weight: 700; font-size: 0.9rem;
  }

  /* Bento */
  .bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .bento-card {
    background: rgba(12, 22, 38, 0.65);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    backdrop-filter: blur(12px);
    transition: all 0.35s var(--ease);
    position: relative; overflow: hidden;
  }
  .bento-card::after {
    content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(170,180,192,0.3), transparent);
    opacity: 0; transition: opacity 0.3s;
  }
  .bento-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  }
  .bento-card:hover::after { opacity: 1; }
  .bento-wide { grid-column: span 2; }
  .bento-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center; font-size: 1.5rem;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.15);
    margin-bottom: 18px;
  }
  .bento-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 10px; font-weight: 700; }
  .bento-card p { color: var(--muted); font-size: 0.93rem; line-height: 1.65; }

  /* Cards */
  .cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .card {
    background: rgba(12, 22, 38, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: all 0.35s var(--ease);
    backdrop-filter: blur(8px);
  }
  .card:hover { transform: translateY(-6px); border-color: var(--border-gold); box-shadow: var(--shadow); }
  .card-visual {
    height: 160px; display: grid; place-items: center; font-size: 3rem;
    background: linear-gradient(135deg, rgba(8,145,178,0.4), rgba(12,30,50,0.9));
    position: relative;
  }
  .card-visual::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 80%, rgba(170,180,192,0.15), transparent 60%);
  }
  .card h3 { padding: 22px 26px 10px; font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; }
  .card p { padding: 0 26px 26px; color: var(--muted); font-size: 0.93rem; }

  /* Timeline */
  .timeline { display: grid; gap: 20px; max-width: 680px; margin: 0 auto; }
  .tl-item {
    display: flex; gap: 28px; align-items: flex-start;
    padding: 28px; background: rgba(12, 22, 38, 0.65);
    border: 1px solid var(--border); border-radius: var(--radius);
    backdrop-filter: blur(8px);
    transition: border-color 0.3s;
  }
  .tl-item:hover { border-color: var(--border-gold); }
  .tl-num {
    font-family: var(--font-display);
    font-size: 1.75rem; font-weight: 900;
    background: var(--gradient-cyan);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0; line-height: 1;
  }
  .tl-item h3 { margin-bottom: 8px; font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; }
  .tl-item p { color: var(--muted); font-size: 0.93rem; }

  /* Security */
  .check-list { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
  .check-list li {
    display: flex; gap: 14px; align-items: center;
    padding: 16px 20px;
    background: rgba(12, 22, 38, 0.65);
    border: 1px solid var(--border); border-radius: 14px;
    transition: border-color 0.2s;
  }
  .check-list li:hover { border-color: rgba(52, 211, 153, 0.3); }
  .check-list span:first-child {
    width: 28px; height: 28px; border-radius: 8px;
    display: grid; place-items: center;
    background: rgba(52, 211, 153, 0.12);
    color: var(--green); font-weight: 700; font-size: 0.85rem;
    flex-shrink: 0;
  }
  .code-block {
    background: #020408; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow);
  }
  .code-head {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 18px; background: rgba(12, 22, 38, 0.9);
    border-bottom: 1px solid var(--border);
    font-size: 0.78rem; color: var(--muted);
  }
  .code-head span:nth-child(1) { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; }
  .code-head span:nth-child(2) { width: 11px; height: 11px; border-radius: 50%; background: #eab308; }
  .code-head span:nth-child(3) { width: 11px; height: 11px; border-radius: 50%; background: #22c55e; }
  .code-block pre { padding: 28px; font-size: 0.84rem; line-height: 1.75; color: var(--accent); overflow-x: auto; }

  /* Pricing */
  .pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
  .price {
    background: rgba(12, 22, 38, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px 32px;
    text-align: center; position: relative;
    backdrop-filter: blur(12px);
    transition: transform 0.3s var(--ease);
  }
  .price:hover { transform: translateY(-4px); }
  .price-featured {
    border-color: var(--border-gold);
    background: linear-gradient(180deg, rgba(170,180,192,0.06), rgba(12,22,38,0.85));
    box-shadow: 0 0 60px rgba(170, 180, 192, 0.12), var(--shadow);
    transform: scale(1.04);
  }
  .price-badge {
    position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(-50%);
    background: var(--grad-red);
    box-shadow: 0 8px 22px -6px rgba(226, 31, 38, 0.6), inset 0 1px 0 rgba(255,255,255,0.35);
    color: #fff;
    padding: 5px 18px; border-radius: 999px;
    font-size: 0.7rem; font-weight: 800;
    font-family: var(--font-display); letter-spacing: 0.05em;
    box-shadow: 0 4px 20px rgba(170,180,192,0.35);
  }
  .price h3 { font-size: 1rem; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
  .price-amt {
    font-family: var(--font-display);
    font-size: 2.6rem; font-weight: 900; margin-bottom: 24px;
    letter-spacing: -0.03em;
  }
  .price-featured .price-amt {
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .price-amt span { font-size: 0.95rem; color: var(--muted); font-weight: 400; -webkit-text-fill-color: var(--muted); }
  .price ul { list-style: none; text-align: start; margin-bottom: 32px; display: grid; gap: 12px; }
  .price li { color: var(--muted); font-size: 0.92rem; padding-inline-start: 4px; }
  .price li::before { content: "✓ "; color: var(--green); font-weight: 700; }
  .price .btn { width: 100%; }

  /* CTA */
  .cta-section { padding-bottom: 130px; }
  .cta-box {
    text-align: center; max-width: 720px; margin: 0 auto;
    padding: 64px 48px; border-radius: var(--radius-lg);
    background:
      radial-gradient(ellipse at top, rgba(170,180,192,0.08), transparent 60%),
      rgba(12, 22, 38, 0.85);
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow), 0 0 80px rgba(34,211,238,0.08);
    backdrop-filter: blur(16px);
    position: relative; overflow: hidden;
  }
  .cta-box::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, rgba(170,180,192,0.4), rgba(34,211,238,0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
  }
  .cta-box h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    margin-bottom: 14px; font-weight: 900;
    letter-spacing: -0.02em;
  }
  .cta-box p { color: var(--muted); margin-bottom: 32px; font-size: 1.05rem; }
  .compat { margin-top: 18px; color: var(--muted); font-size: 0.85rem; }

  /* FAQ */
  .faq { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
  .faq details {
    background: rgba(12, 22, 38, 0.65);
    border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
    transition: border-color 0.2s;
  }
  .faq details[open] { border-color: var(--border-gold); }
  .faq summary {
    padding: 20px 24px; font-weight: 600; cursor: pointer;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
    font-size: 0.98rem;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: "+"; color: var(--gold); font-size: 1.3rem;
    font-weight: 300; transition: transform 0.25s;
  }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq p { padding: 0 24px 20px; color: var(--muted); font-size: 0.93rem; line-height: 1.7; }

  /* Footer */
  .footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 36px;
    background: linear-gradient(180deg, var(--bg-elevated), #020408);
  }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
  .footer-grid h4 {
    font-family: var(--font-display);
    font-size: 0.85rem; margin-bottom: 18px;
    color: var(--gold-light); letter-spacing: 0.06em;
  }
  .footer-grid a, .footer-grid p {
    display: block; color: var(--muted); font-size: 0.9rem;
    margin-bottom: 10px; transition: color 0.2s;
  }
  .footer-grid a:hover { color: var(--accent); }
  .footer-bottom {
    border-top: 1px solid var(--border); padding-top: 28px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    color: var(--muted); font-size: 0.82rem;
  }

  .btn-cache-clear {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
  }

  .btn-cache-clear:hover:not(:disabled) {
    color: var(--accent);
    border-color: rgba(34, 211, 238, 0.4);
    background: rgba(34, 211, 238, 0.08);
  }

  .btn-cache-clear:disabled {
    opacity: 0.6;
    cursor: wait;
  }

  /* Reveal */
  .no-js .reveal { opacity: 1; transform: none; }
  .reveal {
    opacity: 0; transform: translateY(32px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--d, 0ms);
  }
  .reveal.visible { opacity: 1; transform: none; }
}

@layer utilities {
  @media (max-width: 1200px) {
    .pricing { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 960px) {
    .hero-grid, .split, .bento, .cards-3, .pricing, .stats-grid, .footer-grid, .showcase-grid { grid-template-columns: 1fr; }
    .bento-wide { grid-column: span 1; }
    .price-featured { transform: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { margin-top: 0; }
    .nav-links { display: none; }
    .nav-links.open {
      display: flex; flex-direction: column; position: absolute;
      top: var(--nav-h); inset-inline: 0;
      background: rgba(3, 5, 8, 0.98);
      padding: 28px; border-bottom: 1px solid var(--border); gap: 8px;
    }
    .nav-toggle { display: block; }
    .hero { min-height: auto; padding-bottom: 56px; }
    .mesh-nodes { max-height: 300px; }
    .mesh-nodes-expanded {
      aspect-ratio: 1.85 / 1;
      max-height: 220px;
    }
    .section { padding: 80px 0; }
    .cta-box { padding: 48px 28px; }
  }
}

/* ── Brand mark: approved OraxAdmin logo (platinum) ── */
.logo-mark.brand-mark {
  background: none;
  box-shadow: none;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
}
.logo-mark.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  padding: 0;
  background: transparent;
}
