:root {
  --bg: #0f0a18;
  --bg-soft: #171024;
  --surface: rgba(28, 18, 44, 0.72);
  --surface-strong: rgba(24, 16, 38, 0.92);
  --surface-border: rgba(255, 255, 255, 0.1);
  --text: #f6f1ff;
  --muted: #bbaed8;
  --muted-2: #d8cdf1;
  --primary: #8b5cf6;
  --primary-2: #c084fc;
  --primary-3: #e9d5ff;
  --success: #7cffa7;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.22), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(192, 132, 252, 0.16), transparent 26%),
    linear-gradient(180deg, #0f0a18 0%, #090612 100%);
  color: var(--text);
  min-height: 100vh;
}

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

.site-shell { position: relative; overflow: clip; }
.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }
.narrow { width: min(calc(100% - 2rem), 860px); }

.section { padding: 5rem 0; }
.alt-surface { background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)); }

.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 8, 20, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.compact-header { position: sticky; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: block;
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.desktop-nav,
.footer-links,
.lang-switch,
.hero-cta,
.hero-badges,
.stats-band-grid,
.feature-grid,
.workflow-grid,
.tools-grid,
.audience-grid,
.audience-list,
.status-grid,
.showcase-grid,
.support-grid,
.footer-grid,
.cta-card,
.stat-grid,
.mini-panels,
.legal-grid,
.summary-grid,
.page-links {
  display: grid;
}

.desktop-nav {
  grid-auto-flow: column;
  gap: 1.2rem;
  align-items: center;
}

.desktop-nav a,
.footer-links a,
.mobile-panel a {
  color: var(--muted-2);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.footer-links a:hover,
.mobile-panel a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  grid-auto-flow: column;
  gap: 0.35rem;
  padding: 0.26rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}

.lang-btn {
  border: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.is-active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(192, 132, 252, 0.95));
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  gap: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.mobile-panel {
  display: none;
  padding: 0 1rem 1rem;
}

.mobile-panel.is-open {
  display: grid;
  gap: 0.75rem;
}

.hero {
  padding-top: 4.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  background: rgba(139, 92, 246, 0.13);
  color: var(--primary-3);
  border: 1px solid rgba(192, 132, 252, 0.25);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

.hero-copy h1,
.section-heading h2,
.audience-grid h2,
.cta-card h2,
.narrow h1 {
  margin: 1rem 0 1rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.9rem);
  max-width: 12ch;
}

.lead,
.section-heading p,
.audience-grid p,
.cta-card p,
.legal-card p,
.support-grid p,
.status-inline,
.tool-card p,
.feature-card p,
.workflow-card p,
.status-card p,
.summary-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.hero-copy .lead {
  margin-bottom: 1.4rem;
  max-width: 62ch;
  font-size: 1.05rem;
}

.hero-cta {
  grid-auto-flow: column;
  gap: 0.85rem;
  justify-content: start;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.85rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.hero-badges {
  grid-auto-flow: column;
  justify-content: start;
  gap: 0.6rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

.hero-badges span,
.audience-list span,
.chip,
.step-pill,
.page-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.92rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.chip-strong {
  background: rgba(139, 92, 246, 0.18);
  color: var(--primary-3);
  border-color: rgba(192, 132, 252, 0.28);
}

.status-inline {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1.15rem;
  max-width: 58ch;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 18px rgba(124, 255, 167, 0.55);
  flex: 0 0 auto;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.9;
}

.orb-one {
  width: 310px;
  height: 310px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.42), rgba(139, 92, 246, 0));
  top: 40px;
  right: 20px;
}

.orb-two {
  width: 230px;
  height: 230px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.32), rgba(192, 132, 252, 0));
  left: 10px;
  bottom: 70px;
}

.device-card {
  position: relative;
  width: min(100%, 490px);
  padding: 1rem;
  z-index: 2;
}

.device-header {
  display: flex;
  gap: 0.45rem;
  padding: 0.2rem 0 0.8rem;
}

.device-header span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
}

.device-screen {
  border-radius: 22px;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(10, 8, 20, 0.96), rgba(24, 18, 35, 0.86));
  border: 1px solid rgba(255,255,255,0.06);
}

.app-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-panel small,
.mini-panel small,
.floating-card small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.app-panel h3,
.floating-card strong,
.feature-card h3,
.workflow-card h3,
.tool-card h3,
.status-card h3,
.legal-card h2,
.summary-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.stat-grid article,
.mini-panel {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.stat-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.stat-grid strong {
  font-size: 1.15rem;
}

.ingredient-card {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1rem;
}

.ingredient-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-2);
}

.mini-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.floating-card {
  position: absolute;
  right: 0;
  bottom: 20px;
  width: min(270px, 64%);
  padding: 1rem 1.1rem;
  z-index: 3;
}

