/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary:    #0a0f0a;
  --bg-secondary:  #0f1a0f;
  --bg-card:       #111c11;
  --bg-card-hover: #162016;
  --green-bright:  #22c55e;
  --green-mid:     #16a34a;
  --green-dim:     #15803d;
  --green-glow:    rgba(34, 197, 94, 0.15);
  --green-border:  rgba(34, 197, 94, 0.2);
  --text-primary:  #f0fdf4;
  --text-secondary:#a3e4b7;
  --text-muted:    #6b7280;
  --text-dimmed:   #4b5563;
  --border-color:  rgba(34, 197, 94, 0.12);
  --font-main:     'Inter', sans-serif;
  --font-heading:  'Space Grotesk', sans-serif;
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --shadow-glow:   0 0 30px rgba(34, 197, 94, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 15, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon {
  color: var(--green-bright);
  font-size: 1.4rem;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--green-bright);
}

.btn-login {
  background: transparent;
  border: 1px solid var(--green-border);
  color: var(--green-bright);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
  background: var(--green-glow);
  border-color: var(--green-bright);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

/* ===== CONSTRUCTION BANNER ===== */
.construction-banner {
  background: linear-gradient(135deg, #0f2e0f, #1a3d1a);
  border-bottom: 1px solid rgba(34, 197, 94, 0.3);
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 68px;
  letter-spacing: 0.01em;
}

.banner-icon {
  color: var(--green-bright);
  animation: spin 4s linear infinite;
  display: inline-block;
  font-size: 0.9rem;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  background-image: url('dojonomics-pic.jpg');
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  padding: 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5, 10, 5, 0.92) 0%,
    rgba(5, 10, 5, 0.75) 45%,
    rgba(5, 10, 5, 0.3) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 8rem 2rem 6rem 5vw;
}

.hero-kicker {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-bright);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.hero-badge-top {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--green-bright);
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green-bright);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.gradient-text {
  background: linear-gradient(135deg, var(--green-bright), #86efac);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(163, 228, 183, 0.9);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.7;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  background: var(--green-mid);
  color: #fff;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--green-bright);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-main);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--green-border);
  color: var(--green-bright);
  background: var(--green-glow);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(10, 15, 10, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.75rem;
  width: fit-content;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-bright);
  line-height: 1;
}

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

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-color);
}

/* chart styles removed — replaced by hero image */

/* ===== SCROLL DOWN BUTTON ===== */
.scroll-down {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: rgba(10, 15, 10, 0.5);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  animation: bounce 2.5s ease-in-out infinite;
}

.scroll-down:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--green-bright);
  transform: translateX(-50%) translateY(-2px);
  animation: none;
}

.scroll-arrow {
  color: var(--green-bright);
  font-size: 1.1rem;
  line-height: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ===== TOPICS SECTION ===== */
.topics {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 6rem 0;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  background: var(--green-glow);
  border: 1px solid var(--green-border);
  color: var(--green-bright);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  font-size: 1rem;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.topic-card:hover {
  border-color: var(--green-border);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3), var(--shadow-glow);
}

.topic-icon {
  font-size: 1.6rem;
  color: var(--green-bright);
  margin-bottom: 1rem;
  line-height: 1;
}

.topic-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.topic-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== DISCLAIMER SECTION ===== */
.disclaimer-section {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.disclaimer-box {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.06), rgba(10, 15, 10, 0.8));
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
}

.disclaimer-icon {
  font-size: 2rem;
  color: #facc15;
  margin-bottom: 1rem;
}

.disclaimer-box h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.disclaimer-text {
  text-align: left;
  max-width: 780px;
  margin: 0 auto;
}

.disclaimer-text p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.disclaimer-text p:last-child {
  margin-bottom: 0;
}

.disclaimer-text strong {
  color: var(--text-primary);
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), var(--shadow-glow);
  animation: modalIn 0.25s ease both;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

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

.modal-icon {
  font-size: 2.5rem;
  color: var(--green-bright);
  margin-bottom: 1rem;
}

.modal h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.modal-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-main);
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.modal-input:focus {
  border-color: var(--green-bright);
}

.modal .btn-primary {
  width: 100%;
  margin-bottom: 0.75rem;
}

.modal-note {
  font-size: 0.72rem;
  color: var(--text-dimmed);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-legal p {
  font-size: 0.72rem;
  color: var(--text-dimmed);
  line-height: 1.65;
}

.footer-legal strong {
  color: var(--text-muted);
}

.footer-links-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links-row a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  transition: color 0.2s;
}

.footer-links-row a:hover {
  color: var(--green-bright);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero {
    background-position: 70% center;
    min-height: 100svh;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(5, 10, 5, 0.88) 0%,
      rgba(5, 10, 5, 0.75) 60%,
      rgba(5, 10, 5, 0.6) 100%
    );
  }

  .hero-content {
    padding: 7rem 1.5rem 4rem;
    max-width: 100%;
    text-align: center;
  }

  .hero-kicker {
    justify-content: center;
  }


  .hero-subtitle {
    max-width: 100%;
    margin: 0 auto 2rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    margin: 0 auto;
    justify-content: center;
    width: 100%;
  }

  .nav-links {
    display: none;
  }

  .disclaimer-box {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .topics-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 1.25rem;
  }
}
