:root {
  --bg: #1C2634;
  --bg-2: #243246;
  --bg-3: #2F4059;
  --fg: #EAF0FF;
  --muted: rgba(234,240,255,.72);
  --muted2: rgba(234,240,255,.55);
  --stroke: rgba(255,255,255,.12);
  --accent: #65CEB0;
  --accent-2: #7BE6C7;
  --accent-soft: rgba(101,206,176,.15);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-1: 0 18px 60px rgba(6,10,16,.4);
  --shadow-2: 0 10px 40px rgba(6,10,16,.35);
  --max: 1200px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Sora", "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --scroll-offset: 110px;
}

* { box-sizing: border-box; }

body.ui-modern {
  margin: 0;
  color: var(--fg);
  background: radial-gradient(900px 700px at 15% -10%, rgba(101,206,176,.22), transparent 70%),
              radial-gradient(900px 600px at 85% 0%, rgba(123,230,199,.18), transparent 60%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 60%, var(--bg-3) 100%);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body.ui-modern.productPage {
  background: var(--bg);
}

body.ui-modern::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(700px 420px at 70% 0%, rgba(234,240,255,.08), transparent 70%);
  opacity: .9;
  pointer-events: none;
  z-index: -2;
}

.page::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(234,240,255,.06) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .22;
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, .h1, .h2 { font-family: var(--font-display); }

.container { width: min(var(--max), calc(100% - 64px)); margin: 0 auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20,28,40,.8);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img { width: 90px; height: auto; display: block; }

.navlinks {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--muted2);
  padding: 6px 0;
  position: relative;
}

.pill::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .2s ease;
}

.pill:hover { color: var(--fg); text-decoration: none; }
.pill:hover::after { width: 100%; }

.langSwitch:hover {
  color: var(--fg);
}

.langSwitch::after,
.langSwitch:hover::after {
  width: 0;
}
.langSwitch {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color: var(--fg);
}

.githubLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btnIcon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.githubIcon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.navToggle {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: var(--fg);
}

@media (max-width: 820px) {
  .nav { flex-wrap: wrap; }
  .navToggle { display: inline-flex; }

  .navlinks {
    width: 100%;
    display: none;
    margin-top: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .nav[data-open="true"] .navlinks { display: flex; }
}

.hero {
  position: relative;
  padding: clamp(120px, 18vh, 210px) 0 clamp(80px, 12vh, 140px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -35% -20% auto;
  height: 80%;
  background: radial-gradient(700px 420px at 20% 20%, rgba(101,206,176,.28), transparent 70%),
              radial-gradient(600px 380px at 85% 10%, rgba(234,240,255,.18), transparent 70%);
  opacity: .9;
  pointer-events: none;
}

.heroGrid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.heroCopy { max-width: 720px; }

.heroPanelHead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 18px 24px 18px;
  border-bottom: none;
}

.heroLogo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  display: block;
  margin-top: -40px;
  margin-bottom: 28px;
}

.heroPanelTitle { font-weight: 700; letter-spacing: -0.01em; }
.heroPanelSub { color: var(--muted2); font-size: 14px; }

.heroCard {
  position: relative;
  border-radius: var(--radius-lg);
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.h1 {
  font-size: clamp(56px, 7vw, 96px) !important;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.03;
  margin: 0 0 24px;
}

.h2 {
  font-size: clamp(34px, 4.6vw, 56px) !important;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.sub, .lead {
  font-size: clamp(18px, 2.1vw, 22px) !important;
  line-height: 1.6;
  color: var(--muted);
}

.heroTable {
  display: grid;
  gap: 10px;
  padding: 18px 20px 24px;
}

.heroRow {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 16px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.08);
}

.heroKey { color: var(--fg); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.heroValue { color: var(--muted); }

.heroStack {
  display: grid;
  gap: 12px;
  padding: 6px 24px 26px;
}

.heroItem {
  display: grid;
  gap: 6px;
  padding: 12px 14px 12px 16px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(101,206,176,.22), rgba(0,0,0,.22));
  border: 1px solid rgba(101,206,176,.28);
  position: relative;
}

.heroItem::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: rgba(101,206,176,.8);
}

