:root {
  --bg: #040504;
  --text: #ffffff;
  --muted: #ffffff;
  --muted-strong: #ffffff;
  --green: #22ff59;
  --green-deep: #0bbf42;
  --green-soft: #9af7b3;
  --shadow-green: 0 0 32px rgba(34, 255, 89, 0.42);
  --section-gap: clamp(3rem, 5.4vw, 5.4rem);
}

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

html {
  scroll-behavior: smooth;
  background-color: #020302;
  overscroll-behavior: none;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: #020302;
  background-image:
    radial-gradient(circle at top left, rgba(34, 255, 89, 0.08), transparent 24%),
    linear-gradient(180deg, #020302 0%, #050705 100%);
  color: var(--text);
  font-family: "Consolas", "Andale Mono", "Courier New", monospace;
  overscroll-behavior: none;
}

p {
  font-family: "Space Mono", "Consolas", "Andale Mono", "Courier New", monospace;
}

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

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 0.7rem clamp(16px, 4vw, 36px) 2rem;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(8, 11, 10, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 30px rgba(0, 0, 0, 0.18);
}

.brand,
.footer-brand,
h1,
h2,
.dashboard-header h3,
.phone-goals h4,
.note-top h4,
.chat-suggestions article,
.focus-modal h3 {
  font-family: Georgia, "Times New Roman", serif;
}

.brand {
  font-size: 2rem;
  letter-spacing: 0.03em;
  color: var(--green);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted-strong);
}

.header-cta,
.secondary-button,
.section-tag,
.menu-toggle,
.back-to-top {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}

.header-cta,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  line-height: 1;
}

.menu-toggle {
  display: none;
  justify-self: center;
  width: 48px;
  height: 48px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.section {
  padding: var(--section-gap) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: auto;
  padding-top: clamp(1.3rem, 2.4vw, 2rem);
  padding-bottom: clamp(2.4rem, 4.2vw, 4rem);
}

.hero-copy {
  grid-column: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  min-height: auto;
  padding-block: 0.35rem;
}

.hero-heading {
  display: grid;
  gap: 0.45rem;
}

.hero-orb {
  position: absolute;
  inset: 0 auto auto 0;
  width: clamp(90px, 10vw, 140px);
  height: clamp(90px, 10vw, 140px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 255, 89, 0.92), rgba(19, 173, 58, 0.88) 55%, rgba(34, 255, 89, 0.1) 76%, transparent 100%);
  filter: blur(6px);
  transform: translate(-18%, 18%);
  box-shadow: var(--shadow-green);
}

.eyebrow {
  margin: 0;
  color: var(--green-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2 {
  margin: 0;
  line-height: 0.95;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  position: relative;
  z-index: 1;
}

h2 {
  max-width: 15ch;
  font-size: clamp(1.2rem, 2vw, 1.9rem);
}

.hero-line {
  display: block;
}

.hero-line:first-child {
  white-space: nowrap;
}

.hero-line-secondary {
  margin-top: 0.12em;
}

.hero-text,
.feature-copy p,
.cta-content p,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.hero-text {
  grid-column: 1;
  max-width: 58ch;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.35rem;
}

.primary-button {
  padding: 1rem 1.8rem;
  border: 0;
  border-radius: 999px;
  color: #031106;
  background: linear-gradient(135deg, var(--green), #26f874 70%, #8fffab 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 30px rgba(34, 255, 89, 0.25),
    0 0 34px rgba(34, 255, 89, 0.4);
  cursor: pointer;
}

.secondary-button {
  color: var(--text);
  background: transparent;
}

.hero-visual,
.visual-left,
.visual-right {
  display: flex;
  justify-content: center;
}

.hero-visual {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
}

.mockup-slot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.34));
}

.mockup-slot {
  overflow: hidden;
}

.mockup-hero {
  width: min(300px, 52vw);
  aspect-ratio: 0.6;
}

.mockup-note {
  width: min(250px, 29vw);
  aspect-ratio: 0.54;
}

.mockup-chat {
  width: min(340px, 84vw);
  aspect-ratio: 0.54;
}

.mockup-focus {
  width: min(320px, 80vw);
  aspect-ratio: 0.54;
}

.mockup-goal {
  width: min(245px, 27vw);
  aspect-ratio: 0.54;
}

.mockup-hero .mockup-image {
  object-fit: contain;
  object-position: center center;
}

