:root {
  --bg: #f8fafc;
  --bg-soft: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.12);
  --blue: #2563eb;
  --cyan: #06b6d4;
  --violet: #7c3aed;
  --dark: #020617;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  --radius: 28px;
}

* { 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(37, 99, 235, 0.16), transparent 36rem),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #eef6ff 100%);
  color: var(--ink);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.orb {
  position: fixed;
  inset: auto auto 8% -10%;
  width: 28rem;
  height: 28rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.16));
  border-radius: 999px;
  filter: blur(24px);
  pointer-events: none;
  z-index: -1;
}

.orb.two {
  inset: 18% -14% auto auto;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(14, 165, 233, 0.14));
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 1.25rem;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan) 50%, var(--violet));
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.28);
  position: relative;
}

.mark::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
}

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

.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  color: white;
  background: var(--dark);
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.16);
}

.whitepaper-link {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 850;
}

.language-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 43px;
  max-width: 220px;
  padding: 0 40px 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
  outline: none;
}

.language-select:focus {
  border-color: rgba(37, 99, 235, 0.56);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.language-wrap::after {
  content: "⌄";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-54%);
  color: var(--muted);
  font-weight: 900;
  pointer-events: none;
}

.mobile-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: 180ms ease;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(18px);
}

.mobile-menu-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0 22px;
  display: grid;
  gap: 10px;
}

.mobile-menu a,
.mobile-menu label {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  font-weight: 850;
  color: var(--ink);
}

.mobile-menu label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mobile-menu .language-select {
  width: 100%;
  max-width: none;
  border-radius: 14px;
  background: var(--bg);
}

body.menu-open .mobile-menu { display: block; }
body.menu-open .mobile-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .mobile-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .mobile-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  padding: 92px 0 70px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.14);
}

h1 {
  margin: 24px 0 18px;
  font-size: clamp(3.5rem, 9vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: -0.09em;
  font-weight: 950;
}

.gradient-text {
  background: linear-gradient(135deg, #020617, #2563eb 52%, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: clamp(1.38rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 850;
  margin: 0 0 22px;
  max-width: 850px;
}

.lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 710px;
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover { transform: translateY(-2px); }
.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border: none;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.28);
}
.btn.secondary { background: rgba(255,255,255,0.82); }

.hero-panel {
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.62)),
    radial-gradient(circle at top, rgba(37,99,235,0.18), transparent 55%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(15,23,42,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  pointer-events: none;
}

.console {
  position: relative;
  border-radius: 26px;
  background: rgba(2, 6, 23, 0.95);
  color: #e2e8f0;
  padding: 22px;
  min-height: 430px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
}

.console-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 14px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 700;
}

.dots { display: flex; gap: 7px; }
.dots span { width: 10px; height: 10px; border-radius: 99px; background: #475569; }

.signal-card {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.045);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
}

.signal-card strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: white;
}

.signal-card p {
  margin: 0;
  color: #a8b5c6;
  font-size: 0.9rem;
  line-height: 1.55;
}

.status-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 700;
}

section { padding: 84px 0; }

.section-head {
  max-width: 780px;
  margin-bottom: 36px;
}

.kicker {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 12px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 950;
}

.section-text {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 16px 50px rgba(15,23,42,0.08);
  min-height: 230px;
}

.modules-grid .card { min-height: 210px; }

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(124,58,237,0.12));
  color: var(--blue);
  font-weight: 950;
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  letter-spacing: -0.035em;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.96rem;
}

.dark-band {
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.24), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(124,58,237,0.20), transparent 34rem),
    #020617;
  color: white;
  border-radius: 46px;
  padding: 58px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.dark-band .section-text,
.dark-band p { color: #aebbd0; }

.stack {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.layers {
  display: grid;
  gap: 12px;
}

.layer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.055);
  border-radius: 20px;
}

.layer span:first-child { font-weight: 850; }
.layer span:last-child { color: #93c5fd; font-size: 0.86rem; font-weight: 800; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.statement {
  padding: 38px;
  border-radius: 32px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.statement.big {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
}

.statement h3 {
  margin: 0 0 16px;
  font-size: 1.7rem;
  letter-spacing: -0.05em;
}

.statement p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.statement.big p { color: rgba(255,255,255,0.84); }

.usecases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.usecase {
  padding: 22px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 14px 42px rgba(15,23,42,0.07);
  font-weight: 850;
  letter-spacing: -0.03em;
}

.vision {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.vision p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

.cta {
  border-radius: 44px;
  padding: 58px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.22), transparent 25rem),
    linear-gradient(135deg, #020617, #172554 55%, #312e81);
  color: white;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 28px;
}

.cta h2 { color: white; }
.cta p { color: #cbd5e1; line-height: 1.75; }
.cta .btn.secondary {
  color: white;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
}

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

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

[dir="rtl"] .language-select {
  padding: 0 15px 0 40px;
}

[dir="rtl"] .language-wrap::after {
  right: auto;
  left: 15px;
}

@media (max-width: 980px) {
  .hero-grid, .stack, .split, .cta { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  .dark-band, .cta { padding: 34px; border-radius: 32px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .hero { padding-top: 56px; }
  .cards, .usecases { grid-template-columns: 1fr; }
  h1 { font-size: clamp(3.2rem, 18vw, 5rem); }
  .footer-row { flex-direction: column; }
  .actions { flex-direction: column; }
  .btn { width: 100%; }
}
