
:root{
  --bg:#0b1220;
  --bg2:#0f1a2e;
  --card:#101c33;
  --text:#eaf1ff;
  --muted:#b9c7e6;
  --line: rgba(255,255,255,.12);
  --accent:#7aa7ff;
  --accent2:#66e6c9;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --radius2: 22px;
  --container: 1120px;
  --focus: 0 0 0 3px rgba(122,167,255,.35);
}

[data-theme="light"]{
  --bg:#f7f9ff;
  --bg2:#eef3ff;
  --card:#ffffff;
  --text:#0b1220;
  --muted:#3b4a6b;
  --line: rgba(11,18,32,.12);
  --accent:#2a62ff;
  --accent2:#0aa387;
  --shadow: 0 10px 25px rgba(11,18,32,.10);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 800px at 15% 10%, rgba(122,167,255,.16), transparent 55%),
    radial-gradient(900px 700px at 90% 20%, rgba(102,230,201,.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  line-height:1.55;
}

a{color:inherit}
a:hover{text-decoration:underline}
.container{max-width:var(--container); margin:0 auto; padding:0 20px}
.small{font-size:13px}
.muted{color:var(--muted)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.skip{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:20px; top:18px; width:auto; height:auto; z-index:9999;
  background:var(--card); padding:10px 14px; border-radius:12px; box-shadow:var(--shadow);
  outline:none;
}

/* Top bar */
.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(10,16,30,.58);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
[data-theme="light"] .topbar{ background: rgba(255,255,255,.72); }

.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0; gap:14px;
}

.brand{
  display:flex; align-items:center; gap:12px;
  text-decoration:none;
}
.brand-mark{
  width:40px; height:40px; border-radius:14px;
  display:grid; place-items:center;
  border:1px solid var(--line);
  background: linear-gradient(135deg, rgba(122,167,255,.22), rgba(102,230,201,.18));
}
.brand-mark svg{width:24px;height:24px;fill:var(--text)}
.brand-mark .cut{fill:rgba(0,0,0,.14)}
[data-theme="light"] .brand-mark .cut{fill:rgba(255,255,255,.75)}

.brand-text{display:flex; flex-direction:column; line-height:1.1}
.brand-name{font-weight:900; letter-spacing:.2px}
.brand-sub{font-size:12px; color:var(--muted)}

/* Nav */
.nav{position:relative}
.nav-menu{
  display:flex; align-items:center; gap:14px;
}
.nav-menu a{font-size:14px; color:var(--muted); text-decoration:none}
.nav-menu a:hover{color:var(--text); text-decoration:none}

.nav-toggle{
  display:none;
  border:1px solid var(--line);
  background: transparent;
  border-radius:12px;
  padding:9px 10px;
  color:var(--text);
}
.bars{
  width:18px; height:2px; background:var(--text); display:block; position:relative;
}
.bars::before,.bars::after{content:""; position:absolute; left:0; width:18px; height:2px; background:var(--text)}
.bars::before{top:-6px}
.bars::after{top:6px}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(122,167,255,.45);
  background: linear-gradient(135deg, rgba(122,167,255,.25), rgba(102,230,201,.12));
  color:var(--text);
  font-weight:800;
  text-decoration:none;
  box-shadow: var(--shadow);
}
.btn:hover{transform: translateY(-1px); text-decoration:none}
.btn:focus{outline:none; box-shadow: var(--shadow), var(--focus)}

.btn-sm{padding:9px 12px; border-radius:12px; font-size:13px; box-shadow:none}
.btn-ghost{
  background: transparent;
  border:1px solid var(--line);
  box-shadow:none;
}

