@font-face {
  font-family: 'Inter';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/inter-900.woff2') format('woff2');
}

:root {
  --bg: #0d0d18;
  --surface: #141422;
  --card: #1f1e31;
  --card-strong: #2a2240;
  --border: #3b3652;
  --border-strong: #625b7a;
  --text: #ffffff;
  --muted: #a3a3b2;
  --subtle: #737386;
  --purple: #8b5cf6;
  --purple-soft: #c4b5fd;
  --green: #34d399;
  --blue: #38bdf8;
  --max-width: 920px;
  --max-width-wide: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  line-height: 1.6;
}

a { color: var(--purple-soft); }
a:hover { color: var(--purple); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

header.site-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 13, 24, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width-wide);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* width:auto is required — the <img> carries intrinsic width/height attributes (for CLS),
   and without this the presentational width attribute wins and stretches the wordmark. */
.logo img { height: 30px; width: auto; display: block; }

nav.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.15s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), #7c4de0);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(139, 92, 246, 0.48); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple-soft); transform: translateY(-1px); }

.eyebrow {
  color: var(--purple-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 20px 0 18px;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 18px;
}

p { color: var(--muted); }

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 520px;
}

.section {
  padding: 88px 0;
  position: relative;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head h2 { margin-top: 10px; }
.section-head p { max-width: 520px; margin: 0 auto; }

/* Ambient glows */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.glow-purple { background: radial-gradient(circle, rgba(139, 92, 246, 0.38) 0%, rgba(139, 92, 246, 0) 70%); }
.glow-blue { background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0) 70%); }

/* Hero */
.hero {
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero .glow-purple { top: -260px; right: -220px; width: 640px; height: 640px; }
.hero .glow-blue { bottom: -180px; left: -160px; width: 420px; height: 420px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-copy .btn-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 700;
}
.hero-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }

/* Phone frame mockup (mirrors the app's own visual language) */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone-frame {
  width: 272px;
  border-radius: 42px;
  background: #14121f;
  border: 4px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03);
  padding: 14px;
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}
.phone-screen {
  background: radial-gradient(circle at 25% 0%, #2a2240 0%, #0d0d18 60%);
  border-radius: 28px;
  padding: 20px 16px;
  min-height: 420px;
}
.phone-screenshot {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  display: block;
  object-fit: cover;
}
.phone-screen .eyebrow { font-size: 10px; letter-spacing: 1.4px; }
.phone-screen .mini-title { font-size: 15px; font-weight: 900; margin: 6px 0 18px; color: var(--text); }

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 88px;
  margin-bottom: 22px;
}
.mini-bars .bar {
  flex: 1;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--purple-soft), var(--purple));
}

.mini-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.mini-card .label {
  color: var(--purple-soft);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.mini-card .line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  margin-top: 9px;
}
.mini-card .line.w-100 { width: 100%; }
.mini-card .line.w-80 { width: 80%; }
.mini-card .line.w-60 { width: 60%; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-frame { animation: none; }
}

/* Delphine avatar (swap in the real portrait via .delphine-avatar img when ready) */
.delphine-avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  margin: 0 auto 24px;
  position: relative;
  background: radial-gradient(circle at 32% 28%, #4c3a7a 0%, #1a1730 70%);
  border: 1px solid rgba(196, 181, 253, 0.25);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.12), 0 20px 60px rgba(139, 92, 246, 0.25);
}
.delphine-avatar::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.3);
  animation: pulse-ring 3.4s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.94); opacity: 0.7; }
  80% { transform: scale(1.14); opacity: 0; }
  100% { opacity: 0; }
}

/* Feature / pricing cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

/* A second row holding fewer cards than the first: keep the column width
   identical to the row above instead of letting auto-fit stretch them. */
.card-grid-pair {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
@media (max-width: 860px) {
  .card-grid-pair { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

.feature-card, .price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  overflow: hidden;
}
.feature-card:hover, .price-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--card-strong);
}

.card-screenshot {
  display: block;
  width: calc(100% + 52px);
  margin: -26px -26px 18px;
  max-height: 220px;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--border);
}

.feature-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(56, 189, 248, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}
.feature-card p { font-size: 14px; margin-top: 8px; }

.pricing-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}
.pricing-cards { grid-template-columns: 1fr; margin-top: 0; }
.pricing-visual .phone-frame { width: 240px; }
@media (max-width: 860px) {
  .pricing-layout { grid-template-columns: 1fr; }
  .pricing-visual { order: -1; }
}

.price-card { text-align: left; }
.price-card .amount { font-size: 30px; font-weight: 900; color: var(--text); margin: 10px 0 4px; }
.price-card .amount .period { font-size: 13px; color: var(--muted); font-weight: 700; }
.price-card.featured {
  background: var(--card-strong);
  border-color: var(--purple);
  position: relative;
}
.price-card.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, var(--purple), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.price-card .fine { font-size: 12px; margin-top: 8px; line-height: 1.5; }

/* CTA banner */
.cta-banner {
  background: radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.22), var(--card) 60%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { margin-top: 0; }
.cta-banner .btn-row { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  margin-top: 40px;
}

@media (max-width: 860px) {
  h1 { font-size: 38px; }
  h2 { font-size: 26px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone-stage { order: -1; }
  .phone-frame { width: 220px; }
  .phone-screen { min-height: 340px; padding: 16px 14px; }
  nav.site-nav { gap: 16px; }
  nav.site-nav a { font-size: 13px; }
}

@media (max-width: 480px) {
  h1 { font-size: 32px; }
  .logo img { height: 24px; }
  nav.site-nav { gap: 12px; }
}

footer.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
}

footer.site-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

footer.site-footer a {
  color: var(--subtle);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
footer.site-footer a:hover { color: var(--muted); }

footer.site-footer .copyright {
  color: var(--subtle);
  font-size: 13px;
}

footer.site-footer .social-icons {
  display: flex;
  gap: 16px;
}

footer.site-footer .social-icons a {
  display: inline-flex;
  color: var(--subtle);
  transition: color 0.2s ease, transform 0.2s ease;
}

footer.site-footer .social-icons a:hover {
  color: var(--purple-soft);
  transform: translateY(-2px);
}

/* Legal pages */
.legal main {
  padding: 56px 0 40px;
}

.legal .updated {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal h1 { font-size: 34px; margin-bottom: 6px; }

.legal section {
  margin-top: 34px;
}

.legal section h2 {
  font-size: 19px;
  margin-bottom: 10px;
}

.legal ul { color: var(--muted); padding-left: 20px; }
.legal li { margin-bottom: 8px; }

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}
