:root {
  --page-top: #a8c4db;
  --page-mid: #8bb2cc;
  --page-bottom: #779ebd;
  --bg-surface: rgba(25, 41, 56, 0.62);
  --bg-elevated: rgba(37, 56, 74, 0.74);
  --bg-hover: rgba(55, 79, 101, 0.84);
  --text-primary: #f8fcff;
  --text-secondary: rgba(244, 250, 255, 0.8);
  --text-muted: rgba(228, 240, 248, 0.58);
  --accent: #ffc79a;
  --accent-hover: #ffb47a;
  --accent-text: #5b4330;
  --accent-rgb: 255, 199, 154;
  --secondary: #c2eadb;
  --secondary-hover: #aadccc;
  --secondary-rgb: 194, 234, 219;
  --border: rgba(223, 239, 250, 0.16);
  --shadow-sm: 0 12px 24px rgba(18, 32, 46, 0.18);
  --shadow-md: 0 20px 42px rgba(18, 32, 46, 0.24);
  --shadow-lg: 0 30px 60px rgba(18, 32, 46, 0.3);
  --overlay: rgba(40, 66, 90, 0.32);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

[data-theme="light"] {
  --page-top: #cfe1ee;
  --page-mid: #b2cfe2;
  --page-bottom: #9ec0d7;
  --bg-surface: rgba(255, 255, 255, 0.74);
  --bg-elevated: rgba(255, 255, 255, 0.92);
  --bg-hover: rgba(255, 255, 255, 0.98);
  --text-primary: #355066;
  --text-secondary: #5f7d95;
  --text-muted: #87a3b8;
  --accent: #ffc08f;
  --accent-hover: #f5ad76;
  --accent-text: #5b4330;
  --accent-rgb: 255, 192, 143;
  --secondary: #bbe6d8;
  --secondary-hover: #9fd8c8;
  --secondary-rgb: 187, 230, 216;
  --border: rgba(111, 149, 174, 0.24);
  --shadow-sm: 0 8px 18px rgba(73, 104, 129, 0.08);
  --shadow-md: 0 16px 30px rgba(73, 104, 129, 0.1);
  --shadow-lg: 0 24px 46px rgba(73, 104, 129, 0.12);
  --overlay: rgba(53, 80, 102, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Avenir Next", "Nunito", "Segoe UI", sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--accent-rgb), 0.26), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(var(--secondary-rgb), 0.28), transparent 30%),
    linear-gradient(180deg, var(--page-top) 0%, var(--page-mid) 46%, var(--page-bottom) 100%);
  background-attachment: fixed;
  line-height: 1.55;
  transition: background 220ms ease, color 220ms ease;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid rgba(var(--secondary-rgb), 0.9);
  outline-offset: 3px;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.ambient {
  position: fixed;
  inset: auto;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.5;
  pointer-events: none;
}

.ambient-one {
  top: 5rem;
  right: -4rem;
  background: rgba(var(--accent-rgb), 0.24);
}

.ambient-two {
  bottom: 8rem;
  left: -5rem;
  background: rgba(var(--secondary-rgb), 0.24);
}

.container {
  width: min(100% - 2rem, 60rem);
  margin: 0 auto;
}

.section {
  padding: 2.5rem 0;
}

.eyebrow,
.wordmark {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.wordmark {
  font-size: 1rem;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 0 0;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 5.75rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background: var(--bg-hover);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-icon {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.theme-toggle-icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle-icon-sun {
  display: inline;
}

[data-theme="light"] .theme-toggle-icon-moon {
  display: none;
}

.hero {
  padding-top: 1.4rem;
}

.hero-layout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.hero-copy,
.hero-panel,
.feature-card,
.phone-mockup,
.selling-row,
.install-shell {
  position: relative;
}

.hero-icon {
  width: 6rem;
  height: 6rem;
  margin-bottom: 1rem;
  border-radius: 1.4rem;
  box-shadow: var(--shadow-md);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.8rem, 13vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-tagline {
  margin: 0.9rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.hero-subtitle,
.section-heading p:not(.eyebrow),
.selling-copy p:not(.eyebrow),
.footer-copy,
.screen-note {
  color: var(--text-secondary);
}

.hero-subtitle {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  background: var(--secondary);
  color: #29473b;
}

.button-secondary:hover {
  background: var(--secondary-hover);
}

.hero-points {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
}

.hero-points li::before {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 0.3rem rgba(var(--secondary-rgb), 0.18);
}

.hero-card,
.feature-card,
.selling-row,
.install-shell,
.install-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
}

.hero-card {
  padding: 1.2rem;
  border-radius: 1.9rem;
}

.hero-card-header,
.hero-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-card-header {
  margin-bottom: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(var(--secondary-rgb), 0.18);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.pill-soft {
  background: rgba(var(--accent-rgb), 0.18);
}

.hero-timeline {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.timeline-item,
.summary-card,
.meter-card,
.analytics-card,
.art-card,
.install-card {
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem;
}

.timeline-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  background: rgba(var(--accent-rgb), 0.18);
  font-size: 1.2rem;
}

.timeline-title,
.summary-card strong,
.section-heading h2,
.feature-card h3,
.screen-title,
.selling-copy h2,
.install-card h3 {
  margin: 0;
}

.timeline-title,
.feature-card h3,
.install-card h3 {
  font-size: 1rem;
  font-weight: 700;
}

.timeline-meta,
.summary-label,
.feature-card p,
.selling-copy p,
.install-steps,
.footer-links a {
  margin: 0;
  color: var(--text-secondary);
}

.timeline-meta,
.summary-label {
  font-size: 0.9rem;
}

.summary-card {
  flex: 1 1 12rem;
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
}

.section-heading {
  max-width: 36rem;
  margin-bottom: 1.4rem;
}

.section-heading h2,
.selling-copy h2 {
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.06;
  margin-bottom: 0.75rem;
}

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

.feature-card {
  padding: 1rem;
  border-radius: var(--radius-xl);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.feature-card:hover,
.selling-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature-emoji {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 2rem;
}

.feature-card p {
  margin-top: 0.5rem;
}

.phone-grid {
  display: grid;
  gap: 1rem;
}

.phone-mockup {
  width: min(100%, 20rem);
  margin: 0 auto;
  padding: 0.85rem;
  border-radius: 2rem;
  background: rgba(18, 32, 46, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg);
}

[data-theme="light"] .phone-mockup {
  background: rgba(255, 255, 255, 0.3);
}

.phone-notch {
  width: 42%;
  height: 1.15rem;
  margin: 0 auto 0.75rem;
  border-radius: 0 0 1rem 1rem;
  background: rgba(17, 30, 43, 0.68);
}

.phone-screen {
  min-height: 26rem;
  padding: 1rem;
  border-radius: 1.45rem;
  background:
    linear-gradient(180deg, rgba(var(--secondary-rgb), 0.18), rgba(255, 255, 255, 0)),
    var(--bg-elevated);
}

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.screen-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.screen-chip {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(var(--secondary-rgb), 0.18);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.screen-stack {
  display: grid;
  gap: 0.7rem;
}

.screen-event,
.quick-buttons span {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem;
  border-radius: 1rem;
  background: rgba(var(--secondary-rgb), 0.14);
}

.screen-event.soft {
  background: rgba(var(--accent-rgb), 0.16);
}

.screen-event.accent {
  background: rgba(255, 255, 255, 0.1);
}

.screen-event span,
.meter-card span,
.analytics-card span {
  color: var(--text-secondary);
}

.screen-tabs {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.screen-tabs span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.screen-tabs .active {
  width: 1.6rem;
  border-radius: var(--radius-full);
  background: var(--accent);
}

.meter-card,
.analytics-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
}

.meter-card strong,
.analytics-card strong {
  font-size: 1.8rem;
}

.meter-bar {
  width: 100%;
  height: 0.6rem;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
}

.meter-bar span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.quick-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
}

.quick-buttons span {
  place-items: center;
  min-height: 3rem;
  font-weight: 700;
}

.screen-note {
  font-size: 0.92rem;
}

.mini-calendar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.mini-calendar span {
  display: grid;
  place-items: center;
  min-height: 2.35rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
}

.mini-calendar .filled {
  background: rgba(var(--secondary-rgb), 0.24);
}

.mini-calendar .accent-fill {
  background: rgba(var(--accent-rgb), 0.3);
}

.analytics-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  min-height: 4.5rem;
}

.analytics-bars span {
  flex: 1;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.95), rgba(var(--secondary-rgb), 0.75));
}

.analytics-bars span:nth-child(1) {
  height: 48%;
}

.analytics-bars span:nth-child(2) {
  height: 74%;
}

.analytics-bars span:nth-child(3) {
  height: 60%;
}

.analytics-bars span:nth-child(4) {
  height: 88%;
}

.selling-stack {
  display: grid;
  gap: 1rem;
}

.selling-row {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 1.8rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.selling-copy p:last-child {
  margin-bottom: 0;
}

.selling-art {
  display: grid;
}

.art-card {
  display: grid;
  gap: 1rem;
  align-content: center;
  min-height: 15rem;
  padding: 1.2rem;
}

.art-badge {
  justify-self: start;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(var(--accent-rgb), 0.2);
  font-weight: 700;
}

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

.tap-targets span,
.avatar-row span {
  display: grid;
  place-items: center;
  min-height: 3.35rem;
  padding: 0.75rem;
  border-radius: 1rem;
  font-weight: 700;
}

.tap-targets span {
  background: rgba(var(--secondary-rgb), 0.18);
}

.avatar-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.avatar-row span {
  background: rgba(var(--accent-rgb), 0.18);
}

.sync-line {
  height: 0.45rem;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary));
}

.voice-orb {
  width: 4.75rem;
  height: 4.75rem;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(var(--accent-rgb), 0.9), rgba(var(--secondary-rgb), 0.35));
  box-shadow: 0 0 0 0.8rem rgba(var(--secondary-rgb), 0.08);
}

.voice-waves {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.4rem;
  min-height: 4.5rem;
}

.voice-waves span {
  width: 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(var(--secondary-rgb), 0.85);
}

.voice-waves span:nth-child(1) {
  height: 45%;
}

.voice-waves span:nth-child(2) {
  height: 85%;
}

.voice-waves span:nth-child(3) {
  height: 60%;
}

.install-shell {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1.8rem;
}

.install-copy p {
  margin-top: 0;
}

.install-button {
  margin-top: 0.7rem;
}

.install-card {
  padding: 1.2rem;
}

.install-steps {
  padding-left: 1.2rem;
}

.install-steps li + li {
  margin-top: 0.6rem;
}

.site-footer {
  padding: 0 0 2.5rem;
}

.footer-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}

.footer-copy {
  margin-top: 0.7rem;
}

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

.footer-links a {
  transition: color 180ms ease;
}

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

.fade-in {
  opacity: 1;
  transform: none;
}

.js .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.js .fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 600px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .selling-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
  }

  .selling-row-reverse .selling-copy {
    order: 2;
  }

  .selling-row-reverse .selling-art {
    order: 1;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 3.75rem 0;
  }

  .container {
    width: min(100% - 3rem, 60rem);
  }

  .hero-layout,
  .install-shell {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .hero-layout {
    gap: 2rem;
  }

  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .button {
    min-width: 15rem;
  }

  .phone-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .phone-mockup {
    width: 100%;
  }

  .footer-shell {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .js .fade-in {
    opacity: 1;
    transform: none;
  }
}
