/* Global layout */
html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  color: #0f172a;
}

/* Ensure all elements use border-box */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* HEADER */
.header {
  background: linear-gradient(135deg, #7e22ce 0%, #6b21a8 100%);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(126, 34, 206, 0.25);
}

.site-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.site-title-link {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

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

.nav-link {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
}

.nav-link:hover {
  color: #e5e7eb;
  transform: translateY(-1px);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: #ffffff;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.25s ease;
}

.dropdown-toggle:hover {
  color: #e5e7eb;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
  border-radius: 12px;
  overflow: hidden;
  z-index: 1200;
  animation: fadeInDown 0.25s ease;
}

.dropdown.open .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: #4a5568;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-size: 0.875rem;
  transition: all 0.25s ease;
}

.dropdown-content a:hover {
  background: linear-gradient(135deg, #7e22ce 0%, #6b21a8 100%);
  color: #ffffff;
  padding-left: 28px;
}

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  background: #16a34a;
  border-radius: 999px;
  border: none;
  padding: 6px 14px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

/* Mobile slide-down menu */
.mobile-menu {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ecfdf3;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.mobile-menu.open {
  max-height: 340px;
}

.mobile-menu-inner {
  padding: 10px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu-inner a {
  color: #ecfdf3;
  text-decoration: none;
  padding: 8px 6px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
}

.mobile-menu-inner a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Page header / hero */
.page-header {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  color: #ffffff;
  padding: 72px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.12),
    transparent 55%
  );
  opacity: 0.6;
}

.page-header h1 {
  position: relative;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  margin-bottom: 14px;
  text-shadow: 2px 2px 6px rgba(15, 23, 42, 0.35);
  z-index: 1;
}

.page-header p {
  position: relative;
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.96;
  z-index: 1;
}

.float-animation {
  position: relative;
  font-size: 3.5rem;
  margin-bottom: 12px;
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}

/* Calculator container */
.calculator-container {
  max-width: 1400px;
  margin: -60px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.calculator-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 32px 36px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #9333ea;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2933;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 3px solid #9333ea;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-label {
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 6px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.input-field,
.select-field {
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  font-size: 0.98rem;
  font-weight: 600;
  outline: none;
  transition: all 0.25s ease;
}

.input-field:focus,
.select-field:focus {
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.16);
}

/* Summary cards */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.summary-box {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  padding: 20px 18px 22px;
  border-radius: 18px;
  border-left: 5px solid #9333ea;
  transition: all 0.25s ease;
}

.summary-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(147, 51, 234, 0.35);
}

.summary-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.summary-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: #0f172a;
}

.summary-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 4px;
}

/* Chart */
.chart-container {
  background: #f9fafb;
  padding: 22px 20px;
  border-radius: 18px;
  margin-top: 12px;
}

.chart-bar {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  gap: 10px;
}

.chart-label {
  width: 180px;
  font-weight: 600;
  color: #4b5563;
  font-size: 0.9rem;
}

.chart-bar-fill {
  flex: 1;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, #9333ea 0%, #7e22ce 100%);
  display: flex;
  align-items: center;
  padding: 0 11px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.chart-bar-growth {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.chart-bar-inflation {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

/* Table */
.projection-section {
  margin-top: 26px;
}

.projection-wrapper {
  overflow-x: auto;
}

.projection-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.projection-table th {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  color: #ffffff;
  padding: 10px;
  text-align: left;
  font-weight: 600;
}

.projection-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.projection-table tr:nth-child(even) {
  background: #f9fafb;
}

.projection-table tr:hover {
  background: #eef2ff;
}

/* Download buttons */
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.download-btn {
  flex: 1;
  min-width: 180px;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(147, 51, 234, 0.45);
}

/* Blog section */
.blog-section {
  max-width: 980px;
  margin: 80px auto 40px;
  padding: 0 20px;
}

.blog-content {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 32px 44px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.18);
  line-height: 1.8;
}

.blog-content h2 {
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 26px;
  margin-bottom: 10px;
  color: #1f2933;
}

.blog-content p {
  font-size: 0.98rem;
  color: #4b5563;
  margin-bottom: 14px;
}

.blog-content ul {
  margin: 0 0 14px 24px;
  color: #4b5563;
}

.blog-content li {
  margin-bottom: 6px;
}

.blog-content a {
  color: #7c3aed;
  text-decoration: underline;
}

.blog-content a:hover {
  color: #5b21b6;
}

/* FAQ section */
.faq-section {
  max-width: 980px;
  margin: 10px auto 80px;
  padding: 0 20px;
}

.faq-inner {
  background: #f9fafb;
  border-radius: 24px;
  padding: 32px 28px 34px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
}

.faq-inner h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: #111827;
}

.faq-item + .faq-item {
  margin-top: 16px;
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1f2933;
}

.faq-item p {
  font-size: 0.95rem;
  color: #4b5563;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1f2937 0%, #020617 100%);
  color: #e5e7eb;
  padding: 56px 0 24px;
  margin-top: 40px;
}

.footer-column h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #cbd5f5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-text {
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.6;
}

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

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.footer-column a:hover {
  color: #a855f7;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  margin-top: 32px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .calculator-card {
    padding: 24px 20px 26px;
  }

  .blog-content {
    padding: 28px 20px 32px;
  }

  .faq-inner {
    padding: 26px 20px 30px;
  }
}

@media (max-width: 640px) {
  .page-header {
    padding: 60px 18px 64px;
  }

  .page-header h1 {
    font-size: 1.9rem;
  }

  .page-header p {
    font-size: 0.98rem;
  }

  .chart-label {
    width: 140px;
    font-size: 0.85rem;
  }

  .download-buttons {
    flex-direction: column;
  }

  .projection-table {
    font-size: 0.8rem;
  }
}
