:root {
  --bg: #fbfbfd;
  --bg-deep: #f3eef3;
  --card: #ffffff;
  --ink: #15181e;
  --muted: #5b6472;
  --faint: #98a0ad;
  --line: #eceef2;
  --accent: #ec4899;
  --accent-soft: #fce7f1;
  --accent-ink: #db2777;
  --accent-light: #f871b0;
  --event: #4f46e5;
  --task: #0e9f6e;
  --shadow: 0 24px 80px rgba(16, 24, 40, 0.12);
  --shadow-soft: 0 12px 40px rgba(16, 24, 40, 0.08);
  --radius: 28px;
  --max: 1120px;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 55% at 80% -10%, rgba(248, 113, 176, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 45% at 0% 20%, rgba(238, 241, 254, 0.9), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(252, 231, 241, 0.55), transparent 60%),
    var(--bg);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(251, 251, 253, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 251, 253, 0.9);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  background: var(--ink) !important;
  color: #fff !important;
}

.nav-cta:hover {
  background: #000 !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-accent {
  background: linear-gradient(135deg, var(--accent-light), var(--accent) 45%, var(--accent-ink));
  color: #fff;
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.35);
}

.btn-accent:hover {
  box-shadow: 0 16px 36px rgba(236, 72, 153, 0.42);
}

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: end;
  min-height: calc(100svh - 72px);
}

.hero-copy {
  padding-bottom: 48px;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s cubic-bezier(0.2, 0, 0, 1) 0.05s forwards;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.spark {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-ink));
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-ink);
}

.hero-lead {
  max-width: 34ch;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
}

.hero-note {
  margin-top: 16px;
  color: var(--faint);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  animation: rise-scale 1s cubic-bezier(0.2, 0, 0, 1) 0.18s forwards;
}

.hero-glow {
  position: absolute;
  inset: 12% 8% auto;
  height: 70%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.35), transparent 70%);
  filter: blur(24px);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(160deg, #1c1f26, #0d0f14);
  box-shadow: var(--shadow);
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}

.phone img {
  width: 100%;
  border-radius: 34px;
  background: var(--bg);
}

/* Sections */
section {
  padding: 88px 24px;
}

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

.section-head {
  max-width: 40rem;
  margin-bottom: 40px;
}

.section-kicker {
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 400;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
}

/* Feature strip */
.features {
  background: linear-gradient(180deg, transparent, rgba(252, 231, 241, 0.35), transparent);
}

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

.feature {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(16px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature.is-visible {
  animation: rise 0.7s cubic-bezier(0.2, 0, 0, 1) forwards;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.1);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.feature-icon.event {
  background: #eef1fe;
  color: var(--event);
}

.feature-icon.task {
  background: #eafbf3;
  color: var(--task);
}

.feature-icon.list {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.showcase-item {
  opacity: 0;
  transform: translateY(20px);
}

.showcase-item.is-visible {
  animation: rise 0.75s cubic-bezier(0.2, 0, 0, 1) forwards;
}

.showcase-item:nth-child(2) {
  margin-top: 48px;
}

.showcase-item:nth-child(3) {
  margin-top: 24px;
}

.showcase-phone {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 36px;
  padding: 8px;
  background: #15181e;
  box-shadow: var(--shadow-soft);
}

.showcase-phone img {
  border-radius: 28px;
}

.showcase-caption {
  margin-top: 16px;
  text-align: center;
}

.showcase-caption strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.showcase-caption span {
  color: var(--muted);
  font-size: 14px;
}

/* How */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px 24px;
  border-top: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  padding-top: 24px;
  padding-bottom: 24px;
}

.cta-panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 40px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(248, 113, 176, 0.18), rgba(236, 72, 153, 0.08) 40%, rgba(238, 241, 254, 0.5)),
    #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-soft);
}

.cta-panel h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
  font-weight: 400;
}

.cta-panel p {
  margin: 0;
  color: var(--muted);
  max-width: 38ch;
}

/* Footer */
.footer {
  padding: 48px 24px 32px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 32px;
  margin: 0 0 10px;
}

.footer p {
  margin: 0;
  color: var(--muted);
  max-width: 34ch;
}

.footer h4 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.footer a:hover {
  color: var(--accent-ink);
}

.footer-bottom {
  max-width: var(--max);
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Legal / support pages */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.page h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 56px);
  letter-spacing: -0.03em;
  font-weight: 400;
}

.page .lede {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 36px;
}

.page h2 {
  margin: 36px 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.page p,
.page li {
  color: var(--muted);
}

.page ul {
  padding-left: 1.2em;
}

.page a {
  color: var(--accent-ink);
  font-weight: 600;
}

/* Support form */
.form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line-strong, #e2e5eb);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
}

.form-success {
  display: none;
  padding: 16px 18px;
  border-radius: 14px;
  background: #eafbf3;
  color: var(--task);
  font-weight: 600;
}

.form-success.is-shown {
  display: block;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-scale {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 20px;
    gap: 36px;
  }

  .hero-copy {
    padding-bottom: 0;
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .btn-row {
    justify-content: center;
  }

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

  .showcase-item:nth-child(2),
  .showcase-item:nth-child(3) {
    margin-top: 0;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-copy,
  .hero-visual,
  .feature,
  .showcase-item {
    opacity: 1;
    transform: none;
  }
}
