:root {
  color-scheme: light;
  --ink: #171421;
  --muted: #655f76;
  --soft: #f7f5ff;
  --line: rgba(34, 27, 61, 0.11);
  --primary: #6a4cff;
  --lavender: #efeaff;
  --blue: #68b7ff;
  --green: #64c99b;
  --yellow: #f7c95c;
  --orange: #f4a261;
  --red: #f26d7d;
  --shadow: 0 24px 70px rgba(34, 27, 61, 0.13);
  --radius: 8px;
  --section: min(1120px, calc(100% - 40px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(106, 76, 255, 0.13), transparent 36rem),
    linear-gradient(180deg, #ffffff 0%, #fbfbff 42%, #ffffff 100%);
  letter-spacing: 0;
}

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

svg {
  display: block;
}

.section-shell {
  width: var(--section);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 28px));
  margin: 14px auto 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(34, 27, 61, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #8f80ff);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(106, 76, 255, 0.26);
}

.brand-mark svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 680;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
  background: var(--soft);
}

.nav-toggle {
  display: none;
}

.hero {
  min-height: calc(100svh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: center;
  padding: 58px 0 74px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 750px;
  margin-bottom: 22px;
  font-size: 6.2rem;
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 4rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.22;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 30px;
  font-size: 1.16rem;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 780;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.button small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 720;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #7f6bff);
  box-shadow: 0 18px 42px rgba(106, 76, 255, 0.28);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 12px 28px rgba(34, 27, 61, 0.07);
}

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

.phone {
  position: relative;
  width: min(330px, 78vw);
  aspect-ratio: 0.49;
  padding: 14px;
  background: #201b2e;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 38px;
  box-shadow: var(--shadow), inset 0 0 0 4px #2b253a;
}

.phone-main {
  transform: rotate(2deg);
}

.phone-speaker {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 78px;
  height: 6px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  z-index: 2;
}

.app-screen {
  height: 100%;
  padding: 48px 20px 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 22%, rgba(106, 76, 255, 0.16), transparent 8rem),
    linear-gradient(180deg, #fff 0%, #f8f5ff 100%);
  border-radius: 28px;
}

.screen-header span,
.message-preview span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.screen-header strong {
  display: block;
  margin-top: 8px;
  font-size: 1.65rem;
  line-height: 1.08;
}

.mood-orbit {
  position: relative;
  height: 220px;
  margin: 14px 0 8px;
}

.mood-dot {
  position: absolute;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #30293f;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(34, 27, 61, 0.12);
}

.mood-dot.joy {
  top: 20px;
  left: 16px;
  background: #fff3c9;
}

.mood-dot.calm {
  top: 70px;
  left: 50%;
  width: 118px;
  height: 118px;
  transform: translateX(-50%);
  background: #d8f4e6;
}

.mood-dot.tired {
  top: 16px;
  right: 12px;
  background: #dff0ff;
}

.mood-dot.low {
  right: 34px;
  bottom: 0;
  background: #ffe0de;
}

.mood-dot.active {
  outline: 8px solid rgba(100, 201, 155, 0.18);
}

.message-preview,
.supporters {
  padding: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(34, 27, 61, 0.07);
}

.message-preview p {
  margin: 6px 0 0;
  color: var(--ink);
  line-height: 1.45;
}

.supporters {
  display: flex;
  align-items: center;
  margin-top: 12px;
}

.supporters span {
  width: 28px;
  height: 28px;
  margin-right: -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--blue);
}

.supporters span:nth-child(2) {
  background: var(--yellow);
}

.supporters span:nth-child(3) {
  background: var(--red);
}

.supporters p {
  margin: 0 0 0 18px;
  font-size: 0.82rem;
  font-weight: 760;
}

.signal-card {
  position: absolute;
  max-width: 198px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(34, 27, 61, 0.12);
}

.signal-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 820;
}

.signal-card strong {
  display: block;
  font-size: 0.94rem;
}

.signal-one {
  top: 92px;
  left: 0;
}

.signal-two {
  right: 0;
  bottom: 122px;
}

.features,
.screens,
.faq {
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 218px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(34, 27, 61, 0.06);
}

.feature-card p {
  margin-bottom: 0;
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 8px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.feature-icon.red {
  color: #c24158;
  background: #ffe5e9;
}

.feature-icon.blue {
  color: #2177b8;
  background: #e4f4ff;
}

.feature-icon.yellow {
  color: #9a6a08;
  background: #fff3cf;
}

.feature-icon.green {
  color: #16754c;
  background: #e0f7eb;
}

.feature-icon.orange {
  color: #9c531f;
  background: #ffe9d6;
}

.feature-icon.purple {
  color: #4f36c9;
  background: var(--lavender);
}

.steps-section {
  padding: 88px 0;
  background:
    linear-gradient(90deg, rgba(106, 76, 255, 0.08), transparent 35%, rgba(104, 183, 255, 0.1)),
    #fff;
  border-block: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step {
  position: relative;
  padding-top: 30px;
  border-top: 2px solid rgba(106, 76, 255, 0.22);
}

.step span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 850;
}

.step p {
  max-width: 290px;
}

.privacy {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 104px 0;
}

.privacy-list {
  display: grid;
  gap: 12px;
}

.privacy-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 760;
  box-shadow: 0 12px 32px rgba(34, 27, 61, 0.05);
}

.privacy-list span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(100, 201, 155, 0.16);
}

.carousel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 16px;
  align-items: center;
}

.icon-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(34, 27, 61, 0.08);
  cursor: pointer;
}

