:root {
  /* Colors */
  --color-primary: #252234; /* Dark Navy */
  --color-teal: #043b44; /* Dark Teal */
  --color-teal-dark: #032b31; 
  --color-lime: #B5DA58; /* Vibrant Green */
  --color-lime-hover: #a1c646;
  --color-peach: #FE8F66; /* Vibrant Orange */
  --color-lavender: #996EFD; /* Purple */
  --color-yellow: #FBE25F;
  --color-white: #ffffff;
  --color-light: #f5f6f8;
  --color-gray: #cbd5e1;
  --color-gray-dark: #64748b;
  --color-text: #334155;
  --color-danger: #ef4444;
  --color-success: #10b981;
  
  /* Typography */
  --font-heading: 'Satoshi', 'Outfit', sans-serif;
  --font-body: 'Outfit', 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: var(--color-teal);
  transition: color 0.2s;
}

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

.section-padding {
  padding: 5rem 0;
}

.bg-light { background-color: var(--color-light); }
.bg-dark { background-color: var(--color-primary); color: var(--color-white); }
.text-lime { color: var(--color-lime); }
.text-danger { color: var(--color-danger); font-weight: 600; }
.text-muted { color: var(--color-gray-dark); }
.text-center { text-align: center; }

/* Navigation */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
}

.site-nav.nav-dark {
  position: relative;
  background-color: var(--color-teal);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 1rem;
}

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

.burger-menu {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--color-teal);
  color: var(--color-white);
  padding: 8rem 0 5rem 0;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(181, 218, 88, 0.15) 0%, rgba(4, 59, 68, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  max-width: 550px;
  padding-top: 2rem;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
}

.trust-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-lime);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(181, 218, 88, 0.3);
}

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-text strong {
  color: var(--color-white);
  font-size: 1rem;
}

.trust-text span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* App Wrapper (Form & Results) */
.hero-app-wrapper {
  flex: 1;
  width: 100%;
  max-width: 550px;
  background: var(--color-white);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  color: var(--color-primary);
}

.panel-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.panel-header p {
  color: var(--color-gray-dark);
  margin-bottom: 2rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

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

.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-gray);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;
  background: #fff;
}

.input-group:focus-within {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 2px rgba(4, 59, 68, 0.1);
}

.input-prefix, .input-suffix {
  background: var(--color-light);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 600;
  border-right: 1px solid var(--color-gray);
}

.input-suffix {
  border-right: none;
  border-left: 1px solid var(--color-gray);
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-gray);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  outline: none;
  background: #fff;
  transition: all 0.2s;
}

.input-group input {
  border: none;
  border-radius: 0;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 2px rgba(4, 59, 68, 0.1);
}

.input-group:focus-within {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 2px rgba(4, 59, 68, 0.1);
}

/* Radio Groups */
.radio-box-group {
  display: flex;
  gap: 0.5rem;
}

.radio-box {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.radio-box input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0.5rem;
  border: 1px solid var(--color-gray);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gray-dark);
  transition: all 0.2s;
  background: #fff;
  white-space: nowrap;
}

.radio-box input:checked + .radio-content {
  background: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}

/* Smaller Radio for Results Toggle */
.radio-sm .radio-content {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: 20px;
}

