:root {
  --bg: #050816;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.15);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  --radius: 12px;
  --max-width: 960px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Hero ── */
.hero {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-content {
  max-width: var(--max-width);
  width: 100%;
  animation: fadeUp 0.6s ease both;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 70, 229, 0.4);
  color: #a5b4fc;
  font-size: 0.8rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  margin: 0 0 0.4rem;
  background: linear-gradient(135deg, #fff 40%, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h2 {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.hero p {
  max-width: 30rem;
  margin-bottom: 2rem;
  color: #cbd5e1;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.55);
}

.btn.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn.secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ── Tab Nav ── */
.tab-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.tab-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 0.25rem;
  padding: 0 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-nav-inner::-webkit-scrollbar { display: none; }

.tab-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  border-radius: 2px 2px 0 0;
}

.tab-btn:hover { color: var(--text); }

.tab-btn.active {
  color: #fff;
}

.tab-btn.active::after { transform: scaleX(1); }

/* ── Tab Panels ── */
.tab-content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.tab-panel {
  display: none;
  animation: fadeUp 0.35s ease both;
}

.tab-panel.active { display: block; }

.tab-panel h3 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  color: #fff;
}

.tab-panel > p {
  color: #cbd5e1;
  max-width: 42rem;
  margin-bottom: 1rem;
}

/* ── Stat Row ── */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat {
  flex: 1 1 140px;
  background: radial-gradient(circle at top left, #1f2937 0, #020617 70%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Cards ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: radial-gradient(circle at top left, #1f2937 0, #020617 70%);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 70, 229, 0.4);
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.card h4 {
  margin: 0 0 0.6rem;
  color: #fff;
  font-size: 1rem;
}

.card p { color: #cbd5e1; margin: 0 0 0.5rem; font-size: 0.95rem; }

.card ul {
  padding-left: 1.1rem;
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.card ul li { margin-bottom: 0.3rem; }

.card .meta {
  font-size: 0.82rem;
  color: #6366f1;
  margin-top: 0.75rem;
  font-weight: 500;
}

/* ── Built With source link ── */
.source-link {
  margin-top: 2rem !important;
}

.source-link a {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 500;
}

.source-link a:hover { text-decoration: underline; }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: radial-gradient(circle at top left, #1f2937 0, #020617 70%);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 70, 229, 0.4);
}

.contact-icon { font-size: 1.5rem; }

.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.contact-value {
  font-size: 0.95rem;
  color: #a5b4fc;
  font-weight: 500;
}

/* ── Footer ── */
.footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ── Animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .hero { padding-top: 3rem; }
  .hero h1 { font-size: 2.4rem; }
  .stat-row { gap: 0.75rem; }
}
