/* ===== Daily Compound — site styles ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #08070d;
  --bg-soft: #0f0e19;
  --surface: #15142380;
  --surface-solid: #171626;
  --border: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(255, 255, 255, 0.18);

  --purple: #5C52DB;
  --purple-bright: #8B7FF5;
  --purple-dim: #3D37A0;

  --teal: #2DD4BF;
  --green: #34D399;
  --orange: #FB923C;

  --text: #F6F5FA;
  --text-dim: #ABA7C4;
  --text-faint: #6f6c86;

  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

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

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

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

section { position: relative; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

::selection { background: var(--purple); color: #fff; }

/* ---------- Background ambience ---------- */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: rgba(8, 7, 13, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px -2px rgba(92, 82, 219, 0.6);
  flex-shrink: 0;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.nav-burger {
  display: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: '';
  display: block;
  width: 16px; height: 1.5px;
  background: var(--text);
  position: relative;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-burger span::before { position: absolute; top: -5px; }
.nav-burger span::after { position: absolute; top: 5px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(8,7,13,0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-size: 22px; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple-bright), var(--purple));
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(108, 92, 231, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -6px rgba(108, 92, 231, 0.7); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- App Store badge (placeholder) ---------- */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 18px;
  border-radius: 14px;
  background: #fff;
  color: #08070d;
  border: 1px solid rgba(255,255,255,0.6);
  cursor: pointer;
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.5);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(0,0,0,0.6); }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge .sb-eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.55; }
.store-badge .sb-title { font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; }
.store-badge .sb-soon {
  position: absolute;
  top: -9px; right: -8px;
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 100px;
  box-shadow: 0 4px 10px -2px rgba(108,92,231,0.7);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-solid);
  border: 1px solid var(--border-bright);
  color: var(--text);
  padding: 14px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 200;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 32px 80px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-bright);
  margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(251,146,60,0.2); }

.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 22px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--purple-bright), #c7bcff 40%, var(--purple-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-faint);
  font-size: 13.5px;
}
.hero-proof strong { color: var(--text); font-weight: 700; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.hero-copy {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.hero-copy.in { opacity: 1; transform: translateY(0); }

.phone-splash {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
}
.splash-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: pulseMark 1.8s ease-in-out infinite;
}
@keyframes pulseMark {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ---------- Phone frame ---------- */
.phone {
  position: relative;
  width: 260px;
  aspect-ratio: 1284 / 2778;
  border-radius: 46px;
  background: #060608;
  padding: 12px;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.12),
    0 30px 80px -20px rgba(0,0,0,0.75),
    0 0 120px -20px rgba(108,92,231,0.45);
  flex-shrink: 0;
}
.phone.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(0.6deg); }
}
.phone-screen-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #f1f1f6;
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 20px;
  border-radius: 100px;
  background: #060608;
  z-index: 5;
}
.phone-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .55s var(--ease), transform .6s var(--ease);
}
.phone-screen.is-active { opacity: 1; transform: scale(1); }

.hero-visual .phone { width: 300px; }

/* ---------- Sections generic ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-head .eyebrow { margin-left: auto; margin-right: auto; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.12;
}
.section-head p {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Showcase / scrollytelling ---------- */
.showcase { padding: 60px 0 40px; }
.showcase-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.phone-col {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-col-inner { position: relative; }

.steps-col { display: flex; flex-direction: column; }
.step {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  opacity: 0.25;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.step.is-active { opacity: 1; transform: translateY(0); }

.step-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.step-icon svg { width: 22px; height: 22px; }
.step-tag {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.15;
}
.step p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 420px;
  margin: 0;
}

.step[data-accent="purple"] .step-icon { background: rgba(108,92,231,0.15); color: var(--purple-bright); }
.step[data-accent="teal"] .step-icon { background: rgba(45,212,191,0.15); color: var(--teal); }
.step[data-accent="green"] .step-icon { background: rgba(52,211,153,0.15); color: var(--green); }
.step[data-accent="orange"] .step-icon { background: rgba(251,146,60,0.15); color: var(--orange); }
.step[data-accent="purple"] .step-tag { color: var(--purple-bright); }
.step[data-accent="teal"] .step-tag { color: var(--teal); }
.step[data-accent="green"] .step-tag { color: var(--green); }
.step[data-accent="orange"] .step-tag { color: var(--orange); }

/* ---------- Value grid ---------- */
.values {
  padding: 60px 0 140px;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.value-card:hover { transform: translateY(-4px); border-color: var(--border-bright); }
.value-card .vc-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  background: rgba(108,92,231,0.15);
  color: var(--purple-bright);
}
.value-card .vc-icon svg { width: 20px; height: 20px; }
.value-card h4 { font-size: 16.5px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.01em; }
.value-card p { font-size: 14.5px; line-height: 1.55; color: var(--text-dim); margin: 0; }

/* ---------- Download CTA ---------- */
.download {
  padding: 100px 0;
  position: relative;
}
.download-card {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 40px;
  padding: 80px 40px;
  text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, rgba(108,92,231,0.28), transparent 60%), var(--surface-solid);
  border: 1px solid var(--border-bright);
  position: relative;
  overflow: hidden;
}
.download-card h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.download-card p {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 38px;
  line-height: 1.6;
}
.download-actions { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact { padding: 60px 0 140px; }
.contact-grid {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.contact-info h3 { font-size: 22px; font-weight: 800; margin: 0 0 14px; letter-spacing: -0.02em; }
.contact-info p { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin: 0 0 24px; }
.contact-info a.email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple-bright);
  font-weight: 600;
  font-size: 14.5px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.contact-info a.email:hover { border-color: var(--purple-bright); }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  resize: vertical;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.22);
}
.hidden-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { min-height: 20px; font-size: 13.5px; margin: 6px 0 0; color: var(--text-dim); }
.form-status.success { color: var(--green); }
.form-status.error { color: #f87171; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links { display: flex; gap: 26px; }
.footer-links a { font-size: 13.5px; color: var(--text-dim); transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-faint); }

/* ---------- Privacy page ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 160px 32px 120px;
}
.legal h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 10px; }
.legal .updated { color: var(--text-faint); font-size: 14px; margin: 0 0 50px; }
.legal h2 { font-size: 21px; font-weight: 700; margin: 44px 0 14px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text-dim); font-size: 15.5px; line-height: 1.75; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--purple-bright); font-weight: 600; }
.legal-note {
  margin-top: 50px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-visual .phone { width: 220px; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .showcase-inner { grid-template-columns: 1fr; }
  .phone-col { position: sticky; top: 76px; height: auto; padding: 30px 0; z-index: 5; }
  .phone-col .phone { width: 190px; }
  .step { min-height: auto; padding: 46px 0; text-align: center; align-items: center; }
  .step p { margin-left: auto; margin-right: auto; }

  .value-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; padding: 32px; }
}

@media (max-width: 560px) {
  .wrap, .hero, .showcase-inner, .legal { padding-left: 20px; padding-right: 20px; }
  .value-grid { grid-template-columns: 1fr; }
  .download-card { padding: 56px 24px; border-radius: 28px; }
  .contact-grid { padding: 24px; border-radius: 22px; }
}
