  :root {
    --bg: #04060f;
    --surface: #23133a;
    --surface2: #1f1232;
    --accent: #883CF0;
    --accent2: #7c6bff;
    --accent3: #af62c8;
    --text: #e8eaf6;
    --muted: #d6d6d6;
    --border: #3a1c63;
    --glow: #f000f02e;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    background: #191127;
    color: var(--text);
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    cursor: default;
  }

  /* ── NOISE OVERLAY ── */
  body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 4rem;
    background: #180f26;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }

  .nav-logo {
    
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--accent);
    letter-spacing: -0.02em;
    text-decoration: none;
  }

  .nav-links {
    display: flex; gap: 2.5rem; list-style: none;
  }

  .nav-links a {
    
    font-size: 0.78rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--accent); }

  .nav-cta {
    
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.5rem 1.4rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
    border-radius: 2px;
  }

  .nav-cta:hover { background: #23133a9f; color: #fff; }

  /* ── HERO ── */
  #hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    padding: 8rem 4rem 4rem;
    overflow: hidden;
  }

  .hero-grid-bg {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(172, 0, 240, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(132, 0, 240, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgb(0, 0, 0) 30%, transparent 100%);
  }

  .hero-glow {
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(204, 0, 240, 0.08) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%,-50%);
    pointer-events: none;
  }

  .hero-glow2 {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 107, 255, 0.12) 0%, transparent 70%);
    top: 30%; right: 10%;
    pointer-events: none;
    animation: pulse 6s ease-in-out infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
  }

  .hero-content {
    position: relative; z-index: 2;
    max-width: 900px;
    text-align: center;
  }

  .hero-tag {
    display: inline-block;
    
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid #3a1c63;
    padding: 0.3rem 1rem;
    margin-bottom: 2rem;
    border-radius: 2px;
    animation: fadeUp 0.8s ease both;
  }

  .hero-title {
    
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s 0.1s ease both;
  }

  .hero-title span { color: var(--accent); }
  .hero-title .dim { color: var(--muted); }

  .hero-sub {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    animation: fadeUp 0.8s 0.2s ease both;
  }

  .hero-btns {
    display: flex; gap: 1rem; justify-content: center;
    animation: fadeUp 0.8s 0.3s ease both;
  }

  .btn-primary {
    
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.85rem 2.2rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
  }

  .btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

  .btn-secondary {
    
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.85rem 2.2rem;
    background: transparent;
    color: var(--text);
    border: 1px solid #5e309d;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
  }

  .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

  .hero-stats {
    display: flex; gap: 4rem; justify-content: center;
    margin-top: 4rem;
    animation: fadeUp 0.8s 0.4s ease both;
  }

  .stat-item { text-align: center; }

  .stat-num {
    
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1;
  }

  .stat-label {
    
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.3rem;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── SECTIONS ── */
  section {
    padding: 7rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-tag {
    
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
  }

  .section-title {
    
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .section-sub {
    color: var(--muted);
    max-width: 540px;
    font-size: 1.05rem;
    margin-bottom: 3.5rem;
  }

  /* ── PILLARS (4 cards) ── */
  .pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5px;
    background: var(--border);
    border: 1px solid var(--border);
  }

  .pillar-card {
    background: var(--surface);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
    cursor: default;
  }

  .pillar-card:hover { background: var(--surface2); }

  .pillar-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 3px; height: 0;
    background: var(--accent);
    transition: height 0.4s ease;
  }

  .pillar-card:hover::before { height: 100%; }

  .pillar-num {
    
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 1.2rem;
  }

  .pillar-title {
    
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }

  .pillar-desc {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* ── PHASES (interactive timeline) ── */
  #phases { background: var(--surface); width: 100%; max-width: 100%; padding: 7rem 0; }

  .phases-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
  }

  .phases-nav {
    display: flex;
    gap: 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }

  .phase-tab {
    
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 1.8rem;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
    background: none;
    border-top: none; border-left: none; border-right: none;
  }

  .phase-tab:hover { color: var(--text); }
  .phase-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

  .phase-content { display: none; }
  .phase-content.active { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; animation: fadeUp 0.4s ease; }

  .phase-heading {
    
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
  }

  .phase-heading span { color: var(--accent); }

  .phase-body {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
  }

  .phase-bullets { list-style: none; }

  .phase-bullets li {
    display: flex; align-items: flex-start; gap: 0.8rem;
    color: var(--text);
    font-size: 0.95rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
  }

  .phase-bullets li::before {
    content: '→';
    color: var(--accent);
    
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .phase-visual {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
  }

  .phase-visual::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 30%, var(--glow), transparent 60%);
    pointer-events: none;
  }

  .phase-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
  }

  .phase-stat {
    
    font-weight: 800;
    font-size: 3.5rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.3rem;
  }

  .phase-stat-label {
    
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  /* ── SECURITY MATRIX ── */
  .matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: 3rem;
  }

  .matrix-cell {
    background: var(--surface);
    padding: 2rem;
    transition: background 0.3s;
    cursor: default;
    position: relative;
  }

  .matrix-cell:hover { background: var(--surface2); }

  .matrix-cell-num {
    
    font-size: 2.5rem;
    font-weight: 500;
    color: #684895;
    position: absolute;
    top: 1rem; right: 1.5rem;
    line-height: 1;
  }

  .matrix-cell-title {
    
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
  }

  .matrix-cell-func {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .matrix-pill {
    display: inline-block;
    
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
    border: 1px solid #5e309d;
    color: var(--accent);
    border-radius: 2px;
    margin: 0.15rem;
  }

  /* ── ABOUT / COMMUNITY ── */
  .about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }

  .about-list {
    list-style: none;
    margin-top: 2rem;
  }

  .about-list li {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--muted);
  }

  .about-list li span.check {
    color: var(--accent);
    
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
  }

  .about-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
  }

  .about-card-title {
    
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .about-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 1rem; }

  /* ── CTA BAND ── */
  #cta {
    background: linear-gradient(135deg, #3a1c6355, #68489572);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 6rem 4rem;
    text-align: center;
    max-width: 100%;
  }

  #cta .section-title { margin-bottom: 1rem; }
  #cta .section-sub { margin: 0 auto 2.5rem; max-width: 500px; }

  /* ── FOOTER ── */
  footer {
    padding: 3rem 4rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.05em;
  }

  footer a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
  footer a:hover { color: var(--accent); }

  .footer-links { display: flex; gap: 2rem; }

  /* ── SCROLL REVEAL ── */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ── TERMINAL BADGE ── */
  .terminal {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
    
    font-size: 0.82rem;
    color: var(--text);
    margin-top: 2rem;
  }

  .terminal-header {
    display: flex; gap: 0.5rem; margin-bottom: 1rem;
  }

  .dot { width: 10px; height: 10px; border-radius: 50%; }
  .dot-r { background: #ff4d6d; }
  .dot-y { background: #fbbf24; }
  .dot-g { background: #00f0c8; }

  .terminal-line { display: flex; gap: 0.8rem; margin: 0.3rem 0; }
  .terminal-prompt { color: var(--accent); }
  .terminal-cmd { color: var(--text); }
  .terminal-out { color: var(--muted); padding-left: 1.2rem; }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    section { padding: 4rem 1.5rem; }
    .pillars-grid { grid-template-columns: 1fr; }
    .phase-content.active { grid-template-columns: 1fr; }
    .matrix-grid { grid-template-columns: 1fr; }
    .about-split { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-stats { gap: 2rem; flex-wrap: wrap; }
    footer { flex-direction: column; gap: 1rem; text-align: center; }
    .phases-inner { padding: 0 1.5rem; }
    #cta { padding: 4rem 1.5rem; }
  }