/* ── Base ── */

:root {
  --primary: #7C6CFF;
  --accent: #4FD1FF;
  --bg: #0B0F1A;
  --bg-light: #141A2E;
  --card: #1C2340;
  --text: #FFFFFF;
  --text-secondary: #AAAAAA;
  --warm-start: #FF9F43;
  --warm-end: #FF6B6B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Nav ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(11, 15, 26, 0.8);
  border-bottom: 1px solid rgba(124, 108, 255, 0.08);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.logo-text-sm {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.1; }
  to { opacity: 0.7; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent);
  border: 1px solid rgba(79, 209, 255, 0.2);
  background: rgba(79, 209, 255, 0.06);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 32px rgba(124, 108, 255, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124, 108, 255, 0.45);
}

/* ── Features ── */

.features {
  padding: 100px 0 120px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-light) 50%, var(--bg) 100%);
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 60px;
}

/* ── CTA Section ── */

.cta-section {
  text-align: center;
  padding: 100px 24px 120px;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

/* ── Footer ── */

.footer {
  border-top: 1px solid rgba(124, 108, 255, 0.08);
  padding: 40px 0;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 13px;
  color: rgba(170, 170, 170, 0.5);
}

/* ── Legal pages ── */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal-page h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.legal-page .last-updated {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page li { margin-bottom: 6px; }

.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .nav-links { gap: 16px; }
}

/* Landing page composition */
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.hero { min-height: auto; padding: 135px 0 75px; text-align: left; }
.hero-layout { width: 100%; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 70px; }
.hero-sub { margin-left: 0; }
.hero-note { color: var(--text-secondary); font-size: 12px; margin-top: 22px; }
.cta-button span { margin-left: 14px; }
.hero-preview { position: relative; z-index: 1; justify-self: center; }
.hero-preview::before { content: ''; position: absolute; inset: 12% -30%; background: radial-gradient(ellipse, #7c6cff26, transparent 68%); z-index: -1; }
.phone-frame { width: 278px; padding: 7px; position: relative; background: #080a10; border: 2px solid #646776; border-radius: 43px; box-shadow: 0 0 0 3px #1b1e2c, 18px 30px 65px #0008, inset 0 0 0 2px #30333d; }
.phone-frame::before, .phone-frame::after { content: ''; position: absolute; background: #565966; width: 3px; border-radius: 2px; }
.phone-frame::before { height: 54px; top: 125px; left: -5px; }
.phone-frame::after { height: 65px; top: 155px; right: -5px; }
.phone-frame img { display: block; width: 100%; height: auto; border-radius: 34px; }
.phone-island { position: absolute; top: 17px; left: 50%; transform: translateX(-50%); width: 78px; height: 21px; border-radius: 20px; background: #030407; }
.hero-preview figcaption { font-size: 11px; color: #929aae; text-align: center; margin-top: 24px; }
.features { padding: 85px 0 100px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.eyebrow { color: var(--accent); font-size: 10px; letter-spacing: 1.9px; font-weight: 600; text-transform: uppercase; margin-bottom: 20px; line-height: 1.7; }
.section-title { text-align: left; margin-bottom: 0; font-size: 34px; line-height: 1.25; }
.section-heading > p { max-width: 280px; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card { position: relative; overflow: hidden; padding: 28px; border: 1px solid #ffffff12; border-radius: 20px; background: #151b2d; transition: border-color .25s, transform .25s; }
.feature-card:hover { transform: translateY(-3px); border-color: #7c6cff66; }
.feature-number { display: block; font-size: 10px; letter-spacing: 1.5px; color: #9fabc7; margin-bottom: 23px; }
.feature-card h3 { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.5px; margin-bottom: 12px; }
.feature-card p { font-size: 14px; line-height: 1.75; color: #b0b6c7; }
.feature-letter, .feature-journey { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 28px; }
.feature-letter { background: linear-gradient(115deg, #1d2340, #151b2d); }
.letter-preview { padding: 26px 23px; background: #252d4c; border: 1px solid #8893c02b; border-radius: 5px; transform: rotate(-4deg); box-shadow: 0 15px 30px #0003; margin: 20px 0; }
.letter-preview > span:first-child { font-size: 9px; letter-spacing: 2px; color: #a9b2d0; }
.letter-preview p { font-family: Georgia, serif; font-size: 18px; color: #e6e4f1; line-height: 1.7; margin: 24px 0 12px; }
.letter-lines { height: 29px; background: repeating-linear-gradient(transparent 0 13px, #ffffff12 13px 14px); }
.letter-signature { display: block; font-family: Georgia, serif; font-style: italic; font-size: 15px; color: #ad9fff; margin-top: 18px; }
.feature-unlock { background: linear-gradient(150deg, #252333, #181c2b); }
.date-preview { text-align: center; padding: 17px 0 27px; }
.date-preview > span:first-child { font-size: 8px; letter-spacing: 1.5px; color: #c4a998; }
.date-preview strong { display: block; font: italic 24px Georgia, serif; color: #f1d3b7; margin-top: 16px; }
.date-rule { height: 1px; background: linear-gradient(90deg, transparent, #d8b39366, transparent); margin: 20px 0 15px; }
.sealed-label { font-size: 10px; color: #c4a998; }
.chat-preview { min-height: 147px; display: flex; flex-direction: column; gap: 12px; padding: 4px 0 24px; }
.chat-preview > span { background: #272c4d; padding: 12px 14px; border-radius: 12px 12px 12px 2px; font-size: 12px; line-height: 1.5; margin-right: 20px; }
.chat-preview > span + span { background: #254156; margin: 0 0 0 25px; border-radius: 12px 12px 2px 12px; }
.chat-preview small { display: block; color: #83d9f4; font-size: 8px; letter-spacing: 1px; margin-bottom: 5px; }
.milestone-preview { min-height: 147px; padding-bottom: 25px; }
.milestone-spark { display: block; font-size: 49px; color: #ffbd82; line-height: 1; margin-bottom: 12px; }
.milestone-preview > span:nth-child(2) { color: #c8a991; font-size: 8px; letter-spacing: 1px; }
.milestone-preview strong { display: block; font: italic 18px Georgia, serif; margin-top: 10px; color: #f0d4bd; }
.feature-milestones { background: linear-gradient(145deg, #29232e, #191d2f); }
.notification-preview { display: flex; align-items: center; gap: 10px; padding: 15px 12px; background: #ffffff09; border: 1px solid #ffffff0d; border-radius: 15px; margin: 32px -9px 38px; transform: rotate(-3deg); }
.notification-preview img { border-radius: 9px; }
.notification-preview > div { flex: 1; }
.notification-preview small { display: flex; justify-content: space-between; font-size: 8px; color: #b7bcd0; margin-bottom: 5px; }
.notification-preview strong { display: block; font-size: 10px; margin-bottom: 4px; }
.notification-preview div > span { font-size: 8px; color: #b7bcd0; display: block; }
.feature-reminders { grid-column: 1; }
.feature-journey { background: linear-gradient(120deg, #151b2d, #182936); }
.journey-preview { padding: 16px 0 0 12px; }
.journey-preview > div { position: relative; border-left: 1px solid #4fd1ff40; padding: 0 0 28px 22px; }
.journey-preview > div:last-child { border-color: transparent; padding-bottom: 0; }
.journey-preview i { position: absolute; width: 9px; height: 9px; border-radius: 50%; left: -5px; top: 2px; background: #8d83e8; box-shadow: 0 0 0 5px #7c6cff15; }
.journey-preview > div:nth-child(2) i { background: #ffb774; }
.journey-preview > div:last-child i { background: #4fd1ff; }
.journey-preview span { font-size: 12px; }
.journey-preview small { display: block; font-size: 10px; color: #99a7bb; margin-top: 7px; }
.prompts-section { padding: 85px 0 100px; border-top: 1px solid #ffffff0b; }
.prompts-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 100px; align-items: center; }
.prompts-intro h2 { font-size: 42px; line-height: 1.15; letter-spacing: -1px; margin-bottom: 25px; }
.prompts-intro > p:not(.eyebrow) { color: #aab0c0; font-size: 15px; line-height: 1.8; }
.prompts-note { display: block; color: #bbb2ef; font-size: 12px; margin-top: 28px; }
.prompts-note span { margin-left: 10px; }
.writing-prompt { padding: 25px 0; border-bottom: 1px solid #ffffff18; }
.writing-prompt:first-child { border-top: 1px solid #ffffff18; }
.writing-prompt > span { color: #8c80e8; font-size: 10px; letter-spacing: 1px; }
.writing-prompt small { color: #969eb3; margin-left: 15px; font-size: 9px; }
.writing-prompt p { font: 22px/1.5 Georgia, serif; color: #dfdfeb; margin-top: 14px; }
.cta-section { background: radial-gradient(ellipse at 50% 100%, #7c6cff15, transparent 65%); }
@media (max-width: 900px) {
  .hero-layout { gap: 28px; }
  .hero h1 { font-size: 42px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-letter, .feature-journey { grid-column: span 2; }
  .feature-reminders { grid-column: auto; }
  .prompts-layout { gap: 45px; }
}
@media (max-width: 640px) {
  .hero { padding: 120px 0 55px; }
  .hero-layout { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .hero h1 { font-size: clamp(34px, 9vw, 46px); }
  .hero-sub { margin-left: auto; font-size: 16px; }
  .hero-badge { margin-bottom: 24px; }
  .phone-frame { width: 255px; }
  .features, .prompts-section { padding: 60px 0; }
  .section-heading { display: block; }
  .section-title { font-size: 29px; }
  .section-heading > p { margin-top: 20px; max-width: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-letter, .feature-journey { grid-column: auto; grid-template-columns: 1fr; gap: 12px; }
  .letter-preview { margin: 12px 10px; }
  .prompts-layout { grid-template-columns: 1fr; gap: 30px; }
  .prompts-intro h2 { font-size: 36px; }
  .cta-button { padding: 16px 24px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .star { animation: none; opacity: .35; }
  .feature-card, .cta-button { transition: none; }
  .feature-card:hover, .cta-button:hover { transform: none; }
}
@media (min-width: 901px) {
  .feature-milestones { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-content: center; }
  .feature-milestones .feature-number, .feature-milestones h3, .feature-milestones p { grid-column: 1; }
  .feature-milestones .milestone-preview { grid-column: 2; grid-row: 1 / span 3; align-self: center; padding: 25px 15px; text-align: center; border: 1px solid #ffc28a22; border-radius: 50% 50% 12px 12px; }
  .feature-milestones .milestone-spark { font-size: 65px; margin-bottom: 22px; }
  .feature-milestones .milestone-preview strong { font-size: 24px; line-height: 1.5; }
}
