:root {
  --graphite: #0f1114;
  --charcoal: #181a1f;
  --cream: #f3efe6;
  --muted: rgba(243, 239, 230, 0.68);
  --faint: rgba(243, 239, 230, 0.1);
  --coral: #ff6a4d;
  --ember: #ffb24d;
  --teal: #2dd4b8;
  --blue: #4a90e2;
  --olive: #607a56;
  --sage: #8fa583;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 106, 77, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 10%, rgba(45, 212, 184, 0.12), transparent 24rem),
    linear-gradient(145deg, #07090b 0%, var(--graphite) 46%, #090b0d 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.5;
  background-image:
    linear-gradient(125deg, transparent 10%, rgba(255, 106, 77, 0.2) 10.2%, transparent 10.7%),
    linear-gradient(145deg, transparent 23%, rgba(143, 165, 131, 0.18) 23.2%, transparent 23.9%),
    linear-gradient(165deg, transparent 52%, rgba(45, 212, 184, 0.14) 52.2%, transparent 52.8%);
  background-size: 42rem 22rem, 38rem 24rem, 46rem 28rem;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  place-items: center;
}

.hero {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 44px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 25px;
  display: inline-block;
}

.brand-mark span {
  position: absolute;
  top: 0;
  width: 25px;
  height: 25px;
  border: 6px solid var(--coral);
  border-radius: 50%;
}

.brand-mark span:first-child {
  left: 0;
}

.brand-mark span:last-child {
  right: 0;
  border-color: var(--sage);
}

.eyebrow {
  margin: 72px 0 18px;
  color: var(--ember);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

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

.button {
  min-height: 54px;
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(243, 239, 230, 0.18);
}

.primary {
  color: #140b08;
  background: linear-gradient(135deg, var(--coral), var(--ember));
  box-shadow: 0 18px 38px rgba(255, 106, 77, 0.24);
}

.secondary {
  color: var(--cream);
  background: rgba(243, 239, 230, 0.06);
}

.supporting-copy {
  max-width: 540px;
  margin: 18px 0 0;
  color: rgba(243, 239, 230, 0.58);
  font-size: 14px;
  line-height: 1.6;
}

.phone-preview {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(243, 239, 230, 0.12);
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(24, 26, 31, 0.94), rgba(12, 14, 17, 0.94));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 26px;
  font-weight: 800;
}

.plus {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--coral);
  background: rgba(243, 239, 230, 0.08);
}

.habit-card {
  position: relative;
  min-height: 154px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(243, 239, 230, 0.13);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(96, 122, 86, 0.25), rgba(24, 26, 31, 0.9));
}

.habit-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.habit-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.wide {
  min-height: 190px;
  display: grid;
  grid-template-columns: 64px 1fr 50px;
  gap: 16px;
  align-items: start;
  border-color: rgba(255, 178, 77, 0.24);
  background: linear-gradient(145deg, rgba(255, 178, 77, 0.16), rgba(24, 26, 31, 0.92));
}

.habit-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1b1005;
  background: var(--ember);
  font-weight: 900;
}

.streak {
  color: var(--ember);
  font-size: 26px;
  font-weight: 900;
  text-align: right;
}

.progress {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.progress span,
.progress i,
.mini-progress span,
.mini-progress i {
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--ember), #ffc96b);
}

.progress i,
.mini-progress i {
  background: rgba(243, 239, 230, 0.13);
}

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

.teal {
  background: linear-gradient(145deg, rgba(45, 212, 184, 0.25), rgba(24, 26, 31, 0.92));
}

.olive {
  background: linear-gradient(145deg, rgba(143, 165, 131, 0.24), rgba(24, 26, 31, 0.92));
}

.coral {
  background: linear-gradient(145deg, rgba(255, 106, 77, 0.24), rgba(24, 26, 31, 0.92));
}

.blue {
  background: linear-gradient(145deg, rgba(74, 144, 226, 0.24), rgba(24, 26, 31, 0.92));
}

.mini-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 28px;
}

.teal .mini-progress span {
  background: var(--teal);
}

.olive .mini-progress span {
  background: var(--sage);
}

.coral .mini-progress span {
  background: var(--coral);
}

.blue .mini-progress span {
  background: var(--blue);
}

@media (max-width: 820px) {
  .page-shell {
    padding: 24px 16px;
    place-items: start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .eyebrow {
    margin-top: 52px;
  }

  .lede {
    font-size: 18px;
  }

  .button {
    width: 100%;
  }

  .phone-preview {
    border-radius: 28px;
    padding: 18px;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 48px;
  }

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