:root {
  --ink-900: #132431;
  --ink-700: #2f4a5f;
  --paper-50: #fff9f0;
  --paper-100: #fffefc;
  --line: rgba(12, 30, 42, 0.14);
  --accent-main: #e85d04;
  --accent-cool: #0e8a86;
  --accent-sun: #f4a11a;
  --shadow: 0 20px 50px rgba(12, 30, 42, 0.12);
  --radius-xl: 24px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--ink-900);
  background: radial-gradient(circle at 8% 0%, #ffe8c8 0%, transparent 36%),
    radial-gradient(circle at 100% 14%, #d0f6f0 0%, transparent 38%),
    var(--paper-50);
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Avenir Next Condensed", "Franklin Gothic Medium", sans-serif;
  line-height: 1.1;
  margin: 0;
}

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

.ambient {
  position: fixed;
  inset: -50vmax;
  z-index: -1;
  background: conic-gradient(
    from 180deg at 40% 50%,
    rgba(232, 93, 4, 0.08),
    rgba(14, 138, 134, 0.12),
    rgba(244, 161, 26, 0.08),
    rgba(232, 93, 4, 0.08)
  );
  filter: blur(42px);
  animation: drift 16s linear infinite;
}

.container {
  width: min(1120px, calc(100vw - 2.6rem));
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent-main), var(--accent-sun));
  box-shadow: 0 0 0 6px rgba(232, 93, 4, 0.14);
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--ink-700);
}

.nav a:hover {
  color: var(--ink-900);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 1.2rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease,
    color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(130deg, var(--accent-main), var(--accent-sun));
  box-shadow: 0 12px 28px rgba(232, 93, 4, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(232, 93, 4, 0.4);
}

.btn-secondary,
.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-900);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: rgba(12, 30, 42, 0.36);
  background: #fff;
}

.hero {
  padding: 4.2rem 0 2.8rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cool);
}

h1 {
  font-size: clamp(2.15rem, 5vw, 4.1rem);
  margin-top: 0.7rem;
}

.lead {
  margin-top: 1rem;
  color: var(--ink-700);
  max-width: 60ch;
}

.subtle-note {
  margin-top: 1rem;
  font-size: 0.94rem;
  color: var(--ink-700);
}

.cta-row {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-panel {
  border: 1px solid var(--line);
  background: var(--paper-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  display: grid;
  gap: 0.95rem;
  animation: floatCard 6s ease-in-out infinite;
}

.chip-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.chip {
  border-radius: 999px;
  padding: 0.28rem 0.64rem;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(12, 30, 42, 0.12);
  background: rgba(255, 255, 255, 0.86);
}

.before-after-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  background: rgba(244, 251, 250, 0.7);
}

.ba-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.ba-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  padding: 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
}

.ba-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.ba-size {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.ba-before .ba-size {
  color: var(--ink-900);
}

.ba-after .ba-size {
  color: var(--accent-cool);
}

.ba-arrow {
  font-size: 1.3rem;
  color: var(--ink-700);
  flex-shrink: 0;
}

.ba-saved {
  margin: 0.6rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-700);
}

.ba-saved strong {
  color: var(--accent-main);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.mode-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.78rem;
  background: #fff;
}

.mode-grid h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.mode-grid p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.9rem;
}

.section {
  padding: 3rem 0;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-top: 0.45rem;
}

.feature-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 20px rgba(13, 22, 36, 0.08);
  padding: 1rem;
}

.card h3 {
  font-size: 1.06rem;
}

.card p {
  margin: 0.55rem 0 0;
  color: var(--ink-700);
}

.steps {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.steps li {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  padding: 0.95rem;
}

.step-num {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(232, 93, 4, 0.12);
  color: var(--accent-main);
}

.steps h3 {
  margin-top: 0.75rem;
  font-size: 1.02rem;
}

.steps p {
  margin: 0.5rem 0 0;
  color: var(--ink-700);
}

.pricing-card {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #fff 0%, #fff5e9 100%);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.pricing-card ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.5rem;
}

.cta-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, #ffffff 0%, #f2fcfb 100%);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.cta-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-top: 0.5rem;
}

.cta-section p {
  color: var(--ink-700);
  margin-top: 0.9rem;
}

.install-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.install-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  padding: 1rem;
}

.install-card h3 {
  font-size: 1.06rem;
}

.install-card p {
  margin: 0.45rem 0 0.8rem;
  color: var(--ink-700);
}

.btn-disabled {
  pointer-events: none;
  opacity: 0.78;
}

.qr-placeholder {
  width: min(210px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(90deg, rgba(19, 36, 49, 0.18) 0 10px, #fff 10px 20px),
    repeating-linear-gradient(rgba(19, 36, 49, 0.18) 0 10px, #fff 10px 20px);
}

.qr-placeholder span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.tiny-hint {
  margin-top: 0.65rem;
  font-size: 0.84rem;
  color: var(--ink-700);
}

.tiny-hint a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-700);
  font-size: 0.9rem;
  padding: 1rem 0 1.4rem;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links a:hover {
  color: var(--ink-900);
}

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

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0% {
    transform: rotate(0deg) scale(1.02);
  }
  100% {
    transform: rotate(360deg) scale(1.02);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.4rem;
  }

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

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

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

  .topbar {
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .nav {
    width: 100%;
    order: 3;
    justify-content: space-between;
    font-size: 0.94rem;
  }

  .topbar {
    padding-top: 0.7rem;
  }

  .mode-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }

  .cta-section {
    padding: 1.2rem;
  }
}
