:root {
  --black: #0a0e17;
  --black-soft: #121826;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --white: #ffffff;
  --off-white: #f4f6fa;
  --gray: #6b7280;
  --border: #e5e9f0;
  --border-dark: rgba(255, 255, 255, 0.1);
  --green: #16a34a;
  --red: #dc2626;
  --radius: 14px;
  --max-width: 1180px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid var(--border-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.logo-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--black);
  border: 1px solid var(--border-dark);
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: #c7cedb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--white);
}

.site-nav a.btn,
.site-nav a.btn:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  color: var(--white);
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
  font-family: "Inter", sans-serif;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-light);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--border-dark);
}

.btn-outline:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
}

.btn-block {
  width: 100%;
}

/* Hero */

.hero {
  background: var(--black);
  color: var(--white);
  padding: 88px 0 56px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 26px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.2;
  max-width: 880px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1020px;
  margin: 0 auto;
}

.hstat {
  background: var(--black-soft);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}

.hstat strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 8px;
}

.hstat span {
  font-size: 11px;
  color: #9aa4b2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Sections */

section {
  padding: 80px 0;
}

section.alt {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.stag {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.7;
}

/* Bigger picture split */

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.split h2 {
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.split p {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 16px;
}

.split .disclaimer {
  font-size: 12px;
  color: #9aa4b2;
  margin-top: 10px;
}

.stat-panel {
  background: var(--black);
  color: var(--white);
  border-radius: 18px;
  padding: 28px;
}

.stat-panel-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9aa4b2;
  margin-bottom: 18px;
}

.stat-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}

.stat-panel-cell {
  background: var(--black-soft);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 16px 8px;
}

.stat-panel-cell.highlight {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
}

.stat-panel-cell strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1.1;
}

.stat-panel-cell span {
  display: block;
  font-size: 11px;
  color: #9aa4b2;
  margin-top: 4px;
}

.stat-panel p {
  font-size: 12px;
  color: #9aa4b2;
  margin-top: 14px;
  line-height: 1.6;
}

.pull-card {
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}

.pull-card .icon {
  font-size: 28px;
  flex: none;
}

.pull-card p {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
  line-height: 1.7;
}

/* Cards grid (why it works) */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
}

.card-num {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: rgba(37, 99, 235, 0.18);
  margin-bottom: 12px;
}

.card p {
  margin: 0;
  color: #1f2733;
  font-size: 14px;
  line-height: 1.75;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.step {
  text-align: center;
  padding: 0 16px;
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
}

.step p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.75;
}

/* Testimonials */

.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonial-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 14px;
  flex: none;
}

.tstars {
  color: var(--blue);
  font-size: 13px;
  letter-spacing: 2px;
}

.testimonial p.quote {
  margin: 0;
  color: #1f2733;
  font-size: 14px;
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}

.testimonial .source {
  display: inline-block;
  font-size: 12px;
  color: var(--gray);
  font-weight: 600;
}

.discord-cta {
  text-align: center;
  margin-top: 36px;
}

.discord-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  transition: border-color 0.2s, color 0.2s;
}

.discord-cta a:hover {
  border-color: var(--blue);
  color: var(--blue-light);
}

.discord-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Trust */

.trust-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1020px;
  margin: 0 auto;
}

.trust-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.trust-item h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.trust-item p {
  margin: 0;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.75;
}

/* Curriculum */

.curriculum-list {
  display: grid;
  gap: 16px;
}

.curriculum-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.curriculum-item h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.curriculum-item p {
  margin: 0;
  color: var(--gray);
  font-size: 14px;
}

.curriculum-item ul {
  margin: 0;
  padding-left: 18px;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.9;
}

.curriculum-item .meta {
  font-size: 11px;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: block;
}

.video-block {
  margin-bottom: 20px;
}

.video-heading {
  font-size: 14px;
  font-weight: 700;
  color: #1f2733;
  margin-bottom: 8px;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  background: var(--black);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.video-embed video,
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7688;
  font-size: 13px;
  text-align: center;
  padding: 24px;
}

/* Locked video teaser (landing page) */

