/* ============================================
   RykAcademie – Global Styles
   ============================================ */

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

:root {
  --primary:       #4f46e5;
  --primary-light: #818cf8;
  --primary-dark:  #3730a3;
  --accent:        #06b6d4;
  --accent-light:  #67e8f9;
  --reken:         #f59e0b;
  --taal:          #10b981;
  --bg:            #f8fafc;
  --surface:       #ffffff;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --border:        #e2e8f0;
  --radius:        16px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:     0 10px 40px rgba(0,0,0,.14);
  --transition:    0.25s ease;
}

html { scroll-behavior: smooth; }

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 70px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  display: flex;
  align-items: center;
}

.brand-icon svg {
  width: 36px;
  height: 36px;
}
.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

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

.btn-login {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(79,70,229,0.35);
}

.btn-login:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79,70,229,0.45);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 5% 90px;
  min-height: calc(100vh - 70px);
  background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 100%);
  overflow: hidden;
  position: relative;
}

.hero-content {
  flex: 1;
  max-width: 580px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(79,70,229,0.12);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 6px 22px rgba(79,70,229,0.38);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(79,70,229,0.50);
}

.btn-primary.large { padding: 16px 40px; font-size: 1.05rem; }

.btn-secondary {
  padding: 14px 30px;
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 36px;
}

.stat { display: flex; flex-direction: column; }
.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Hero visual */
.hero-visual {
  flex: 1;
  max-width: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.visual-blob {
  width: 340px;
  height: 340px;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  background: linear-gradient(135deg, rgba(79,70,229,0.15), rgba(6,182,212,0.15));
  position: absolute;
  animation: blobmorph 8s ease-in-out infinite;
}

@keyframes blobmorph {
  0%,100% { border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%; }
  50%      { border-radius: 40% 60% 45% 55% / 55% 45% 60% 40%; }
}

.visual-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 1rem;
  z-index: 2;
  animation: floatCard 4s ease-in-out infinite;
}

.visual-card i { font-size: 1.4rem; }

.card-float-1 {
  top: 60px; left: 10px;
  color: var(--reken);
  animation-delay: 0s;
}
.card-float-2 {
  bottom: 60px; right: 10px;
  color: var(--taal);
  animation-delay: 2s;
}

@keyframes floatCard {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-14px); }
}

/* ============================================
   TOETSEN SECTION
   ============================================ */
.toetsen-section {
  padding: 90px 5%;
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section-header.light h2 { color: #fff; }
.section-header.light p  { color: rgba(255,255,255,0.75); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.toets-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toets-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.reken-icon { background: rgba(245,158,11,0.12); color: var(--reken); }
.taal-icon  { background: rgba(16,185,129,0.12);  color: var(--taal); }

.toets-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}

.toets-card p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text);
}

.feature-list li i {
  color: var(--taal);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.btn-card {
  margin-top: 6px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(79,70,229,0.30);
  align-self: flex-start;
}

.btn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79,70,229,0.45);
}

/* ============================================
   VOORDELEN SECTION
   ============================================ */
.voordelen-section {
  padding: 90px 5%;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #6366f1 100%);
}

.voordelen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.voordeel-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: background var(--transition), transform var(--transition);
}

.voordeel-item:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-4px);
}

.voordeel-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin: 0 auto 16px;
}

.voordeel-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.voordeel-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 100px 5%;
  text-align: center;
  background: var(--bg);
}

.cta-content { max-width: 600px; margin: 0 auto; }

.cta-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
}

.cta-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 30px 5%;
  background: var(--text);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer .brand-name {
  -webkit-text-fill-color: #fff;
  background: none;
  color: #fff;
}

.footer p { font-size: 0.85rem; }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.60);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border-radius: 28px;
  padding: 40px;
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--bg);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* Tabs */
.modal-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.tab-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-content.hidden { display: none; }

/* Modal header */
.modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 8px 0 4px;
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

.input-wrapper i {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  outline: none;
}

.input-wrapper input::placeholder { color: #94a3b8; }

.forgot-link {
  font-size: 0.83rem;
  color: var(--primary);
  text-decoration: none;
  text-align: right;
  font-weight: 500;
  transition: opacity var(--transition);
}

.forgot-link:hover { opacity: 0.75; }

.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(79,70,229,0.35);
  margin-top: 4px;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(79,70,229,0.45);
}

/* Feedback messages */
.feedback-error,
.feedback-success {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 4px;
}

.feedback-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.feedback-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .hero {
    flex-direction: column;
    padding: 50px 5% 60px;
    text-align: center;
    min-height: auto;
  }

  .hero-content { max-width: 100%; }
  .hero-sub { max-width: 100%; }

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

  .hero-stats {
    justify-content: center;
    gap: 24px;
  }

  .hero-visual { min-height: 240px; width: 100%; }

  .visual-blob { width: 240px; height: 240px; }

  .card-float-1 { top: 20px; left: 10%; }
  .card-float-2 { bottom: 20px; right: 10%; }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}