/* Sections */
.section{padding:72px 0}
.section-alt{
  background: linear-gradient(180deg, transparent, rgba(122,167,255,.07), transparent);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.section-head{margin-bottom:22px}
.section-head h2{margin:0 0 8px 0; font-size:34px; letter-spacing:-.3px}
.section-head p{margin:0}

/* Hero */
.hero{padding:72px 0 40px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .9fr;
  gap:26px;
  align-items:stretch;
}
.eyebrow{
  display:inline-block;
  margin:0 0 10px 0;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:13px;
}
.hero h1{
  margin:0 0 12px;
  font-size:46px;
  line-height:1.05;
  letter-spacing:-.8px;
}
.lead{font-size:17px; color:var(--muted); max-width: 60ch}
.cta-row{display:flex; gap:12px; margin:20px 0 16px; flex-wrap:wrap}
.pill-row{display:flex; flex-wrap:wrap; gap:10px}
.pill{
  border:1px solid var(--line);
  padding:8px 10px;
  border-radius:999px;
  font-size:13px;
  color:var(--muted);
  background: rgba(255,255,255,.03);
}

/* Hero panel */
.hero-panel{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(16,28,51,.65);
  box-shadow: var(--shadow);
  padding:16px;
}
[data-theme="light"] .hero-panel{background: rgba(255,255,255,.86)}
.kpis{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-bottom:14px;
}
.kpi{
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px;
  background: rgba(255,255,255,.03);
}
.kpi-k{font-size:12px; color:var(--muted)}
.kpi-v{font-weight:900; margin-top:6px}

.flow{
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  background: radial-gradient(420px 210px at 30% 20%, rgba(122,167,255,.14), transparent 60%);
  display:grid;
  gap:10px;
  margin-bottom:10px;
}
.flow-item{
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 12px;
  color:var(--muted);
  background: rgba(255,255,255,.03);
  width: fit-content;
}
.flow-line{
  height:10px;
  border-left:2px dashed rgba(122,167,255,.35);
  margin-left:14px;
}
.note{margin-top:8px}

/* Cards & grids */
.cards{display:grid; gap:16px}
.grid-4{grid-template-columns: repeat(4, 1fr)}
.grid-3{grid-template-columns: repeat(3, 1fr)}
.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
  background: rgba(255,255,255,.03);
}
[data-theme="light"] .card{background: rgba(255,255,255,.92)}
.card h3{margin:0 0 10px 0}
.card p{margin:0 0 12px 0; color:var(--muted)}

.list{margin:0; padding-left:18px; color:var(--muted)}
.list li{margin:6px 0}

.callout{
  margin-top:18px;
  border:1px solid rgba(102,230,201,.35);
  background: rgba(102,230,201,.08);
  padding:12px 14px;
  border-radius:14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

/* Two-col panels */
.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
.panel{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.03);
  padding:18px;
}
[data-theme="light"] .panel{background: rgba(255,255,255,.92)}
.panel h3{margin:0 0 8px 0}

.mini-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-top:12px;
}
.mini{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background: rgba(255,255,255,.03);
}
.mini-k{font-weight:900; margin-bottom:4px}

.steps{margin:0; padding-left:18px; color:var(--muted)}
.steps li{margin:10px 0}
.steps strong{color:var(--text)}
.mini-callout{
  margin-top:12px;
  border:1px solid rgba(102,230,201,.35);
  background: rgba(102,230,201,.08);
  padding:12px 14px;
  border-radius:14px;
}

/* Standards */
.standards{
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.standard{
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 10px;
  color:var(--muted);
  background: rgba(255,255,255,.03);
  font-size:13px;
}

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:18px;
  align-items:start;
}
.contact-side{display:grid; gap:10px}
.contact-card{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background: rgba(255,255,255,.03);
}
[data-theme="light"] .contact-card{background: rgba(255,255,255,.92)}
.contact-k{font-size:12px; color:var(--muted)}
.contact-v{font-weight:900; margin-top:6px}
.form{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.03);
  padding:16px;
}
[data-theme="light"] .form{background: rgba(255,255,255,.92)}

