:root{
  --bg:#0b0b0c;
  --panel:#111214;
  --muted:#9aa0a6;
  --txt:#f5f6f8;
  --accent:#ff2800;
  --blue:#0aa0ff;
  --ring: 0 0 0 1px #ffffff1a inset, 0 10px 30px #000;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:radial-gradient(1200px 600px at 20% 0%, #1a1b1e40, transparent) , var(--bg);
  color:var(--txt); font:15px/1.6 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
}

/* nav */
.nav{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; gap:24px;
  padding:14px 24px; background:linear-gradient(#0b0b0ccc, #0b0b0caa);
  backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid #ffffff10;
}
.brand{display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; font-weight:700; letter-spacing:.2px}
.brand img{filter: drop-shadow(0 6px 20px #00000080)}
.links{display:flex; gap:14px; margin-left:auto}
.link{background:none; border:0; color:#d8dbe0; padding:8px 10px; cursor:pointer; border-radius:10px}
.link:hover{background:#ffffff10}
.cta{display:flex; gap:10px}
.btn{display:inline-block; padding:10px 14px; border-radius:999px; text-decoration:none}
.btn.pill{background:linear-gradient(90deg, var(--accent), #ff5a00); color:#fff; box-shadow:0 10px 30px #ff28004d}
.btn.ghost{border:1px solid #ffffff22; color:#e9eaee}
.btn:hover{transform:translateY(-1px)}

/* mega menu */
.mega{
  position:fixed; left:50%; transform:translateX(-50%);
  top:64px; width:min(1100px, 92vw);
  background:linear-gradient(180deg, #101114, #0b0b0c);
  border:1px solid #ffffff18; border-radius:18px; padding:22px 18px;
  display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; box-shadow:0 30px 60px #0008;
}
.mega.hidden{display:none}
.mega .col h4{margin:4px 0 10px 0; color:#dfe3ea}
.mega a{display:block; color:#c9cdd4; padding:8px 10px; border-radius:10px; text-decoration:none}
.mega a:hover{background:#ffffff10}

/* hero */
.hero{position:relative; display:grid; grid-template-columns:1.2fr .8fr; gap:32px; padding:80px 24px 40px; align-items:center}
.hero-copy h1{font-size: clamp(36px, 6vw, 72px); line-height:1.04; margin:0 0 12px}
.grad{background:linear-gradient(90deg, #eaeef5, #74c0ff); -webkit-background-clip:text; background-clip:text; color:transparent}
.lead{color:#c9cdd4; max-width:58ch}
.actions{display:flex; gap:12px; margin-top:18px}
.trust{margin-top:14px; color:#9aa0a6}

.hero-art{position:relative; height:420px}
.tri.stack{
  position:absolute; right:0; top:0; width:min(520px, 42vw);
  filter: drop-shadow(0 20px 60px #00a2ff22) drop-shadow(0 10px 30px #ff280022);
  transform: perspective(900px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg));
}

/* sections */
.section{padding:48px 24px; border-top:1px solid #ffffff12; background:linear-gradient(180deg, transparent, #090a0b 60%)}
.section h2{font-size:26px; margin:0 0 10px}
.bullets{margin:10px 0 0 18px}
.bullets li{margin:6px 0}

.grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:16px}
.card{background:var(--panel); border:1px solid #ffffff14; border-radius:14px; padding:14px; box-shadow:var(--ring)}
.card pre{white-space:pre-wrap; background:#0d0f12; border:1px solid #ffffff14; border-radius:10px; padding:10px; overflow:auto}

.columns{display:grid; grid-template-columns:repeat(3, 1fr); gap:18px}
.columns h4{margin:8px 0 6px; color:#e6e9ef}
.columns ul{margin:0; padding-left:18px}
.columns li{margin:6px 0}

/* footer */
.footer{display:flex; justify-content:space-between; align-items:center; padding:28px 24px; border-top:1px solid #ffffff12; color:#a8adb3}
.footer a{color:#cbd1d9; text-decoration:none; margin-right:12px}
.footer a:hover{text-decoration:underline}

/* responsive */
@media (max-width: 900px){
  .hero{grid-template-columns:1fr; padding-top:56px}
  .hero-art{height:280px}
  .grid{grid-template-columns:1fr}
  .columns{grid-template-columns:1fr}
}

/* n28s hero png tweaks */
.hero { position: relative; overflow: hidden; }
.hero-art .tri.stack { border-radius: 18px; pointer-events: none; }

/* --- n28s patch: hero orientation + cleaner background --- */

/* face the cube toward the headline (flip horizontally) */
.hero-art .tri.stack{
  /* keep any tilt/parallax but mirror horizontally */
  transform: scaleX(-1) perspective(900px)
             rotateX(var(--tiltX,0deg)) rotateY(var(--tiltY,0deg));
  border-radius: 18px;        /* softer look on PNG edges */
  pointer-events: none;       /* never block clicks */
}

/* clean, neutral dark background with a very subtle vignette */
body{
  background: #0b0b0c;
  background-image:
    radial-gradient(65% 55% at 82% -10%, rgba(18,115,255,0.08), transparent 60%),
    radial-gradient(55% 45% at 12% -18%, rgba(255,40,0,0.06), transparent 50%);
  background-blend-mode: normal;
}

/* --- n28s patch: polished mega menu layout --- */
:root{ --navH: 64px; } /* adjust if your header is taller */

.container { width: min(1180px, 92vw); margin: 0 auto; } /* safe wrapper if you use it elsewhere */

.scrim{
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
}
.scrim.hidden{ display: none; }

.mega{
  position: fixed; z-index: 70; /* above scrim */
  top: var(--navH);
  left: 50%; transform: translateX(-50%);
  width: min(1180px, 94vw);
  background: linear-gradient(180deg, #121317, #0c0d10);
  border: 1px solid #ffffff18;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}
.mega.hidden{ display: none; }
.mega .col h4{ margin: 0 0 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color:#cbd3df}
.mega .col a{
  display:block; padding:8px 10px; border-radius:10px;
  color:#cfd3da; text-decoration:none;
}
.mega .col a:hover{ background:#ffffff12; color:#fff; }

/* keep hero from fighting the menu */
.nav{ position: sticky; top: 0; z-index: 80; }
.hero{ position: relative; overflow: hidden; }

/* tidy nav spacing on small screens */
@media (max-width:900px){
  .mega{ top: calc(var(--navH) + 6px); grid-template-columns: 1fr; }
}
