:root{
  --bg:#050b18;
  --bg2:#071027;
  --card:#0a1430cc;
  --line:#1b2a4a;
  --text:#e6eefc;
  --muted:#9fb0d3;
  --blue:#38bdf8;
  --blue2:#1f7cff;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: radial-gradient(900px 500px at 30% -10%, rgba(56,189,248,.18), transparent 55%),
              radial-gradient(900px 600px at 90% 10%, rgba(31,124,255,.14), transparent 60%),
              linear-gradient(180deg, var(--bg), #020617 70%);
  color:var(--text);
  overflow-x:hidden;
}

.bg-glow{
  position:fixed; inset:-200px;
  background:
    radial-gradient(600px 350px at 20% 0%, rgba(56,189,248,.12), transparent 60%),
    radial-gradient(700px 450px at 90% 10%, rgba(31,124,255,.10), transparent 60%);
  pointer-events:none;
  z-index:-1;
  filter: blur(10px);
}

a{color:inherit;text-decoration:none}

/* NAV */
.nav{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 18px;
  backdrop-filter: blur(12px);
  background: rgba(5,11,24,.55);
  border-bottom:1px solid rgba(27,42,74,.55);
}

.brand{display:flex; flex-direction:column; line-height:1.1}
.brand-mark{
  font-weight:800; letter-spacing:1px;
  font-size:18px;
}
.brand-sub{
  font-size:11px; color:var(--muted);
  letter-spacing:2px;
}

.nav-links{display:flex; gap:16px; align-items:center}
.nav-links a{
  font-size:13px; color:var(--muted);
  padding:8px 10px; border-radius:10px;
  transition:.2s;
}
.nav-links a:hover{
  color:var(--text);
  background: rgba(56,189,248,.08);
  border:1px solid rgba(56,189,248,.15);
}

.nav-cta{
  font-size:13px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(56,189,248,.25);
  background: linear-gradient(180deg, rgba(56,189,248,.14), rgba(31,124,255,.10));
  box-shadow: 0 10px 30px rgba(56,189,248,.10);
}

/* HERO */
.hero{
  padding:54px 18px 34px;
}
.hero-inner{
  max-width:980px;
  margin:0 auto;
  text-align:center;
}
.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(56,189,248,.22);
  background: rgba(10,20,48,.55);
  color: var(--muted);
  font-size:12px;
  margin-bottom:18px;
}
.hero h1{
  font-size:38px;
  letter-spacing:-.5px;
  margin-bottom:10px;
}
.hero p{
  color:var(--muted);
  line-height:1.55;
  margin:0 auto 18px;
  max-width:720px;
}

.hero-actions{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:10px;
}

.btn-primary, .btn-ghost{
  border:none; cursor:pointer;
  padding:12px 18px;
  border-radius:14px;
  font-weight:700;
  font-size:13px;
  transition: .2s transform, .2s opacity;
}
.btn-primary{
  color:#061023;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  box-shadow: 0 18px 40px rgba(56,189,248,.18);
}
.btn-ghost{
  color:var(--text);
  background: rgba(10,20,48,.35);
  border:1px solid rgba(27,42,74,.65);
}
.btn-primary:hover, .btn-ghost:hover{transform: translateY(-1px); opacity:.96}

.hero-mini{
  display:flex; gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:22px;
}
.mini-card{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(27,42,74,.65);
  background: rgba(10,20,48,.35);
  color:var(--muted);
  min-width:120px;
}
.mini-card span{
  display:block;
  color:var(--text);
  font-weight:800;
  margin-bottom:2px;
}

/* SECTIONS */
.section{
  padding:54px 18px;
}
.section.soft{
  background: linear-gradient(180deg, rgba(10,20,48,.25), transparent 60%);
  border-top:1px solid rgba(27,42,74,.35);
  border-bottom:1px solid rgba(27,42,74,.25);
}
.section-head{
  max-width:980px;
  margin:0 auto 22px;
  text-align:center;
}
.section-head h2{font-size:26px}
.section-head p{color:var(--muted); margin-top:8px}

