:root {
  --bg: #0b0f1a;
  --bg-2: #0e1424;
  --surface: #121a2e;
  --surface-2: #16203a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eaf0ff;
  --muted: #9aa7c7;
  --muted-2: #6b7899;
  --brand: #5b8cff;
  --brand-2: #8b5cff;
  --accent: #22d3ee;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --grad: linear-gradient(120deg, var(--brand), var(--brand-2) 55%, var(--accent));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.12; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Background decoration */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; z-index: -1; top: -280px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(91,140,255,0.28), transparent),
    radial-gradient(closest-side, rgba(139,92,255,0.22), transparent) 60% 40%;
  filter: blur(30px);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 14px 26px; font-size: 15px; }
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(91,140,255,0.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(91,140,255,0.8); }
.btn--ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11,15,26,0.6);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.is-scrolled { background: rgba(11,15,26,0.85); border-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; font-family: "Space Grotesk", sans-serif; }
.brand__mark {
  width: 26px; height: 26px; border-radius: 8px; background: var(--grad);
  box-shadow: 0 6px 18px -6px rgba(139,92,255,0.8); position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 6px; border-radius: 4px;
  background: var(--bg); mask: radial-gradient(circle at 50% 40%, transparent 30%, #000 32%);
}
.brand__dot { color: var(--brand); }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding: 88px 24px 72px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500;
  color: var(--muted); padding: 6px 14px; border: 1px solid var(--border-strong);
  border-radius: 999px; background: rgba(255,255,255,0.03);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(52,211,153,0.18); }
.hero__title { font-size: clamp(38px, 6vw, 68px); font-weight: 700; margin: 22px 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero__cta { display: flex; gap: 14px; margin: 32px 0 28px; flex-wrap: wrap; }
.hero__trust { color: var(--muted-2); font-size: 13px; }

/* Console mockup */
.hero__visual { perspective: 1400px; }
.console {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transform: rotateY(-8deg) rotateX(4deg); transition: transform .4s ease;
}
.hero__visual:hover .console { transform: rotateY(0) rotateX(0); }
.console__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.console__dot { width: 11px; height: 11px; border-radius: 50%; background: #33405f; }
.console__dot:nth-child(1) { background: #fb7185; } .console__dot:nth-child(2) { background: #fbbf24; } .console__dot:nth-child(3) { background: #34d399; }
.console__title { margin-left: auto; font-size: 12px; color: var(--muted-2); font-family: "Space Grotesk", sans-serif; }
.console__body { padding: 20px; display: grid; gap: 18px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.metric__label { display: block; font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.metric__value { font-size: 26px; font-weight: 700; font-family: "Space Grotesk", sans-serif; }
.metric__value--good { color: var(--good); }
.log { display: grid; gap: 8px; font-size: 12.5px; }
.log__line { display: flex; align-items: center; gap: 8px; color: var(--muted); background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.log__line em { color: var(--muted-2); font-style: normal; margin-left: auto; font-size: 11.5px; }
.tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px; letter-spacing: .04em; }
.tag--ok { background: rgba(52,211,153,0.15); color: var(--good); }
.tag--warn { background: rgba(251,191,36,0.15); color: var(--warn); }
.tag--block { background: rgba(251,113,133,0.15); color: var(--bad); }
.console__bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; }
.console__bars span { flex: 1; height: var(--h); background: var(--grad); border-radius: 5px 5px 0 0; opacity: .85; }

/* Sections */
.section { padding: 80px 24px; }
.section__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .12em; }
.section__head h2 { font-size: clamp(28px, 4vw, 42px); margin: 12px 0 14px; }
.section__head p { color: var(--muted); font-size: 17px; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .2s, border-color .2s; }
.pillar:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.pillar h3 { font-size: 22px; margin: 16px 0 8px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* Icons */
.pillar__icon, .feature__icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(91,140,255,0.12);
  border: 1px solid rgba(91,140,255,0.25); position: relative;
}
.pillar__icon::after, .feature__icon::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 24px; height: 24px;
  background: var(--brand); mask-repeat: no-repeat; mask-position: center; mask-size: contain;
}
[data-icon="shield"]::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8-7 10-4-2-7-5.5-7-10V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
[data-icon="eye"]::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
[data-icon="scale"]::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3v18M5 7h14M5 7l-3 6h6zM19 7l-3 6h6z'/%3E%3C/svg%3E"); }
[data-icon="policy"]::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E"); }
[data-icon="pii"]::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='10' width='16' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
[data-icon="monitor"]::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 12h4l3 8 4-16 3 8h4'/%3E%3C/svg%3E"); }
[data-icon="audit"]::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 11l3 3 8-8'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E"); }
[data-icon="agent"]::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='5' y='7' width='14' height='12' rx='3'/%3E%3Cpath d='M12 7V4M9 13h.01M15 13h.01'/%3E%3C/svg%3E"); }
[data-icon="access"]::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E"); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .2s, border-color .2s, background .2s; }
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.feature h3 { font-size: 19px; margin: 16px 0 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; counter-reset: step; }
.step { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
.step__num { font-family: "Space Grotesk", sans-serif; font-size: 40px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 20px; margin: 8px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* CTA */
.cta { padding: 40px 24px 100px; }
.cta__inner { background: linear-gradient(120deg, rgba(91,140,255,0.14), rgba(139,92,255,0.14)); border: 1px solid var(--border-strong); border-radius: 24px; padding: 56px 40px; text-align: center; position: relative; overflow: hidden; }
.cta__inner::before { content: ""; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 500px; height: 300px; background: radial-gradient(closest-side, rgba(91,140,255,0.4), transparent); filter: blur(40px); }
.cta h2 { font-size: clamp(28px, 4vw, 42px); position: relative; }
.cta p { color: var(--muted); font-size: 17px; max-width: 520px; margin: 14px auto 0; position: relative; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: var(--bg-2); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 260px; }
.footer__cols { display: flex; gap: 48px; }
.footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 14px; }
.footer__col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 13px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .hero__visual { order: -1; max-width: 460px; }
  .pillars, .features, .steps, .cards { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); padding: 18px 24px; border-bottom: 1px solid var(--border); gap: 16px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 520px) {
  .footer__cols { flex-direction: column; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