.video-locked {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #1a2233, var(--black));
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.video-locked video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) brightness(0.5);
}

.unlock-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 14, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e7ebf3;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s;
}

.unlock-pill:hover {
  background: rgba(37, 99, 235, 0.85);
  border-color: transparent;
}

.unlock-pill .lock-icon {
  font-size: 11px;
}

/* Calculator */

.calc-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1f2733;
  margin-bottom: 6px;
}

.field .hint {
  font-size: 12px;
  color: var(--gray);
  margin-top: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--black);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.toggle-group {
  display: flex;
  gap: 8px;
}

.toggle-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  color: #1f2733;
}

.toggle-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.calc-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.summary-card {
  background: var(--black);
  color: var(--white);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.summary-card .label {
  font-size: 12px;
  color: #9aa4b2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.summary-card .value {
  font-size: 20px;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  background: var(--off-white);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gray);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Forms */

.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 40px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1f2733;
  margin-bottom: 6px;
}

.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-top: 8px;
  color: var(--gray);
}

.form-message {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
}

.form-message.success {
  display: block;
  background: #e8f5ee;
  color: #166534;
  border: 1px solid #bbe5cc;
}

.form-message.error {
  display: block;
  background: #fdecec;
  color: #b91c1c;
  border: 1px solid #f5c2c2;
}

/* Footer */

.site-footer {
  background: var(--black);
  color: #9aa4b2;
  padding: 40px 0;
  font-size: 13px;
  text-align: center;
}

/* Admin */

.admin-table-wrap {
  overflow-x: auto;
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.status-pill.pending {
  background: #fff4de;
  color: #92610c;
}

.status-pill.approved,
.status-pill.active {
  background: #e8f5ee;
  color: #166534;
}

.status-pill.expiring {
  background: #fff4de;
  color: #92610c;
}

.status-pill.expired {
  background: #fdecec;
  color: #b91c1c;
}

.key-value {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.key-action-btn {
  padding: 6px 12px;
  font-size: 12px;
  margin-right: 6px;
}

.approve-btn {
  padding: 7px 16px;
  font-size: 13px;
}

.center-page {
  min-height: calc(100vh - 76px - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

/* Admin curriculum editor */

.editor-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.editor-section-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.editor-section-top input[type="text"] {
  font-weight: 700;
  font-size: 16px;
}

.editor-video-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.editor-video-row input[type="text"] {
  flex: 1;
}

.move-btn-group {
  display: flex;
  flex-direction: column;
  flex: none;
  gap: 2px;
}

.move-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--blue);
  border-radius: 6px;
  width: 26px;
  height: 20px;
  cursor: pointer;
  font-size: 9px;
  line-height: 1;
  padding: 0;
}

.move-btn:disabled {
  color: var(--border);
  cursor: default;
}

.editor-remove-btn {
  flex: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--red);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.editor-remove-section-btn {
  flex: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--red);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

/* Admin video upload */

.video-slot-group {
  margin-bottom: 32px;
}

.video-slot-group h3 {
  font-size: 15px;
  margin-bottom: 14px;
}

.video-slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.video-slot {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: var(--white);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.video-slot.dragover {
  border-color: var(--blue);
  background: rgba(37, 99, 235, 0.05);
}

.video-slot.has-video {
  border-style: solid;
  border-color: var(--green);
  background: #f0fbf4;
}

.video-slot .slot-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.video-slot .slot-status {
  font-size: 12px;
  color: var(--gray);
}

.video-slot input[type="file"] {
  display: none;
}

.add-video-tile {
  border-color: rgba(37, 99, 235, 0.35);
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.add-video-tile:hover {
  border-color: var(--blue);
  background: rgba(37, 99, 235, 0.05);
}

.add-video-tile .add-tile-icon {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 6px;
}

.add-video-tile.editing {
  cursor: default;
}

.add-tile-input {
  width: 100%;
  text-align: center;
}

@media (max-width: 780px) {
  .form-two {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--black);
    border-bottom: 1px solid var(--border-dark);
    padding: 8px 24px 20px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-dark);
  }

  .site-nav a.btn {
    margin-top: 14px;
    border-bottom: none;
  }
}
