/* Basic Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background: #f1f5f9;
}

/* Layout */
.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section.alt {
  background: #e2e8f0;
}

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

.section-intro {
  max-width: 640px;
  color: #475569;
  margin-bottom: 2rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15,23,42,0.92);
  backdrop-filter: blur(10px);
  color: #e2e8f0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

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

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #f8fafc;
  font-size: 0.9rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-tagline {
  font-size: 0.75rem;
  color: #cbd5f5;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: #cbd5f5;
  text-decoration: none;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #22c55e, #a3e635);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ecfdf3;
  box-shadow: 0 8px 20px rgba(22,163,74,0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(22,163,74,0.45);
}

.btn-secondary {
  background: rgba(15,23,42,0.06);
  color: #0f172a;
}

.btn-outline {
  border: 1px solid rgba(148,163,184,0.6);
  background: transparent;
  color: #e2e8f0;
}

.btn-outline:hover {
  background: rgba(148,163,184,0.15);
}

.btn-full {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #e2e8f0;
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  background: radial-gradient(circle at top left, #e0f2fe, #f1f5f9);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
  color: #0f172a;
}

.hero p {
  color: #475569;
  margin-bottom: 1.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.hero-badges div {
  padding: 0.7rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 6px 16px rgba(15,23,42,0.06);
}

.hero-badges strong {
  display: block;
  font-size: 0.95rem;
}

.hero-badges span {
  font-size: 0.8rem;
  color: #64748b;
}

.hero-disclaimer {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Hero card / calculator */
.hero-card {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(15,23,42,0.6);
}

.hero-card h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.calculator-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.calculator-form input[type="range"] {
  width: 100%;
  margin: 0.35rem 0;
}

.calculator-form input[type="number"] {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.7);
  color: #e5e7eb;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #9ca3af;
}

.calculator-result {
  margin-top: 1.25rem;
  padding: 0.75rem;
  border-radius: 0.9rem;
  background: rgba(15,23,42,0.85);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  font-size: 0.8rem;
}

.calculator-result span {
  color: #9ca3af;
}

.calculator-result strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.95rem;
}

.calculator-note {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: #9ca3af;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.highlight-box {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 16px 30px rgba(15,23,42,0.35);
}

.highlight-box h3 {
  margin-bottom: 0.75rem;
}

.icon-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.icon-list li::before {
  content: "•";
  color: #22c55e;
  margin-right: 0.5rem;
}

/* Lists */
.check-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.check-list li::before {
  content: "✓";
  color: #16a34a;
  margin-right: 0.4rem;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  background: #f8fafc;
  border-radius: 1rem;
  padding: 1.2rem;
  position: relative;
  box-shadow: 0 10px 18px rgba(15,23,42,0.08);
}

.step-number {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #e0f2fe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0369a1;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.step-card p {
  font-size: 0.9rem;
  color: #475569;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.feature-card {
  background: #f8fafc;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 18px rgba(15,23,42,0.06);
}

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

.feature-card p {
  font-size: 0.9rem;
  color: #475569;
}

/* Fees table */
.table-wrapper {
  margin-top: 1.5rem;
  overflow-x: auto;
}

.charges-table {
  width: 100%;
  border-collapse: collapse;
  background: #f8fafc;
  border-radius: 1rem;
  overflow: hidden;
  font-size: 0.9rem;
}

.charges-table th,
.charges-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.charges-table th {
  text-align: left;
  background: #0f172a;
  color: #e5e7eb;
}

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

/* Apply section */
.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.apply-form {
  background: #0f172a;
  color: #e5e7eb;
  padding: 1.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 20px 30px rgba(15,23,42,0.5);
}

.apply-form h3 {
  margin-bottom: 1rem;
}

.apply-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.apply-form input {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.85);
  color: #e5e7eb;
}

.apply-form input::placeholder {
  color: #9ca3af;
}

.form-note {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  color: #9ca3af;
}

/* FAQs */
.faq-list {
  margin-top: 1.5rem;
  border-radius: 1rem;
  background: #f8fafc;
  box-shadow: 0 10px 20px rgba(15,23,42,0.06);
  overflow: hidden;
}

.faq-item + .faq-item {
  border-top: 1px solid #e2e8f0;
}

.faq-question {
  width: 100%;
  padding: 0.9rem 1rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: left;
}

.faq-icon {
  margin-left: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #6b7280;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  font-size: 0.9rem;
  color: #4b5563;
  transition: max-height 0.2s ease;
}

.faq-answer p {
  padding-bottom: 0.75rem;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

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

/* Footer */
.site-footer {
  background: #020617;
  color: #cbd5f5;
  margin-top: 2rem;
  padding-top: 2.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148,163,184,0.35);
}

.footer-text {
  margin-top: 0.75rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  font-size: 0.85rem;
}

.footer-links h4 {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.footer-links ul {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.footer-links a {
  color: #e2e8f0;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding: 1rem 0 1.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-small {
  max-width: 820px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .two-col,
  .steps-grid,
  .features-grid,
  .apply-grid,
  .footer-inner,
  .footer-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    justify-content: space-between;
  }

  .main-nav,
  .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav.active {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #020617;
    padding: 0.75rem 1rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-badges {
    grid-template-columns: minmax(0, 1fr);
  }

  .calculator-result {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }

  .hero-card {
    padding: 1.25rem;
  }
}
