@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --text-primary: #0a0a0a;
  --text-secondary: #666666;
  --accent: #2563eb;
  --accent-secondary: #1d4ed8;
  --border: #e5e5e5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 8, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.navbar.is-light {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 2.5px;
  font-weight: 700;
  color: #ffffff;
  transition: color 0.4s ease;
}

.brand-icon {
  font-size: 16px;
  color: #60a5fa;
  line-height: 1;
}

.navbar.is-light .brand {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.navbar.is-light .nav-links a {
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: #ffffff;
}

.navbar.is-light .nav-links a:hover {
  color: var(--text-primary);
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.4s ease;
}

.navbar.is-light .nav-divider {
  background: var(--border);
}

.nav-cta {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 9px 20px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.nav-cta:hover {
  background: var(--accent-secondary);
}

/* ─────────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 40px 100px;
  position: relative;
  overflow: hidden;
  background: #0d0d0d url('Big-data.avif') center/cover no-repeat;
}

/* Dark cinematic overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.78) 0%,
    rgba(8, 8, 8, 0.68) 55%,
    rgba(8, 8, 8, 0.80) 100%
  );
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  flex-shrink: 0;
  box-shadow: 0 0 8px #60a5fa;
  animation: heroPulse 2.4s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #60a5fa; }
  50% { opacity: 0.3; transform: scale(0.7); box-shadow: 0 0 3px #60a5fa; }
}

.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero h1 em {
  font-style: italic;
  color: #93c5fd;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 300;
  margin-bottom: 44px;
  max-width: 480px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-bottom: 52px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.hero-stat-value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1;
  color: #ffffff;
}

.hero-stat-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Ghost button variant for dark/photo backgrounds */
.btn-ghost-light {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid rgb(255, 255, 255);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  backdrop-filter: blur(4px);
}

.btn-ghost-light:hover {
  border-color: #ffffff;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.18);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1;
}

.hero-scroll-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.hero-scroll-line {
  width: 56px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.65);
  animation: scrollTrack 2.2s ease-in-out infinite;
}

@keyframes scrollTrack {
  0% { left: -100%; }
  50% { left: 0%; }
  100% { left: 100%; }
}

.hero-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* ─────────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid var(--text-primary);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

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

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

/* ─────────────────────────────────────────────────────────────
   SECTION LABEL
───────────────────────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 60px 40px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.label-text {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 2px;
}

.label-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 100px;
}

.label-title {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.label-count {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-left: auto;
}

/* ─────────────────────────────────────────────────────────────
   CATEGORY FILTER
───────────────────────────────────────────────────────────── */
.category-filter {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 10px 18px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────
   VIEW TOGGLE
───────────────────────────────────────────────────────────── */
.view-toggle {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 20px;
  display: flex;
  gap: 8px;
}

.view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.view-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.view-btn.is-active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
}

.view-btn svg {
  width: 14px;
  height: 14px;
}

/* ─────────────────────────────────────────────────────────────
   CARDS SECTION
───────────────────────────────────────────────────────────── */
.cards-section {
  padding-bottom: 100px;
  border-bottom: 1px solid var(--border);
}

.cards-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
}

.card {
  perspective: 1000px;
  background: var(--bg-primary);
}

