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

:root {
  --bg:        #0f1117;
  --bg-alt:    #14171f;
  --surface:   #1c2030;
  --border:    #2a2f42;
  --accent:    #6c63ff;
  --accent-lt: #8b84ff;
  --text:      #e4e7f0;
  --muted:     #7d85a0;
  --success:   #34d399;
  --radius:    12px;
  --font:      'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* ── Nav ──────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ── Hero ─────────────────────────────────────────── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 24px 72px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.accent { color: var(--accent-lt); }

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 36px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  color: var(--accent-lt);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.badge:hover { background: var(--accent); color: #fff; }

.badge-dim {
  border-color: var(--border);
  color: var(--muted);
}

.badge-dim:hover { background: var(--border); color: var(--text); }

.soon {
  font-size: 0.7rem;
  background: var(--border);
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 999px;
}

/* ── Sections ─────────────────────────────────────── */
.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--bg-alt);
}

.section > *,
.section .card {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 36px;
  max-width: 560px;
}

/* ── Card ─────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Form elements ────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.currency {
  color: var(--muted);
  font-weight: 400;
}

.field input[type="number"] {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  -moz-appearance: textfield;
}

.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

.field input[type="number"]:focus {
  border-color: var(--accent);
}

/* ── Button ───────────────────────────────────────── */
.btn {
  align-self: flex-start;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover { background: var(--accent-lt); }
.btn:active { transform: scale(0.97); }

/* ── Result box ───────────────────────────────────── */
.result {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.result-row:last-child { border-bottom: none; }

.result-total {
  background: rgba(108, 99, 255, 0.08);
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.result-total span:last-child {
  color: var(--accent-lt);
}

/* ── Tabs ─────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}

.tab {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  transition: background 0.2s, color 0.2s;
}

.tab + .tab {
  border-left: 1.5px solid var(--border);
}

.tab.active {
  background: var(--accent);
  color: #fff;
}

.tab:not(.active):hover {
  background: var(--border);
  color: var(--text);
}

/* ── Tab panels ───────────────────────────────────── */
.tab-panel { display: flex; flex-direction: column; gap: 16px; }
.tab-panel.hidden { display: none; }

.panel-hint {
  font-size: 0.9rem;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
}

.estimate-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Checkbox cards ───────────────────────────────── */
.check-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.check-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.check-card:hover {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.05);
}

.check-card input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.check-card div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.check-card strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.check-card span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* selected state */
.check-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.08);
}

/* ── Select ───────────────────────────────────────── */
select {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  padding: 10px 14px;
  outline: none;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237d85a0' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

select:focus { border-color: var(--accent); }

/* ── Slider ───────────────────────────────────────── */
.slider-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.slider-field strong {
  color: var(--accent-lt);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: pointer;
  transition: background 0.2s;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  cursor: pointer;
}

.slider-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Footer ───────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.8rem; }

  .hero { padding: 64px 20px 48px; }

  .card { padding: 24px 18px; }

  .form-grid { grid-template-columns: 1fr; }

  .tabs { width: 100%; }
  .tab { flex: 1; text-align: center; }

  .check-group { grid-template-columns: 1fr; }

  .btn { width: 100%; text-align: center; }
}
