/* ========================================================== */
/* HUZIHUB DESIGN SYSTEM & VARIABLES — DO NOT CHANGE PALETTE */
/* ========================================================== */
:root {
  --ink: #15132b;
  --ink-soft: #4d4a6b;
  --ink-faint: #8985a8;

  --bg: #fcfbff;
  --bg-soft: #f4f2ff;

  --line: #e7e4f6;
  --line-soft: #f0eefb;

  --primary: #4f46e5;
  --primary-dark: #3b33c4;
  --primary-light: #eeebff;

  --accent: #7c3aed;

  --white: #ffffff;

  --font-heading: "Lexend", sans-serif;
  --font-body: "Inter", sans-serif;

  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px rgba(21, 19, 43, 0.04);
  --shadow-md: 0 4px 12px rgba(79, 70, 229, 0.08);
  --shadow-lg: 0 12px 32px rgba(79, 70, 229, 0.12);
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* ========================================================== */
/* RESET & BASE STYLES */
/* ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body,
html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ========================================================== */
/* GLOBAL NAVBAR */
/* ========================================================== */
.global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(252, 251, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: var(--transition-smooth);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.nav-logo:hover .logo-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.05);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--primary);
}

/* Desktop Navigation Links & Dropdowns */
.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: block;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-link:hover,
.dropdown-toggle:hover {
  color: var(--primary);
}

.dropdown-parent {
  position: relative;
}

.dropdown-toggle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
}

.dropdown-toggle.active {
  color: var(--primary);
  font-weight: 600;
}

.chevron {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.dropdown-parent:hover .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition-smooth);
  z-index: 100;
}

.dropdown-parent:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.dropdown-menu a:hover {
  background: var(--bg-soft);
  color: var(--primary);
  padding-left: 1.4rem;
}

.dropdown-menu a.active-sublink {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.search-trigger-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.search-shortcut-badge {
  background: var(--line);
  color: var(--ink-soft);
  font-size: 0.7rem;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 600;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  background: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .hamburger-btn {
    display: none;
  }
}

.hamburger-btn .bar {
  width: 100%;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ========================================================== */
/* MOBILE NAVIGATION DRAWER */
/* ========================================================== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21, 19, 43, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100%;
  background: var(--white);
  z-index: 2001;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-link {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
  padding: 0.5rem 0;
}

.mobile-accordion-item {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.5rem;
}

.mobile-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.5rem 0;
  background: none;
  text-align: left;
}

.mobile-chevron {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
}

.mobile-accordion-toggle.active .mobile-chevron {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.mobile-submenu.show {
  display: flex;
}

.mobile-submenu a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  font-weight: 400;
}

.mobile-submenu a:hover,
.mobile-submenu a.active-sublink {
  color: var(--primary);
  font-weight: 600;
}

/* ========================================================== */
/* SEARCH MODAL */
/* ========================================================== */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21, 19, 43, 0.5);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8vh;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.search-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-modal {
  width: 90%;
  max-width: 640px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(21, 19, 43, 0.2);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.search-modal-overlay.active .search-modal {
  transform: scale(1);
}

.search-modal-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-faint);
}

.search-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: transparent;
}

.search-input-wrapper input::placeholder {
  color: var(--ink-faint);
}

.search-close-btn {
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}

.search-modal-body {
  max-height: 380px;
  overflow-y: auto;
  padding: 1rem;
}

.search-initial-state,
.search-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-result-item {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  transition: var(--transition-smooth);
}

.search-result-item:hover,
.search-result-item.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateX(4px);
}

.search-result-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.search-result-item:hover .search-result-title {
  color: var(--primary);
}

.search-result-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.search-modal-footer {
  padding: 0.75rem 1.25rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-faint);
  text-align: right;
}

/* ========================================================== */
/* HERO SECTION */
/* ========================================================== */
.hero-section {
  padding: 4rem 0 3rem 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(79, 70, 229, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }
}

.hero-content h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  color: var(--ink);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

/* Hero Visual Floating Card */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.floating-age-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  animation: floatCard 6s ease-in-out infinite;
}

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

.card-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.15) 0%,
    rgba(79, 70, 229, 0) 70%
  );
  z-index: 0;
}

