:root{
  --bg: #0B1220;
  --panel: rgba(255,255,255,.06);
  --panel-2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.88);
  --muted: rgba(255,255,255,.68);
  --subtle: rgba(255,255,255,.52);
  --border: rgba(255,255,255,.12);

  --primary: #4F46E5; /* indigo */
  --secondary: #7C3AED; /* violet */
  --accent: #22C55E; /* green */
  --warn: #F59E0B;

  --shadow: 0 22px 50px rgba(0,0,0,.32);
  --shadow-soft: 0 16px 30px rgba(0,0,0,.25);

  --radius-lg: 22px;
  --radius-md: 16px;

  --max: 1140px;
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(79,70,229,.28), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(124,58,237,.22), transparent 60%),
    radial-gradient(900px 520px at 70% 90%, rgba(34,197,94,.12), transparent 60%),
    linear-gradient(180deg, #050816 0%, var(--bg) 60%, #060a18 100%);
  color: var(--text);
  min-height: 100vh;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }
img{ max-width:100%; height:auto; }

.container{ width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.skip-link{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto;
  padding:10px 12px; border-radius: 12px;
  background: rgba(0,0,0,.7); border:1px solid var(--border);
  z-index: 9999;
}

/* Header */
header{
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,18,32,.55);
  border-bottom: 1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand .mark{
  width:38px; height:38px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
.brand .name{
  display:flex; flex-direction:column; line-height:1.1;
}
.brand .name strong{ font-size: 15px; letter-spacing: .2px;}
.brand .name span{ font-size: 12px; color: var(--subtle);}

.nav-links{
  display:flex; align-items:center; gap: 18px;
  font-size: 14px;
}
.nav-links a{ color: var(--muted); }
.nav-links a.active{ color: var(--text); }
.nav-cta{ display:flex; gap: 10px; align-items:center; }

.button{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration:none !important;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.button:hover{ transform: translateY(-1px); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.button.primary{
  background: linear-gradient(135deg, rgba(79,70,229,.95), rgba(124,58,237,.85));
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 18px 36px rgba(79,70,229,.18);
}
.button.primary:hover{ background: linear-gradient(135deg, rgba(79,70,229,1), rgba(124,58,237,.95)); }
.button.ghost{
  background: rgba(255,255,255,.02);
}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 12px;
}
.pill b{ color: var(--text); font-weight: 700; }

.menu-btn{
  display:none;
  width:42px; height:42px;
  border-radius: 14px;
}
.hamburger{
  width: 18px; height: 12px; position: relative;
}
.hamburger span{
  position:absolute; left:0; right:0; height:2px;
  background: rgba(255,255,255,.8); border-radius: 999px;
}
.hamburger span:nth-child(1){ top:0; }
.hamburger span:nth-child(2){ top:5px; opacity:.8; }
.hamburger span:nth-child(3){ top:10px; opacity:.9; }

/* Mobile menu */
.mobile-panel{
  display:none;
  padding: 0 0 16px 0;
}
.mobile-panel .stack{
  display:flex; flex-direction:column; gap:10px;
}
.mobile-panel a{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--muted);
}
.mobile-panel a.active{ color: var(--text); background: rgba(255,255,255,.05); }

/* Hero */
.hero{
  padding: 46px 0 28px 0;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: center;
}
.hero h1{
  margin: 14px 0 10px 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero p{
  margin: 0 0 18px 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 56ch;
}
.hero-actions{
  display:flex; gap: 12px; flex-wrap: wrap; align-items:center;
  margin-top: 14px;
}
.hero-card{
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  padding: 18px;
  overflow:hidden;
}
.hero-card:before{
  content:"";
  position:absolute; inset:-60px;
  background:
    radial-gradient(240px 180px at 20% 20%, rgba(79,70,229,.45), transparent 60%),
    radial-gradient(220px 180px at 80% 30%, rgba(124,58,237,.35), transparent 65%),
    radial-gradient(220px 180px at 55% 85%, rgba(34,197,94,.25), transparent 60%);
  filter: blur(8px);
  opacity: .8;
}
.hero-card > *{ position: relative; }
.mock{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(5,8,22,.65);
  padding: 14px;
}
.mock .row{
  display:flex; gap:10px; align-items:center; justify-content:space-between;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  font-size: 12px;
  color: var(--muted);
}
.dot{
  width:8px; height:8px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}
.kpi{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.kpi .k{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  padding: 10px;
}
.kpi .k strong{ display:block; font-size: 14px; }
.kpi .k span{ display:block; font-size: 12px; color: var(--subtle); margin-top: 4px; }

/* Sections */
section{ padding: 30px 0; }
.section-title{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.section-title h2{
  margin:0;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.section-title p{
  margin:0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.5;
  max-width: 60ch;
}
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card{
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  padding: 16px;
}
.card h3{ margin: 0 0 8px 0; font-size: 15px; }
.card p{ margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.icon{
  width: 38px; height: 38px;
  border-radius: 14px;
  display:inline-flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  margin-bottom: 12px;
}
.icon svg{ width: 20px; height: 20px; opacity: .95; }

.callout{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(79,70,229,.18), rgba(124,58,237,.10) 45%, rgba(34,197,94,.08));
  padding: 18px;
  display:flex; gap: 14px; align-items:flex-start; justify-content:space-between;
  flex-wrap: wrap;
}
.callout .left{ max-width: 64ch; }
.callout h3{ margin:0 0 6px 0; }
.callout p{ margin:0; color: var(--muted); line-height: 1.6; }

.content{
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  padding: 18px;
}
.content h1{ margin: 0 0 8px 0; font-size: 30px; }
.content h2{ margin: 22px 0 8px 0; font-size: 18px; }
.content h3{ margin: 16px 0 8px 0; font-size: 15px; }
.content p, .content li{ color: var(--muted); line-height: 1.7; }
.content ul{ padding-left: 18px; }
.content code{ background: rgba(255,255,255,.07); padding: 2px 6px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); }

footer{
  padding: 34px 0 26px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items:start;
}
.footer-grid .links{
  display:flex; gap: 14px; flex-wrap: wrap;
  justify-content: flex-end;
}
small{ color: var(--subtle); }

/* Responsive */
@media (max-width: 1040px){
  .nav-links{ gap: 14px; font-size: 13px; }
  .button{ padding: 9px 12px; }
}
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-grid .links{ justify-content: flex-start; }
}
@media (max-width: 860px){
  .nav-links{ display:none; }
  .nav-cta .ghost{ display:none; }
  .menu-btn{ display:inline-flex; }
  .mobile-panel{ display:block; }
  .mobile-panel[hidden]{ display:none; }
}
