:root{
  --bg:#0b1220;
  --bg2:#0f1a30;
  --card:#0e1730;
  --text:#e8eefc;
  --muted:#b9c4e6;
  --line: rgba(255,255,255,.12);
  --accent:#6ea8fe;
  --accent2:#77f2c1;
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius: 18px;
}

*{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 800px at 20% -10%, rgba(110,168,254,.25), transparent 60%),
    radial-gradient(1000px 700px at 90% 10%, rgba(119,242,193,.18), transparent 55%),
    linear-gradient(180deg, var(--bg), #070b14 65%);
  color: var(--text);
  line-height:1.5;
}

a{color:inherit;text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:0 20px}

/* HEADER */
.header{
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.65);
  border-bottom: 1px solid var(--line);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}

.brand{display:flex; align-items:center; gap:10px}
.brand__wordmark{
  font-weight: 950;
  letter-spacing: -0.6px;
  font-size: 18px;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand__wordmark:hover{filter:brightness(1.08)}

.nav{display:flex; gap:18px; align-items:center}
.nav a{color: var(--muted); font-weight:600}
.nav a:hover{color: var(--text)}

.nav__toggle{
  display:none; background:transparent; border:0; cursor:pointer;
}
.nav__toggle span{
  display:block;width:22px;height:2px;background:var(--text);
  margin:4px 0;border-radius:2px;
}

/* BUTTONS */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#07111f; font-weight:800;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  border: 0;
}
.btn--ghost{
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow:none;
}
.btn--small{padding:10px 12px;border-radius:12px}

/* HERO */
.hero{padding:64px 0 34px}
.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:28px;
  align-items:stretch;
}
.kicker{
  display:inline-block;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding:6px 10px;
  font-weight:700;
  background: rgba(255,255,255,.04);
}
h1{font-size:44px;line-height:1.1;margin:14px 0 12px}
.lead{font-size:18px;color:var(--muted);margin:0 0 18px}
.hero__cta{display:flex; gap:12px; flex-wrap:wrap; margin:16px 0}
.hero__bullets{margin:16px 0 0; padding-left:18px; color: var(--muted)}
.chips{display:flex; flex-wrap:wrap; gap:8px; margin-top:16px}
.chip{
  font-size:13px; font-weight:700;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  padding:6px 10px;
  border-radius: 999px;
  color: var(--muted);
}

/* CARD */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  padding:18px;
  height: 100%;
}
.card__header{display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:12px}
.card--brand .card__header{align-items:center}
.badge{
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space:nowrap;
}

.brand-badge{display:flex; align-items:center; gap:12px}
.brand-badge__icon{
  width:42px; height:42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
}
.brand-badge__title{font-weight:950; letter-spacing:-0.4px}
.brand-badge__subtitle{font-size:13px; color: var(--muted)}

.flow{margin:0; padding-left:18px; color: var(--muted)}
.flow__title{color: var(--text); font-weight:800}
.flow__desc{font-size:14px; margin-bottom:10px}

.card__footer{margin-top:10px}
.link{color: var(--accent); font-weight:800}
.link:hover{filter:brightness(1.1)}

/* SECTIONS */
.section{padding:60px 0}
.section--alt{
  background: rgba(255,255,255,.03);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head{margin-bottom:22px}
.section__head h2{margin:0 0 8px; font-size:30px}
.muted{color: var(--muted)}

.grid{display:grid; gap:14px}
.grid--3{grid-template-columns: repeat(3, 1fr)}
.grid--2{grid-template-columns: repeat(2, 1fr)}

.feature, .case, .pill, .panel{
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding:16px;
}
.feature h3, .case h3, .pill h3, .panel h3{margin:0 0 8px}
.case ul{margin:10px 0 0; padding-left:18px; color: var(--muted)}

/* STEPS */
.steps{display:grid; gap:14px}
.step{
  display:flex; gap:14px; align-items:flex-start;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  padding:16px;
}
.step__num{
  width:34px; height:34px; border-radius:12px;
  display:grid; place-items:center;
  background: rgba(110,168,254,.18);
  border: 1px solid rgba(110,168,254,.35);
  font-weight:900;
}
.step__body h3{margin:0 0 6px}

/* CONTACT */
.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:start;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  padding:18px;
}
.contact__meta{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap:10px; margin-top:14px;
  color: var(--muted);
}
.form label{display:block; margin-bottom:10px; color: var(--muted); font-weight:700}
input, textarea{
  width:100%;
  margin-top:6px;
  padding:12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}
input:focus, textarea:focus{border-color: rgba(110,168,254,.55)}
.form__hint{color: var(--muted); font-size:13px; margin-top:10px}
.form__status{margin-top:10px; font-weight:800}

/* ARCHITECTURE PAGE */
.page-hero{padding:50px 0 10px}
.page-title{font-size:38px; line-height:1.1; margin:0 0 10px}
.page-subtitle{color: var(--muted); margin:0 0 18px}
.diagram{
  overflow:auto;
  background: rgba(0,0,0,.16);
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 18px;
  padding:16px;
}
.diagram svg{min-width: 860px; width: 100%; height: auto; display:block}

.kv{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
.kv .panel p{color: var(--muted); margin:0}

/* FOOTER */
.footer{
  border-top: 1px solid var(--line);
  padding:26px 0;
  background: rgba(0,0,0,.15);
}
.footer__inner{
  display:flex; justify-content:space-between; gap:16px; align-items:center;
}

/* RESPONSIVE */
@media (max-width: 980px){
  .hero__grid{grid-template-columns: 1fr}
  .grid--3{grid-template-columns: 1fr}
  .grid--2{grid-template-columns: 1fr}
  .contact{grid-template-columns: 1fr}
  .kv{grid-template-columns: 1fr}
  h1{font-size:38px}
}

@media (max-width: 820px){
  .nav{display:none}
  .nav.is-open{
    display:flex; position:absolute; top:62px; right:20px; left:20px;
    flex-direction:column; gap:10px;
    padding:14px;
    background: rgba(11,18,32,.92);
    border: 1px solid var(--line);
    border-radius: 18px;
  }
  .nav__toggle{display:block}
}
