:root {
  --bg: #070b14;
  --bg-elev: #0d1424;
  --bg-card: rgba(16, 24, 42, 0.78);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(56, 189, 248, 0.42);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #6366f1;
  --accent-glow: rgba(56, 189, 248, 0.18);
  --success: #34d399;
  --radius: 16px;
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(900px 520px at 15% -10%, rgba(56, 189, 248, 0.14), transparent 65%),
    radial-gradient(800px 460px at 88% 0%, rgba(99, 102, 241, 0.14), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

/* Header */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.78);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #040812;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.lang-btn {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lang-btn:hover {
  border-color: var(--border-strong);
  background: rgba(56, 189, 248, 0.1);
}

/* Hero */
.hero {
  padding: 84px 0 56px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin: 0 auto 18px;
}

.hero h1 span {
  background: linear-gradient(135deg, #7dd3fc 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
  transition: transform 0.15s ease, border-color 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  color: #04101f;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.26);
}

.btn-primary:hover {
  border-color: transparent;
  filter: brightness(1.06);
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 46px auto 0;
  max-width: 920px;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

/* Sections */
.section {
  padding: 56px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--muted);
  max-width: 560px;
  font-size: 0.96rem;
}

/* Filter tabs */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.filter-btn.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--accent);
  color: var(--accent);
}

/* Featured grid */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.featured-card {
  position: relative;
  background: linear-gradient(160deg, rgba(20, 32, 56, 0.92), rgba(10, 16, 30, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.45);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.24);
}

.tag.live {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.28);
}

.featured-card h3 {
  font-size: 1.38rem;
  letter-spacing: -0.015em;
}

.featured-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.spec-list li {
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.09);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 8px;
}

.card-actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Suite grid */
.suite-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, border-color 0.2s;
}

.app-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.app-card.hidden {
  display: none;
}

.app-card h3 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.app-card p {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.app-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: #cbd5e1;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.app-link {
  color: var(--accent);
  font-weight: 600;
}

.app-link:hover {
  text-decoration: underline;
}

/* Architecture section */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.arch-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.arch-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Footer */
footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

@media (max-width: 960px) {
  .featured-grid,
  .suite-grid,
  .arch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .featured-grid,
  .suite-grid,
  .arch-grid,
  .stats {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 58px 0 38px;
  }
}
