/* CodeRoots Landing –zelfde kleuren als de app (Surinaamse vlag + theme) */
:root {
  /* Primaire kleuren – Surinaams */
  --green: #007A3D;
  --green-dark: #005A2D;
  --green-light: #E6F4ED;
  --red: #CE1126;
  --yellow: #FCD116;
  --orange: #E67E22;
  --orange-light: #FEF3E6;

  /* Neutraal */
  --white: #FFFFFF;
  --black: #1A1A1A;
  --gray-100: #F5F5F5;
  --gray-200: #E0E0E0;
  --gray-500: #757575;
  --gray-600: #616161;
  --gray-700: #424242;

  /* App theme */
  --background: #EEF3EF;
  --surface: #F8FAF8;
  --text: #1A1A1A;
  --text-secondary: #525252;
  --border: #E0E8E3;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow: 0 4px 20px rgba(0, 122, 61, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 122, 61, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 560px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 122, 61, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  height: 72px;
  padding: 0 20px;
}

.header-inner .logo {
  flex-shrink: 0;
}

.header-inner .nav {
  flex-shrink: 0;
}

.menu-toggle {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.9;
}

.logo:hover .logo-text,
.logo:hover .logo-subtitle {
  color: inherit;
}

.logo-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--green);
}

.logo-icon-svg svg {
  width: 100%;
  height: 100%;
}

.logo-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.logo-text {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo-subtitle {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-top: 1px;
}

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

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--green);
  background: var(--green-light);
}

.nav-link-cta {
  color: var(--green) !important;
  font-weight: 600;
}

.nav-link-cta:hover {
  background: var(--green-light);
  color: var(--green-dark) !important;
}

.btn-nav-primary {
  margin-left: 8px;
  padding: 8px 18px !important;
  background: var(--green) !important;
  color: var(--white) !important;
  font-weight: 600;
}

.btn-nav-primary:hover {
  background: var(--green-dark) !important;
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  border: none;
}

.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 122, 61, 0.3);
}

.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 4px 12px rgba(0, 122, 61, 0.35);
}

.btn-secondary {
  background: var(--white);
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-secondary:hover {
  background: var(--green-light);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
}

.btn-ghost:hover {
  background: var(--green-light);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--green-light), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(252, 209, 22, 0.08), transparent),
    var(--background);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--black);
}

.hero-title .highlight {
  color: var(--green);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Vaste hoogte zodat teksten niet bewegen bij slideshow */
.hero-mascot {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  min-height: 320px;
  height: 320px;
}

.mascot-slideshow {
  position: relative;
  width: 280px;
  height: 320px;
  flex-shrink: 0;
}

.mascot-slide {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.mascot-slide--active {
  opacity: 1;
  pointer-events: auto;
}

.mascot-slide .mascot-img {
  max-width: 280px;
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 20px 40px rgba(0, 122, 61, 0.15));
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--black);
  text-align: center;
}

.section-intro {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

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

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

.card-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.card-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  color: var(--green);
}

.card-icon-svg svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--black);
}

.card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Wat leer je? – gratis cursussen */
.section-learn {
  background: var(--surface);
}

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

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

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

.learn-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--green);
}

.learn-card-icon svg {
  width: 100%;
  height: 100%;
}

.learn-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--black);
}

.learn-card > p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0 0 16px;
  line-height: 1.5;
}

.learn-topics {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.learn-topics li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

.learn-topics li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.learn-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.learn-badge-free {
  background: var(--green-light);
  color: var(--green-dark);
}

/* Premium sectie */
.section-premium {
  background: linear-gradient(180deg, var(--green-light) 0%, var(--surface) 100%);
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

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

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

.premium-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  color: var(--green-dark);
}

.premium-card-icon svg {
  width: 100%;
  height: 100%;
}

.premium-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--black);
}

