:root {
  --bg: #040c1a;
  --card: rgba(12, 22, 41, 0.9);
  --accent: #5be0b3;
  --accent-dark: #21c791;
  --text: #f5f7fb;
  --muted: rgba(245, 247, 251, 0.7);
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  margin: 0;
  background: #02060f;
  color: var(--text);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

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

.hero {
  position: relative;
  min-height: 80vh;
  padding: 2rem clamp(1rem, 5vw, 4rem) 4rem;
  background: url('home.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(2, 6, 15, 0.9), rgba(4, 12, 26, 0.6));
  backdrop-filter: blur(2px);
  z-index: 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.nav__cta {
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #031014;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav__cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.hero__body {
  position: relative;
  z-index: 1;
  margin-top: clamp(2rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero__content h1 {
  font-size: clamp(2.5rem, 9vw, 4.75rem);
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #031014;
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.hero__visual {
  display: grid;
  place-items: center;
}

.phone-frame {
  width: clamp(220px, 40vw, 320px);
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  padding: 1.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  filter: saturate(1.05);
}

.phone-notch {
  position: absolute;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

main {
  padding: clamp(2rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  gap: 3rem;
  background: linear-gradient(180deg, #02060f, #030b17);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  padding: 1.75rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.calculator {
  background: #071226;
  border-radius: 32px;
  padding: clamp(1.5rem, 5vw, 3rem);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: center;
}

.calc-widget label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.calc-widget input[type='range'] {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.calc-widget input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 18px rgba(91, 224, 179, 0.4);
}

.calc-widget input[type='range']::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.calc-widget__values {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-weight: 600;
}

.profit-tag {
  background: rgba(91, 224, 179, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: var(--accent);
}

.calc-widget__hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.download {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
  gap: 2rem;
}

.download-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

footer {
  padding: 2rem clamp(1rem, 5vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  background: #010308;
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--muted);
}

@media (max-width: 600px) {
  .nav__cta {
    padding: 0.45rem 1rem;
  }

  .hero {
    padding-bottom: 3rem;
  }

  .download-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
