:root {
  --primary: #ff5a3c;
  --primary-dark: #e8451f;
  --primary-light: #ffe8e1;
  --bg: #fdfbf9;
  --bg-elevated: #ffffff;
  --text: #1a1512;
  --text-muted: #6b625c;
  --border: #ece4de;
  --success: #1f9d55;
  --shadow: 0 20px 50px -20px rgba(26, 21, 18, 0.18);
  --radius: 18px;
  --font: "Poppins", "Noto Sans Devanagari", system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg: #15110f;
  --bg-elevated: #1f1a17;
  --text: #f6f1ee;
  --text-muted: #b3a89f;
  --border: #322b26;
  --primary-light: #3a211b;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  height: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
}

.bg-glow {
  position: fixed;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 1.5rem) clamp(1.25rem, 4vw, 4rem) 1.5rem;
  padding-left: calc(env(safe-area-inset-left, 0px) + clamp(1.25rem, 4vw, 4rem));
  padding-right: calc(env(safe-area-inset-right, 0px) + clamp(1.25rem, 4vw, 4rem));
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-full {
  height: 48px;
  width: auto;
  display: block;
}

.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

.theme-toggle {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: transform 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover { transform: scale(1.06); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  align-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 0 clamp(1.25rem, 4vw, 4rem) clamp(1.5rem, 3vw, 2rem);
  position: relative;
  z-index: 2;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  width: fit-content;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 .accent { color: var(--primary); }

.subhead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.55;
  margin: 0;
}

.waitlist-form {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
  max-width: 480px;
}

.email-input {
  flex: 1;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
}

.email-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.notify-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.95rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, transform 0.15s ease;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}

.notify-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.notify-btn:active { transform: translateY(0); }
.notify-btn svg { width: 17px; height: 17px; transition: transform 0.2s ease; }
.notify-btn:hover svg { transform: translateX(3px); }

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  min-height: 1.2em;
}

.form-note.success { color: var(--success); font-weight: 600; }
.form-note.error { color: var(--primary-dark); font-weight: 600; }

.chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.chip {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-elevated);
}

/* ---------- Right side: phone mock ---------- */

.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  width: min(300px, 78vw);
  height: min(610px, 72vh);
  background: var(--bg-elevated);
  border: 6px solid var(--text);
  border-radius: 42px;
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
  flex-shrink: 0;
}

[data-theme="dark"] .phone-frame {
  border-color: #050403;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 0.5px 1px rgba(255, 255, 255, 0.2);
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  background: #050403;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 0.5px 1px rgba(255, 255, 255, 0.25);
  z-index: 3;
}

.phone-screen {
  height: 100%;
  padding: 2rem 0.65rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg);
  overflow: hidden;
}

/* ---- In-app chrome: header, tabs, section head, rabbit holes, bottom nav ---- */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.app-logo {
  height: 22px;
  width: auto;
  display: block;
}

.app-logo.logo-dark { display: none; }
[data-theme="dark"] .app-logo.logo-light { display: none; }
[data-theme="dark"] .app-logo.logo-dark { display: block; }

.app-drop-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: var(--font);
  font-size: 0.56rem;
  font-weight: 700;
  padding: 0.28rem 0.6rem 0.28rem 0.4rem;
  border-radius: 999px;
}

.app-drop-btn svg.plus-icon { width: 10px; height: 10px; }

.app-drop-sparkle {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 11px;
  height: 11px;
  color: #ffd88a;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.app-tabs {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

.app-tab {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.56rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}

.app-tab.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.app-tab-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

.app-section-head { flex-shrink: 0; }

.app-section-head h3 {
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0 0 0.1rem;
  color: var(--text);
}

.app-section-head p {
  font-size: 0.56rem;
  color: var(--text-muted);
  margin: 0;
}

.app-swipe-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.35);
}

.app-rabbit { flex-shrink: 0; }