.card-header-mini {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.dot-red,
.dot-yellow,
.dot-green {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red {
  background: #ff5f56;
}
.dot-yellow {
  background: #ffbd2e;
}
.dot-green {
  background: #27c93f;
}

.card-title-mini {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-faint);
  margin-left: auto;
}

.card-body-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.time-cube {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
  text-align: center;
}

.time-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.time-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.card-footer-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  background: #27c93f;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* ========================================================== */
/* BREADCRUMB */
/* ========================================================== */
.breadcrumb-wrapper {
  background: var(--bg);
  padding: 1rem 0 0.5rem 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

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

.breadcrumb .separator {
  color: var(--ink-faint);
}

/* ========================================================== */
/* MAIN CALCULATOR SECTION */
/* ========================================================== */
.calculator-section {
  padding: 2rem 0 4rem 0;
}

.calculator-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.calc-header {
  margin-bottom: 2rem;
}

.calc-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.calc-header p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.required {
  color: #ef4444;
}

.input-with-icon input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  transition: var(--transition-smooth);
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.error-message {
  font-size: 0.8rem;
  color: #ef4444;
  min-height: 1.2rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  flex: 1;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--ink-soft);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--line);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--line);
  color: var(--ink);
}

/* Results Dashboard */
.results-dashboard {
  margin-top: 2.5rem;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-divider {
  height: 1px;
  background: var(--line);
  margin-bottom: 2rem;
}

.primary-result-box {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.primary-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.primary-values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.val-block {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.big-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.small-lbl {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.val-sep {
  font-size: 2rem;
  font-weight: 700;
  color: var(--line);
  display: none;
}

@media (min-width: 640px) {
  .val-sep {
    display: inline;
  }
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.stat-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

/* Insights Banner */
.insights-banner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.insight-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.insight-icon {
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  background: var(--bg-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.insight-content {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.insight-label {
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-weight: 600;
}

.insight-data {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 600;
}

/* Result Toolbar */
.result-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  flex: 1;
  justify-content: center;
}

.btn-action:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.toast-notification {
  margin-top: 1rem;
  background: #27c93f;
  color: var(--white);
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================== */
/* TIMELINE SECTION */
/* ========================================================== */
.timeline-section {
  padding: 4rem 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  margin-bottom: 3rem;
}

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

.section-header p {
  color: var(--ink-soft);
  font-size: 1rem;
}

.text-center {
  text-align: center;
}

.timeline-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .timeline-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .timeline-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }
}

.timeline-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.timeline-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.step-marker {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ========================================================== */
/* EDITORIAL SECTION */
/* ========================================================== */
.editorial-section {
  padding: 5rem 0;
}

.editorial-container {
  max-width: 800px;
}

.editorial-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.editorial-content h2:first-child {
  margin-top: 0;
}

.editorial-content p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.editorial-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.editorial-content li {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
  list-style-type: disc;
  line-height: 1.7;
}

.editorial-content code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--primary);
}

/* ========================================================== */
/* FAQ SECTION */
/* ========================================================== */
.faq-section {
  padding: 4rem 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-out,
    padding 0.3s ease-out;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ========================================================== */
/* RELATED TOOLS SECTION */
/* ========================================================== */
.related-tools-section {
  padding: 5rem 0;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: block;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.related-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.related-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.related-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ========================================================== */
/* FINAL CTA SECTION */
/* ========================================================== */
.final-cta-section {
  padding: 0 0 5rem 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-box p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  line-height: 1.7;
}

.btn-primary-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--primary);
  padding: 0.9rem 2.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

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

/* ========================================================== */
/* PREMIUM GLOBAL FOOTER */
/* ========================================================== */
.global-footer {
  background: var(--ink);
  color: var(--white);
  padding: 5rem 0 2rem 0;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-logo .logo-text {
  color: var(--white);
}

.footer-bio {
  font-size: 0.95rem;
  color: var(--ink-faint);
  line-height: 1.7;
  margin: 1rem 0 1.5rem 0;
  max-width: 320px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--white);
  transition: var(--transition-smooth);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.footer-links a:hover,
.footer-links a.footer-active {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-sub-tag {
  color: var(--ink-faint);
  font-style: italic;
}