.premium-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.premium-cta-text {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Screenshot mockups */
.section-screenshots {
  background: var(--surface);
}

.mockups {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}

.mockup {
  text-align: center;
}

.mockup-device {
  position: relative;
  border-radius: 36px;
  padding: 12px;
  background: var(--black);
  box-shadow:
    0 0 0 2px var(--gray-600),
    0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.mockup-phone {
  width: 260px;
}

.mockup-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: var(--black);
  border-radius: 0 0 20px 20px;
  z-index: 2;
}

.mockup-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: var(--gray-200);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-screen .screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mockup-screen .screenshot-placeholder {
  position: relative;
  z-index: 0;
  font-size: 0.8125rem;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.4;
  padding: 12px;
}

.mockup-screen.loaded .screenshot-placeholder {
  display: none;
}

.mockup-label {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.screenshots-hint {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin: 0;
}

.screenshots-hint code {
  background: var(--gray-200);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* Download section */
.section-download {
  background: var(--surface);
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s, background 0.2s;
  min-width: 200px;
}

.download-btn:hover {
  transform: translateY(-2px);
  background: var(--gray-700);
}

.download-btn .store-icon {
  width: 32px;
  height: 32px;
}

.download-label {
  display: block;
  font-size: 1rem;
}

.download-sublabel {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0.85;
}

.web-login-prompt {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}

.link-login {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.link-login:hover {
  text-decoration: underline;
}

/* Login section – professionele uitstraling */
.section-login {
  padding: 80px 0 100px;
  position: relative;
}

.login-section-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 100%, var(--green-light), transparent 60%),
    var(--surface);
  pointer-events: none;
}

.section-login .container {
  position: relative;
}

.login-card {
  background: var(--white);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 122, 61, 0.1);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
}

.login-card-visual {
  width: 160px;
  height: 160px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
  border-radius: 50%;
}

.login-mascot {
  width: 140px;
  height: 140px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

.login-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--black);
  letter-spacing: -0.02em;
}

.login-card p {
  color: var(--text-secondary);
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.login-card .btn-lg {
  min-width: 200px;
}

/* Footer – professioneel met links */
.footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand-block {
  max-width: 280px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 12px;
}

.footer-logo:hover {
  opacity: 0.9;
}

.footer-logo .logo-icon-svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.footer-logo .logo-text {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}

.footer-logo .logo-subtitle {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1px;
}

.footer-tagline {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  opacity: 0.85;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9375rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  padding: 20px 0 24px;
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.8;
}

/* Mobiel menu – standaard overlay pattern */
.mobile-menu {
  display: none;
}

.mobile-menu-backdrop {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .header-inner {
    padding: 0 20px;
  }

  /* Desktop nav verbergen op mobiel */
  .nav {
    display: none;
  }

  /* Hamburger tonen */
  .menu-toggle {
    display: flex;
  }

  /* Mobiel menu: full overlay */
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.3s ease;
  }

  .mobile-menu.is-open {
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-menu-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-menu.is-open .mobile-menu-backdrop {
    opacity: 1;
  }

  .mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 100%;
    background: var(--white);
    padding: 80px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .mobile-menu.is-open .mobile-menu-panel {
    transform: translateX(0);
  }

  .mobile-menu-panel a {
    display: block;
    padding: 16px 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
  }

  .mobile-menu-panel a:hover {
    color: var(--green);
  }

  .mobile-menu-panel .mobile-menu-cta {
    margin-top: 16px;
    padding: 14px 20px;
    background: var(--green);
    color: var(--white) !important;
    border: none;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
  }

  .mobile-menu-panel .mobile-menu-cta:hover {
    background: var(--green-dark);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-mascot {
    order: -1;
    min-height: 280px;
    height: 280px;
  }

  .mascot-slideshow {
    width: 220px;
    height: 280px;
  }

  .mascot-slide .mascot-img {
    max-width: 220px;
    max-height: 280px;
  }

  .section {
    padding: 56px 0;
  }

  .download-btn {
    min-width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-brand-block {
    max-width: none;
  }

  .footer-links {
    justify-content: center;
  }

  .login-card {
    padding: 40px 24px;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
}