.app-rabbit-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.app-rabbit-head h4 {
  font-size: 0.6rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.app-rabbit-head span {
  font-size: 0.5rem;
  color: var(--text-muted);
  font-weight: 600;
}

.app-rabbit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.app-rabbit-card {
  position: relative;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
}

.app-rabbit-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-rabbit-label {
  position: absolute;
  left: 6px;
  bottom: 5px;
  z-index: 1;
  font-size: 0.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.app-nav {
  display: flex;
  justify-content: space-between;
  flex-shrink: 0;
  padding-top: 0.3rem;
  border-top: 1px solid var(--border);
}

.app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  color: var(--text-muted);
  flex: 1;
}

.app-nav-item svg { width: 14px; height: 14px; }
.app-nav-item span { font-size: 0.42rem; font-weight: 600; }
.app-nav-item.active { color: var(--primary); }

.float-card {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: drift 5s ease-in-out infinite;
}

.float-1 { top: 8%; left: -6%; animation-delay: 0s; }
.float-2 { bottom: 20%; right: -8%; animation-delay: 1.2s; }
.float-3 { bottom: 2%; left: -2%; animation-delay: 2.4s; }

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  padding: 1rem;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  text-align: center;
}

.footer-dot { opacity: 0.5; }

/* ---------- Swipe demo card (lives inside the phone mock) ---------- */

.demo-card {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.35);
  will-change: transform, opacity;
}

.demo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.demo-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.75rem 0.9rem;
}

[data-theme="dark"] .demo-body { background: rgba(20, 16, 14, 0.92); }

.demo-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.3rem;
  color: var(--text);
}

.demo-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.demo-body .demo-avatar {
  position: static;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  object-fit: cover;
  display: inline-block;
  flex-shrink: 0;
}

.demo-card-a { animation: demoCardA 9s ease-in-out infinite; }
.demo-card-b { animation: demoCardB 9s ease-in-out infinite; }

@keyframes demoCardA {
  0%    { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; z-index: 2; }
  22%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; z-index: 2; }
  31%   { transform: translate(-170%, 8%) scale(0.95) rotate(-16deg); opacity: 0; z-index: 2; }
  32%   { transform: translate(-170%, 8%) scale(0.95) rotate(-16deg); opacity: 0; z-index: 1; }
  65%   { transform: translate(0, 10px) scale(0.93) rotate(0deg); opacity: 0; z-index: 1; }
  72%   { transform: translate(0, 10px) scale(0.93) rotate(0deg); opacity: 0.55; z-index: 1; }
  82%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; z-index: 2; }
  100%  { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; z-index: 2; }
}

@keyframes demoCardB {
  0%    { transform: translate(0, 10px) scale(0.93) rotate(0deg); opacity: 0.55; z-index: 1; }
  22%   { transform: translate(0, 10px) scale(0.93) rotate(0deg); opacity: 0.55; z-index: 1; }
  32%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; z-index: 2; }
  60%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; z-index: 2; }
  68%   { transform: translate(6%, -180%) scale(0.92) rotate(10deg); opacity: 0; z-index: 2; }
  69%   { transform: translate(6%, -180%) scale(0.92) rotate(10deg); opacity: 0; z-index: 0; }
  82%   { transform: translate(0, 10px) scale(0.93) rotate(0deg); opacity: 0; z-index: 0; }
  100%  { transform: translate(0, 10px) scale(0.93) rotate(0deg); opacity: 0.55; z-index: 1; }
}

.save-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--success);
  color: #fff;
  font-weight: 700;
  font-size: 0.6rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  animation: saveBadgePulse 9s ease-in-out infinite;
}

.save-badge svg { width: 11px; height: 11px; }

@keyframes saveBadgePulse {
  0%, 63%   { opacity: 0; transform: scale(0.7); }
  67%       { opacity: 1; transform: scale(1.15); }
  72%       { opacity: 1; transform: scale(1); }
  80%, 100% { opacity: 0; transform: scale(0.8); }
}

