/* =========================================
   TYPOGRAPHY REFINEMENT
========================================= */
body {
  letter-spacing: -0.2px;
}

/* =========================================
   HEADINGS
========================================= */
h1, h2, h3 {
  font-weight: 600;
}

/* =========================================
   LINKS (BASE)
========================================= */
.link {
  text-decoration: none;
  color: inherit;
}

.link:hover {
  text-decoration: underline;
}

/* =========================================
   SECTION SPACING + STRUCTURE
========================================= */
.section {
  padding: 100px 0;
  border-bottom: 1px solid #f1f5f9;
}

.section.alt {
  background: #f1f5f9;
}

/* =========================================
   HERO
========================================= */
.hero h1 {
  max-width: 800px;
}

.subtitle {
  max-width: 700px;
  color: #64748b;
}

/* =========================================
   HERO GUIDANCE LINK
========================================= */
.hero-guidance {
  margin-top: 20px;
  text-align: center;
}

.hero-guidance .link {
  font-size: 14px;
  color: #111;
  text-decoration: underline;
}

.hero-guidance .link:hover {
  opacity: 0.7;
}

/* =========================================
   CARDS
========================================= */
.card {
  border-radius: 8px;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: #ccc;
}

/* =========================================
   PATHWAY VISUAL
========================================= */
.path-step {
  border-radius: 20px;
  font-size: 14px;
}

/* =========================================
   BUTTONS
========================================= */
.btn.primary,
.btn.secondary {
  border-radius: 4px;
}

.btn.secondary {
  border: 1px solid #111;
  color: #111;
  background: transparent;
}

.btn.secondary:hover {
  background: #111;
  color: #fff;
}

/* =========================================
   CTA
========================================= */
.cta h2 {
  margin-bottom: 10px;
}

.cta-note {
  max-width: 600px;
  margin: 0 auto 20px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

/* =========================================
   FORM
========================================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
  max-width: 600px;
}

.contact-form label {
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #000;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  margin-top: 8px;
  align-self: flex-start;
}

.form-note {
  font-size: 13px;
  color: #64748b;
  margin-top: 10px;
  max-width: 500px;
}

/* =========================================
   HEADER
========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

body {
  padding-top: 80px;
}

/* =========================================
   BRAND
========================================= */
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-link {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 15px;
}

.brand-sub {
  font-size: 11px;
  color: #64748b;
}

/* =========================================
   NAV
========================================= */
.nav-left,
.nav-right {
  display: flex;
  align-items: center;
}

.site-nav {
  display: flex;
}

.site-nav a {
  margin-left: 22px;
  font-size: 14px;
  color: #111;
  opacity: 0.85;
  text-decoration: none;
  transition: all 0.2s ease;
}

.site-nav a:hover {
  opacity: 1;
  color: #000;
}

.site-nav a:visited,
.site-nav a:active {
  color: inherit;
}

/* =========================================
   TOGGLES
========================================= */
.theme-toggle,
.menu-toggle {
  margin-left: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: rgba(0,0,0,0.05);
}

/* Theme icons */
.icon-light { display: none; }
.icon-dark { display: inline; }

body.dark-mode .icon-light { display: inline; }
body.dark-mode .icon-dark { display: none; }

/* =========================================
   MOBILE NAV
========================================= */
.menu-toggle {
  display: none;
}

@media (max-width: 768px) {

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 65px;
    right: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 12px;
    display: none;
    flex-direction: column;
    min-width: 160px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  }

  .site-nav.active {
    display: flex;
  }

  .site-nav a {
    margin: 8px 0;
  }

  body {
    padding-top: 70px;
  }
}

/* =========================================
   DARK MODE
========================================= */
body.dark-mode {
  background: #0f172a;
  color: #e5e7eb;
}

body.dark-mode .site-header {
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

body.dark-mode .brand-sub {
  color: #94a3b8;
}

body.dark-mode .section {
  border-bottom: 1px solid #020617;
}

body.dark-mode .section.alt {
  background: #020617;
}

body.dark-mode .subtitle,
body.dark-mode .support,
body.dark-mode .cta-note {
  color: #a5b4fc;
}

body.dark-mode p,
body.dark-mode li {
  color: #cbd5f5;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
  color: #ffffff;
}

body.dark-mode .site-nav {
  background: #0f172a;
  border-color: #1e293b;
}

body.dark-mode .site-nav a {
  color: #e5e7eb;
}

body.dark-mode .site-nav a:hover {
  color: #ffffff;
}

body.dark-mode .theme-toggle:hover,
body.dark-mode .menu-toggle:hover {
  background: rgba(255,255,255,0.08);
}

/* =========================================
   ACTIVE NAV
========================================= */
.site-nav a.active {
  font-weight: 600;
  opacity: 1;
  position: relative;
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #111;
}

body.dark-mode .site-nav a.active::after {
  background: #e5e7eb;
}

/* =========================================
   DARK MODE BUTTON FIX
========================================= */
body.dark-mode .btn.secondary {
  border: 1px solid #475569;
  color: #e5e7eb;
}

body.dark-mode .btn.secondary:hover {
  background: #e5e7eb;
  color: #0f172a;
}

body.dark-mode .btn.primary {
  background: #000;
  color: #fff;
}

/* =========================================
   CTA DEPTH (FINAL TOUCH)
========================================= */
body.dark-mode .cta {
  background: linear-gradient(to bottom, #0f172a, #020617);
}

/* =========================================
   SCROLL INTELLIGENCE (HEADER)
========================================= */
.site-header {
  transition: all 0.25s ease;
}

/* On scroll */
.site-header.scrolled {
  padding: 10px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Dark mode */
body.dark-mode .site-header.scrolled {
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

/* =========================================
   MICRO INTERACTIONS (PREMIUM LAYER)
========================================= */

/* Global smoothness */
* {
  transition: all 0.2s ease;
}

/* =========================================
   BUTTON INTERACTIONS
========================================= */
.btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.btn.secondary:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Click feedback */
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* =========================================
   CARD INTERACTIONS
========================================= */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Dark mode cards */
body.dark-mode .card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* =========================================
   LINK INTERACTIONS
========================================= */
.site-nav a,
.link {
  position: relative;
  transition: opacity 0.2s ease;
}

.site-nav a::after,
.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}

.site-nav a:hover::after,
.link:hover::after {
  width: 100%;
}

/* =========================================
   IMAGE / SECTION SMOOTHNESS
========================================= */
.section,
.card,
.btn {
  will-change: transform;
}

/* =========================================
   SCROLL REVEAL (FINAL POLISH)
========================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slight stagger for grouped items */
.card.reveal {
  transition-delay: 0.05s;
}

.section.reveal {
  transition-delay: 0.02s;
}

/* Dark mode stays same (no override needed) */

/* =========================================
   SCROLL REVEAL (FINAL LAYER)
========================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}