:root{
  --bg: #070A12;

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --muter: rgba(255,255,255,0.55);

  --stroke: rgba(255,255,255,0.12);
  --glass: rgba(255,255,255,0.06);

  --deep: rgba(0, 86, 179, 0.95);
  --cyan: rgba(0, 206, 255, 0.85);

  --shadow: 0 22px 70px rgba(0,0,0,0.48);
  --radius: 18px;
  --radius2: 28px;
  --max: 1120px;

  /* spacing system */
  --gap-1: 10px;
  --gap-2: 14px;
  --gap-3: 18px;
  --gap-4: 26px;
  --gap-5: 40px;
  --gap-6: 64px;

  --ease: cubic-bezier(.2,.8,.2,1);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(1100px 700px at 12% 6%, rgba(0, 86, 179, 0.35), transparent 60%),
    radial-gradient(900px 600px at 85% 0%, rgba(0, 206, 255, 0.20), transparent 55%),
    radial-gradient(900px 700px at 70% 90%, rgba(0, 206, 255, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
.container{ max-width: var(--max); margin: 0 auto; padding: 0 18px; }

/* ---------- Background figures ---------- */
.bg-figures{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.blob{
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 999px;
  filter: blur(30px);
  transform: translateZ(0);
  animation: floaty 10s var(--ease) infinite;
}
.b1{ left: -120px; top: 120px; background: rgba(0, 86, 179, 0.25); }
.b2{ right: -160px; top: 220px; background: rgba(0, 206, 255, 0.18); animation-delay: -3s; }
.b3{ left: 45%; bottom: -220px; background: rgba(0, 206, 255, 0.14); animation-delay: -6s; }

.ring{
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 0 0 1px rgba(0, 206, 255, 0.08) inset;
  animation: drift 14s var(--ease) infinite;
}
.r1{ left: 58%; top: 70px; }
.r2{ left: 16%; bottom: 120px; animation-delay: -5s; }

.dots{
  position: absolute;
  width: 220px; height: 220px;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 14px 14px;
  border-radius: 28px;
  opacity: 0.5;
  animation: drift 18s var(--ease) infinite;
}
.d1{ right: 90px; bottom: 120px; }

@keyframes floaty{
  0%,100%{ transform: translateY(0) translateX(0) scale(1); }
  50%{ transform: translateY(-26px) translateX(18px) scale(1.03); }
}
@keyframes drift{
  0%,100%{ transform: translateY(0) translateX(0); }
  50%{ transform: translateY(22px) translateX(-18px); }
}

/* keep content above figures */
.nav, main, section, footer{ position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav{
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7,10,18,0.58);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap: var(--gap-3);
}

.brand{
  display:flex; align-items:center; gap: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.brand-logo{
  height: 34px;
  width: auto;
  display:block;
  filter: drop-shadow(0 12px 24px rgba(0, 206, 255, 0.12));
}

.brand-name{
  font-size: 13px;
  opacity: 0.95;
}

.nav-links{
  display:flex; align-items:center; gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a{
  padding: 10px 12px;
  border-radius: 12px;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.nav-links a:hover{
  background: rgba(255,255,255,0.06);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-cta{
  display:flex; gap: 10px; align-items:center;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  transition: transform .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease);
  user-select:none;
  white-space: nowrap;
}

/* Theme toggle icon button */
.icon-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease);
}

.icon-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.09);
}

.icon-btn:active{ transform: translateY(0); }

.icon-btn svg{
  width: 20px;
  height: 20px;
  fill: rgba(255,255,255,0.90);
}

/* show sun in dark mode, moon in light mode */
.icon-moon{ display: none; }
html[data-theme="light"] .icon-sun{ display: none; }
html[data-theme="light"] .icon-moon{ display: block; }

/* Mobile full-width toggle */
.icon-btn-full{
  width: 100%;
  height: auto;
  padding: 12px 12px;
  justify-content: flex-start;
  gap: 10px;
}

.toggle-label{
  font-weight: 750;
  color: var(--text);
}

.btn:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.09);
}
.btn:active{ transform: translateY(0); }

.btn.primary{
  border: 0;
  background: linear-gradient(135deg, var(--deep), var(--cyan));
  box-shadow: 0 18px 45px rgba(0, 206, 255, 0.14);
  color: #061019;
}
.btn.primary:hover{ transform: translateY(-2px) scale(1.01); }

/* hamburger */
.hamburger{
  display:none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  cursor:pointer;
  align-items:center; justify-content:center;
}
.hamburger span{
  width: 18px; height: 2px;
  background: rgba(255,255,255,0.85);
  position: relative;
  display:block;
}
.hamburger span::before,
.hamburger span::after{
  content:""; position:absolute; left:0;
  width: 18px; height: 2px;
  background: rgba(255,255,255,0.85);
  transition: transform .2s var(--ease);
}
.hamburger span::before{ top:-6px; }
.hamburger span::after{ top: 6px; }

.mobile-menu{
  display:none;
  padding: 10px 0 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu a{
  display:block;
  padding: 12px 12px;
  border-radius: 14px;
  color: var(--muted);
}
.mobile-menu a:hover{
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.mobile-menu .btn{
  width: 100%;
  margin-top: 12px;
}
.mobile-menu.open{ display:block; }

/* ---------- Hero ---------- */
.hero{
  padding: clamp(56px, 6vw, 88px) 0 clamp(34px, 4vw, 56px);
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
}

.chip{
  display:inline-flex;
  gap: 8px; align-items:center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--muted);
  font-size: 13px;
}

.hero-title{
  margin: 18px 0 10px;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.07;
  letter-spacing: -0.9px;
}

.gradient-text{
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(0, 206, 255, 0.90));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subhead{
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 60ch;
}

.bulletline{
  display:flex; gap: 10px; flex-wrap: wrap;
  margin: 14px 0 24px;
  color: var(--muter);
  font-size: 14px;
}
.bulletline span{
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.cta-row{
  display:flex; gap: 10px; flex-wrap: wrap;
  margin-top: 16px;
}

.trust-row{
  display:flex; gap: 10px; flex-wrap: wrap;
  margin-top: 22px;
}
.trust-pill{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  display:flex; align-items:center; gap: 8px;
}
.trust-pill .dot{
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(0, 206, 255, 0.9);
  box-shadow: 0 0 0 6px rgba(0, 206, 255, 0.10);
}

/* right panel */
.panel{
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
  transform: translateZ(0);
}

.visual{
  min-height: 260px;
  background:
    radial-gradient(260px 180px at 20% 30%, rgba(0, 86, 179, 0.60), transparent 60%),
    radial-gradient(300px 180px at 80% 40%, rgba(0, 206, 255, 0.32), transparent 65%),
    rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  display:flex; align-items:center; justify-content:center;
  padding: 18px;
  text-align:center;
  color: rgba(255,255,255,0.74);
  position: relative;
}

.visual::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.10), transparent 40%);
  animation: shimmer 7s var(--ease) infinite;
}

