/* Hast Rekha · Palmistry — design tokens v1 */
:root {
  --bg: #1a1033;
  --bg-2: #241543;
  --bg-3: #2e1c55;
  --ink: #f5efe6;
  --ink-dim: #c9bfae;
  --ink-faint: #9a8fa8;
  --rose: #e8b4a0;
  --rose-deep: #c98a6b;
  --gold: #d4a24e;
  --gold-soft: #f0d9a8;
  --line: rgba(232, 180, 160, 0.22);
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(232, 180, 160, 0.16);
  --ok: #8fd6a4;
  --warn: #f0c36b;
  --bad: #ef9a9a;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Yatra One", "Tiro Devanagari Hindi", system-ui, serif;
  --font-hi: "Tiro Devanagari Hindi", "Noto Sans Devanagari", serif;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212, 162, 78, 0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(232, 180, 160, 0.08), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
[lang="hi"], .hi { font-family: var(--font-hi); }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* top nav */
.tnav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(26, 16, 51, 0.82);
  border-bottom: 1px solid var(--card-border);
}
.tnav-in {
  display: flex; align-items: center; gap: 18px;
  max-width: 1060px; margin: 0 auto; padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name {
  font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.5px; white-space: nowrap;
  background: linear-gradient(120deg, var(--gold-soft), var(--rose) 60%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tnav-links { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.tnav-links::-webkit-scrollbar { display: none; }
.tnav-links a {
  color: var(--ink-dim); text-decoration: none; font-size: 0.92rem;
  padding: 8px 12px; border-radius: 999px; white-space: nowrap;
}
.tnav-links a:hover, .tnav-links a.active { color: var(--ink); background: var(--card); }

/* language pill — inside nav flow, never fixed */
.lang-toggle {
  display: inline-flex; border: 1px solid var(--card-border); border-radius: 999px;
  overflow: hidden; font-size: 0.85rem; flex: none;
}
.lang-toggle button {
  background: transparent; border: 0; color: var(--ink-dim);
  padding: 7px 14px; cursor: pointer; font-family: inherit;
}
.lang-toggle button[aria-pressed="true"] {
  background: linear-gradient(120deg, var(--rose-deep), var(--gold));
  color: #241303; font-weight: 700;
}

/* hero */
.hero { text-align: center; padding: 64px 20px 40px; position: relative; overflow: hidden; }
.hero-eyebrow {
  display: inline-block; font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--rose); border: 1px solid var(--card-border); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 22px; background: var(--card);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.15; margin: 0 0 16px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--gold-soft), var(--rose) 55%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { color: var(--ink-dim); font-size: 1.08rem; max-width: 640px; margin: 0 auto 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(120deg, var(--rose-deep), var(--gold));
  color: #241303; font-weight: 700; font-size: 1.02rem;
  border: 0; border-radius: 999px; padding: 15px 34px; cursor: pointer;
  text-decoration: none; box-shadow: 0 10px 30px rgba(212, 162, 78, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(212, 162, 78, 0.45); }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--card-border);
  box-shadow: none; font-weight: 600;
}
.btn-ghost:hover { background: var(--card); box-shadow: none; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ai-note { color: var(--ink-faint); font-size: 0.88rem; margin: 20px auto 0; max-width: 560px; }

/* hero palm artwork (inline vector line-art, drawn as SVG directly) */
.palm-art-svg {
  width: min(300px, 68vw); height: auto; margin: 30px auto 0; display: block;
  filter: drop-shadow(0 12px 40px rgba(212, 162, 78, 0.25));
  animation: floaty 5.5s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* sections */
.section { padding: 56px 0; }
.section h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.2rem); text-align: center; margin: 0 0 10px;
}
.section .sub { text-align: center; color: var(--ink-dim); max-width: 620px; margin: 0 auto 34px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 24px; transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(232, 180, 160, 0.4); }
.card h3 { margin: 12px 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--ink-dim); font-size: 0.94rem; }
.card .ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(232,180,160,0.18), rgba(212,162,78,0.18));
  border: 1px solid var(--card-border);
}
.card .ico svg { width: 24px; height: 24px; stroke: var(--rose); fill: none; stroke-width: 1.8; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; counter-reset: step; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 22px 20px 20px 64px;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 18px; width: 32px; height: 32px;
  border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--rose-deep), var(--gold));
  color: #241303; font-weight: 800; font-size: 0.95rem;
}
.step h3 { margin: 0 0 6px; font-size: 1rem; }
.step p { margin: 0; color: var(--ink-dim); font-size: 0.9rem; }

