/* Landing page styles (index.html). Colours come from the tokens below; .dark-mode swaps them. */

:root {
  --primary: #1a365d; /* brand navy: stays navy in both themes (used on navy surfaces) */
  --accent: #2b6cb0; /* text, icons and lines */
  --accent-strong: #2b6cb0; /* filled backgrounds behind white text */
  --accent-light: #2f78c711;
  --accent-warm: #f59e0b;
  --warm-text: #b45309; /* orange used for text: readable on light backgrounds */

  --bg: #f7fafc;
  --surface: #ffffff; /* page sections */
  --surface-alt: #f8fafc; /* alternating sections */
  --card: #ffffff;
  --footer-bg: #fafbfc;
  --nav-bg: rgba(255, 255, 255, 0.85);

  --text-main: #2d3748;
  --text-light: #5a6b82;
  --heading: #1a365d;

  --border: #e2e8f0;
  --border-soft: #edf2f7;

  --btn-bg: #1a365d;
  --btn-bg-hover: #2b6cb0;
  --badge-bg: #ebf8ff;
  --badge-text: #2b6cb0;
  --icon-bg: #ebf8ff;

  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px rgba(49, 130, 206, 0.1);

  color-scheme: light;
}

.dark-mode {
  --accent: #63b3ed;
  --accent-strong: #2b6cb0;
  --accent-light: rgba(99, 179, 237, 0.12);
  --warm-text: #f59e0b;

  --bg: #0b1220;
  --surface: #0f172a;
  --surface-alt: #0b1220;
  --card: #1e293b;
  --footer-bg: #080e1a;
  --nav-bg: rgba(11, 18, 32, 0.85);

  --text-main: #e2e8f0;
  --text-light: #94a3b8;
  --heading: #f1f5f9;

  --border: #2d3b52;
  --border-soft: #2a3850;

  --btn-bg: #2b6cb0;
  --btn-bg-hover: #2c5282;
  --badge-bg: rgba(99, 179, 237, 0.15);
  --badge-text: #90cdf4;
  --icon-bg: rgba(99, 179, 237, 0.12);

  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.5);

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  color: var(--text-main);
  background-color: var(--bg);
  line-height: 1.5;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Navbar ---------- */

.navbar {
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-soft);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar-scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  padding: 12px 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--heading);
  text-decoration: none;
}

.logo span,
.footer-logo span {
  color: var(--accent);
}

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

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

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

.nav-links a.btn-nav {
  color: #fff;
  font-weight: 600;
  padding: 10px 24px;
  background: var(--btn-bg);
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-links a.btn-nav:hover {
  color: #fff;
  background: var(--btn-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 108, 176, 0.25);
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text-main);
  font-size: 1.15rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

.theme-btn .icon-sun,
.dark-mode .theme-btn .icon-moon {
  display: none;
}

.dark-mode .theme-btn .icon-sun {
  display: inline-block;
}

/* ---------- Hero ---------- */

.hero {
  max-width: 1100px;
  margin: 80px auto;
  text-align: center;
  padding: 60px 20px 0;
}

.badge {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

h1 {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.05;
  margin: 24px 0;
  letter-spacing: -0.02em;
}

h1 span {
  color: var(--accent);
}

.lead {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  display: inline-block;
}

.btn-primary {
  background: var(--btn-bg);
  color: #fff;
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--heading);
}

.btn-secondary:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 50px;
  padding-top: 50px;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--heading);
  margin-bottom: 4px;
  font-weight: 700;
}

.stat span {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Example result card in the hero */

.hero-preview {
  margin-top: 80px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--border);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(26, 54, 93, 0.08);
  background-image: radial-gradient(circle, rgba(245, 158, 11, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: previewFloat 6s infinite ease-in-out;
}

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

.preview-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-float);
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--border);
  text-align: left;
  overflow: hidden;
}

.preview-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
}

.preview-tag em {
  font-style: normal;
  color: var(--accent);
}

.preview-rows {
  padding: 8px 24px;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
}

.preview-row:last-child {
  border-bottom: none;
}

.preview-row b {
  color: var(--heading);
}

.preview-result {
  padding: 22px 24px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-result small {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-light);
}

.preview-result strong {
  font-size: 2rem;
  color: var(--heading);
  font-weight: 800;
}

.preview-class {
  background: var(--btn-bg);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* ---------- Sections ---------- */

.container {
  max-width: 1100px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: 2.5rem;
  color: var(--heading);
  margin: 15px 0;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.features {
  padding: 100px 20px;
  background-color: var(--surface);
}

.features-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-card);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.feature-card:hover .feature-icon {
  background: var(--accent-strong);
  color: #fff;
  transform: rotate(-5deg) scale(1.1);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: var(--icon-bg);
  color: var(--accent);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--heading);
  margin: 0 0 12px;
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
}

.steps {
  padding: 100px 20px;
  background-color: var(--surface-alt);
}

.steps-grid {
  gap: 40px;
}

.step-card {
  padding: 40px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-card);
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-warm);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.12);
}

.step-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--warm-text);
  margin-bottom: 12px;
  display: inline-block;
  background: rgba(245, 158, 11, 0.12);
  padding: 8px 12px;
  border-radius: 8px;
  user-select: none;
}

.step-icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 1.3rem;
  color: var(--heading);
  margin: 0 0 12px;
}

.step-card p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Call to action ---------- */

.final-cta {
  padding: 100px 20px;
  background: var(--surface);
}

.cta-container {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
  padding: 80px 40px;
  border-radius: 32px;
  text-align: center;
  color: #fff;
}

.cta-container h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 20px;
  color: #fff;
}

.cta-container p {
  font-size: 1.1rem;
  color: #bee3f8;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.btn-cta {
  background: #fff;
  color: var(--primary);
  padding: 18px 40px;
  font-size: 1.1rem;
}

.btn-cta:hover {
  background: #f7fafc;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* ---------- Footer ---------- */

.footer-simple {
  padding: 60px 20px 30px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-light);
  font-size: 0.9rem;
  background: var(--footer-bg);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--heading);
  margin-bottom: 8px;
}

.footer-section h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section a {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-section p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Scroll reveal (only when scripting is running, so content never stays hidden) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
    line-height: 1.15;
  }

  .hero {
    margin: 40px auto;
    padding-top: 30px;
  }

  .lead {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .hero-stats {
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
  }

  .hero-btns {
    flex-direction: column;
    padding: 0 20px;
  }

  .btn-secondary {
    border: 1.5px solid var(--border);
    background: var(--accent-light);
  }

  .btn-primary,
  .btn-secondary,
  .btn-cta {
    padding: 14px;
    font-size: 1rem;
    text-align: center;
  }

  .hero-preview {
    padding: 24px 16px;
    margin-top: 48px;
  }

  .features,
  .steps,
  .final-cta {
    padding: 64px 20px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card,
  .step-card {
    padding: 24px 20px;
  }

  .cta-container {
    margin: 0 15px;
    padding: 40px 20px;
    border-radius: 24px;
  }

  .cta-container h2 {
    font-size: 1.7rem;
    margin-bottom: 12px;
  }

  .nav-container {
    padding: 0 15px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-links {
    gap: 14px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .nav-links a:not(.btn-nav) {
    display: none;
  }
}