:root {
  --bg-0: #ffffff;
  --bg-1: #eae6fa;
  --primary: #6c3df4;
  --secondary: #f4f1fb;
  --heading: #0f0d1d;
  --body: #3e3b4a;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-1: 0 4px 16px rgba(17, 11, 36, 0.08);
  --shadow-2: 0 12px 32px rgba(17, 11, 36, 0.14);
  --container: 960px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', 'Manrope', 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--body);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 64px;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.h1 {
  color: var(--heading);
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.h2 {
  color: var(--heading);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.h3 {
  color: var(--heading);
  font-size: 30px;
  line-height: 1.3;
  font-weight: 800;
  margin: 0;
}

.h4 {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

/* Heading font family override */
.h1,
.h2,
.h3,
.h4 {
  font-family: 'Nunito', 'Manrope', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.hero-copy h1 {
  margin-bottom: 0;
}

.subtext {
  font-size: 21px;
  line-height: 1.7;
  color: var(--body);
  opacity: 0.7;
  font-weight: 500;
  margin-top: 0;
}

.caption {
  font-size: 12px;
  color: #6b6777;
}

.overline {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal strong {
  font-weight: 500;
  font-size: 14px;
}

.reveal p {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}

.card-overline {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  box-shadow: var(--shadow-1);
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--primary);
}

.btn-secondary:hover {
  filter: brightness(0.98);
}

.btn-lg {
  padding: 14px 22px;
  font-size: 16px;
}

.section {
  padding: 56px 0;
  scroll-margin-top: 96px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(15, 13, 29, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 16px;
}

.site-nav a {
  font-weight: 600;
  color: var(--heading);
}

.hamburger {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.hamburger [data-menu-icon] {
  width: auto;
  height: auto;
  background: none;
  display: inline-block;
  border-radius: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--heading);
}

/* Material Symbols tuning */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}

.mobile-nav {
  /* position: fixed; */
  inset: 0;
  background: var(--bg-0);
  padding: 20px 24px 24px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 24px;
  z-index: 2000;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.mobile-nav a {
  font-weight: 600;
  font-size: 18px;
  color: var(--heading);
  padding: 12px 4px;
  border-radius: 8px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}

.hero-inner {
  display: grid;
  gap: 24px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 16px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 520px;
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  width: 260px;
  height: 520px;
}

.phone-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.phone-screen {
  position: absolute;
  top: 30px;
  left: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 60px);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.mini-card {
  position: absolute;
  right: 0;
  background: var(--bg-0);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  box-shadow: var(--shadow-1);
  display: grid;
  gap: 4px;
}

.mc1 {
  top: 40px;
  right: 250px;
}

.mc2 {
  bottom: 150px;
  left: 250px;
}

.mc3 {
  top: 25px;
  left: 200px;
}

.mc4 {
  bottom: 20px;
  right: 260px;
}

.mc5 {
  top: 140px;
  right: 200px;
}

/* Features - Stacked cards */
.features {
  background: var(--bg-0);
  position: relative;
}

.stack-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--secondary) 100%);
  opacity: 0.5;
  pointer-events: none;
}

.stack {
  position: relative;
  display: grid;
  gap: 24px;
}

.card.feature {
  position: sticky;
  top: 96px;
  z-index: var(--z, 1);
  background: var(--bg-0);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-1);
  display: grid;
  gap: 12px;
}

.card.feature.alt {
  background: #f0cfff;
  background: linear-gradient(90deg, rgba(240, 207, 255, 1) 0%, rgba(239, 214, 255, 1) 30%, rgba(221, 191, 255, 1) 84%);
  /* background: var(--secondary); */
}

.feature-media {
  margin: 0 auto;
}

/* Plans */
.plans .plans-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.plan.card {
  background: var(--bg-0);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-1);
  display: grid;
  gap: 12px;
}

.plan.primary {
  outline: 2px solid var(--primary);
  box-shadow: var(--shadow-2);
}

.price {
  font-size: 28px;
  font-weight: 800;
  color: var(--heading);
  margin: 0;
}

.price span {
  font-size: 14px;
  font-weight: 600;
  color: #6b6777;
  margin-left: 2px;
  /* margin: 0; */
}

.features-list {
  /* list-style: none; */
  padding: 0;
  margin-left: 17px;
  /* margin: 0; */
  display: grid;
  gap: 8px;
}

.features-list li {
  padding-left: 0;
}

.features-list li.strike {
  text-decoration: line-through;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(180deg, var(--secondary) 0%, var(--bg-1) 100%);
}

.final-inner {
  text-align: center;
  display: grid;
  gap: 16px;
}

/* Forms */
.final-cta form {
  display: grid;
  gap: 12px;
  width: 90%;
  margin: 0 auto;
  text-align: left;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-label {
  font-weight: 700;
  color: var(--heading);
  font-size: 14px;
}

.form-input {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 13, 29, 0.12);
  background: var(--bg-0);
  color: var(--heading);
  outline: none;
  box-shadow: var(--shadow-1);
}

.form-input::placeholder {
  color: #6b6777;
  opacity: 0.8;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 61, 244, 0.15), var(--shadow-2);
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.form-message {
  text-align: center;
  font-size: 14px;
}

.form-message.error {
  color: #b00020;
}

/* Footer */
.site-footer {
  background: var(--bg-0);
  border-top: 1px solid rgba(15, 13, 29, 0.06);
  scroll-margin-top: 96px;
}

.footer-inner {
  display: grid;
  gap: 16px;
  padding: 24px 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.socials {
  display: flex;
  gap: 12px;
}

.social {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--secondary);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease, box-shadow .3s ease;
}

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

/* Header scrolled state */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 12px rgba(17, 11, 36, 0.06);
}

/* Desktop enhancements */
@media (min-width: 768px) {
  .h1 {
    font-size: 48px;
  }

  .h2 {
    font-size: 36px;
  }

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

  .section {
    padding: 80px 0;
  }

  .plans .plans-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }

  .site-nav {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .final-cta form {
    width: 50%;
  }  
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}