.floating-card span {
  display: block;
  color: var(--muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.stats-band {
  padding-top: 0;
}

.stats-band-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stats-band-grid article {
  padding: 1.1rem 1.2rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
}

.stats-band-grid strong {
  display: block;
  margin-bottom: 0.45rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.workflow-card,
.tool-card,
.status-card,
.legal-card,
.summary-card {
  padding: 1.3rem;
}

.feature-card,
.tool-card,
.status-card,
.summary-card {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature-card:hover,
.tool-card:hover,
.status-card:hover,
.summary-card:hover,
.legal-grid .legal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 132, 252, 0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.feature-icon,
.tool-icon,
.page-icon,
.summary-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--primary-3);
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(192, 132, 252, 0.2);
  flex: 0 0 auto;
}

.feature-icon svg,
.tool-icon svg,
.page-icon svg,
.summary-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step-pill {
  width: max-content;
  color: var(--primary-3);
  margin-bottom: 1rem;
}

.tools-layout { display: block; }
.tools-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tool-card {
  min-height: 215px;
}

.audience-grid {
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.audience-list {
  grid-template-columns: repeat(2, max-content);
  gap: 0.8rem;
  justify-content: end;
}

.status-grid,
.legal-grid,
.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.legal-grid .legal-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal-link,
.support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  color: var(--primary-3);
  font-weight: 600;
}

.support-link-muted {
  color: var(--muted-2);
  font-weight: 500;
}

.legal-link::after,
.support-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.legal-link:hover::after,
.support-link:hover::after {
  transform: translateX(3px);
}

.cta-card {
  grid-template-columns: 1.4fr auto;
  gap: 1.5rem;
  padding: 1.5rem;
  align-items: center;
}

.cta-actions,
.legal-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.inner-page .section {
  padding-top: 4.6rem;
}

.legal-card + .legal-card { margin-top: 0; }

.legal-card h2 {
  margin-bottom: 0.65rem;
  margin-top: 1.25rem;
}

.legal-card h2:first-child { margin-top: 0; }

.page-header {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.page-links {
  grid-auto-flow: column;
  justify-content: start;
  gap: 0.75rem;
}

.page-chip {
  color: var(--muted-2);
}

.summary-card {
  min-height: 100%;
}

.legal-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.legal-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--muted-2);
}

.support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.full-width { grid-column: 1 / -1; }

.faq-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.6rem;
}

.faq-list details {
  padding: 1rem 1rem 0.95rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq-list p { margin-top: 0.85rem; }

.site-footer {
  padding: 2rem 0 2.4rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

.footer-links {
  grid-auto-flow: column;
  gap: 1rem;
  align-items: start;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  padding-top: 1.5rem;
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay { transition-delay: 0.12s; }

@media (max-width: 1080px) {
  .hero-grid,
  .feature-grid,
  .workflow-grid,
  .tools-grid,
  .status-grid,
  .legal-grid,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audience-grid,
  .cta-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .audience-list {
    justify-content: start;
  }
}

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .hero-grid,
  .feature-grid,
  .workflow-grid,
  .tools-grid,
  .status-grid,
  .support-grid,
  .stats-band-grid,
  .mini-panels,
  .legal-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 2.5rem; }
  .hero-visual { min-height: auto; }
  .floating-card {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }
  .footer-links {
    justify-content: flex-start;
    grid-auto-flow: row;
  }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 720px) {
  .section { padding: 4rem 0; }
  .container { width: min(calc(100% - 1.2rem), var(--container)); }
  .header-inner { min-height: 74px; }
  .brand strong { font-size: 0.92rem; }
  .brand span { font-size: 0.75rem; }
  .hero-copy h1 { font-size: clamp(2.15rem, 9vw, 3.5rem); }
  .section-heading h2,
  .audience-grid h2,
  .cta-card h2,
  .narrow h1 { font-size: clamp(1.6rem, 7vw, 2.35rem); }
  .hero-cta,
  .page-links {
    grid-auto-flow: row;
    justify-content: stretch;
  }
  .btn { width: 100%; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero-badges {
    grid-auto-flow: row;
    justify-content: stretch;
  }
  .audience-list {
    grid-template-columns: 1fr;
  }
}


/* Open-source licenses table */
.oss-table-wrap { overflow-x: auto; margin-top: 0.8rem; }
.oss-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: rgba(0,0,0,0.14);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  overflow: hidden;
}
.oss-table th,
.oss-table td {
  padding: 0.85rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
}
.oss-table th {
  font-size: 0.92rem;
  color: var(--muted-2);
  background: rgba(255,255,255,0.06);
}
.oss-table td {
  font-size: 0.95rem;
  color: var(--text);
}
.oss-table tbody tr:hover td { background: rgba(255,255,255,0.035); }
.oss-table a { color: var(--primary-3); text-decoration: underline; text-underline-offset: 3px; }
