:root {
  --bg: #0d0d0d;
  --card: #1a1a1a;
  --card-2: #242424;
  --surface: #2a2a2a;
  --gold: #f4b942;
  --gold-light: #ffd27f;
  --gold-dark: #d4951a;
  --text-primary: #ffffff;
  --text-secondary: #9e9e9e;
  --border: rgba(255, 210, 127, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top center, rgba(244, 185, 66, 0.08), transparent 38%),
    linear-gradient(180deg, #121212 0%, var(--bg) 22%, #090909 100%);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

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

button,
input {
  font: inherit;
}

.page-shell {
  width: min(100%, 600px);
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.section {
  margin-top: 28px;
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(36, 36, 36, 0.92), rgba(26, 26, 26, 0.96));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.02), transparent 38%);
  pointer-events: none;
}

.hero {
  margin-top: 0;
  padding-top: 32px;
  padding-bottom: 32px;
}

.hero-visual {
  position: relative;
  width: 100%;
  min-height: 240px;
  aspect-ratio: 1.2 / 1;
  margin-bottom: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(244, 185, 66, 0.1), rgba(244, 185, 66, 0.03));
  border: 1px solid rgba(255, 210, 127, 0.18);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(244, 185, 66, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 68% center;
  transform: scale(1.02);
  filter: saturate(0.92) contrast(1.03) brightness(0.9);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.18)),
    linear-gradient(90deg, rgba(9, 9, 9, 0.18) 0%, rgba(9, 9, 9, 0.04) 42%, rgba(9, 9, 9, 0.06) 100%),
    radial-gradient(circle at 82% 18%, rgba(244, 185, 66, 0.18), transparent 34%);
  z-index: 1;
  pointer-events: none;
}

.hero-visual::after {
  content: "";
  position: absolute;
  top: -28%;
  left: -18%;
  width: 24%;
  height: 140%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: rotate(25deg);
  animation: shine 4.8s ease-in-out infinite;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 8vw, 3.65rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.65rem, 6vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.hero-copy,
.body-copy,
.calculator-note {
  color: var(--text-secondary);
  font-size: 1rem;
  text-wrap: pretty;
}

.hero-copy {
  margin-top: 18px;
  max-width: 30rem;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.store-button {
  flex: 1 1 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--bg);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: transform 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
  box-shadow: 0 14px 30px rgba(244, 185, 66, 0.16);
}

.store-button:hover,
.store-button:focus-visible {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(244, 185, 66, 0.22);
}

.store-button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.store-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
}

.store-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.section-heading {
  display: grid;
  gap: 10px;
}

.calculator-panel {
  margin-top: 24px;
  display: grid;
  gap: 20px;
}

.calculator-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 10px;
}

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-label,
output {
  font-size: 0.95rem;
  font-weight: 600;
}

output {
  color: var(--gold-light);
  text-align: right;
}

.price-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  min-height: 60px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--surface);
}

.currency {
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 700;
}

.price-input input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.15rem;
}

.price-input input::-webkit-outer-spin-button,
.price-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.price-input input[type="number"] {
  -moz-appearance: textfield;
}

input[type="range"] {
  width: 100%;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) var(--range-progress, 21%), var(--surface) var(--range-progress, 21%));
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 3px solid var(--gold-dark);
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 6px rgba(244, 185, 66, 0.1);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 3px solid var(--gold-dark);
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 6px rgba(244, 185, 66, 0.1);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.result-card,
.feature-card {
  padding: 18px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(42, 42, 42, 0.92), rgba(26, 26, 26, 0.96));
  border: 1px solid rgba(255, 210, 127, 0.12);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.result-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(244, 185, 66, 0);
}

.result-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% -10%;
  height: 70%;
  background: radial-gradient(circle, rgba(244, 185, 66, 0.16), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.result-card:hover,
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 210, 127, 0.24);
}

.result-card:hover {
  box-shadow: 0 0 30px rgba(244, 185, 66, 0.08);
}

.result-label {
  color: var(--text-secondary);
  font-size: 0.87rem;
  line-height: 1.35;
  text-wrap: balance;
}

.result-value {
  margin-top: 12px;
  color: var(--text-primary);
  font-size: clamp(1.45rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.calculator-note {
  margin-top: 22px;
  text-align: center;
}

.body-copy {
  margin-top: 18px;
}

.feature-grid {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.feature-card {
  display: grid;
  gap: 10px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(244, 185, 66, 0.1);
  color: var(--gold-light);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.feature-card h3 {
  text-wrap: balance;
}

.cta {
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes shine {
  0%,
  100% {
    transform: translateX(-140%) rotate(25deg);
    opacity: 0;
  }
  22% {
    opacity: 0;
  }
  42% {
    transform: translateX(320%) rotate(25deg);
    opacity: 1;
  }
  52% {
    opacity: 0;
  }
}

@media (min-width: 640px) {
  .page-shell {
    padding: 40px 20px 88px;
  }

  .section,
  .hero {
    padding: 34px 28px;
  }

  .hero-visual {
    min-height: 300px;
    aspect-ratio: 1.45 / 1;
    margin-bottom: 28px;
  }

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

@media (max-width: 420px) {
  .hero-visual {
    min-height: 220px;
    aspect-ratio: 1.05 / 1;
    border-radius: 22px;
  }

  .hero-visual img {
    object-position: 70% center;
  }

  .store-button {
    font-size: 15px;
    padding: 14px 18px;
  }

  .field-head {
    align-items: start;
  }

  output {
    max-width: 46%;
    font-size: 0.9rem;
  }

  .result-label {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
