/* ==========================================================================
   dil.route Design System & Core Styles
   Modern, Clean, Human-Centric Educational Design (Light Aesthetic)
   ========================================================================== */

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

:root {
  /* Clean Light Theme Palette */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-accent-soft: #e0f2fe;

  /* Brand Accents (Derived directly from dil.route Compass Logo) */
  --brand-navy: #0f283d;
  --brand-navy-light: #1e3a5f;
  --brand-teal: #0d9488;
  --brand-cyan: #0284c7;
  --brand-cyan-light: #38bdf8;
  --brand-blue: #2563eb;

  /* Secondary Accents */
  --accent-green: #10b981;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;

  /* Typography Colors - High readability */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;

  /* Clean Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-brand: #bae6fd;
  --border-brand-focus: #0284c7;

  /* Natural, Soft Human Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(15, 23, 42, 0.03);
  --shadow-card: 0 2px 14px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);

  /* Radius & Curves */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.2s ease;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Clean Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  background: #ffffff;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--brand-navy);
  line-height: 1.1;
}

.brand-title .route-dot {
  color: var(--brand-cyan);
}

.brand-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-muted);
  color: var(--brand-navy);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-top: 3px;
  width: fit-content;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-item-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-item-link:hover,
.nav-item-link.active {
  color: var(--brand-cyan);
  background: var(--bg-muted);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Clean, Human Button Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand-navy);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.68rem 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--brand-navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #ffffff;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.68rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--text-muted);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Clean Typography Helpers */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-accent-soft);
  color: var(--brand-cyan);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.2;
  margin-bottom: 0.85rem;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.65;
}

/* Clean White Cards */
.clean-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.clean-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

/* Mini Wave Visualizer (Natural look) */
.mini-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.mini-wave span {
  width: 3px;
  height: 100%;
  background: var(--brand-cyan);
  border-radius: 2px;
  animation: wavePulse 1.2s ease-in-out infinite alternate;
}

.mini-wave span:nth-child(1) { animation-delay: 0.1s; height: 40%; }
.mini-wave span:nth-child(2) { animation-delay: 0.3s; height: 75%; }
.mini-wave span:nth-child(3) { animation-delay: 0.5s; height: 100%; }
.mini-wave span:nth-child(4) { animation-delay: 0.2s; height: 50%; }
.mini-wave span:nth-child(5) { animation-delay: 0.4s; height: 80%; }

@keyframes wavePulse {
  0% { transform: scaleY(0.3); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* Clean Footer */
.site-footer {
  margin-top: 5rem;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.85rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-list a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.footer-list a:hover {
  color: var(--brand-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-credit span {
  color: var(--brand-navy);
  font-weight: 700;
}

/* Mobile Responsive */
/* Mobile Responsive Improvements */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .brand-logo-img {
    height: 38px;
  }

  .brand-title {
    font-size: 1.18rem;
  }

  .brand-badge {
    display: none;
  }

  .nav-cta-desktop {
    display: none !important;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--brand-navy);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
  }

  .mobile-toggle:active {
    transform: scale(0.95);
    background: var(--bg-muted);
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1.25rem 1rem 1.75rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    z-index: 99;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-item-link {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .mobile-only-item {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
  }

  .mobile-only-item .btn-primary,
  .mobile-only-item .btn-secondary {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    justify-content: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
  }
}

@media (min-width: 769px) {
  .mobile-only-item {
    display: none !important;
  }
}