.phone {
  position: relative;
  width: min(290px, 80vw);
  aspect-ratio: 0.5;
  padding: 14px;
  border-radius: 42px;
  background: linear-gradient(180deg, #1d2226 0%, #0d1114 100%);
  border: 1.4px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 34%;
  height: 28px;
  border-radius: 0 0 18px 18px;
  transform: translateX(-50%);
  background: #020304;
  z-index: 3;
}

.phone::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: 52px;
  border-radius: 50%;
  background: rgba(90, 96, 109, 0.78);
  z-index: 4;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 30px;
}

.floating {
  animation: float 5s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.72rem;
  padding: 1rem 1.1rem 0.4rem;
}

.status-icons {
  opacity: 0.72;
}

.phone-dashboard .phone-screen,
.phone-goals .phone-screen {
  background: linear-gradient(180deg, #4d7c5c 0%, #4d7a5c 100%);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1rem 0;
}

.dashboard-header h3 {
  margin: 0.15rem 0 0;
  font-size: 1.7rem;
}

.tiny-label,
.dashboard-header small,
.goals-intro {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
}

.streak-badge {
  padding: 0.55rem 0.7rem;
  border-radius: 18px;
  background: rgba(236, 251, 241, 0.88);
  color: #10491d;
  text-align: center;
}

.streak-badge span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

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

.mini-card,
.calendar-card,
.tasks-card {
  border-radius: 20px;
  background: rgba(232, 245, 235, 0.88);
  color: #183920;
  box-shadow: 0 14px 24px rgba(22, 45, 27, 0.18);
}

.mini-card {
  min-height: 96px;
  padding: 0.9rem;
  display: grid;
  align-content: space-between;
}

.mini-card strong,
.calendar-title strong,
.tasks-top strong {
  font-size: 0.82rem;
}

.mini-card span,
.calendar-title span,
.task-line span {
  color: rgba(24, 57, 32, 0.7);
  font-size: 0.74rem;
}

.calendar-card,
.tasks-card {
  margin: 0 1rem;
  padding: 1rem;
}

.calendar-card {
  margin-bottom: 0.9rem;
}

.calendar-title,
.tasks-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.calendar-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  padding: 0.4rem 0;
}

.calendar-row p {
  margin: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #35d45f;
}

.dot-red {
  background: #fe6b5b;
}

.tasks-top button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #fb6634;
  color: white;
}

.task-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0;
}

.task-line input {
  accent-color: var(--green-deep);
}

.bottom-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(248, 250, 247, 0.92);
  color: #26342a;
  font-size: 0.68rem;
}

.bottom-tabs .active {
  color: #20c44a;
}

.focus-tab {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: -26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #12e94c, #10b53d);
  color: white;
  box-shadow: 0 10px 20px rgba(18, 233, 76, 0.35);
}

.feature {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.align-right {
  float: right;
}

.feature-visual-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
  width: 100%;
}

.feature-visual-stack--end {
  align-items: center;
}

.feature-visual-stack .section-tag {
  margin-bottom: 0;
}

.feature-visual-stack--end .visual-right {
  justify-content: center;
  width: 100%;
}

@media (min-width: 1025px) {
  .feature-visual-stack--end {
    align-items: flex-end;
  }

  .feature-visual-stack--end .visual-right {
    justify-content: flex-end;
  }

  .feature-visual-stack--end .goals-showcase {
    justify-content: flex-end;
    width: 100%;
  }

  /* Left-column stacks: keep mockups under the pill label (same idea as Academic Chatbot on the right) */
  .feature-visual-stack:not(.feature-visual-stack--end) .notes-showcase {
    justify-content: flex-start;
  }

  .feature-visual-stack:not(.feature-visual-stack--end) .visual-left {
    justify-content: flex-start;
  }
}

.feature-visual-stack:not(.feature-visual-stack--end) .notes-showcase,
.feature-visual-stack:not(.feature-visual-stack--end) .visual-left {
  width: 100%;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: center;
  gap: clamp(1.8rem, 4.4vw, 4.5rem);
}

.split-reverse .feature-grid,
.goals-grid {
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
}

.feature-copy h2 {
  margin-bottom: 1rem;
  max-width: 14ch;
}

.feature-copy p {
  max-width: 52ch;
  margin-bottom: 1rem;
  font-size: clamp(1.05rem, 1.25vw, 1.15rem);
  line-height: 1.75;
}

.feature-copy ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted-strong);
  display: grid;
  gap: 0.8rem;
  line-height: 1.75;
}

