:root {
  --bg: #050814;
  --bg-alt: #070b1c;
  --bg-soft: #0b1024;
  --accent: #4f8cff;
  --accent-soft: rgba(79, 140, 255, 0.12);
  --accent-strong: #7f5dff;
  --accent-gradient: linear-gradient(135deg, #4f8cff, #7f5dff);
  --text: #f5f7ff;
  --muted: #a3aed0;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --card-bg: rgba(10, 14, 35, 0.9);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.35);
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.25s ease-out;
  --max-width: 1120px;
  --page-bg: radial-gradient(circle at top, #101633 0, #050814 55%, #02030a 100%);
  --primary-contrast: #050814;
}

html[data-theme="light"] {
  color-scheme: light;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --accent-strong: #0ea5e9;
  --accent-gradient: linear-gradient(135deg, #2563eb, #0ea5e9);
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.62);
  --border-subtle: rgba(148, 163, 184, 0.28);
  --card-bg: rgba(255, 255, 255, 0.86);
  --shadow-soft: 0 16px 50px rgba(15, 23, 42, 0.12);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.1);
  --page-bg:
    radial-gradient(1000px 600px at 15% 10%, rgba(37, 99, 235, 0.16), transparent 55%),
    radial-gradient(900px 650px at 85% 80%, rgba(14, 165, 233, 0.12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f6f7fb 60%, #ffffff 120%);
  --primary-contrast: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: var(--page-bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

.page { min-height: 100vh; display: flex; flex-direction: column; }

.shell { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Top nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 8, 20, 0.92), rgba(5, 8, 20, 0.75), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 10px; max-width: var(--max-width); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 10px;
  background: conic-gradient(from 210deg, #4f8cff, #7f5dff, #00d4ff, #4f8cff);
  position: relative; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.6); overflow: hidden;
}
.brand-mark::after { content: ""; position: absolute; inset: 4px; border-radius: 8px; background: radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.35), transparent 55%); mix-blend-mode: screen; opacity: 0.9; }
.brand-text-main { font-weight: 600; letter-spacing: 0.03em; font-size: 15px; }
.brand-text-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--muted); }
.nav-link { padding: 6px 10px; border-radius: 999px; cursor: pointer; transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast); }
.nav-link:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); transform: translateY(-1px); }
.nav-link-pill { border-radius: var(--radius-pill); padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.08); display: inline-flex; align-items: center; gap: 6px; }
.nav-link-primary { background: var(--accent-gradient); color: var(--primary-contrast); font-weight: 500; box-shadow: 0 10px 30px rgba(79, 140, 255, 0.45); }
.nav-link-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(79, 140, 255, 0.6); }
.nav-link-dot { width: 6px; height: 6px; border-radius: 999px; background: #00d27a; box-shadow: 0 0 0 4px rgba(0, 210, 122, 0.25); }
.theme-toggle-tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(3, 6, 20, 0.9); border: 1px solid rgba(255, 255, 255, 0.08); gap: 3px; }
.theme-toggle-tab { font-size: 11px; padding: 6px 10px; border-radius: 999px; color: var(--muted); border: 1px solid transparent; background: transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.theme-toggle-tab-dot { width: 6px; height: 6px; border-radius: 999px; background: #4f8cff; opacity: 0; }
.theme-toggle-tab.active { background: rgba(79, 140, 255, 0.16); color: var(--text); }
.theme-toggle-tab.active .theme-toggle-tab-dot { opacity: 1; }

/* Hero */
.hero { padding: 70px 0 40px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(10, 14, 35, 0.9); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.hero-kicker-pill { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 500; font-size: 10px; letter-spacing: 0.12em; }
.hero-title { font-size: clamp(32px, 4vw, 40px); line-height: 1.1; margin-bottom: 14px; }
.hero-title span { background: var(--accent-gradient); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero-subtitle { font-size: 15px; color: var(--muted); max-width: 480px; line-height: 1.5; margin-bottom: 22px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.btn { border-radius: var(--radius-pill); padding: 10px 18px; font-size: 14px; border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background var(--transition-med), transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med), color var(--transition-med); background: transparent; color: var(--text); }
.btn-primary { background: var(--accent-gradient); color: var(--primary-contrast); font-weight: 500; box-shadow: 0 14px 40px rgba(79, 140, 255, 0.55); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 50px rgba(79, 140, 255, 0.7); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.12); background: rgba(10, 14, 35, 0.85); color: var(--muted); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.2); color: var(--text); background: rgba(15, 20, 45, 0.95); }
.btn-icon { font-size: 16px; }
.hero-meta { font-size: 11px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-meta-dot { width: 4px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); }
.hero-meta-pill { padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-card { border-radius: 22px; background: radial-gradient(circle at top left, rgba(79, 140, 255, 0.18), transparent 55%), var(--card-bg); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: var(--shadow-soft); padding: 16px 16px 14px; position: relative; overflow: hidden; }
.hero-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hero-card-tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(3, 6, 20, 0.9); border: 1px solid rgba(255, 255, 255, 0.08); gap: 3px; }
.hero-card-tab { font-size: 11px; padding: 4px 9px; border-radius: 999px; color: var(--muted); border: 1px solid transparent; background: transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.hero-card-tab-dot { width: 6px; height: 6px; border-radius: 999px; background: #4f8cff; opacity: 0; }
.hero-card-tab.active { background: rgba(79, 140, 255, 0.16); color: var(--text); }
.hero-card-tab.active .hero-card-tab-dot { opacity: 1; }
.hero-card-badge { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); padding: 4px 8px; border-radius: 999px; background: rgba(3, 6, 20, 0.9); border: 1px solid rgba(255, 255, 255, 0.08); }
.hero-card-body { border-radius: 16px; background: rgba(3, 6, 20, 0.9); border: 1px solid rgba(255, 255, 255, 0.06); padding: 0; overflow: hidden; min-height: 164px; }
.hero-card-slider { overflow: hidden; width: 100%; border-radius: 16px; }
.hero-card-slides { display: flex; width: 100%; align-items: stretch; transform: translateX(0); transition: transform 320ms ease; will-change: transform; }
.hero-card-slide { min-width: 100%; padding: 10px 10px 8px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 10px; }
.hero-card-col-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 6px; }
.hero-card-list { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.hero-card-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.04); }
.hero-card-item-label { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.hero-card-item-dot { width: 7px; height: 7px; border-radius: 999px; background: #4f8cff; }
.hero-card-item-tag { font-size: 10px; padding: 2px 6px; border-radius: 999px; background: rgba(79, 140, 255, 0.12); color: var(--accent); }
.hero-card-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; font-size: 11px; }
.hero-card-metric { border-radius: 10px; padding: 6px 7px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.04); }
.hero-card-metric-label { color: var(--muted); margin-bottom: 2px; }
.hero-card-metric-value { font-size: 13px; font-weight: 500; }
.hero-card-metric-pill { font-size: 10px; margin-top: 2px; color: #00d27a; }
.hero-orbit { position: absolute; inset: -40px; pointer-events: none; opacity: 0.6; }
.hero-orbit-ring { position: absolute; border-radius: 999px; border: 1px dashed rgba(79, 140, 255, 0.25); }
.hero-orbit-ring.r1 { inset: 10%; }
.hero-orbit-ring.r2 { inset: 22%; border-color: rgba(127, 93, 255, 0.25); }
.hero-orbit-dot { position: absolute; width: 7px; height: 7px; border-radius: 999px; background: #4f8cff; box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.25); top: 18%; right: 18%; }
.hero-orbit-dot.alt { top: 70%; left: 20%; background: #00d27a; box-shadow: 0 0 0 4px rgba(0, 210, 122, 0.25); }

/* Sections */
.section { padding: 40px 0; }
.section-header { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.section-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.section-title { font-size: 20px; }
.section-subtitle { font-size: 14px; color: var(--muted); max-width: 520px; }

/* Explainer */
.explainer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.explainer-card { border-radius: var(--radius-md); background: rgba(10, 14, 35, 0.9); border: 1px solid var(--border-subtle); padding: 14px 14px 12px; box-shadow: var(--shadow-subtle); }
.explainer-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 6px; }
.explainer-title { font-size: 14px; margin-bottom: 4px; }
.explainer-body { font-size: 13px; color: var(--muted); }

/* Portals */
.portals-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.portal-card { border-radius: var(--radius-lg); background: radial-gradient(circle at top left, rgba(79, 140, 255, 0.18), transparent 55%), rgba(10, 14, 35, 0.96); border: 1px solid rgba(255, 255, 255, 0.08); padding: 14px 14px 12px; box-shadow: var(--shadow-subtle); display: flex; flex-direction: column; gap: 8px; transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med), background var(--transition-med); cursor: pointer; }
.portal-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7); border-color: rgba(79, 140, 255, 0.6); background: radial-gradient(circle at top left, rgba(79, 140, 255, 0.25), transparent 60%), rgba(10, 14, 35, 0.98); }
.portal-tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.portal-name { font-size: 16px; font-weight: 500; }
.portal-pill-row { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; }
.portal-pill { padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); color: var(--muted); }
.portal-body { font-size: 13px; color: var(--muted); }
.portal-footer { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-top: 4px; }
.portal-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 500; }
.portal-cta-icon { font-size: 14px; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature-card { border-radius: var(--radius-md); background: rgba(10, 14, 35, 0.96); border: 1px solid var(--border-subtle); padding: 12px 12px 10px; font-size: 13px; color: var(--muted); }
.feature-title { font-size: 13px; margin-bottom: 4px; color: var(--text); }
.feature-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.feature-chip-dot { width: 7px; height: 7px; border-radius: 999px; background: #4f8cff; }

/* Use cases */
.usecases-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.usecases-actions { margin-top: 14px; display: flex; justify-content: flex-end; }
.usecases-expand-btn { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; font-weight: 600; padding: 8px 12px; }
.usecases-extra { margin-top: 14px; display: none; }
.usecases-extra.show { display: block; }
.usecase-card { border-radius: var(--radius-md); background: rgba(10, 14, 35, 0.96); border: 1px solid var(--border-subtle); padding: 12px 12px 10px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.usecase-title { font-size: 14px; line-height: 1.35; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.usecase-list { list-style: disc; list-style-position: outside; padding-left: 18px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.usecase-list li { line-height: 1.5; padding-left: 1px; }

/* Actual modules */
.modules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.module-card { border-radius: var(--radius-md); background: rgba(10, 14, 35, 0.96); border: 1px solid var(--border-subtle); padding: 12px 12px 10px; box-shadow: var(--shadow-subtle); display: flex; flex-direction: column; gap: 8px; }
.module-suite { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.module-name { font-size: 15px; color: var(--text); font-weight: 600; }
.module-desc { font-size: 13px; color: var(--muted); line-height: 1.45; }
.module-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.module-tag { font-size: 11px; padding: 3px 8px; border-radius: var(--radius-pill); border: 1px solid rgba(79, 140, 255, 0.28); background: rgba(79, 140, 255, 0.1); color: var(--text); }
.modules-actions { margin-top: 14px; display: flex; justify-content: flex-end; }
.modules-expand-btn { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; font-weight: 600; padding: 8px 12px; }
.modules-extra { margin-top: 14px; display: none; }
.modules-extra.show { display: block; }

/* CTA band */
.cta-band { margin-bottom: 40px; }
.cta-inner { border-radius: 20px; padding: 18px 18px 16px; background: radial-gradient(circle at top left, rgba(79, 140, 255, 0.25), transparent 55%), rgba(10, 14, 35, 0.98); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: var(--shadow-soft); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; width: 100%; }
.cta-text { flex: 1 1 620px; max-width: none; min-width: min(100%, 420px); }
.cta-title { font-size: 18px; margin-bottom: 4px; }
.cta-subtitle { font-size: 13px; color: var(--muted); max-width: 760px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer */
.footer { border-top: 1px solid rgba(255, 255, 255, 0.06); background: rgba(3, 6, 20, 0.98); margin-top: auto; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 18px 20px 16px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr); gap: 20px; font-size: 12px; color: var(--muted); }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand-line { font-size: 12px; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.footer-group-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 6px; color: rgba(255, 255, 255, 0.6); }
.footer-group-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.footer-link { cursor: pointer; transition: color var(--transition-fast); }
.footer-link:hover { color: var(--text); }
.footer-link a { color: inherit; }
.footer-bottom { max-width: var(--max-width); margin: 0 auto; padding: 0 20px 14px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); gap: 10px; }
.footer-bottom-right { display: flex; align-items: center; gap: 10px; }
.footer-dot { width: 4px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); }
.footer-languages { max-width: var(--max-width); margin: 0 auto; padding: 0 20px 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.footer-language-link { font-size: 12px; color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: var(--radius-pill); border: 1px solid transparent; transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast); cursor: pointer; }
.footer-language-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.footer-language-link.active { color: var(--text); border-color: rgba(79, 140, 255, 0.45); background: rgba(79, 140, 255, 0.12); font-weight: 600; }

/* Language modal */
.lang-modal { position: fixed; inset: 0; background: rgba(2, 6, 18, 0.7); display: grid; place-items: center; z-index: 120; padding: 18px; }
.lang-modal.hide { display: none; }
.lang-modal-content { width: min(980px, 100%); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-soft); background: rgba(10, 14, 35, 0.98); display: grid; grid-template-columns: 260px 1fr; position: relative; }
.lang-modal-regions { padding: 16px; border-right: 1px solid var(--border-subtle); background: rgba(3, 6, 20, 0.92); }
.lang-modal-regions h3, .lang-modal-languages h3 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.lang-modal-regions ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lang-region-item { padding: 9px 10px; border-radius: var(--radius-md); font-size: 13px; color: var(--muted); border: 1px solid transparent; cursor: pointer; }
.lang-region-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.lang-region-item.active { color: var(--text); border-color: rgba(79, 140, 255, 0.4); background: rgba(79, 140, 255, 0.12); font-weight: 600; }
.lang-modal-languages { padding: 16px; }
.lang-language-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lang-language-link { text-decoration: none; font-size: 13px; color: var(--text); padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); background: rgba(255, 255, 255, 0.02); cursor: pointer; transition: border-color var(--transition-fast), background var(--transition-fast); }
.lang-language-link:hover { border-color: rgba(79, 140, 255, 0.4); background: rgba(79, 140, 255, 0.08); }
.lang-modal-close { position: absolute; top: 10px; right: 10px; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); padding: 4px 10px; background: rgba(255, 255, 255, 0.02); color: var(--muted); font-size: 12px; cursor: pointer; }
.lang-modal-close:hover { color: var(--text); border-color: rgba(79, 140, 255, 0.4); }

/* Light theme overrides */
html[data-theme="light"] .nav { background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(246, 247, 251, 0.9), transparent); border-bottom: 1px solid rgba(148, 163, 184, 0.24); }
html[data-theme="light"] .nav-link:hover { background: rgba(15, 23, 42, 0.06); }
html[data-theme="light"] .nav-link-pill { border-color: rgba(148, 163, 184, 0.34); }
html[data-theme="light"] .theme-toggle-tabs { background: rgba(255, 255, 255, 0.9); border-color: rgba(148, 163, 184, 0.34); }
html[data-theme="light"] .theme-toggle-tab.active { background: rgba(37, 99, 235, 0.1); }
html[data-theme="light"] .hero-kicker,
html[data-theme="light"] .hero-meta-pill,
html[data-theme="light"] .hero-card-tabs,
html[data-theme="light"] .hero-card-badge,
html[data-theme="light"] .hero-card-body,
html[data-theme="light"] .hero-card-item,
html[data-theme="light"] .hero-card-metric,
html[data-theme="light"] .btn-ghost,
html[data-theme="light"] .explainer-card,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .usecase-card,
html[data-theme="light"] .module-card,
html[data-theme="light"] .cta-inner { border-color: rgba(148, 163, 184, 0.28); background: rgba(255, 255, 255, 0.86); box-shadow: var(--shadow-subtle); }
html[data-theme="light"] .module-tag { border-color: rgba(37, 99, 235, 0.32); background: rgba(37, 99, 235, 0.12); color: #1e3a8a; }
html[data-theme="light"] .portal-card,
html[data-theme="light"] .hero-card { background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 55%), rgba(255, 255, 255, 0.92); border-color: rgba(148, 163, 184, 0.32); box-shadow: var(--shadow-soft); }
html[data-theme="light"] .btn-ghost:hover { background: rgba(255, 255, 255, 0.98); border-color: rgba(37, 99, 235, 0.35); }
html[data-theme="light"] .footer { background: radial-gradient(900px 360px at 50% 0%, rgba(37, 99, 235, 0.06), transparent 70%), rgba(255, 255, 255, 0.96); border-top: 1px solid rgba(148, 163, 184, 0.24); }
html[data-theme="light"] .footer-group-title { color: rgba(15, 23, 42, 0.62); }
html[data-theme="light"] .footer-language-link:hover { background: rgba(15, 23, 42, 0.06); border-color: rgba(148, 163, 184, 0.34); }
html[data-theme="light"] .footer-language-link.active { border-color: rgba(37, 99, 235, 0.34); background: rgba(37, 99, 235, 0.1); }
html[data-theme="light"] .lang-modal { background: rgba(15, 23, 42, 0.48); }
html[data-theme="light"] .lang-modal-content { background: rgba(255, 255, 255, 0.98); border-color: rgba(148, 163, 184, 0.28); }
html[data-theme="light"] .lang-modal-regions { background: rgba(248, 250, 255, 0.98); border-right-color: rgba(148, 163, 184, 0.22); }
html[data-theme="light"] .lang-language-link { background: rgba(255, 255, 255, 0.95); border-color: rgba(148, 163, 184, 0.3); }
html[data-theme="light"] .lang-language-link:hover { background: rgba(37, 99, 235, 0.06); border-color: rgba(37, 99, 235, 0.35); }
html[data-theme="light"] .footer-dot,
html[data-theme="light"] .hero-meta-dot { background: rgba(15, 23, 42, 0.28); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 60px; }
  .hero-visual { order: -1; }
  .explainer-grid, .portals-grid, .feature-grid, .usecases-grid, .modules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav-inner { padding-inline: 16px; }
  .shell { padding-inline: 16px; }
  .nav-links { display: none; }
  .theme-toggle-tab { padding: 6px 8px; font-size: 10px; }
  .hero-card-tab { padding: 4px 7px; }
  .hero-card-slide { grid-template-columns: minmax(0, 1fr); }
  .explainer-grid, .portals-grid, .feature-grid, .usecases-grid, .modules-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-inner { padding: 16px 14px; }
  .footer-inner { padding-inline: 16px; }
  .footer-bottom { padding-inline: 16px; flex-direction: column; align-items: flex-start; }
  .footer-languages { padding-inline: 16px; }
  .lang-modal-content { grid-template-columns: minmax(0, 1fr); }
  .lang-modal-regions { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .lang-language-list { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-link, .btn, .portal-card, .hero-card-slides { transition: none !important; }
}