.heroLabel {
  padding-left: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  color: var(--fg);
}

.heroDesc {
  padding-left: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.ctaRow { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  border-radius: 999px;
  padding: 14px 26px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 10px 30px rgba(8,12,20,.2);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.4);
  box-shadow: 0 16px 36px rgba(8,12,20,.3);
}

.btnPrimary {
  background: linear-gradient(135deg, rgba(101,206,176,1), rgba(101,206,176,.7));
  color: #162230;
  border-color: transparent;
  font-weight: 600;
}

.section {
  padding: clamp(90px, 14vh, 180px) 0;
  position: relative;
}

.sectionHeader {
  max-width: 760px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.sectionAlt {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border-top: 1px solid rgba(255,255,255,.06);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

.feature {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.04) !important;
  box-shadow: var(--shadow-2) !important;
}

.feature h3 { font-size: 22px; margin: 0 0 14px; }
.feature p { margin: 0; color: var(--muted); }
.feature > a {
  margin-top: auto;
  align-self: flex-start;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
}

.panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.04) !important;
  box-shadow: var(--shadow-2);
}

.callout {
  border-radius: var(--radius-lg) !important;
  background: rgba(101,206,176,.08) !important;
  border: 1px solid rgba(101,206,176,.35) !important;
  box-shadow: var(--shadow-2);
}

.calloutTitle { font-size: 22px !important; font-weight: 600; }
.calloutBody { font-size: 18px !important; color: var(--fg) !important; }

.steps { display: grid; gap: 24px; }

.stepNum {
  background: var(--accent);
  color: #162230;
  font-weight: 600;
}

.faq {
  border-top: 1px solid rgba(255,255,255,.08);
}

.faqItem {
  background: rgba(255,255,255,.02);
  border-radius: 16px;
  margin: 12px 0;
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.faqItem summary {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 22px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  color: var(--fg);
}

.faqItem summary::-webkit-details-marker { display: none; }

.faqBody { font-size: 17px; color: var(--muted); }

.faqItem .faqBody {
  padding: 0 24px 22px;
  max-width: 900px;
}

.faqItem[open] {
  background: rgba(101,206,176,.06);
  border-color: rgba(101,206,176,.3);
  transform: translateY(-1px);
}

.faqChevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  background: rgba(255,255,255,.04);
  font-size: 16px;
}

.faqItem[open] .faqChevron {
  transform: rotate(180deg);
  border-color: rgba(101,206,176,.6);
  background: rgba(101,206,176,.14);
}

@media (max-width: 640px) {
  .faqItem summary { padding: 18px 18px; font-size: 18px; }
  .faqItem .faqBody { padding: 0 18px 18px; font-size: 16px; }
}

.diagram {
  background: rgba(0,0,0,.14);
  border-radius: 12px;
  padding: 18px;
}

.hr { background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent); }

.storeBadge {
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  transition: transform .2s ease, box-shadow .2s ease;
}

.storeBadge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(8,12,20,.25);
}

.footer {
  background: rgba(12,18,26,.6);
  border-top: 1px solid rgba(255,255,255,.08);
}

.footerLinks a { color: var(--muted2); }
.footerLinks a:hover { color: var(--fg); }
.footerLinks a.footerGithub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footerLinks a.footerGithub .githubIcon {
  width: 14px;
  height: 14px;
}

.policy .panel { padding: clamp(22px, 3vw, 32px) !important; }
.policy h3 { font-size: 18px; font-weight: 600; }
.policy p, .policy li { font-size: 16px; line-height: 1.7; }
.policyTitleMeta { color: var(--muted2); }

.policy .grid .panel { grid-column: span 6; }

@media (max-width: 950px) {
  .feature { grid-column: span 6; }
}

@media (max-width: 900px) {
  .heroGrid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .policy .grid .panel { grid-column: span 12; }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 36px)); }
  .btn { width: 100%; justify-content: center; }
  .ctaRow { flex-direction: column; align-items: stretch; }
  .navlinks { gap: 16px; }
  .feature { grid-column: span 12; }
  .heroRow { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .feature, .panel, .heroCard, .callout {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }

  .feature:hover, .panel:hover, .heroCard:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.25);
  }
}