.feature-copy li {
  font-size: clamp(1.02rem, 1.15vw, 1.1rem);
}

.notes-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.notes-showcase,
.goals-showcase {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  min-width: 0;
}

.mockup-note,
.mockup-goal {
  transition: transform 220ms ease, filter 220ms ease;
  filter: brightness(0.92);
}

.note-a,
.note-c,
.goal-left,
.goal-right {
  z-index: 1;
  transform: translateY(18px) scale(0.9);
}

.note-a,
.goal-left {
  margin-right: -6.75rem;
}

.note-c,
.goal-right {
  margin-left: -6.75rem;
}

.note-b,
.goal-center {
  z-index: 2;
  transform: translateY(-14px) scale(1.22);
  filter: brightness(1);
}

.goals-showcase {
  gap: 0;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  padding: clamp(2rem, 4vw, 2.8rem) 1.5rem clamp(3.8rem, 8vw, 5rem);
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(8, 11, 10, 0.96), rgba(8, 11, 10, 0.92)),
    radial-gradient(circle at center, rgba(42, 255, 111, 0.08), transparent 48%);
}

.cta-rings {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(circle at center, transparent 0 18%, rgba(45, 255, 116, 0.35) 18.5% 19.2%, transparent 19.5% 28%, rgba(45, 255, 116, 0.28) 28.5% 29.2%, transparent 29.5% 40%, rgba(45, 255, 116, 0.22) 40.5% 41.2%, transparent 41.5% 54%, rgba(45, 255, 116, 0.18) 54.5% 55.2%, transparent 55.5%);
  opacity: 0.9;
  filter: blur(2px);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  max-width: 22ch;
  margin: 0 auto clamp(1.35rem, 3.5vw, 2rem);
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  line-height: 1.15;
}

.cta-action {
  margin-top: 1.5rem;
}

.waitlist-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  width: min(560px, 100%);
  margin: 2rem auto 0;
}

