:root {
  --bg: #fffbf6;
  --card: #ffffff;
  --primary: #7b5cd6;
  --primary-light: #f0ebff;
  --peach: #ffefe8;
  --text: #24212c;
  --muted: #7d7788;
  --border: #e9e1d8;
  --success: #25d366;
  --radius: 20px;
  --shadow: 0 12px 40px rgba(36, 33, 44, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}

.brand-wordmark {
  width: auto;
  height: 34px;
  max-width: 150px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .brand-wordmark {
    height: 28px;
    max-width: 120px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav a {
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 18px;
  font-weight: 900;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(123, 92, 214, 0.35);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  border-radius: 14px;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.btn-outline {
  background: var(--card);
  color: var(--primary);
  border: 2px solid var(--primary);
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero h1 .accent {
  color: #e85d75;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 32rem;
}

@media (max-width: 860px) {
  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 860px) {
  .hero-actions {
    justify-content: center;
  }
}

.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-visual {
  background: var(--primary-light);
  border-radius: 28px;
  padding: 1.5rem;
  border: 1px solid #ddd4f5;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 260px;
}

.hero-visual img {
  border-radius: 0;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* Features */
.features {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .feature-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .feature-grid-4 {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-card .icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

/* App screens */
.screens-section .container {
  width: min(1200px, 94vw);
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .screens-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .screens-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}

.screen-card {
  background: var(--card);
  border-radius: 1.75rem;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.screen-card:hover {
  transform: translateY(-4px);
}

.screen-card .frame {
  aspect-ratio: 9 / 18;
  background: var(--bg);
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 1.75rem 1.75rem 0 0;
}

.screen-card .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 1.75rem 1.75rem 0 0;
  display: block;
}

.screen-card figcaption {
  padding: 0.85rem 0.75rem 1rem;
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.screen-card.placeholder .frame {
  border: 2px dashed var(--border);
  background: var(--bg);
}

.screen-card.placeholder .frame-inner {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 1rem;
}

.screen-card.placeholder .frame-inner span {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.flow-card .flow-frame {
  background: linear-gradient(180deg, var(--primary-light) 0%, #fff 100%);
  border: none;
}

.flow-card .flow-frame.saved {
  background: linear-gradient(180deg, #ede7ff 0%, #fff 100%);
}

.flow-card .flow-frame.profile {
  background: linear-gradient(180deg, var(--peach) 0%, #fff 100%);
}

.flow-card .flow-frame.themes {
  background: linear-gradient(180deg, #fff6cc 0%, #fff 100%);
}

.flow-content {
  text-align: center;
  padding: 1rem 0.75rem;
  width: 100%;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.flow-content strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.flow-content p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.flow-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.flow-content li {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 700;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.flow-content li:last-child {
  border-bottom: none;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, #9b7fe8 100%);
  color: #fff;
  border-radius: 28px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
}

.cta h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
}

.cta p {
  margin: 0 0 1.5rem;
  opacity: 0.92;
}

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

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-weight: 700;
  color: var(--muted);
}

/* Privacy page */
.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.legal-page .updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.legal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  max-width: 800px;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text);
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content li {
  margin-bottom: 0.35rem;
}