/* GRID */
.grid{
  max-width:980px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
@media (min-width: 860px){
  .grid{grid-template-columns: repeat(3, 1fr)}
}

.card{
  text-align:left;
  border-radius:18px;
  border:1px solid rgba(27,42,74,.75);
  background: linear-gradient(180deg, rgba(10,20,48,.65), rgba(2,6,23,.75));
  box-shadow: var(--shadow);
  padding:18px;
  position:relative;
  overflow:hidden;
}
.card:before{
  content:"";
  position:absolute; inset:-120px;
  background: radial-gradient(300px 200px at 20% 10%, rgba(56,189,248,.16), transparent 60%),
              radial-gradient(300px 200px at 90% 20%, rgba(31,124,255,.12), transparent 60%);
  filter: blur(10px);
  opacity:.9;
}
.card > *{position:relative}
.card-click{cursor:pointer; border:none}
.card-click:hover{
  transform: translateY(-4px);
  transition: .22s;
  box-shadow: 0 24px 70px rgba(56,189,248,.12);
  border:1px solid rgba(56,189,248,.35);
}
.card-top{
  display:flex; align-items:center; gap:10px;
}
.icon{
  width:42px; height:42px;
  display:grid; place-items:center;
  border-radius:14px;
  background: rgba(56,189,248,.10);
  border:1px solid rgba(56,189,248,.20);
  font-size:18px;
}
.card-title{font-size:16px; font-weight:900}
.card-desc{color:var(--muted); margin:10px 0 14px; line-height:1.45}

.card-foot{
  display:flex; gap:8px; flex-wrap:wrap; align-items:center;
}
.chip{
  font-size:11px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(27,42,74,.65);
  background: rgba(5,11,24,.35);
  color: var(--muted);
}
.arrow{
  margin-left:auto;
  color: var(--blue);
  font-weight:800;
  font-size:12px;
}

/* ABOUT GRID */
.about-grid{
  max-width:980px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
@media (min-width: 860px){
  .about-grid{grid-template-columns: repeat(3, 1fr)}
}
.about-card{
  border-radius:18px;
  border:1px solid rgba(27,42,74,.65);
  background: rgba(10,20,48,.35);
  padding:18px;
}
.about-card h3{font-size:15px; margin-bottom:8px}
.about-card p{color:var(--muted); line-height:1.5}

/* CONTACT BOX */
.contact-box{
  max-width:980px;
  margin:0 auto;
  border-radius:22px;
  border:1px solid rgba(56,189,248,.22);
  background: linear-gradient(135deg, rgba(56,189,248,.10), rgba(31,124,255,.06));
  padding:18px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.contact-box p{color:var(--muted); margin-top:6px}
.contact-actions{display:flex; gap:10px; flex-wrap:wrap}

/* PAGE VIEW */
.page-wrap{
  display:none;
  padding:18px;
  max-width:980px;
  margin:0 auto 30px;
}
.page-top{
  display:flex; align-items:center; gap:10px;
  margin-top:8px;
}
.back, .copy{
  border:none; cursor:pointer;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(10,20,48,.35);
  border:1px solid rgba(27,42,74,.65);
  color:var(--text);
  font-weight:800;
  font-size:12px;
}
.page-title{
  flex:1;
  text-align:center;
  font-weight:900;
  letter-spacing:.5px;
}
.page-card{
  margin-top:14px;
  border-radius:22px;
  border:1px solid rgba(27,42,74,.65);
  background: linear-gradient(180deg, rgba(10,20,48,.55), rgba(2,6,23,.85));
  box-shadow: var(--shadow);
  padding:16px;
}
.page-pre{
  white-space:pre-wrap;
  word-break:break-word;
  color: var(--text);
  line-height:1.55;
  font-size:13px;
}
.page-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.link-btn{display:inline-flex; align-items:center; justify-content:center}

/* FOOTER */
.footer{
  padding:26px 18px 40px;
  color:var(--muted);
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  border-top:1px solid rgba(27,42,74,.35);
}
.muted{color:var(--muted)}