.icon-button svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.screen-track {
  display: grid;
  grid-auto-columns: minmax(210px, 1fr);
  grid-auto-flow: column;
  gap: 16px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.mini-phone {
  min-width: 0;
  padding: 12px;
  background: #211c2f;
  border-radius: 30px;
  opacity: 0.76;
  transform: scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 20px 54px rgba(34, 27, 61, 0.14);
}

.mini-phone.active {
  opacity: 1;
  transform: scale(1);
}

.mini-phone span {
  display: block;
  padding: 8px 6px 13px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 780;
  text-align: center;
}

.mini-ui {
  height: 320px;
  border-radius: 22px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(106, 76, 255, 0.4), rgba(100, 201, 155, 0.35)) border-box;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.mini-ui::before,
.mini-ui::after {
  content: "";
  position: absolute;
  border-radius: 8px;
}

.home-ui::before {
  inset: 28px 22px auto;
  height: 58px;
  background: var(--lavender);
}

.home-ui::after {
  inset: 112px 28px 54px;
  background: radial-gradient(circle at 50% 45%, #d8f4e6 0 37%, transparent 38%),
    radial-gradient(circle at 23% 18%, #fff3cf 0 13%, transparent 14%),
    radial-gradient(circle at 78% 21%, #dff0ff 0 13%, transparent 14%),
    radial-gradient(circle at 74% 82%, #ffe0de 0 14%, transparent 15%);
}

.mood-ui::before {
  inset: 28px 28px auto;
  height: 210px;
  background: radial-gradient(circle at 50% 50%, #d8f4e6 0 34%, transparent 35%),
    radial-gradient(circle at 20% 26%, #fff3cf 0 15%, transparent 16%),
    radial-gradient(circle at 78% 22%, #dff0ff 0 15%, transparent 16%),
    radial-gradient(circle at 78% 76%, #ffe0de 0 15%, transparent 16%);
}

.mood-ui::after {
  left: 40px;
  right: 40px;
  bottom: 34px;
  height: 32px;
  background: var(--primary);
}

.history-ui::before {
  inset: 34px 24px 34px;
  background: repeating-linear-gradient(to bottom, transparent 0 32px, rgba(34, 27, 61, 0.08) 32px 33px);
}

.history-ui::after {
  left: 30px;
  right: 30px;
  bottom: 70px;
  height: 120px;
  background: linear-gradient(135deg, transparent 0 23%, var(--green) 24% 28%, transparent 29% 51%, var(--blue) 52% 57%, transparent 58% 100%);
}

.filters-ui::before {
  inset: 36px 24px auto;
  height: 36px;
  background: var(--lavender);
  box-shadow: 0 54px 0 #e4f4ff, 0 108px 0 #e0f7eb, 0 162px 0 #fff3cf;
}

.filters-ui::after {
  width: 34px;
  height: 34px;
  right: 34px;
  top: 37px;
  background: var(--primary);
  box-shadow: 0 54px 0 var(--blue), 0 108px 0 var(--green), 0 162px 0 var(--yellow);
}

.settings-ui::before {
  inset: 34px 24px auto;
  height: 42px;
  background: #f1eff8;
  box-shadow: 0 58px 0 #f1eff8, 0 116px 0 #f1eff8, 0 174px 0 #f1eff8;
}

.settings-ui::after {
  width: 42px;
  height: 24px;
  right: 34px;
  top: 43px;
  background: var(--green);
  border-radius: 99px;
  box-shadow: 0 58px 0 var(--primary), 0 116px 0 #d7d2e5, 0 174px 0 var(--green);
}

.support-ui::before {
  inset: 38px 28px auto;
  height: 132px;
  background: linear-gradient(135deg, var(--lavender), #e4f4ff);
}

.support-ui::after {
  left: 46px;
  right: 46px;
  bottom: 58px;
  height: 46px;
  background: var(--primary);
}

.about {
  padding: 70px 0 94px;
}

.about-copy {
  max-width: 780px;
}

.support {
  padding: 0 0 100px;
}

.support-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(106, 76, 255, 0.1), rgba(100, 201, 155, 0.11)),
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.support-panel h2 {
  font-size: 3rem;
}

.support-panel p {
  max-width: 680px;
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(34, 27, 61, 0.05);
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 22px 22px;
}

.site-footer {
  padding: 52px 0 28px;
  background: #16131f;
  color: #fff;
}

.site-footer p,
.site-footer a,
.site-footer span {
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 28px;
}

.footer-grid nav,
.footer-grid > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-grid strong {
  margin-bottom: 4px;
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  h1 {
    font-size: 4.7rem;
  }

  h2 {
    font-size: 3rem;
  }

  .support-panel h2 {
    font-size: 2.55rem;
  }

  .nav-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 99px;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: 1fr;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: grid;
  }

  .hero,
  .privacy {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-visual {
    min-height: 560px;
  }

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

  .support-panel,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --section: min(100% - 28px, 1120px);
  }

  .site-header {
    width: min(100% - 18px, 1180px);
  }

  h1 {
    font-size: 3.3rem;
  }

  h2 {
    font-size: 2.28rem;
  }

  .support-panel h2 {
    font-size: 2.05rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-visual {
    min-height: 520px;
  }

  .phone {
    width: min(292px, 86vw);
  }

  .signal-card {
    position: absolute;
    max-width: 156px;
  }

  .signal-one {
    left: -2px;
    top: 22px;
  }

  .signal-two {
    right: -2px;
    bottom: 34px;
  }

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

  .features,
  .screens,
  .faq,
  .privacy {
    padding: 70px 0;
  }

  .carousel {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .screen-track {
    grid-auto-columns: 100%;
  }

  .mini-ui {
    height: 360px;
  }

  .support-panel {
    padding: 24px;
  }
}
