:root {
  --bg: #07111c;
  --bg-2: #0f1d2d;
  --panel: rgba(15, 29, 45, 0.84);
  --panel-strong: rgba(17, 35, 54, 0.96);
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #edf5ff;
  --muted: #9fb3c8;
  --primary: #2f7dd1;
  --primary-strong: #1b5eb0;
  --accent: #ff8c00;
  --accent-soft: #ffb35a;
  --ok: #59d38b;
  --danger: #ff6b57;
  --shadow: 0 22px 60px rgba(0,0,0,0.28);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top right, rgba(47,125,209,0.12), transparent 28%), radial-gradient(circle at left center, rgba(255,140,0,0.08), transparent 20%), linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
  line-height: 1.6;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0.12));
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 17, 28, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topbar-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.brand-mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  padding: 6px;
}

.brand-text {
  min-width: 0;
}

.brand-title {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Mobile navigation */
.mobile-overlay, .mobile-drawer, .mobile-menu-btn { display: none; }
.mobile-menu-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); cursor: pointer; align-items: center; justify-content: center; }
.mobile-menu-btn span, .mobile-menu-btn span::before, .mobile-menu-btn span::after { display:block; width:20px; height:2px; background:var(--text); content:""; position:relative; }
.mobile-menu-btn span::before { position:absolute; top:-6px; }
.mobile-menu-btn span::after { position:absolute; top:6px; }
.mobile-overlay { position:fixed; inset:0; z-index:39; background:rgba(0,0,0,.55); }
.mobile-drawer { position:fixed; z-index:40; top:0; right:0; width:min(88vw,360px); height:100vh; padding:20px; background:#091522; border-left:1px solid var(--line); box-shadow:var(--shadow); }
.mobile-drawer-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.mobile-close { border:1px solid var(--line); background:rgba(255,255,255,.04); color:var(--text); width:40px; height:40px; border-radius:10px; cursor:pointer; }
.mobile-links { display:grid; gap:8px; margin:28px 0; }
.mobile-links a { padding:12px 0; border-bottom:1px solid var(--line-soft); font-weight:700; }
.mobile-actions { display:grid; gap:10px; }
.mobile-overlay.is-open { display:block; }
.mobile-drawer.is-open { display:block; }

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a, .lang-toggle {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--text); }

.lang-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
}

.lang-toggle {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 999px;
}

.lang-toggle.active {
  background: rgba(47,125,209,0.18);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s 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-strong));
  color: white;
  box-shadow: 0 14px 30px rgba(47,125,209,0.24);
}

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

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #10191f;
}

.hero {
  padding: 72px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: #dfeeff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255,140,0,0.8);
}

h1, h2, h3, h4 {
  margin: 0 0 16px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 28px;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.03);
  color: #d7e9ff;
  font-size: 0.82rem;
}

.product-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.product-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.product-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.product-list li {
  padding-left: 18px;
  position: relative;
  color: #d9e8ff;
}

.product-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.section {
  padding: 36px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head p {
  color: var(--muted);
  max-width: 70ch;
}

.grid-3, .grid-2, .grid-4 {
  display: grid;
  gap: 20px;
}

.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.info-card, .feature-card, .highlight-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 22px;
}

.info-card h3, .feature-card h3, .highlight-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.info-card p, .feature-card p, .highlight-card p {
  color: var(--muted);
}

.icon-chip {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(47,125,209,0.12);
  border: 1px solid rgba(47,125,209,0.22);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.cta {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0 52px;
}

.cta p {
  color: var(--muted);
}

.cta-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

footer {
  padding: 0 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

footer .footline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.dark-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 18px;
}

.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mt-16 { margin-top: 16px; }

@media (max-width: 900px) {
  .mobile-menu-btn { display:flex; }
  .hero-grid, .cta, .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .topbar-inner { gap: 6px; }
}

.portal-shell {
  padding-bottom: 32px;
}

.hero-portal {
  padding-top: 52px;
}

.portal-copy h1 {
  font-size: clamp(3.2rem, 6vw, 6rem);
  letter-spacing: -0.06em;
  margin-bottom: 18px;
}

.system-panel {
  background: rgba(10, 16, 26, 0.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.panel-header {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.system-stack {
  display: grid;
  gap: 12px;
}

.system-item {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
}

.system-item.muted {
  opacity: 0.8;
}

.system-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.system-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.segment-card {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.03);
  box-shadow: var(--shadow);
}

.segment-topline {
  color: var(--accent-soft);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 12px;
}

.inline-link {
  display: inline-block;
  margin-top: 16px;
  color: #dfeeff;
  font-weight: 700;
}

.narrow {
  max-width: 700px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 8px;
}

.meta-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: end;
  margin-top: 10px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.meta-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 18px;
}

.meta-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.meta-item strong {
  font-size: 1rem;
  line-height: 1.5;
}

.footer-lite {
  padding-bottom: 32px;
}

@media (max-width: 640px) {
  .brand-sub { display: none; }
  .brand-mark { width: 46px; height: 46px; }
  .btn { width: 100%; }
  .hero-actions { display: grid; }
  .lang-wrap { padding: 4px 8px; }
  .meta-band, .meta-grid { grid-template-columns: 1fr; }
}