@keyframes shimmer{
  0%,100%{ transform: translateX(-10%) translateY(0); opacity: .65; }
  50%{ transform: translateX(10%) translateY(-6%); opacity: .95; }
}

.visual-inner{ position: relative; z-index: 1; }
.visual-title{ font-weight: 950; color: rgba(255,255,255,0.94); margin-bottom: 8px; }
.visual-text{ font-size: 14px; }

.mini-figures{
  display:flex;
  gap: 10px;
  justify-content:center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.fig-card{
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  min-width: 120px;
  animation: pop 1.2s var(--ease) both;
}
.fig-card:nth-child(2){ animation-delay: .12s; }
.fig-card:nth-child(3){ animation-delay: .24s; }

@keyframes pop{
  from{ transform: translateY(10px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}
.fig-k{ font-size: 12px; color: rgba(255,255,255,0.68); }
.fig-v{ font-size: 14px; font-weight: 900; margin-top: 2px; }

.stats{
  padding: 18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  transition: transform .18s var(--ease);
}
.stat:hover{ transform: translateY(-2px); }
.stat .k{ font-size: 12px; color: var(--muter); }
.stat .v{ font-size: 15px; font-weight: 950; margin-top: 4px; }

/* ---------- Sections ---------- */
.section{
  padding: clamp(48px, 6vw, 86px) 0;
}

.section-head{
  margin-bottom: var(--gap-4);
  max-width: 80ch;
}

.section-title{
  font-size: clamp(24px, 2.6vw, 34px);
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}

.section-text{
  color: var(--muted);
  font-size: 16px;
  margin: 0;
  max-width: 82ch;
}

.about-box{
  margin-top: 18px;
  padding: clamp(16px, 2.5vw, 24px);
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  display:flex;
  flex-direction: column;
  gap: 14px;
}

/* inline figures */
.figure-strip{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.figure{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.figure:hover{ transform: translateY(-3px); background: rgba(255,255,255,0.05); }
.figure-top{ font-size: 18px; }
.figure-title{ font-weight: 950; margin-top: 6px; }
.figure-sub{ color: rgba(255,255,255,0.68); font-size: 13px; margin-top: 2px; }

/* ---------- Cards ---------- */
.cards{
  margin-top: 22px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2.2vw, 18px);
}

.card{
  padding: clamp(16px, 2.2vw, 22px);
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 206, 255, 0.10), transparent 40%);
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.card:hover::before{ opacity: 1; }

.card:hover{
  transform: translateY(-6px);
  border-color: rgba(0, 206, 255, 0.22);
  background: rgba(255,255,255,0.06);
}

.card-top{
  display:flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.icon-wrap{
  width: 44px; height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.35), rgba(0, 206, 255, 0.18));
  display:grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(0, 206, 255, 0.08);
}
.icon{
  width: 22px; height: 22px;
  fill: rgba(255,255,255,0.90);
}

.card h3{
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.2px;
  position: relative;
  z-index: 1;
}

.card p{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.mini{
  display:flex; gap: 10px; flex-wrap: wrap;
  color: var(--muter);
  font-size: 12px;
  position: relative;
  z-index: 1;
}
.mini span{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}

/* ---------- CTA ---------- */
.cta{ padding: 0 0 clamp(60px, 6vw, 96px); }

.cta-box{
  padding: clamp(18px, 3vw, 30px);
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(520px 260px at 20% 30%, rgba(0, 86, 179, 0.35), transparent 60%),
    radial-gradient(520px 260px at 85% 30%, rgba(0, 206, 255, 0.22), transparent 60%),
    rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
  display:flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cta-box h2{
  margin:0 0 8px;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.3px;
}

.cta-box p{
  margin:0;
  color: var(--muted);
  max-width: 70ch;
}

.cta-actions{
  display:flex; gap: 10px; flex-wrap: wrap;
  align-items:center;
}

.contactline{
  margin-top: 10px;
  color: var(--muter);
  font-size: 13px;
}
.contactline a{
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Footer ---------- */
footer{
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  color: var(--muter);
  font-size: 13px;
}
.foot{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.foot-links{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}
.foot-links a{ color: var(--muted); }
.foot-links a:hover{ color: var(--text); }

/* ---------- Scroll reveal animation ---------- */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
  will-change: opacity, transform, filter;
}
.reveal.show{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---------- Light mode overrides ---------- */
html[data-theme="light"] body{
  background:
    radial-gradient(1100px 700px at 12% 6%, rgba(0, 86, 179, 0.14), transparent 60%),
    radial-gradient(900px 600px at 85% 0%, rgba(0, 206, 255, 0.10), transparent 55%),
    radial-gradient(900px 700px at 70% 90%, rgba(0, 206, 255, 0.08), transparent 60%),
    #f6f8ff;
  color: rgba(8, 14, 25, 0.92);
}

html[data-theme="light"] .nav{
  background: rgba(246,248,255,0.75);
  border-bottom: 1px solid rgba(8,14,25,0.10);
}

html[data-theme="light"] .nav-links{
  color: rgba(8, 14, 25, 0.68);
}

html[data-theme="light"] .nav-links a:hover{
  background: rgba(8,14,25,0.06);
  color: rgba(8,14,25,0.92);
}

html[data-theme="light"] .btn{
  border: 1px solid rgba(8,14,25,0.14);
  background: rgba(8,14,25,0.04);
  color: rgba(8,14,25,0.92);
}

html[data-theme="light"] .btn:hover{
  border-color: rgba(8,14,25,0.20);
  background: rgba(8,14,25,0.06);
}

html[data-theme="light"] .chip,
html[data-theme="light"] .bulletline span,
html[data-theme="light"] .trust-pill,
html[data-theme="light"] .mini span{
  border: 1px solid rgba(8,14,25,0.12);
  background: rgba(8,14,25,0.03);
  color: rgba(8,14,25,0.70);
}

html[data-theme="light"] .panel,
html[data-theme="light"] .card,
html[data-theme="light"] .about-box,
html[data-theme="light"] .cta-box,
html[data-theme="light"] .stat,
html[data-theme="light"] .figure,
html[data-theme="light"] .fig-card{
  border: 1px solid rgba(8,14,25,0.12);
  background: rgba(255,255,255,0.72);
}

html[data-theme="light"] .visual{
  color: rgba(8,14,25,0.68);
}

html[data-theme="light"] .visual-title{
  color: rgba(8,14,25,0.92);
}

html[data-theme="light"] .icon-wrap{
  border: 1px solid rgba(8,14,25,0.12);
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.20), rgba(0, 206, 255, 0.10));
}

html[data-theme="light"] .icon{
  fill: rgba(8,14,25,0.86);
}

/* theme toggle button */
html[data-theme="light"] .icon-btn{
  border: 1px solid rgba(8,14,25,0.14);
  background: rgba(8,14,25,0.04);
}
html[data-theme="light"] .icon-btn svg{
  fill: rgba(8,14,25,0.88);
}
html[data-theme="light"] .toggle-label{
  color: rgba(8,14,25,0.92);
}

/* footer */
html[data-theme="light"] footer{
  border-top: 1px solid rgba(8,14,25,0.10);
  color: rgba(8,14,25,0.55);
}
html[data-theme="light"] .foot-links a{
  color: rgba(8,14,25,0.70);
}
html[data-theme="light"] .foot-links a:hover{
  color: rgba(8,14,25,0.92);
}

/* background figures tuned for light */
html[data-theme="light"] .ring{
  border: 1px solid rgba(8,14,25,0.10);
  box-shadow: 0 0 0 1px rgba(0, 86, 179, 0.06) inset;
}
html[data-theme="light"] .dots{
  opacity: 0.35;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px){
  .figure-strip{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .nav-links{ display:none; }
  .nav-cta{ display:none; }
  .hamburger{ display:flex; }
  .cards{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: 1fr; }
}
