:root {
    --bg: #0c0516;
    --card: #1a0f2c;
    --purple: #7a3cff;
    --purple-2: #b388ff;
    --yellow: #ffd400;
    --text: #efe9ff;
    --muted: #b9aee0;
    --stroke: rgba(255, 255, 255, .12);
    --glass: rgba(255, 255, 255, .06);
    --radius: 22px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 2px 6px rgba(122, 60, 255, .25);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: radial-gradient(1200px 800px at 80% -10%, #4c27c7 0%, transparent 60%), 
                radial-gradient(900px 600px at -10% 120%, #6b2cff44 0%, transparent 60%), 
                var(--bg);
    color: var(--text);
    font-family: "Space Grotesk", "Sora", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, 92vw);
    margin-inline: auto;
}

.glass {
    background: linear-gradient(180deg, #ffffff0a, #ffffff05);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.btn {
    display: inline-flex;
    gap: .6rem;
    align-items: center;
    background: linear-gradient(135deg, var(--yellow), #ffef8a);
    color: #2b1d00;
    padding: .9rem 1.2rem;
    border-radius: 16px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(255, 212, 0, .25);
    border: 1px solid #00000010;
    transition: transform .2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.outline {
    background: transparent;
    color: var(--yellow);
    border: 1px dashed var(--yellow);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .7rem;
    border: 1px dashed var(--purple-2);
    color: var(--purple-2);
    border-radius: 999px;
    font-size: .85rem;
    background: linear-gradient(180deg, #7a3cff18, #0000);
}

.small {
    font-size: .95rem;
    color: var(--muted);
}

.sec {
    padding: 3rem 0;
}

.sec h2 {
    font-size: clamp(1.6rem, 1.2rem + 2.2vw, 2.6rem);
    margin: 0 0 .6rem;
}

.eyebrow {
    color: var(--purple-2);
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: saturate(140%) blur(10px);
    background: linear-gradient(180deg, #0c0516cc, #0c051688);
    border-bottom: 1px solid var(--stroke);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-weight: 800;
    letter-spacing: .5px;
}

.brand .logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: conic-gradient(from 210deg, var(--yellow), #ffd400, #ffb800 35%, #7a3cff 36%, #b388ff);
    box-shadow: 0 6px 16px rgba(255, 212, 0, .25);
}

.menu {
    display: flex;
    gap: 1rem;
}

.menu a {
    padding: .5rem .7rem;
    border-radius: 12px;
    color: var(--muted);
}

.menu a.active {
    color: var(--text);
    background: var(--glass);
    border: 1px solid var(--stroke);
}

.burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: var(--glass);
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.burger span,
.burger::before,
.burger::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: transform .25s, opacity .25s;
}

.burger::before {
    transform: translateY(-6px);
}

.burger::after {
    transform: translateY(6px);
}

.burger.active span {
    opacity: 0;
    transform: scale(0);
}

.burger.active::before {
    transform: translateY(0) rotate(45deg);
}

.burger.active::after {
    transform: translateY(0) rotate(-45deg);
}
.mobile {
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  background: #0c0516ee;
  border-bottom: 1px solid var(--stroke);
  opacity: 0;
}

.mobile[hidden] {
  display: none;
}

.mobile a {
  padding: 0.9rem 1rem;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: var(--glass);
}

@media (max-width: 900px) {
  .menu {
    display: none;
  }

  .burger {
    display: flex;
  }

  .mobile {
    display: flex;
  }
}

/* Grid helpers */
.grid-2 {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.card {
    position: relative;
    overflow: hidden;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: #ffd400;
    color: #150d00;
    font-weight: 800;
    font-size: .8rem;
}

.tag {
    padding: .35rem .6rem;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: var(--glass);
    color: var(--muted);
    font-size: .85rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.tab {
    padding: .6rem .9rem;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    cursor: pointer;
}

.tab.active {
    background: linear-gradient(180deg, #7a3cff30, #0000);
    color: #fff;
    border-color: #b388ff;
}

.tabpanes > div {
    display: none;
}

.tabpanes > div.active {
    display: block;
}

.tab-pane {
    padding: 1rem;
}

/* Progress bars */
.bar {
    height: 12px;
    border-radius: 999px;
    background: #0f081d;
    border: 1px solid var(--stroke);
    overflow: hidden;
}

.bar > span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ffd400, #b388ff);
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid var(--stroke);
    text-align: left;
}

thead th {
    color: #cbbcff;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* Sticky CTA */
.cta-sticky {
    position: fixed;
    inset: auto 0 16px 0;
    z-index: 40;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cta-inner {
    pointer-events: auto;
    background: linear-gradient(90deg, #240b4f, #4b23a8);
    border: 1px solid var(--stroke);
    display: flex;
    gap: 1rem;
    padding: .7rem 1rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* Hero Section */
.hero-title {
    font-size: clamp(2rem, 3.2vw + .5rem, 4rem);
    line-height: 1.05;
    margin: .3rem 0 1rem;
}

.highlight {
    background: linear-gradient(90deg, var(--yellow), #fff5a8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-buttons {
    display: flex;
    gap: .7rem;
    margin-top: 1rem;
}

.hero-glass {
    padding: 1rem;
}

/* Filter Section */
.filter-glass {
    padding: 1rem;
}

.filter-actions {
    margin-top: 10px;
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

/* Calculator Section */
.calc-glass {
    padding: 1rem;
}

.calc-actions {
    margin-top: 10px;
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

/* Quiz Section */
.quiz-glass {
    padding: 1rem;
}

.quiz-actions {
    margin-top: 10px;
}

/* Table Section */
.table-glass {
    padding: 1rem;
    overflow: auto;
}

/* Updates Section */
.updates-glass {
    padding: 1rem;
}

.updates-actions {
    margin-top: 10px;
    display: flex;
    gap: .6rem;
}

.updates-actions input {
    flex: 1;
    background: #0f081d;
    color: var(--text);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: .7rem .9rem;
}

.updates-note {
    opacity: .7;
    margin-top: .5rem;
}

/* Footer Section */
.footer-glass {
    padding: 1rem 1.2rem;
}

.footer-content {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}