:root{
  --radius: 16px;
  --shadow: 0 18px 40px rgba(16,24,40,.10);
  --shadow2: 0 10px 24px rgba(16,24,40,.08);
  --maxw: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --ease: cubic-bezier(.2,.9,.2,1);
}

/* LIGHT */
:root[data-theme="light"]{
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface2: #f0f3f9;
  --text: #0c1b33;
  --muted: rgba(12,27,51,.66);
  --border: rgba(12,27,51,.10);
  --brand: #2f6bff;
  --brand2:#2158e6;
  --heroGlow: radial-gradient(900px 420px at 75% 20%, rgba(47,107,255,.12), transparent 60%);
  --heroGlow2: radial-gradient(700px 380px at 30% 20%, rgba(47,107,255,.10), transparent 55%);
  --headerBg: rgba(245,247,251,.72);
  --pillBg: rgba(12,27,51,.06);
  --cardBg: rgba(255,255,255,1);
  --cardIcon: rgba(47,107,255,.14);
  --manifestoBg: linear-gradient(180deg, #1b2a44, #17233a);
  --manifestoText: rgba(255,255,255,.92);
  --manifestoMuted: rgba(255,255,255,.70);
}

/* DARK */
:root[data-theme="dark"]{
  --bg: #060b14;
  --surface: #0b1425;
  --surface2: #0f1b31;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --border: rgba(255,255,255,.12);
  --brand: #2f6bff;
  --brand2:#2158e6;
  --heroGlow: radial-gradient(900px 520px at 75% 20%, rgba(47,107,255,.20), transparent 62%);
  --heroGlow2: radial-gradient(800px 440px at 30% 20%, rgba(47,107,255,.14), transparent 60%);
  --headerBg: rgba(6,11,20,.60);
  --pillBg: rgba(255,255,255,.06);
  --cardBg: rgba(11,20,37,.86);
  --cardIcon: rgba(47,107,255,.18);
  --manifestoBg: linear-gradient(180deg, #0d1a2f, #0b1425);
  --manifestoText: rgba(255,255,255,.92);
  --manifestoMuted: rgba(255,255,255,.70);
}

*{ box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: var(--headerBg);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 700;
  letter-spacing:.2px;
  white-space: nowrap;
}

/* Default logo size */
.brand img{
  height: 36px;
  width: auto;
  object-fit: contain;
  transform: scale(1.08); /* helps if PNG has padding */
  transform-origin: left center;
}

.nav{
  display:flex;
  align-items:center;
  gap: 16px;
}
.nav a{
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.nav a:hover{
  background: var(--pillBg);
  border-color: var(--border);
  color: var(--text);
}

.header-right{ display:flex; align-items:center; gap:10px; }

/* Theme toggle */
.toggle{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--pillBg);
}
.toggle .icon{
  width:18px; height:18px;
  display:grid; place-items:center;
  opacity:.85;
}
.toggle .icon img{ width:18px; height:18px; }

.switch{
  width: 40px; height: 22px;
  border-radius: 999px;
  position: relative;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.10);
  cursor: pointer;
  outline:none;
}
:root[data-theme="dark"] .switch{ background: rgba(255,255,255,.10); }

.knob{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  left: 3px;
  width:16px; height:16px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow2);
  transition: left .18s var(--ease);
}
:root[data-theme="dark"] .knob{ left: 21px; }

/* Hero */
.hero{
  padding: 36px 0 10px;
  background: var(--heroGlow), var(--heroGlow2);
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 26px;
  align-items:center;
  padding: 14px 0 28px;
}

h1{
  font-size: 54px;
  line-height: 1.02;
  margin: 0 0 12px 0;
  letter-spacing: -1px;
}
.sub{
  margin: 0 0 18px 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
}

.cta-row{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }

.btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(47,107,255,.28);
  background: linear-gradient(180deg, var(--brand), var(--brand2));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 14px 30px rgba(47,107,255,.22);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 18px 40px rgba(47,107,255,.26); }

