:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --cyan: #06b6d4;
  --cyan-light: #67e8f9;
  --orange: #f97316;
  --panel: rgba(15, 23, 42, 0.78);
  --border: rgba(148, 163, 184, 0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(6, 182, 212, 0.22), transparent 36%),
    radial-gradient(circle at 86% 2%, rgba(249, 115, 22, 0.18), transparent 30%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 65%);
  min-height: 100vh;
  line-height: 1.6;
}

#cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}
.orb-cyan { width: 320px; height: 320px; background: rgba(6, 182, 212, 0.18); top: 12%; left: -8%; }
.orb-orange { width: 260px; height: 260px; background: rgba(249, 115, 22, 0.15); top: 8%; right: -5%; animation-delay: -3s; }

.planet-gap {
  position: fixed;
  top: 6%;
  right: 4%;
  width: min(200px, 28vw);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  animation: float 10s ease-in-out infinite;
}
.planet-svg { width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(2, 6, 23, 0.72);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-name { font-weight: 800; font-size: 1.15rem; color: #f8fafc; display: block; }
.site-tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.site-brand { text-decoration: none; color: inherit; }

.partner-logos { display: flex; gap: 10px; align-items: center; }
.partner-logos a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  transition: border-color 0.2s, transform 0.2s;
}
.partner-logos a:hover { border-color: rgba(6, 182, 212, 0.5); transform: translateY(-2px); }
.partner-logos img { border-radius: 8px; object-fit: cover; width: 32px; height: 32px; }

.main-wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.hero-intro { text-align: center; margin-bottom: 36px; }
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-light);
  border: 1px solid rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero-intro h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #f8fafc;
}
.gradient-text {
  display: block;
  background: linear-gradient(90deg, var(--cyan-light), var(--cyan), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin: 16px auto 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.tab-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.tab {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
  color: var(--muted);
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}
.tab:hover { border-color: rgba(6, 182, 212, 0.45); color: var(--cyan-light); }
.tab.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(249, 115, 22, 0.12));
  border-color: rgba(6, 182, 212, 0.55);
  color: #f8fafc;
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.15);
}
.tab .bn { font-family: "Noto Sans Bengali", Inter, sans-serif; font-size: 1.05rem; display: block; }
.tab .en-sub { font-size: 0.68rem; opacity: 0.75; font-weight: 500; }

.panel { display: none; animation: rise 0.5s ease both; }
.panel.active { display: block; }

.panel-hero { margin-bottom: 28px; }
.panel-hero h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 10px; color: #f8fafc; }
.panel-hero p { color: var(--muted); max-width: 720px; }
.rhytoma-hero h2 { font-family: "Noto Sans Bengali", Inter, sans-serif; }

.lang-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.lang-btn {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.5);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
}
.lang-btn.active { background: var(--cyan); color: #020617; border-color: transparent; font-weight: 600; }
body.lang-bn .rhytoma-hero h2,
body.lang-bn [data-i18n="title"] { font-family: "Noto Sans Bengali", Inter, sans-serif; }
body.lang-hi .rhytoma-hero h2,
body.lang-hi [data-i18n="title"] { font-family: "Noto Sans Devanagari", Inter, sans-serif; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.stat {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(12px);
}
.stat strong { display: block; font-size: 1.35rem; color: var(--cyan-light); }
.stat span { font-size: 0.82rem; color: var(--muted); }

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan-light);
  margin: 28px 0 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.card-grid.two-col { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid.four-col { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(12px);
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(6, 182, 212, 0.4); }
.card h4 { color: #f1f5f9; margin-bottom: 8px; font-size: 1rem; }
.card p { color: var(--muted); font-size: 0.9rem; }

.steps { padding-left: 1.2rem; color: var(--muted); }
.steps li { margin-bottom: 10px; }
.steps strong { color: #e2e8f0; }

.table-wrap { overflow-x: auto; margin-bottom: 24px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--panel);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--cyan-light); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
td { color: var(--muted); }
tbody tr:last-child td { border-bottom: none; }

.footnote { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }

.launch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.2s;
}
.btn-primary {
  background: var(--cyan);
  color: #020617;
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.35);
}
.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
  color: #f1f5f9;
}
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); }

.preview-frame {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.65);
}
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}
.preview-frame iframe {
  width: 100%;
  height: min(520px, 70vh);
  border: none;
  background: #f8fafc;
}
.preview-note { padding: 12px 16px; font-size: 0.8rem; color: var(--muted); }

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px 48px;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.85);
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-brands { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; opacity: 0.85; }
.footer-brands img { border-radius: 8px; }
.site-footer a { color: var(--cyan-light); text-decoration: none; }
.footer-tag { margin-top: 8px; font-size: 0.78rem; opacity: 0.75; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .planet-gap { display: none; }
  .partner-logos a { width: 38px; height: 38px; }
}