.swipe-hint {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 999px;
  padding: 0.26rem 0.5rem;
  font-size: 0.56rem;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.swipe-hint svg { width: 11px; height: 11px; color: #fff; flex-shrink: 0; }

.hint-left {
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  animation: hintLeft 9s ease-in-out infinite;
}

.hint-up {
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: hintUp 9s ease-in-out infinite;
}

@keyframes hintLeft {
  0%, 18%   { opacity: 1; }
  26%       { opacity: 0; }
  84%, 100% { opacity: 1; }
}

@keyframes hintUp {
  0%, 32%   { opacity: 0; }
  38%, 58%  { opacity: 1; }
  64%, 100% { opacity: 0; }
}

.touch-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  z-index: 6;
  pointer-events: none;
}

.touch-dot-left { animation: touchLeft 9s ease-in-out infinite; }
.touch-dot-up { animation: touchUp 9s ease-in-out infinite; }

@keyframes touchLeft {
  0%, 19%   { opacity: 0; transform: translate(0, 0) scale(1); }
  21%       { opacity: 1; transform: translate(0, 0) scale(1); }
  31%       { opacity: 0; transform: translate(-90px, 8px) scale(0.9); }
  100%      { opacity: 0; transform: translate(0, 0) scale(1); }
}

@keyframes touchUp {
  0%, 35%   { opacity: 0; transform: translate(0, 0) scale(1); }
  37%       { opacity: 1; transform: translate(0, 0) scale(1); }
  68%       { opacity: 0; transform: translate(8px, -110px) scale(0.9); }
  100%      { opacity: 0; transform: translate(0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-card-a, .demo-card-b, .save-badge,
  .hint-left, .hint-up, .touch-dot-left, .touch-dot-up {
    animation: none !important;
  }
  .demo-card-a { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; z-index: 2; }
  .demo-card-b { transform: translate(0, 10px) scale(0.93) rotate(0deg); opacity: 0.55; z-index: 1; }
  .hint-left { opacity: 1; }
  .hint-up, .save-badge, .touch-dot-left, .touch-dot-up { opacity: 0; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 0.25rem;
    padding-bottom: 1.5rem;
  }
  .hero-left { align-items: center; }
  .subhead { margin: 0 auto; }
  .waitlist-form { margin: 0.6rem auto 0; width: 100%; max-width: 360px; }
  .chips { justify-content: center; }
  .hero-right { order: -1; margin-bottom: 0.25rem; }
  .phone-frame { width: 180px; height: 365px; border-width: 5px; border-radius: 34px; }
  .phone-notch { top: 9px; width: 62px; height: 16px; }
  .phone-screen { padding: 1.1rem 0.45rem 0.4rem; gap: 0.3rem; }
  .float-card { display: none; }

  .logo-full { height: 36px; }
  .app-logo { height: 16px; }
  .app-drop-btn { font-size: 0.42rem; padding: 0.22rem 0.45rem 0.22rem 0.3rem; }
  .app-drop-btn svg.plus-icon { width: 8px; height: 8px; }
  .app-drop-sparkle { width: 9px; height: 9px; top: -4px; right: -4px; }

  .app-tabs { gap: 0.2rem; }
  .app-tab { font-size: 0.46rem; padding: 0.22rem 0.4rem; }
  .app-tab-dot { width: 4px; height: 4px; }
  .app-section-head h3 { font-size: 0.68rem; }
  .app-section-head p { font-size: 0.46rem; }

  .demo-tag { font-size: 0.52rem; padding: 0.2rem 0.4rem; top: 6px; left: 6px; }
  .demo-body { padding: 0.45rem 0.5rem; }
  .demo-title { font-size: 0.62rem; }
  .demo-meta { font-size: 0.52rem; }
  .demo-body .demo-avatar { width: 11px; height: 11px; }

  .swipe-hint { font-size: 0.46rem; padding: 0.18rem 0.38rem; }
  .swipe-hint svg { width: 9px; height: 9px; }
  .save-badge { font-size: 0.48rem; padding: 0.2rem 0.4rem; top: 5px; right: 5px; }
  .save-badge svg { width: 9px; height: 9px; }
  .touch-dot { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; }

  .app-rabbit-card { height: 34px; }
  .app-rabbit-label { font-size: 0.44rem; }
  .app-rabbit-head h4 { font-size: 0.5rem; }
  .app-rabbit-head span { font-size: 0.42rem; }

  .app-nav-item svg { width: 12px; height: 12px; }
  .app-nav-item span { font-size: 0.36rem; }
}

@media (max-width: 600px) {
  .topbar { padding-top: calc(env(safe-area-inset-top, 0px) + 1rem); padding-bottom: 0.75rem; }
  .hero { gap: 1rem; }
}

@media (max-width: 480px) {
  .waitlist-form { flex-direction: column; }
  .notify-btn { justify-content: center; }
  .footer { flex-direction: column; gap: 0.2rem; }
  .footer-dot { display: none; }
}

@media (max-width: 360px) {
  .phone-frame { width: 155px; height: 320px; }
  .chip { font-size: 0.76rem; padding: 0.3rem 0.6rem; }
  .app-rabbit { display: none; }
  .app-nav-item span { display: none; }
}
