/* ============================================================
   MemorySaathi landing page
   A product of Tech Eagles | Mahakumbrix Innovation
   ============================================================ */
:root {
  --bg: #0d0a14;
  --bg2: #140d1c;
  --text: #f4eef7;
  --muted: #b7a9c4;
  --card: rgba(255, 255, 255, 0.05);
  --card-brd: rgba(255, 255, 255, 0.12);
  --glass-blur: 18px;
  --rose: #ff8fb1;
  --violet: #b78cff;
  --gold: #ffd27a;
  --grad: linear-gradient(120deg, #ff8fb1 0%, #b78cff 55%, #8fb8ff 100%);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --r: 22px;
}

[data-theme="light"] {
  --bg: #fbf6fd;
  --bg2: #f3ecfa;
  --text: #2a2233;
  --muted: #6b6075;
  --card: rgba(255, 255, 255, 0.66);
  --card-brd: rgba(120, 90, 150, 0.16);
  --shadow: 0 18px 50px rgba(120, 90, 160, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: radial-gradient(1200px 800px at 70% -10%, var(--bg2), var(--bg));
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.4s, color 0.4s;
}

/* ---------- aurora background ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; filter: blur(60px); opacity: 0.55; }
.aurora span { position: absolute; display: block; border-radius: 50%; }
.aurora .a { width: 50vw; height: 50vw; background: var(--rose); top: -10%; left: -10%; animation: float1 18s ease-in-out infinite; }
.aurora .b { width: 42vw; height: 42vw; background: var(--violet); top: 20%; right: -12%; animation: float2 22s ease-in-out infinite; }
.aurora .c { width: 38vw; height: 38vw; background: #8fb8ff; bottom: -15%; left: 25%; animation: float3 26s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate(8%, 12%) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(-10%, 8%) scale(1.15); } }
@keyframes float3 { 50% { transform: translate(6%, -10%) scale(1.05); } }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }

.glass {
  background: var(--card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--card-brd);
  box-shadow: var(--shadow);
}

/* ---------- nav ---------- */
nav { position: sticky; top: 12px; z-index: 100; margin-top: 12px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-radius: 18px; }
.brand { font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; letter-spacing: 0.2px; }
.logo { font-size: 1.4rem; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-btn { background: var(--card); border: 1px solid var(--card-brd); color: var(--text); width: 40px; height: 40px; border-radius: 12px; cursor: pointer; font-size: 1.1rem; transition: transform 0.2s; }
.theme-btn:hover { transform: rotate(20deg) scale(1.05); }
.nav-cta { color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 9px 16px; border-radius: 12px; background: var(--grad); color: #1a1020; white-space: nowrap; }

/* ---------- header ---------- */
header { text-align: center; padding: 70px 0 40px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--muted); margin-bottom: 28px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #57e08a; box-shadow: 0 0 0 0 #57e08a; animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(87, 224, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(87, 224, 138, 0); } }

h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.08; font-weight: 850; letter-spacing: -1px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sub { max-width: 660px; margin: 22px auto 0; color: var(--muted); font-size: clamp(1.02rem, 2.2vw, 1.2rem); }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; padding: 15px 28px; border-radius: 15px; font-size: 1.02rem; transition: transform 0.2s, box-shadow 0.2s; }
.btn .em { font-size: 1.15rem; }
.btn-primary { background: var(--grad); color: #1a1020; box-shadow: 0 12px 30px rgba(183, 140, 255, 0.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(183, 140, 255, 0.5); }
.btn-ghost { background: var(--card); border: 1px solid var(--card-brd); color: var(--text); }
.btn-ghost:hover { transform: translateY(-3px); }

.disclaimer { margin-top: 30px; font-size: 0.84rem; color: var(--muted); opacity: 0.85; }

/* ---------- phone mockup ---------- */
.stage { margin: 56px auto 0; display: flex; justify-content: center; perspective: 1200px; }
.phone { width: 320px; max-width: 86vw; border-radius: 34px; padding: 14px; transform: rotateX(6deg); animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) rotateX(14deg); } }
.screen { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); border-radius: 24px; padding: 16px; min-height: 380px; display: flex; flex-direction: column; gap: 10px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--card-brd); margin-bottom: 6px; }
.chat-head .av { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 1.3rem; }
.chat-head small { color: var(--muted); }
.bubble { max-width: 82%; padding: 11px 15px; border-radius: 18px; font-size: 0.95rem; animation: pop 0.5s both; }
.bubble.in { background: var(--card); border: 1px solid var(--card-brd); border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble.out { background: var(--grad); color: #1a1020; border-bottom-right-radius: 6px; align-self: flex-end; font-weight: 600; }
.bubble.in { animation-delay: 0.15s; }
.bubble.out:nth-of-type(3) { animation-delay: 0.3s; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } }

/* ---------- sections ---------- */
.sec { padding: 80px 0 20px; }
.eyebrow { text-align: center; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; font-weight: 700; color: var(--violet); margin-bottom: 12px; }
h2 { text-align: center; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.5px; }
.lead { text-align: center; max-width: 620px; margin: 16px auto 0; color: var(--muted); }

/* ---------- cards grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.grid.two { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-left: auto; margin-right: auto; }
.card { padding: 26px 22px; border-radius: var(--r); transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-6px); }
.card .ic { font-size: 2rem; display: block; margin-bottom: 14px; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; font-weight: 750; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.step { padding: 28px 24px; border-radius: var(--r); position: relative; }
.step .num { font-size: 0.78rem; font-weight: 800; letter-spacing: 1.5px; color: var(--violet); margin-bottom: 12px; }
.step h4 { font-size: 1.22rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* ---------- final CTA ---------- */
.final { text-align: center; padding: 60px 30px; border-radius: 28px; margin: 80px 0 0; }
.final h2 { margin-bottom: 14px; }
.final p { color: var(--muted); margin-bottom: 28px; }

/* ---------- footer ---------- */
footer { text-align: center; padding: 60px 0 50px; color: var(--muted); font-size: 0.9rem; }
.by { color: var(--text); font-weight: 700; }
.disc { margin-top: 10px; font-size: 0.82rem; opacity: 0.8; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s, transform 0.7s; }
.reveal.show { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .grid.two { grid-template-columns: 1fr; }
  header { padding: 50px 0 30px; }
}