.hero-art{
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.12));
  box-shadow: var(--shadow);
  overflow:hidden;
  min-height: 230px;
  position: relative;
}
:root[data-theme="dark"] .hero-art{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

/* glow */
.hero-art::after{
  content:"";
  position:absolute;
  inset:-60px;
  background: radial-gradient(circle at 40% 30%, rgba(47,107,255,.22), transparent 60%);
  opacity:.35;
  pointer-events:none;
}
:root[data-theme="light"] .hero-art::after{ opacity:.22; }

/* placeholder art */
.art{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding: 18px;
  opacity:.95;
  color: rgba(47,107,255,.55);
  z-index: 1;
}
.art svg{ width: 92%; max-width: 460px; height:auto; }

/* Feature cards */
.features{ padding: 10px 0 18px; }
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
}
.card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--cardBg);
  box-shadow: var(--shadow2);
  padding: 16px;
  min-height: 150px;
}
.card-top{ display:flex; gap: 12px; align-items:flex-start; }
.ic{
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--cardIcon);
  display:grid;
  place-items:center;
  color: var(--brand);
  flex: 0 0 auto;
}
.card h3{ margin: 0; font-size: 15px; line-height:1.2; letter-spacing: -.2px; }
.card p{ margin: 6px 0 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

/* How it works */
.how{ padding: 18px 0 22px; }
.how h2{
  text-align:center;
  margin: 0 0 12px 0;
  font-size: 22px;
  letter-spacing: -.3px;
}
.how-box{
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--cardBg);
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.how-grid{ display:grid; grid-template-columns: 1fr 1fr 1fr; }
.how-item{
  padding: 16px;
  display:flex;
  align-items:center;
  gap: 12px;
  min-height: 92px;
}
.how-item + .how-item{ border-left: 1px solid var(--border); }
.how-item h4{ margin: 0; font-size: 14px; }
.how-item small{ display:block; margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.how-ic{
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--pillBg);
  display:grid;
  place-items:center;
  color: var(--brand);
  flex: 0 0 auto;
}

/* Manifesto strip */
.manifesto{
  margin-top: 16px;
  background: var(--manifestoBg);
  color: var(--manifestoText);
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
  position: relative;
  overflow:hidden;
}
.manifesto::before{
  content:"";
  position:absolute;
  inset:-120px -120px auto auto;
  width: 520px; height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(47,107,255,.32), transparent 62%);
  opacity: .55;
  pointer-events:none;
}
.manifesto-inner{
  padding: 28px 0;
  text-align:center;
  position: relative;
  z-index: 1;
}
.manifesto h3{ margin: 0 0 8px 0; font-size: 26px; letter-spacing: -.4px; }
.manifesto p{
  margin: 0 auto 14px auto;
  max-width: 720px;
  color: var(--manifestoMuted);
  line-height: 1.6;
  font-size: 13.5px;
  padding: 0 10px;
}
.btn2{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.94);
  font-weight: 700;
  font-size: 13px;
  transition: transform .14s var(--ease), background .14s var(--ease);
}
.btn2:hover{ transform: translateY(-1px); background: rgba(255,255,255,.10); }

/* Footer */
.footer{
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 12.5px;
}
.footer-row{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  align-items:center;
  flex-wrap: wrap;
  padding-top: 16px;
}
.footer-links{
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items:center;
}
.footer a{
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.footer a:hover{
  color: var(--text);
  background: var(--pillBg);
  border-color: var(--border);
}

/* Responsive */
@media (max-width: 960px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-art{ min-height: 210px; }
  h1{ font-size: 44px; }
  .cards{ grid-template-columns: 1fr; }
  .how-grid{ grid-template-columns: 1fr; }
  .how-item + .how-item{ border-left: none; border-top: 1px solid var(--border); }
}

@media (max-width: 520px){
  .wrap{ padding: 0 16px; }
  .brand img{ height: 44px; transform: scale(1.10); }
  .nav{ display:none; }
  .hero{ padding-top: 26px; }
  h1{ font-size: 40px; letter-spacing: -0.8px; }
  .sub{ font-size: 14.5px; color: var(--muted); }
  .hero-art{ border-radius: 18px; min-height: 200px; }
  .card{ padding: 14px; }
  .card p{ line-height: 1.5; }
  .ic{ width: 40px; height: 40px; border-radius: 14px; }
}

:focus-visible{
  outline: 3px solid rgba(47,107,255,.45);
  outline-offset: 2px;
  border-radius: 12px;
}