/* ===========================
   DESIGN TOKENS
=========================== */
:root {
  --bg-black: #080808;
  --bg-dark: #0d0d0d;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --bg-input: #1a1a1a;
  --border: rgba(255, 255, 255, 0.07);
  --border-active: rgba(201, 168, 76, 0.5);

  --gold: #C9A84C;
  --gold-light: #E2C470;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --gold-glow: rgba(201, 168, 76, 0.25);

  --text-primary: #F0EDE8;
  --text-secondary: #8A8784;
  --text-muted: #555450;

  --gradient-gold: linear-gradient(135deg, #C9A84C 0%, #E2C470 50%, #C9A84C 100%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-gold: 0 0 30px rgba(201, 168, 76, 0.2);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Thumb size — update both CSS and JS if changed */
  --thumb-size: 22px;
}

/* ===========================
   RESET & BASE
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===========================
   UTILITY
=========================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   SECTION COMMONS
=========================== */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-tag {
  display: inline-block;
  align-self: center;
  width: fit-content;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* ===========================
   SIMULATOR SECTION
=========================== */
.simulator-section {
  padding: 60px 0 40px;
  background: var(--bg-dark);
}

.simulator-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

/* Sliders Grid */
.sliders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 24px;
}

.slider-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slider-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.slider-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: default;
}

.label-icon {
  width: 15px;
  height: 15px;
  stroke: var(--gold);
  flex-shrink: 0;
}

.slider-value-display {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(201, 168, 76, 0.07);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.currency-prefix,
.currency-suffix {
  font-size: 15px;
  color: var(--gold-light);
  font-weight: 400;
  white-space: nowrap;
}

.value-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--gold-light);
  font-size: 15px;
  font-weight: 400;
  font-family: inherit;
  width: 90px;
  text-align: right;
  caret-color: var(--gold);
}

/* ─── SLIDER ─────────────────────────────────────────── */

.slider-wrapper {
  /* Extra vertical space so the thumb (22px tall) has room and renders correctly */
  padding: 8px 0;
}

.custom-slider {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  /* Initial filled gradient — updated live by JS */
  background: rgba(255, 255, 255, 0.07);
}

/* ── WebKit thumb (Chrome / Safari / Edge) ── */
.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  background: var(--gradient-gold);
  border: 2px solid #0d0d0d;
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.18), 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  /* Vertically centred on the 4px track — no extra offset needed */
}

.custom-slider::-webkit-slider-thumb:hover,
.custom-slider:active::-webkit-slider-thumb {
  box-shadow: 0 0 0 8px rgba(201, 168, 76, 0.22), 0 2px 10px rgba(0, 0, 0, 0.6);
  transform: scale(1.08);
}

/* ── Firefox thumb ── */
.custom-slider::-moz-range-thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  background: var(--gradient-gold);
  border: 2px solid #0d0d0d;
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.18);
  cursor: pointer;
}

/* ── Firefox track ── */
.custom-slider::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: transparent;
  /* gradient is applied via JS to the element itself */
}

.slider-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: -4px;
}

/* ─── Taxa info ─────────────────────────────────────── */
.taxa-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.taxa-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: var(--text-muted);
}

.taxa-info strong {
  color: var(--text-secondary);
}

/* ─── Result Box ────────────────────────────────────── */
.result-box {
  padding: 32px 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

.result-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.result-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.result-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.result-value {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.result-value.highlight {
  font-size: 26px;
  font-weight: 600;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-arrow {
  color: var(--text-muted);
  margin-top: 14px;
  display: flex;
  align-items: center;
}

.result-arrow i {
  width: 18px;
  height: 18px;
}

@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes border-spin {
  to {
    --border-angle: 360deg;
  }
}

.result-economy {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid transparent;
  padding: 18px 24px;
  border-radius: 12px;
  margin-top: 24px;
}

.result-economy::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--border-angle), rgba(74, 222, 128, 0.25) 50%, #4ade80 90%, rgba(74, 222, 128, 0.25) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: border-spin 3s linear infinite;
}

.economy-icon-svg {
  width: 24px;
  height: 24px;
  stroke: #4ade80;
  flex-shrink: 0;
}

.economy-text {
  font-size: 15px;
  color: #f8fafc;
  font-weight: 500;
}

.economy-text strong {
  color: #4ade80;
  font-size: 17px;
  font-weight: 700;
}

/* ===========================
   HOW IT WORKS
=========================== */
.how-section {
  padding: 100px 0;
  background: var(--bg-black);
}

.steps-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.step-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.step-card:hover::before {
  opacity: 1;
}

.step-connector {
  flex-shrink: 0;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-connector::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.step-number {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 16px;
  background: var(--gold-dim);
  border: 1px solid rgba(201, 168, 76, 0.15);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
}

.step-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step-lucide {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===========================
   LEAD SECTION
=========================== */
.lead-section {
  padding: 40px 0;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.lead-glow {
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.lead-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.lead-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lead-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.lead-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.lead-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.lead-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.benefit-icon {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  flex-shrink: 0;
}

/* Form Card */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.simulation-summary {
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 24px;
}

.sim-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.sim-values {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sim-val-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sim-val-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.sim-val-number {
  font-size: 15px;
  font-weight: 400;
  color: var(--gold-light);
}

.sim-val-sep {
  color: var(--text-muted);
  font-size: 18px;
  margin-top: 8px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--border-active);
  background: rgba(201, 168, 76, 0.04);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.input-with-flag {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.input-with-flag:focus-within {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08);
}

.flag-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.input-with-flag .form-input {
  border: none;
  border-radius: 0;
  flex: 1;
}

.input-with-flag .form-input:focus {
  box-shadow: none;
}

.form-error {
  font-size: 12px;
  color: #f87171;
  margin-top: 6px;
  display: none;
}

.form-error.visible {
  display: block;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(1, 189, 36, 0.6);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(1, 189, 36, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(1, 189, 36, 0);
  }
}

.btn-whatsapp {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #01BD24;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  margin-bottom: 12px;
  letter-spacing: 0.2px;
  animation: pulse-whatsapp 2s infinite;
}

.btn-whatsapp:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  animation: none;
}

.btn-whatsapp:active {
  transform: translateY(0);
}

.form-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
}

.privacy-icon {
  width: 12px;
  height: 12px;
  stroke: var(--text-muted);
  flex-shrink: 0;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: #060606;
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .sliders-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .steps-grid {
    flex-direction: column;
    gap: 0;
  }

  .step-connector {
    width: auto;
    height: 32px;
  }

  .step-connector::after {
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--gold), transparent);
    margin: auto;
  }

  .lead-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .simulator-card {
    padding: 24px 20px;
  }


}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .lead-left {
    text-align: center;
    align-items: center;
  }

  .simulator-section {
    padding-top: 40px;
  }

  .simulator-card,
  .form-card {
    padding: 24px 16px;
  }



  .result-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .result-arrow {
    display: none;
  }

  .result-value {
    font-size: 15px;
  }

  .result-value.highlight {
    font-size: 17px;
  }

  .result-label {
    font-size: 9px;
  }

  .result-economy {
    flex-direction: row;
    text-align: left;
    padding: 16px;
  }

  .sim-values {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .sim-val-sep {
    display: none;
  }
}