.card-inner {
  position: relative;
  width: 100%;
  min-height: 320px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.card.is-flipped .card-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  padding: 40px 30px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.card-front {
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
}

.card-back {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.card.is-flipped .card-front {
  opacity: 0;
  pointer-events: none;
}

.card.is-flipped .card-back {
  opacity: 1;
}

.card-number {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: auto;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 20px;
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-hint {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: auto;
  opacity: 0.5;
}

.cards-controls {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 40px 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────────────────────
   LIST VIEW
───────────────────────────────────────────────────────────── */
.list-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.list-item {
  border-bottom: 1px solid var(--border);
}

.list-item:first-child {
  border-top: 1px solid var(--border);
}

.list-question {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.list-question:hover {
  color: var(--accent);
}

.list-number {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  min-width: 40px;
}

.list-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
}

.list-toggle {
  font-size: 18px;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
  min-width: 20px;
  text-align: center;
}

.list-item.is-open .list-toggle {
  transform: rotate(45deg);
}

.list-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.list-item.is-open .list-answer {
  max-height: 500px;
}

.list-answer-inner {
  padding: 0 0 24px 56px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Category badge in list view */
.list-category {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 4px 8px;
  margin-left: auto;
}

/* ─────────────────────────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────────────────────────── */
.about-section {
  padding-bottom: 100px;
  border-bottom: 1px solid var(--border);
}

.about-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
}

.about-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 20px;
}

.about-block p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────── */
.footer {
  padding: 40px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 2.5px;
  font-weight: 700;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ─────────────────────────────────────────────────────────────
   STUDY MODE
───────────────────────────────────────────────────────────── */
.study-mode {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 200;
  display: none;
  flex-direction: column;
}

.study-mode.is-active {
  display: flex;
}

.study-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
}

.study-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 8px;
}

.study-close:hover {
  color: var(--text-primary);
}

.study-progress {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.study-restart {
  background: none;
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.study-restart:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.study-card-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.study-card {
  width: 100%;
  max-width: 600px;
  perspective: 1000px;
}

.study-card-inner {
  position: relative;
  width: 100%;
  min-height: 400px;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  cursor: pointer;
}

.study-card.is-flipped .study-card-inner {
  transform: rotateY(180deg);
}

.study-card-face {
  position: absolute;
  inset: 0;
  padding: 50px 40px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.study-card-back {
  transform: rotateY(180deg);
}

.study-card-number {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 30px;
}

.study-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
  display: flex;
  align-items: center;
}

.study-card p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  flex: 1;
  display: flex;
  align-items: center;
}

.study-card-hint {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.5;
}

.study-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 30px 40px;
  border-top: 1px solid var(--border);
}

/* ─────────────────────────────────────────────────────────────
   CATEGORY SELECTION MODAL
───────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-primary);
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.is-active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 500;
}

.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px 30px;
  overflow-y: auto;
  flex: 1;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.category-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.category-checkbox:hover {
  border-color: var(--accent);
}

.category-checkbox.is-selected {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.05);
}

.category-checkbox input {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.category-checkbox.is-selected .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-custom::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.category-checkbox.is-selected .checkbox-custom::after {
  opacity: 1;
}

.checkbox-label {
  font-size: 13px;
  letter-spacing: 0.5px;
  flex: 1;
}

.checkbox-count {
  font-size: 11px;
  color: var(--text-secondary);
}

.modal-select-all {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 10px;
}

.modal-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--border);
}

.modal-footer .btn {
  width: 100%;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-inner {
    padding: 0 24px;
  }

  .nav-divider,
  .nav-cta {
    display: none;
  }

  .hero {
    padding: 100px 24px 80px;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-scroll {
    left: 24px;
  }

  .section-label {
    padding: 50px 24px 30px;
    flex-wrap: wrap;
  }

  .label-count {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
  }

  .category-filter {
    padding: 0 24px 24px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 10px;
  }

  .cards-container {
    padding: 0 24px;
  }

  .cards-controls {
    padding: 30px 24px 0;
  }

  /* List view responsive */
  .list-container {
    padding: 0 24px;
  }

  .list-question {
    flex-wrap: wrap;
    gap: 8px;
  }

  .list-category {
    order: 10;
    margin-left: 56px;
  }

  .list-answer-inner {
    padding-left: 0;
  }

  .about-content {
    padding: 0 24px;
  }

  .footer {
    padding: 30px 24px;
  }

  .study-header {
    padding: 16px 24px;
  }

  .study-card-wrapper {
    padding: 24px;
  }

  .study-card-inner {
    min-height: 350px;
  }

  .study-card-face {
    padding: 30px 24px;
  }

  .study-card h3 {
    font-size: 22px;
  }

  .study-card p {
    font-size: 16px;
  }

  .study-nav {
    padding: 20px 24px;
  }
}

/* ─────────────────────────────────────────────────────────────
   HERO REFERENCE TREATMENT
───────────────────────────────────────────────────────────── */
.navbar {
  top: 30px;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar.is-light {
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navbar-inner {
  width: calc(100% - 96px);
  max-width: none;
  height: 62px;
  padding: 0;
  gap: 34px;
}

.brand {
  gap: 0;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-base,
.brand-club {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  font-weight: 900;
  line-height: 1;
}

.brand-base {
  position: relative;
  border-radius: 999px 999px 999px 4px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 8px 20px rgba(0, 20, 80, 0.14);
}

.brand-club {
  margin-left: -6px;
  border: 2px solid #9cff00;
  border-radius: 999px 999px 4px 999px;
  background: rgba(156, 255, 0, 0.08);
  color: #9cff00;
}

.navbar.is-light .brand-club {
  background: #101828;
}

.nav-links {
  flex: 1;
  justify-content: center;
  gap: 10px;
  margin-left: 18px;
}

.nav-links a {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 17px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.navbar.is-light .nav-links a {
  border-color: var(--border);
  background: #ffffff;
  color: var(--text-primary);
}

.nav-links a:hover,
.navbar.is-light .nav-links a:hover {
  color: #9cff00;
}

.nav-divider {
  display: none;
}

.nav-cta {
  min-width: 204px;
  min-height: 54px;
  margin-left: auto;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.nav-cta:hover {
  border-color: #9cff00;
  background: #9cff00;
  color: #093ccf;
}

.navbar.is-light .nav-cta {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: #ffffff;
}

.hero {
  min-height: 100vh;
  margin: 6px 8px 0;
  padding: 128px 46px 130px;
  border-radius: 58px 58px 0 0;
  background: #0a42d6;
  isolation: isolate;
}

.hero::before {
  display: none;
}

.hero-grid {
  position: absolute;
  inset: 140px 46px 92px;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.72;
}

.hero-content {
  z-index: 2;
  max-width: 1500px;
  text-align: center;
}

.hero-tag {
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.hero-tag-dot {
  background: #9cff00;
  box-shadow: 0 0 18px #9cff00;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  color: #ffffff;
  font-size: clamp(70px, 13.4vw, 220px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.78;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero h1 em {
  display: inline-block;
  margin-right: 0.02em;
  color: #9cff00;
  font-size: 1.22em;
  font-style: normal;
  letter-spacing: -0.12em;
  transform: translateY(0.03em) rotate(-4deg);
}

.hero-sub {
  max-width: 540px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  font-weight: 600;
}

.hero-stats,
.hero-actions,
.hero-sub,
.hero-scroll {
  display: none;
}

.hero-card {
  position: absolute;
  z-index: 4;
  display: flex;
  width: 230px;
  height: 230px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 34px;
  background:
    radial-gradient(circle at 25% 10%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.34) 28%, transparent 54%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(40, 93, 225, 0.82));
  color: #ffffff;
  text-align: center;
  box-shadow: 0 28px 58px rgba(0, 32, 130, 0.36);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-card-one {
  top: 32%;
  right: 20%;
  transform: rotate(12deg);
}

.hero-card-two {
  bottom: 15%;
  left: 24%;
  transform: rotate(-15deg);
}

.hero-avatar {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin-bottom: 18px;
  border: 5px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: #111827;
  color: #9cff00;
  font-size: 28px;
  font-weight: 900;
}

.hero-card strong {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-card small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 800;
}

.hero-sticker {
  position: absolute;
  right: 13%;
  bottom: 15%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  width: 156px;
  height: 156px;
  border: 0;
  border-radius: 50%;
  background: #9cff00;
  color: #111827;
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 20px 38px rgba(16, 24, 40, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-sticker::before {
  position: absolute;
  inset: 18px;
  z-index: 0;
  border: 3px solid #111827;
  border-radius: 50%;
  content: '';
  opacity: 0.9;
}

.hero-sticker::after {
  position: relative;
  z-index: 1;
  color: #111827;
  content: 'GO';
  font-size: 21px;
  line-height: 1;
  transform: rotate(-10deg);
}

.hero-sticker span {
  position: relative;
  z-index: 1;
  max-width: 82px;
  transform: rotate(-10deg);
}

.hero-sticker:hover {
  transform: rotate(8deg) scale(1.04);
  box-shadow: 0 24px 44px rgba(16, 24, 40, 0.34);
}

.hero-bottom-curve {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 6;
  height: 88px;
  border-radius: 58px 58px 0 0;
  background: #ffffff;
}

@media (max-width: 1020px) {
  .navbar {
    top: 22px;
  }

  .navbar-inner {
    width: calc(100% - 44px);
  }

  .nav-links a:nth-child(2),
  .nav-links a:nth-child(3) {
    display: none;
  }

  .nav-cta {
    min-width: 150px;
  }

  .hero {
    padding: 118px 28px 122px;
    border-radius: 42px 42px 0 0;
  }

  .hero-grid {
    inset: 122px 28px 82px;
    background-size: 72px 72px;
  }

  .hero h1 {
    font-size: clamp(58px, 17vw, 128px);
  }

  .hero-card {
    width: 170px;
    height: 170px;
    border-radius: 26px;
  }

  .hero-card-one {
    top: 38%;
    right: 2%;
  }

  .hero-card-two {
    bottom: 17%;
    left: 7%;
  }

  .hero-avatar {
    width: 62px;
    height: 62px;
    font-size: 21px;
  }

  .hero-sticker {
    right: 8%;
    width: 126px;
    height: 126px;
    gap: 12px;
    font-size: 14px;
  }
}

@media (min-width: 681px) and (max-height: 820px) {
  .hero {
    min-height: calc(100vh - 6px);
    padding-top: 104px;
    padding-bottom: 76px;
  }

  .hero-grid {
    inset: 118px 46px 56px;
  }

  .hero-tag {
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: clamp(64px, 11.2vw, 152px);
  }

  .hero-sub {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-card {
    width: 190px;
    height: 190px;
    border-radius: 28px;
  }

  .hero-card-one {
    top: 35%;
    right: 18%;
  }

  .hero-card-two {
    bottom: 12%;
    left: 23%;
  }

  .hero-avatar {
    width: 68px;
    height: 68px;
    margin-bottom: 12px;
    font-size: 22px;
  }

  .hero-card strong {
    font-size: 19px;
  }

  .hero-sticker {
    bottom: 12%;
    width: 128px;
    height: 128px;
    font-size: 14px;
  }

  .hero-bottom-curve {
    height: 58px;
  }
}

@media (max-width: 680px) {
  .navbar {
    top: 16px;
  }

  .navbar-inner {
    width: calc(100% - 28px);
    height: 52px;
  }

  .brand-base,
  .brand-club {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .nav-links {
    justify-content: flex-end;
    margin-left: 0;
  }

  .nav-links a {
    display: none;
  }

  .nav-cta {
    min-width: 118px;
    min-height: 40px;
    padding: 9px 14px;
    font-size: 12px;
  }

  .hero {
    min-height: 92vh;
    margin: 4px 4px 0;
    padding: 104px 18px 108px;
    border-radius: 30px 30px 0 0;
  }

  .hero-grid {
    inset: 104px 18px 70px;
    background-size: 48px 48px;
  }

  .hero-tag {
    margin-bottom: 18px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: clamp(44px, 16vw, 68px);
  }

  .hero-sub {
    max-width: 320px;
    font-size: 14px;
  }

  .hero-card {
    display: none;
  }

  .hero-sticker {
    right: 7%;
    bottom: 10%;
    width: 92px;
    height: 92px;
    gap: 7px;
    font-size: 11px;
  }

  .hero-sticker::before {
    inset: 11px;
    border-width: 2px;
  }

  .hero-sticker::after {
    font-size: 14px;
  }

  .hero-sticker span {
    max-width: 56px;
  }

  .hero-bottom-curve {
    height: 64px;
    border-radius: 34px 34px 0 0;
  }
}

/* ─────────────────────────────────────────────────────────────
   LANDING PAGE CONTINUATION
───────────────────────────────────────────────────────────── */
.cards-section {
  position: relative;
  overflow: hidden;
  margin-top: -1px;
  padding: 72px 0 118px;
  border-bottom: 0;
  border-radius: 58px 58px 0 0;
  background:
    linear-gradient(rgba(10, 66, 214, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 66, 214, 0.045) 1px, transparent 1px),
    #ffffff;
  background-size: 86px 86px;
}

.cards-section::before {
  position: absolute;
  top: 52px;
  right: max(24px, calc((100% - 1180px) / 2));
  width: 176px;
  height: 176px;
  border: 22px solid #9cff00;
  border-left-color: transparent;
  border-radius: 50%;
  content: '';
  opacity: 0.96;
  transform: rotate(-28deg);
}

.cards-section .section-label,
.about-section .section-label {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  padding: 0 28px 28px;
  gap: 18px;
}

.cards-section .label-text,
.about-section .label-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 2px solid #111827;
  border-radius: 50%;
  background: #9cff00;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

.cards-section .label-line,
.about-section .label-line {
  max-width: none;
  height: 2px;
  flex: 1;
  border-radius: 999px;
  background: rgba(10, 66, 214, 0.13);
}

.cards-section .label-title,
.about-section .label-title {
  color: #0a42d6;
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.cards-section .label-count {
  min-height: 48px;
  margin-left: 0;
  border: 2px solid #0a42d6;
  border-radius: 999px;
  background: #0a42d6;
  color: #ffffff;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.category-filter,
.view-toggle,
.cards-controls,
.cards-container,
.list-container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
}

.category-filter {
  padding: 0 28px 24px;
  gap: 9px;
}

.filter-btn {
  min-height: 42px;
  border: 1px solid rgba(10, 66, 214, 0.16);
  border-radius: 999px;
  background: #f4f7ff;
  color: #0b2b7a;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: inset 0 -1px 0 rgba(10, 66, 214, 0.08);
}

.filter-btn:hover {
  border-color: #0a42d6;
  color: #0a42d6;
  transform: translateY(-1px);
}

.filter-btn.is-active {
  border-color: #111827;
  background: #9cff00;
  color: #111827;
  box-shadow: 0 10px 22px rgba(156, 255, 0, 0.3);
}

.view-toggle {
  justify-content: flex-end;
  padding: 0 28px 24px;
  gap: 6px;
}

.view-btn {
  min-height: 44px;
  border: 1px solid rgba(10, 66, 214, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #0a42d6;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 10px 24px rgba(10, 66, 214, 0.08);
}

.view-btn:hover {
  border-color: #0a42d6;
  color: #0a42d6;
  transform: translateY(-1px);
}

.view-btn.is-active {
  border-color: #0a42d6;
  background: #0a42d6;
  color: #ffffff;
}

.list-container {
  display: grid;
  gap: 12px;
  padding: 0 28px;
}

.list-item {
  overflow: hidden;
  border: 1px solid rgba(10, 66, 214, 0.14);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 244, 255, 0.96));
  box-shadow: 0 18px 38px rgba(10, 66, 214, 0.09);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.list-item:first-child {
  border-top: 1px solid rgba(10, 66, 214, 0.14);
}

.list-item:hover,
.list-item.is-open {
  border-color: rgba(10, 66, 214, 0.36);
  box-shadow: 0 24px 48px rgba(10, 66, 214, 0.14);
  transform: translateY(-2px);
}

.list-question {
  min-height: 82px;
  gap: 16px;
  padding: 20px 22px;
  color: #111827;
}

.list-question:hover {
  color: #0a42d6;
}

.list-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  border: 2px solid rgba(156, 255, 0, 0.28);
  border-radius: 50%;
  background: #3630c9;
  color: #9cff00;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(54, 48, 201, 0.24);
}

.list-text {
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.list-category {
  border: 1px solid rgba(10, 66, 214, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #0a42d6;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.list-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid rgba(10, 66, 214, 0.16);
  border-radius: 50%;
  background: #f4f7ff;
  color: #0a42d6;
  font-size: 24px;
  line-height: 1;
}

.list-item.is-open .list-toggle {
  background: #9cff00;
  color: #111827;
  transform: rotate(45deg);
}

.list-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.list-item.is-open .list-answer {
  max-height: 560px;
}

.list-answer-inner {
  margin: 0 22px 22px 86px;
  border-left: 4px solid #9cff00;
  border-radius: 0 18px 18px 0;
  background: #ffffff;
  color: #344054;
  padding: 18px 22px;
  font-size: 15px;
  line-height: 1.75;
  box-shadow: inset 0 0 0 1px rgba(10, 66, 214, 0.08);
}

.cards-container {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 0 28px;
  background: transparent;
}

.card {
  border-radius: 28px;
  background: transparent;
}

.card-inner {
  min-height: 334px;
}

.card-face {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(235, 242, 255, 0.94));
  box-shadow: 0 20px 42px rgba(10, 66, 214, 0.12);
}

.card-face::before {
  position: absolute;
  top: -48px;
  right: -48px;
  width: 128px;
  height: 128px;
  border: 18px solid #9cff00;
  border-radius: 50%;
  content: '';
  opacity: 0.9;
}

.card-back {
  background: #0a42d6;
  color: #ffffff;
}

.card-number {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #111827;
  color: #9cff00;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.card h3 {
  position: relative;
  z-index: 1;
  font-family: 'Inter', sans-serif;
  color: #111827;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.card p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.7;
}

.card-hint {
  position: relative;
  z-index: 1;
  color: #0a42d6;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}

.cards-controls {
  justify-content: flex-end;
  padding: 28px 28px 0;
}

.cards-controls .btn {
  min-height: 48px;
  border: 1px solid rgba(10, 66, 214, 0.2);
  border-radius: 999px;
  background: #ffffff;
  color: #0a42d6;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 14px 28px rgba(10, 66, 214, 0.08);
}

.cards-controls .btn:hover {
  border-color: #111827;
  background: #111827;
  color: #9cff00;
}

.about-section {
  position: relative;
  overflow: hidden;
  padding: 92px 0 112px;
  border-bottom: 0;
  background: #0a42d6;
}

.about-section::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 86px 86px;
  content: '';
}

.about-section .section-label {
  padding-bottom: 34px;
}

.about-section .label-line {
  background: rgba(255, 255, 255, 0.18);
}

.about-section .label-title {
  color: #ffffff;
}

.about-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 28px;
}

.about-block {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 12%, rgba(156, 255, 0, 0.55), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(211, 226, 255, 0.94));
  padding: 34px;
  box-shadow: 0 26px 54px rgba(0, 20, 80, 0.24);
}

.about-block::after {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 134px;
  height: 134px;
  border: 18px solid #9cff00;
  border-radius: 50%;
  content: '';
}

.about-block h2 {
  max-width: 420px;
  margin-bottom: 18px;
  color: #111827;
  font-family: 'Inter', sans-serif;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.about-block p {
  position: relative;
  z-index: 1;
  max-width: 520px;
  color: #344054;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}

.footer {
  background: #0a42d6;
  padding: 0 8px 8px;
}

.footer-inner {
  max-width: none;
  min-height: 86px;
  border-radius: 34px;
  background: #111827;
  color: #ffffff;
  padding: 0 38px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.footer-brand::before {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #9cff00;
  content: '';
  box-shadow: 0 0 18px rgba(156, 255, 0, 0.6);
}

.footer-copy {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #9cff00;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .cards-section {
    padding-top: 58px;
    border-radius: 38px 38px 0 0;
  }

  .cards-section::before {
    width: 118px;
    height: 118px;
    border-width: 16px;
  }

  .cards-section .section-label,
  .about-section .section-label {
    flex-wrap: wrap;
  }

  .cards-section .label-line,
  .about-section .label-line {
    min-width: 120px;
  }

  .cards-section .label-count {
    margin-left: auto;
  }

  .list-question {
    flex-wrap: wrap;
  }

  .list-category {
    order: 10;
    margin-left: 64px;
  }

  .list-answer-inner {
    margin-left: 22px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .cards-section {
    padding: 44px 0 76px;
  }

  .cards-section .section-label,
  .about-section .section-label,
  .category-filter,
  .view-toggle,
  .cards-container,
  .list-container,
  .cards-controls,
  .about-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .cards-section .label-title,
  .about-section .label-title {
    width: 100%;
  }

  .cards-section .label-count {
    margin-left: 0;
  }

  .category-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .category-filter::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
  }

  .view-toggle,
  .cards-controls {
    justify-content: flex-start;
  }

  .list-question {
    padding: 18px;
  }

  .list-number {
    min-width: 42px;
    height: 42px;
  }

  .list-text {
    font-size: 15px;
  }

  .list-category {
    margin-left: 58px;
  }

  .about-section {
    padding: 70px 0 78px;
  }

  .about-block {
    min-height: 240px;
    padding: 26px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
  }
}

/* ─────────────────────────────────────────────────────────────
   MODALS AND STUDY FLOW
───────────────────────────────────────────────────────────── */
.modal-overlay {
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    rgba(10, 66, 214, 0.9);
  background-size: 74px 74px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  width: min(100%, 760px);
  max-width: 760px;
  max-height: min(820px, 88vh);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 38px;
  background:
    radial-gradient(circle at 100% 0%, rgba(156, 255, 0, 0.55), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(231, 239, 255, 0.96));
  box-shadow: 0 34px 90px rgba(0, 20, 80, 0.42);
}

.modal-content::before {
  position: absolute;
  top: -56px;
  right: -44px;
  width: 176px;
  height: 176px;
  border: 22px solid #9cff00;
  border-left-color: transparent;
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.modal-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(10, 66, 214, 0.12);
  padding: 30px 34px 22px;
}

.modal-header h2 {
  max-width: 520px;
  color: #0a42d6;
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 6vw, 70px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.9;
  text-transform: uppercase;
}

.modal-close,
.study-close {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 50%;
  background: #111827;
  color: #9cff00;
  font-size: 28px;
  line-height: 1;
}

.modal-close:hover,
.study-close:hover {
  background: #9cff00;
  color: #111827;
  transform: rotate(8deg);
}

.modal-body {
  position: relative;
  z-index: 1;
  padding: 22px 34px 24px;
}

.modal-subtitle {
  margin-bottom: 18px;
  color: #344054;
  font-size: 16px;
  font-weight: 800;
}

.category-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.category-checkbox {
  min-width: 0;
  border: 1px solid rgba(10, 66, 214, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px 15px;
  box-shadow: 0 12px 24px rgba(10, 66, 214, 0.08);
}

.category-checkbox:hover {
  border-color: rgba(10, 66, 214, 0.42);
  transform: translateY(-1px);
}

.category-checkbox.is-selected {
  border-color: #111827;
  background: #0a42d6;
  color: #ffffff;
  box-shadow: 0 18px 32px rgba(10, 66, 214, 0.22);
}

.checkbox-custom {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(10, 66, 214, 0.24);
  border-radius: 50%;
  background: #ffffff;
}

.category-checkbox.is-selected .checkbox-custom {
  border-color: #9cff00;
  background: #9cff00;
}

.checkbox-custom::after {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.checkbox-label {
  min-width: 0;
  color: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.checkbox-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  color: #0a42d6;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.category-checkbox.is-selected .checkbox-count {
  background: #9cff00;
  color: #111827;
}

.modal-select-all {
  border-top: 1px solid rgba(10, 66, 214, 0.12);
  margin-top: 18px;
  padding-top: 18px;
}

.modal-select-all .btn {
  min-height: 42px;
  border: 1px solid rgba(10, 66, 214, 0.2);
  border-radius: 999px;
  background: #ffffff;
  color: #0a42d6;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.modal-select-all .btn:hover {
  border-color: #111827;
  background: #111827;
  color: #9cff00;
}

.modal-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(10, 66, 214, 0.12);
  padding: 20px 34px 30px;
}

.modal-footer .btn {
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  background: #9cff00;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 16px 30px rgba(156, 255, 0, 0.28);
}

.modal-footer .btn:hover {
  background: #111827;
  color: #9cff00;
}

.modal-footer .btn:disabled {
  background: #d8dee9;
  color: #667085;
  box-shadow: none;
}

.study-mode {
  z-index: 2500;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    #0a42d6;
  background-size: 84px 84px;
  color: #ffffff;
}

.study-header {
  display: grid;
  grid-template-columns: 56px minmax(220px, 420px) 118px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 22px 34px;
}

.study-progress-wrap {
  justify-self: center;
  width: min(100%, 420px);
  text-align: center;
}

.study-progress {
  display: block;
  margin-bottom: 9px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.study-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.study-progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #9cff00;
  box-shadow: 0 0 22px rgba(156, 255, 0, 0.55);
  transition: width 0.25s ease;
}

.study-restart {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.study-restart:hover {
  border-color: #9cff00;
  background: #9cff00;
  color: #111827;
}

.study-card-wrapper {
  padding: 42px 28px;
}

.study-card {
  max-width: 720px;
}

.study-card-inner {
  min-height: 460px;
}

.study-card-face {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 38px;
  background:
    radial-gradient(circle at 92% 5%, rgba(156, 255, 0, 0.7), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(219, 231, 255, 0.96));
  color: #111827;
  padding: 46px;
  box-shadow: 0 32px 74px rgba(0, 20, 80, 0.34);
}

.study-card-back {
  background:
    radial-gradient(circle at 92% 5%, rgba(156, 255, 0, 0.65), transparent 24%),
    #111827;
  color: #ffffff;
}

.study-card-number {
  width: fit-content;
  border-radius: 999px;
  background: #111827;
  color: #9cff00;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.study-card-back .study-card-number {
  background: #9cff00;
  color: #111827;
}

.study-card h3 {
  font-family: 'Inter', sans-serif;
  color: #111827;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.study-card p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.65;
}

.study-card-hint {
  color: #0a42d6;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}

.study-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 24px 34px 34px;
}

.study-nav .btn {
  min-width: 148px;
  min-height: 52px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.study-nav .btn-ghost {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.study-nav .btn-ghost:hover {
  border-color: #9cff00;
  background: transparent;
  color: #9cff00;
}

.study-nav .btn-primary {
  border-color: #9cff00;
  background: #9cff00;
  color: #111827;
}

.study-nav .btn-primary:hover {
  background: #ffffff;
  color: #0a42d6;
}

@media (max-width: 760px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-content {
    max-height: 90vh;
    border-radius: 34px 34px 0 0;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-right: 22px;
    padding-left: 22px;
  }

  .category-checkboxes {
    grid-template-columns: 1fr;
  }

  .study-header {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    padding: 16px 18px;
  }

  .study-restart {
    width: 46px;
    overflow: hidden;
    padding: 0;
    color: transparent;
  }

  .study-restart::before {
    color: #ffffff;
    content: '↻';
    font-size: 22px;
  }

  .study-card-wrapper {
    padding: 22px 18px;
  }

  .study-card-inner {
    min-height: 430px;
  }

  .study-card-face {
    border-radius: 30px;
    padding: 30px 24px;
  }

  .study-nav {
    padding: 18px;
  }

  .study-nav .btn {
    flex: 1;
    min-width: 0;
  }
}