/* Button */
.btn-primary {
  width: 100%;
  padding: 1.2rem;
  border: none;
  border-radius: 12px;
  background: var(--color-lime);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

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

.btn-secondary {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  background: var(--color-teal);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-secondary:hover {
  background: var(--color-teal-dark);
}

/* Results Panel Styling */
.results-header-container {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-gray);
  padding-bottom: 1.5rem;
}

.btn-round-back {
  background: var(--color-light);
  color: var(--color-primary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-round-back:hover {
  background: var(--color-gray);
}

.results-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.results-header {
  font-size: 1.5rem;
}

.results-summary-text {
  color: var(--color-gray-dark);
  font-size: 0.95rem;
}

/* Scenarios Grid Layout in Wrapper */
/* We stack them because the wrapper is max 550px */
.scenarios-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scenario-card {
  border: 1px solid var(--color-gray);
  border-radius: 12px;
  padding: 1.25rem;
  background: #fff;
  transition: 0.2s;
}

.scenario-card.optimal {
  border: 2px solid var(--color-lime);
  background: rgba(181, 218, 88, 0.05);
}

.scenario-header h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.scenario-header .tooltip {
  margin-left: 0.5rem;
  font-size: 0.9rem;
  cursor: help;
  opacity: 0.6;
}

.data-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.data-row span:last-child {
  font-weight: 600;
  color: var(--color-primary);
}

.data-row.total {
  flex-direction: column;
  margin-bottom: 0;
}
.data-row.total span:first-child {
  font-size: 0.85rem;
  color: var(--color-gray-dark);
}
.big-number {
  font-size: 1.6rem !important;
  color: var(--color-primary) !important;
  font-family: var(--font-heading);
}

.tax-leakage {
  font-size: 0.85rem;
  color: var(--color-gray-dark);
}

.btn-toggle-details {
  background: none;
  border: none;
  color: var(--color-teal);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 1rem;
  width: 100%;
  text-align: left;
}

.scenario-details {
  display: none;
}
.scenario-details.expanded {
  display: block;
}

.divider {
  height: 1px;
  background: var(--color-gray);
  margin: 1rem 0;
}

.scenario-details h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-gray-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

/* Strategy Tuning Panel */
.strategy-tuning {
  margin-top: 1.5rem;
  background: var(--color-primary);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
}

.tuning-header h3 {
  color: var(--color-lime);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.tuning-header p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.slider-group {
  margin-bottom: 1.5rem;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.slider-val {
  color: var(--color-lime);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--color-lime);
}

.tuning-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
}

.tuning-stats span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.tuning-stats strong {
  font-size: 1.2rem;
  color: var(--color-lime);
  margin-left: 0.5rem;
}

/* Alerts */
.alert {
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.alert.warning {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.alert.danger-alert {
  background: #fee2e2;
  color: #b91c1c;
}

.alert.success {
  background: #d1fae5;
  color: #047857;
}

.trap-badge {
  background: #fee2e2;
  color: #b91c1c;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Whats Changing Section */
.section-header {
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.comparison-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.comparison-table th, .comparison-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-gray);
}

.comparison-table th {
  background: var(--color-primary);
  color: white;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Key Strategies */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  border: 1px solid var(--color-gray);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.bg-lavender { background: var(--color-lavender); }
.bg-lime { background: var(--color-lime); }
.bg-peach { background: var(--color-peach); }

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Knowledge Hub */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.article-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
  color: white;
}

.article-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-lime);
}

.article-content {
  padding: 2rem;
}

.tag {
  background: var(--color-lime);
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}

.article-card h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.article-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.read-more {
  color: var(--color-lime);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--color-light);
  padding: 5rem 0 2rem 0;
  border-top: 1px solid var(--color-gray);
}

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

.footer-brand .logo {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.footer-desc {
  color: var(--color-gray-dark);
  max-width: 300px;
}

.footer-links h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-gray-dark);
}

.footer-links a:hover {
  color: var(--color-teal);
}

.footer-disclaimer {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--color-gray-dark);
  margin-bottom: 3rem;
  border: 1px solid var(--color-gray);
}

.disclaimer-icon {
  font-size: 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-gray);
  color: var(--color-gray-dark);
  font-size: 0.9rem;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

/* FAQ Section */
.faq-section {
  background-color: var(--color-white);
}

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

.faq-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  border: 1px solid var(--color-gray);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--color-white);
}

.faq-item:hover {
  border-color: var(--color-teal);
  box-shadow: 0 4px 12px rgba(4, 59, 68, 0.05);
}

.faq-item summary {
  padding: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-teal);
  transition: transform 0.3s ease;
}

.faq-item[open] {
  border-color: var(--color-teal);
  background: rgba(4, 59, 68, 0.02);
}

.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--color-text);
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: 1rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
  }
  .hero-content {
    max-width: 100%;
    padding-top: 0;
  }
  .hero-app-wrapper {
    max-width: 100%;
  }
  .grid-3, .article-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }
  .hero-section {
    padding: 6rem 0 3rem 0;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .burger-menu {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-teal-dark);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    display: none;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
  }
  .nav-links.active {
    display: flex;
  }
  .hero-app-wrapper {
    padding: 1.5rem;
  }
  .results-header-container {
    flex-direction: column;
  }
  .results-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
  .comparison-table th, .comparison-table td {
    padding: 1rem;
    font-size: 1rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .radio-box-group {
    flex-direction: column;
  }
  .radio-sm .radio-box-group {
    flex-direction: row; /* keep small toggle horizontal if possible, or leave column */
  }
  .radio-sm .radio-content {
    padding: 0.8rem;
  }
  .hero-trust {
    gap: 1rem;
  }
  .trust-badge-top {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Reveal Animations */
.reveal-container {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.4s ease-out, margin 0.4s ease-out;
  margin-bottom: 0;
}

.reveal-container.show {
  max-height: 200px;
  opacity: 1;
  margin-bottom: 1.5rem;
}