/* transparency band */
.proof {
  background: linear-gradient(180deg, rgba(232,180,160,0.07), rgba(212,162,78,0.05));
  border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
}
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.proof-item { display: flex; gap: 14px; align-items: flex-start; }
.proof-item svg { flex: none; width: 30px; height: 30px; stroke: var(--gold); fill: none; stroke-width: 1.8; margin-top: 2px; }
.proof-item h3 { margin: 0 0 4px; font-size: 1rem; }
.proof-item p { margin: 0; color: var(--ink-dim); font-size: 0.92rem; }

/* faq */
.faq details {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 14px;
  padding: 16px 20px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq summary::marker { color: var(--rose); }
.faq p { color: var(--ink-dim); margin: 10px 0 0; font-size: 0.95rem; }

/* footer */
.tfoot { border-top: 1px solid var(--card-border); padding: 40px 0 60px; color: var(--ink-faint); font-size: 0.88rem; }
.tfoot a { color: var(--ink-dim); text-decoration: none; }
.tfoot a:hover { color: var(--rose); }
.tfoot-grid { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin-bottom: 18px; }
.tfoot p { text-align: center; max-width: 640px; margin: 8px auto; }

/* scan flow chrome */
.scan-shell { max-width: 720px; margin: 0 auto; padding: 24px 20px 80px; }
.progress { display: flex; gap: 6px; margin: 18px 0 28px; }
.progress i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.12); }
.progress i.done { background: linear-gradient(90deg, var(--rose-deep), var(--gold)); }
.step-pane { display: none; animation: fadeup 0.45s ease; }
.step-pane.on { display: block; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.field label { display: block; font-weight: 600; margin: 18px 0 8px; }
.field input[type="file"] { display: none; }
.drop {
  border: 2px dashed var(--card-border); border-radius: var(--radius);
  padding: 40px 20px; text-align: center; cursor: pointer; transition: border-color 0.2s;
  background: var(--card);
}
.drop:hover, .drop.over { border-color: var(--rose); }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.thumbs img { width: 86px; height: 86px; object-fit: cover; border-radius: 12px; border: 2px solid transparent; }
.thumbs img.best { border-color: var(--gold); }
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.4px;
  border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: middle;
}
.badge.ok { background: rgba(143, 214, 164, 0.16); color: var(--ok); }
.badge.mid { background: rgba(240, 195, 107, 0.16); color: var(--warn); }
.badge.low { background: rgba(239, 154, 154, 0.16); color: var(--bad); }

.compare { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); }
.compare img { display: block; width: 100%; }
.compare .after { position: absolute; inset: 0; overflow: hidden; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .handle {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gold);
  pointer-events: none;
}
.compare .handle::after {
  content: "◂ ▸"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--gold); color: #241303; font-size: 0.7rem; border-radius: 999px; padding: 6px 10px;
  white-space: nowrap;
}

.overlay-stage { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); touch-action: none; }
.overlay-stage img { display: block; width: 100%; }
.overlay-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ov-line { fill: none; stroke: var(--rose); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(232,180,160,0.8)); }
.ov-line.fate { stroke: var(--gold); }
.ov-pt { fill: #fff; stroke: var(--gold); stroke-width: 2; cursor: grab; }
.ov-pt:active { cursor: grabbing; }
.ov-label { font-size: 12px; fill: var(--gold-soft); paint-order: stroke; stroke: rgba(26,16,51,0.9); stroke-width: 3px; }

.result-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 14px;
}
.result-card h3 { margin: 0 0 6px; display: flex; align-items: center; flex-wrap: wrap; }
.result-card .verdict { font-size: 1.05rem; color: var(--gold-soft); font-weight: 600; margin: 6px 0; }
.result-card p { color: var(--ink-dim); margin: 6px 0; font-size: 0.95rem; }
.result-card .src { font-size: 0.8rem; color: var(--ink-faint); }

.spinner {
  width: 54px; height: 54px; border-radius: 50%; margin: 30px auto;
  border: 3px solid rgba(232,180,160,0.2); border-top-color: var(--rose);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .tnav-in { gap: 10px; padding: 10px 14px; }
  .brand-name { font-size: 1.15rem; }
  .hero { padding: 44px 16px 30px; }
  .section { padding: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