.waitlist-form input {
  min-width: 0;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.form-note {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2.5rem 1.5rem;
  margin-top: 2rem;
  padding: 2.75rem 1.2rem 1.5rem;
  border-radius: 28px;
  background: #1b241c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.site-footer small {
  display: block;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer a {
  display: block;
  margin-bottom: 0.4rem;
  overflow-wrap: anywhere;
}

.footer-brand-block {
  max-width: 320px;
  grid-column: 1;
  grid-row: 1;
}

.footer-brand {
  display: inline-block;
  color: var(--text);
  font-size: 2rem;
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  grid-column: 1;
  grid-row: 2;
}

.footer-column span,
.footer-column a {
  color: #ffffff;
}

.footer-column {
  min-width: 0;
}

.footer-end {
  display: grid;
  justify-items: end;
  align-self: end;
  grid-column: 2;
  grid-row: 2;
}

.back-to-top {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .page-shell {
    padding-left: clamp(22px, 5.5vw, 48px);
    padding-right: clamp(22px, 5.5vw, 48px);
  }

  .hero,
  .feature-grid,
  .split-reverse .feature-grid,
  .goals-grid {
    grid-template-columns: 1fr;
  }

  .align-right {
    float: none;
  }

  .feature-visual-stack:not(.feature-visual-stack--end) {
    align-items: center;
  }

  .feature-visual-stack:not(.feature-visual-stack--end) .visual-left {
    justify-content: center;
  }

  .notes-showcase,
  .goals-showcase {
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-end {
    justify-self: end;
  }
}

@media (max-width: 768px) {
  .page-shell {
    width: 100%;
    padding-left: clamp(18px, 5vw, 36px);
    padding-right: clamp(18px, 5vw, 36px);
  }

  .site-header {
    grid-template-columns: auto 1fr auto auto;
    padding: 0.95rem 1rem;
    border-radius: 22px;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 20px;
    background: rgba(5, 6, 5, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(1.95rem, 7vw, 3rem);
  }

  h2 {
    max-width: 13ch;
    font-size: clamp(1.1rem, 4.4vw, 1.6rem);
  }

  .hero-line:first-child {
    white-space: normal;
  }

  .hero-orb {
    transform: translate(-12%, 42%);
  }

  .hero-copy {
    min-height: auto;
    gap: 0.9rem;
    padding-block: 0;
  }

  .feature-grid>.feature-copy {
    order: 2;
  }

  .feature-grid> :not(.feature-copy) {
    order: 1;
  }

  .mockup-note,
  .mockup-goal {
    width: min(230px, 36vw);
  }

  .mockup-chat,
  .mockup-focus {
    width: min(240px, 52vw);
  }

  .note-a,
  .goal-left {
    margin-right: -4rem;
  }

  .note-c,
  .goal-right {
    margin-left: -4rem;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-brand-block,
  .footer-info,
  .footer-end {
    grid-column: 1;
    grid-row: auto;
  }

  .footer-end {
    justify-items: start;
    margin-top: 0.25rem;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: 100%;
    padding-left: clamp(16px, 4.5vw, 28px);
    padding-right: clamp(16px, 4.5vw, 28px);
    padding-top: 0.55rem;
  }

  .site-header {
    grid-template-columns: auto 1fr auto auto;
    row-gap: 0;
    padding: 0.8rem 0.9rem;
    border-radius: 20px;
  }

  .brand {
    font-size: 1.2rem;
  }

  .header-cta {
    grid-column: auto;
    grid-row: auto;
    justify-self: end;
    padding: 0.55rem 0.95rem;
    font-size: 0.78rem;
  }

  .menu-toggle {
    grid-column: auto;
    grid-row: auto;
    width: 42px;
    height: 42px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 34vw);
    align-items: start;
    gap: 0.7rem;
    min-height: auto;
    padding-top: 0.8rem;
    padding-bottom: 2.2rem;
  }

  .hero-heading {
    gap: 0.4rem;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-visual {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    align-self: start;
    padding-top: 0.15rem;
  }

  .hero-text,
  .hero-actions {
    grid-column: 1 / -1;
  }

  .hero-text {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mockup-hero {
    width: min(138px, 32vw);
  }

  .mockup-chat,
  .mockup-focus {
    width: min(170px, 44vw);
  }

  .phone {
    width: min(270px, 92vw);
  }

  .mockup-note,
  .mockup-goal {
    width: min(122px, 28vw);
  }

  .notes-showcase,
  .goals-showcase {
    justify-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    overflow: visible;
    padding: 0.5rem 0 0.8rem;
  }

  .note-a,
  .note-c,
  .goal-left,
  .goal-right {
    transform: translateY(8px) scale(0.88);
  }

  .note-a,
  .goal-left {
    margin-right: -2.55rem;
  }

  .note-c,
  .goal-right {
    margin-left: -2.55rem;
  }

  .note-b,
  .goal-center {
    transform: translateY(-4px) scale(1.12);
  }

  .site-footer {
    gap: 1.1rem;
    padding: 1.2rem 1rem 1.35rem;
  }

  .footer-brand {
    font-size: 1.1rem;
  }

  .footer-info {
    gap: 0.8rem;
  }

  .footer-end {
    margin-top: 0.1rem;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    top: 0.9rem;
    right: 0.9rem;
  }
}

/* --- Scroll Reveal Animations --- */
.reveal {
  position: relative;
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(4px);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal.active {
  opacity: 1;
  transform: translate(0, 0);
  filter: blur(0);
}

/* Stagger initial hero reveal */
.hero .hero-copy {
  animation: revealUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero .hero-visual {
  animation: revealUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
}

.hero .hero-text {
  animation: revealUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  opacity: 0;
}

.hero .hero-actions {
  animation: revealUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  opacity: 0;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* System light: only when the page is not already locked to an explicit data-theme. Default is data-theme="dark". */
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]):not([data-theme="light"]) {
    --bg: #f4f8f2;
    --text: #16251c;
    --muted: #2f4035;
    --muted-strong: #1f3327;
    --green: #0f9d4e;
    --green-deep: #0a7b3b;
    --green-soft: #2a8f58;
    --shadow-green: 0 0 22px rgba(15, 157, 78, 0.24);
    background-color: #edf5ea;
  }

  html:not([data-theme="dark"]):not([data-theme="light"]) body {
    background-color: #edf5ea;
    background-image:
      radial-gradient(circle at top left, rgba(15, 157, 78, 0.08), transparent 28%),
      linear-gradient(180deg, #f7fbf5 0%, #ecf3e8 100%);
  }

  html:not([data-theme="dark"]):not([data-theme="light"]) .site-header {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(18, 37, 27, 0.12);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 10px 26px rgba(24, 45, 31, 0.08);
  }

  html:not([data-theme="dark"]):not([data-theme="light"]) .header-cta,
  html:not([data-theme="dark"]):not([data-theme="light"]) .secondary-button,
  html:not([data-theme="dark"]):not([data-theme="light"]) .section-tag,
  html:not([data-theme="dark"]):not([data-theme="light"]) .menu-toggle,
  html:not([data-theme="dark"]):not([data-theme="light"]) .back-to-top {
    border-color: rgba(24, 45, 31, 0.32);
  }

  html:not([data-theme="dark"]):not([data-theme="light"]) .feature,
  html:not([data-theme="dark"]):not([data-theme="light"]) .site-footer {
    border-top-color: rgba(24, 45, 31, 0.14);
  }

  html:not([data-theme="dark"]):not([data-theme="light"]) .cta-panel {
    border-color: rgba(24, 45, 31, 0.12);
    background:
      linear-gradient(180deg, rgba(248, 252, 247, 0.97), rgba(238, 245, 236, 0.95)),
      radial-gradient(circle at center, rgba(15, 157, 78, 0.08), transparent 50%);
  }

  html:not([data-theme="dark"]):not([data-theme="light"]) .waitlist-form input {
    border-color: rgba(24, 45, 31, 0.16);
    background: rgba(255, 255, 255, 0.92);
    color: #16251c;
  }

  html:not([data-theme="dark"]):not([data-theme="light"]) .site-footer {
    background: #dceadb;
    border-color: rgba(24, 45, 31, 0.12);
  }

  html:not([data-theme="dark"]):not([data-theme="light"]) .back-to-top {
    background: rgba(255, 255, 255, 0.85);
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f8f2;
  --text: #16251c;
  --muted: #2f4035;
  --muted-strong: #1f3327;
  --green: #0f9d4e;
  --green-deep: #0a7b3b;
  --green-soft: #2a8f58;
  --shadow-green: 0 0 22px rgba(15, 157, 78, 0.24);
}

html[data-theme="light"] body {
  background-color: #edf5ea;
  background-image:
    radial-gradient(circle at top left, rgba(15, 157, 78, 0.08), transparent 28%),
    linear-gradient(180deg, #f7fbf5 0%, #ecf3e8 100%);
  color: #16251c;
}

html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(18, 37, 27, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 26px rgba(24, 45, 31, 0.08);
}

html[data-theme="light"] .site-footer {
  background: #dceadb;
  border-color: rgba(24, 45, 31, 0.12);
  color: #223328;
}

html[data-theme="light"] .hero-text,
html[data-theme="light"] .feature-copy p,
html[data-theme="light"] .cta-content p,
html[data-theme="light"] .site-footer p,
html[data-theme="light"] .site-footer small,
html[data-theme="light"] .form-note {
  color: #2f4035;
}

html[data-theme="light"] .site-nav a,
html[data-theme="light"] .footer-column span,
html[data-theme="light"] .footer-column a,
html[data-theme="light"] .footer-brand,
html[data-theme="light"] .back-to-top {
  color: #1f3327;
}

html[data-theme="light"] .header-cta,
html[data-theme="light"] .secondary-button,
html[data-theme="light"] .section-tag,
html[data-theme="light"] .menu-toggle,
html[data-theme="light"] .back-to-top {
  border-color: rgba(24, 45, 31, 0.32);
}

html[data-theme="light"] .cta-panel {
  border-color: rgba(24, 45, 31, 0.12);
  background:
    linear-gradient(180deg, rgba(248, 252, 247, 0.97), rgba(238, 245, 236, 0.95)),
    radial-gradient(circle at center, rgba(15, 157, 78, 0.08), transparent 50%);
}

html[data-theme="light"] .waitlist-form input {
  border-color: rgba(24, 45, 31, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: #16251c;
}

/* Strong readability pass for manual light mode */
html[data-theme="light"] .page-shell,
html[data-theme="light"] .page-shell p,
html[data-theme="light"] .page-shell li,
html[data-theme="light"] .page-shell small,
html[data-theme="light"] .feature-copy ul,
html[data-theme="light"] .tiny-label,
html[data-theme="light"] .goals-intro,
html[data-theme="light"] .footer-column span,
html[data-theme="light"] .footer-column a {
  color: #22372b;
}

html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] .feature-copy h2,
html[data-theme="light"] .brand,
html[data-theme="light"] .footer-brand {
  color: #14261c;
}

html[data-theme="light"] .site-nav a,
html[data-theme="light"] .header-cta {
  color: #1b3326;
}

/* Remove dark mockup silhouette in light mode */
html[data-theme="light"] .mockup-image {
  filter: drop-shadow(0 10px 20px rgba(33, 66, 47, 0.12));
}