:root {
  --bg: #07111f;
  --bg-2: #0b1628;
  --surface: rgba(9, 19, 35, 0.72);
  --surface-soft: rgba(14, 27, 49, 0.62);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7fb;
  --text-soft: rgba(245, 247, 251, 0.82);
  --text-muted: rgba(245, 247, 251, 0.62);
  --accent: #7e7bff;
  --accent-2: #5ec7ff;
  --green: #47d97f;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(5, 12, 23, 0.78), rgba(5, 12, 23, 0.88)),
    url("/assets/hero-background.png") center center / cover no-repeat fixed;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.glass-panel {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 12, 23, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  flex: 0 0 40px;
  filter: drop-shadow(0 3px 8px rgba(255, 90, 0, 0.16));
}

.footer-logo-img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.brand-mark {
  display: none !important;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 600;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07111f;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.btn-success {
  background: linear-gradient(135deg, #34c36b, #69e38f);
  color: #07111f;
}

.hero {
  padding: 72px 0 30px;
}

.hero-panel {
  border-radius: var(--radius-xl);
  padding: 38px 28px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(9, 19, 35, 0.5), rgba(9, 19, 35, 0.72)),
    radial-gradient(circle at 20% 20%, rgba(126, 123, 255, 0.14), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(94, 199, 255, 0.12), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255, 166, 0, 0.12), transparent 28%);
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.78);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02;
}

.hero p {
  margin: 0;
  max-width: 920px;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 1.02rem;
}

.hero-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-soft);
  font-weight: 700;
  transition: 0.18s ease;
}

.pill-link:hover,
.pill-link.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
}

.section {
  padding: 0 0 22px;
}

.section-panel {
  border-radius: var(--radius-xl);
  padding: 22px 18px 18px;
  background:
    linear-gradient(180deg, rgba(9, 19, 35, 0.7), rgba(6, 15, 28, 0.76)),
    radial-gradient(circle at 80% 20%, rgba(94, 199, 255, 0.06), transparent 24%),
    radial-gradient(circle at 20% 80%, rgba(126, 123, 255, 0.06), transparent 26%);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-text {
  margin: 0 0 18px;
  max-width: 980px;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 1.02rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.content-card {
  border-radius: var(--radius-lg);
  padding: 18px 16px 16px;
  min-height: 190px;
  background:
    linear-gradient(180deg, rgba(10, 22, 41, 0.82), rgba(7, 16, 31, 0.86)),
    radial-gradient(circle at top right, rgba(126, 123, 255, 0.08), transparent 28%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.content-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.content-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.35rem;
}

.content-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.content-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.62;
  font-size: 0.98rem;
}

.content-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.back-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-weight: 700;
  transition: 0.18s ease;
}

.back-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.footer {
  margin-top: 18px;
  padding: 24px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 12, 23, 0.36);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 980px) {
  .topbar-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 30px 20px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 42px;
  }

  .section-panel {
    padding: 18px 14px 14px;
  }

  .content-card {
    min-height: auto;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    flex: 1 1 auto;
  }
}