label{display:block; margin-bottom:12px}
label span{display:block; font-size:13px; color:var(--muted); margin-bottom:6px}
input, select, textarea{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.12);
  color:var(--text);
  outline:none;
}
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea{
  background: rgba(11,18,32,.03);
}
input:focus, select:focus, textarea:focus{box-shadow: var(--focus)}
.hp{position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden}

/* Alerts */
.alert{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  margin: 8px 0 18px;
}
.alert.success{border-color: rgba(102,230,201,.45); background: rgba(102,230,201,.10)}
.alert.error{border-color: rgba(255,120,120,.45); background: rgba(255,120,120,.10)}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  padding:26px 0;
}
.footer-grid{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.footer-title{font-weight:900}
.footer-links{display:flex; gap:14px; flex-wrap:wrap; color:var(--muted)}
.footer-links a{text-decoration:none}
.footer-links a:hover{text-decoration:underline}
.footer-bottom{
  margin-top:16px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* Responsive */
@media (max-width: 980px){
  .grid-4{grid-template-columns: repeat(2, 1fr)}
  .hero-grid{grid-template-columns: 1fr}
  .contact-grid{grid-template-columns: 1fr}
  .two-col{grid-template-columns: 1fr}
  .kpis{grid-template-columns: 1fr}
}

@media (max-width: 760px){
  .nav-toggle{display:inline-flex}
  .nav-menu{
    display:none;
    position:absolute;
    right:0;
    top:46px;
    background: rgba(16,28,51,.96);
    border:1px solid var(--line);
    border-radius: 16px;
    padding:12px;
    box-shadow: var(--shadow);
    flex-direction:column;
    align-items:stretch;
    min-width: 240px;
  }
  [data-theme="light"] .nav-menu{ background: rgba(255,255,255,.96); }
  .nav-menu.open{display:flex}
  .nav-menu a, .nav-menu button{justify-content:flex-start}
  .hero h1{font-size:38px}
}

@media (prefers-reduced-motion: reduce){
  .btn:hover{transform:none}
}


/* Theme toggle switch */
.theme-toggle {
  display:flex;
  align-items:center;
  margin-left:8px;
}

.theme-toggle input {
  display:none;
}

.theme-toggle label {
  width:50px;
  height:26px;
  background:var(--line);
  border-radius:50px;
  position:relative;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 6px;
  font-size:12px;
}

.theme-toggle label::after {
  content:"";
  width:20px;
  height:20px;
  background:white;
  border-radius:50%;
  position:absolute;
  left:3px;
  transition:0.3s ease;
}

.theme-toggle input:checked + label::after {
  left:27px;
}

.theme-toggle .icon {
  z-index:1;
  pointer-events:none;
}


/* Smooth theme transition (respects reduced motion) */
html, body, .topbar, .hero-panel, .card, .panel, .form, .contact-card, .footer {
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
@media (prefers-reduced-motion: reduce){
  html, body, .topbar, .hero-panel, .card, .panel, .form, .contact-card, .footer { transition: none; }
}

/* Theme toggle polish */
.theme-toggle{margin-left:6px}
.theme-toggle label{
  background: rgba(255,255,255,.10);
  border: 1px solid var(--line);
}
[data-theme="light"] .theme-toggle label{
  background: rgba(11,18,32,.06);
}
.theme-toggle label::after{
  background: linear-gradient(180deg, #ffffff, #eef2ff);
  box-shadow: 0 6px 14px rgba(0,0,0,.22);
}
[data-theme="light"] .theme-toggle label::after{
  box-shadow: 0 6px 14px rgba(11,18,32,.12);
}
.theme-toggle .sun{opacity:.85}
.theme-toggle .moon{opacity:.85}
.theme-toggle input:checked + label .sun{opacity:1}
.theme-toggle input:not(:checked) + label .moon{opacity:1}

/* Make nav menu items align nicely */
.nav-menu{gap:12px}
