/* Variables & Reset */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --font-main: 'Inter', sans-serif;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); color: var(--text); background: var(--secondary); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container { max-width: 1000px; margin: 0 auto; padding: 0 1rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem 0; position: sticky; top: 0; z-index: 10; box-shadow: var(--shadow); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo a { font-size: 1.5rem; font-weight: 700; color: var(--text); text-decoration: none; }
.main-nav ul { list-style: none; display: flex; gap: 1.5rem; }
.main-nav a { color: var(--text); font-weight: 500; }
.main-nav a:hover { color: var(--primary); text-decoration: none; }

/* Typography */
h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.subtitle { font-size: 1.25rem; color: var(--text-light); }
.intro { font-size: 1.1rem; color: var(--text-light); }

/* Main Content */
.main-content { padding: 3rem 0; min-height: 70vh; }

/* Images & Banner */
.hero-banner {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    overflow: hidden;
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}
.hero-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}
.hero-banner-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero-banner-content .subtitle {
    color: #f1f5f9;
    font-size: 1.25rem;
}

.content-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}
.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}
.image-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Simulator Form */
.simulator-section { margin-bottom: 3rem; }
.simulator-card { background: var(--bg); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.simulator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-weight: 500; font-size: 0.95rem; }
.form-group input, .form-group select { padding: 0.75rem; border: 1px solid var(--border); border-radius: 4px; font-size: 1rem; font-family: var(--font-main); }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.2); }
.btn-primary { grid-column: 1 / -1; background: var(--primary); color: white; border: none; padding: 1rem; font-size: 1.1rem; font-weight: 600; border-radius: var(--radius); cursor: pointer; transition: background 0.2s; }
.btn-primary:hover { background: var(--primary-hover); }

/* Results */
.results-container { margin-top: 2rem; padding-top: 2rem; border-top: 2px solid var(--border); }
.results-container.hidden { display: none; }
.result-highlight { text-align: center; margin-bottom: 2rem; }
.result-highlight .amount { font-size: 3rem; font-weight: 700; color: var(--primary); line-height: 1; margin: 0.5rem 0; }
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.875rem; font-weight: 600; }
.badge.success { background: #d1fae5; color: #065f46; }
.badge.warning { background: #fef3c7; color: #92400e; }
.badge.danger { background: #fee2e2; color: #991b1b; }

.results-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; background: var(--secondary); padding: 1.5rem; border-radius: var(--radius); }
.detail-item { display: flex; justify-content: space-between; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.detail-item:last-child { border-bottom: none; padding-bottom: 0; }

.warning-box { margin-top: 1rem; padding: 1rem; background: #fee2e2; color: #991b1b; border-radius: var(--radius); font-weight: 500; text-align: center; }

/* Grids & Cards */
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.card { background: var(--bg); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.clean-list { list-style: none; }
.clean-list li { margin-bottom: 0.5rem; }
.clean-list a { display: block; padding: 0.5rem; background: var(--secondary); border-radius: 4px; border: 1px solid var(--border); transition: all 0.2s; }
.clean-list a:hover { background: var(--primary); color: white; text-decoration: none; border-color: var(--primary); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card { background: white; border: 1px solid var(--border); padding: 1.5rem; text-align: center; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-label { display: block; color: var(--text-light); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.stat-value { display: block; font-size: 2rem; font-weight: 700; color: var(--primary); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.faq-item summary { font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 1.5rem; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 1.2rem; line-height: 1; }
.faq-item[open] summary::after { content: '-'; }
.faq-answer { margin-top: 1rem; color: var(--text-light); padding-top: 1rem; border-top: 1px solid var(--border); }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.9rem; margin-bottom: 2rem; color: var(--text-light); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; }
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { margin: 0 0.5rem; color: #cbd5e1; }

/* Internal Links */
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: 1rem; }
.card-link { display: block; padding: 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 500; transition: all 0.2s; }
.card-link:hover { border-color: var(--primary); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-2px); }

/* Footer */
.site-footer { background: #0f172a; color: #f8fafc; padding: 4rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.footer-col h3 { font-size: 1.2rem; margin-bottom: 1rem; color: white; }
.footer-col ul { list-style: none; }
.footer-col a { color: #94a3b8; }
.footer-col a:hover { color: white; text-decoration: none; }
.footer-bottom { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #1e293b; text-align: center; color: #64748b; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 768px) {
  .simulator-grid { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: 1fr; }
  .results-details { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .main-nav ul { gap: 1rem; font-size: 0.9rem; }
  .hero-banner { height: 300px; margin-top: 0; border-radius: 0; }
  .hero-banner-content h1 { font-size: 2rem; }
  .image-grid { grid-template-columns: 1fr; }
}
