/* Raisya. One theme (dark, so the 3D scene's light can glow), one accent (violet).
   Shapes: interactive things are pills, surfaces are 22px.
   The 3D desktop PC (scene.js) sits fixed behind the whole page. */
:root {
  color-scheme: dark;
  --bg: #0b0816;
  --surface: rgba(18, 13, 34, 0.72);
  --line: rgba(190, 170, 255, 0.14);
  --ink: #f1edff;
  --ink-soft: #c9c1e6;
  --muted: #a39bc4;
  --violet: #9a80ff;        /* accent on dark: text, marks */
  --violet-btn: #6d4cf0;    /* button fill, white text passes AA */
  --radius: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --gutter: max(24px, calc((100vw - 1240px) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
/* Lenis takes over smooth scrolling when it runs */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img, svg, canvas { display: block; }
::selection { background: rgba(146, 119, 255, 0.35); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 10px; }
code { font-family: var(--mono); font-size: 0.85em; color: #e2d9ff; background: rgba(146, 119, 255, 0.18); padding: 2px 7px; border-radius: 6px; }
.fine { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

.skip { position: absolute; left: 16px; top: -48px; z-index: 30; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }

#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; }
main { position: relative; z-index: 1; }

/* ── nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 16px; left: 50%; translate: -50% 0; z-index: 20; height: 72px;
  width: min(1240px, calc(100vw - 32px));
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px;
  padding: 0 10px 0 26px; border-radius: 999px;
  background: rgba(14, 10, 28, 0.72); border: 1px solid var(--line); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand-logo { height: 54px; width: auto; }
.foot-brand .brand-logo { height: 72px; }
.wordmark-h1 .ai { color: #b46cff; }
.nav nav { display: flex; gap: 30px; justify-content: center; }
.nav nav a { text-decoration: none; color: var(--ink-soft); font-size: 15px; transition: color 0.25s var(--ease); }
.nav nav a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.lang { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); }
.lang button { border: 0; background: none; color: var(--ink-soft); font: 500 13px/1 var(--font); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--violet-btn); color: #fff; }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  background: var(--violet-btn); color: #fff; font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.btn:hover { background: #5f3fe0; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-ghost { background: rgba(255, 255, 255, 0.07); border-color: var(--line); color: var(--ink); box-shadow: none; backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(146, 119, 255, 0.2); }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-light { background: #fff; color: #1d1247; }
.btn-light:hover { background: #ece6ff; }
.play { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.btn[aria-pressed="true"] .play { width: 10px; height: 12px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }

/* ── type ────────────────────────────────────────────────────────────── */
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.04; }
h1 .accent { color: var(--violet); }
h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; }
p { margin: 0; }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { min-height: 100dvh; display: grid; align-items: center; padding: 96px var(--gutter) 64px; position: relative; }
.hero-copy { max-width: 680px; }
/* a soft dark wash behind the words, so orbiting windows never cross the headline */
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 8, 22, 0.92) 0%, rgba(11, 8, 22, 0.7) 32%, rgba(11, 8, 22, 0) 52%); pointer-events: none; }
.hero-copy { position: relative; }
.lede { margin-top: 24px; max-width: 40ch; color: var(--ink-soft); font-size: 19px; }
.btn-white { background: #f4f2fa; color: #16111f; box-shadow: 0 10px 30px -12px rgba(255, 255, 255, 0.35); padding: 17px 30px; }
.btn-white:hover { background: #fff; }
.btn-white svg { width: 18px; height: 18px; }
.hero-fine { margin-top: 18px; font-size: 13px; color: var(--muted); }
/* the logo lockup: "Raisya.ai", a sparkle over it, the tagline between two rules */
.hero .wordmark-h1 { position: relative; width: fit-content; white-space: nowrap; font-size: clamp(56px, 8vw, 124px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: #fff; text-shadow: 0 0 40px rgba(168, 85, 247, 0.35); }
.spark {
  position: absolute; left: 58%; top: -0.32em; width: 0.3em; height: 0.3em; background: #c084fc;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 10px #a855f7) drop-shadow(0 0 22px #9333ea); animation: twinkle 3.2s ease-in-out infinite;
}
@keyframes twinkle { 50% { transform: scale(0.78) rotate(12deg); opacity: 0.75; } }
.tagline {
  margin-top: 18px; display: flex; align-items: center; gap: 16px; width: fit-content;
  font-size: clamp(12px, 1.25vw, 17px); font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: #ece6ff;
}
.tagline::before, .tagline::after { content: ""; width: 48px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #a855f7); }
.tagline::after { rotate: 180deg; }
.cta-row { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
/* what she says, placed under her face by site.js */
.caption {
  position: fixed; left: 50%; top: 70%; z-index: 5; width: max-content; max-width: min(440px, 86vw); translate: -50% 0;
  text-align: center; font-size: 19px; line-height: 1.45; color: var(--ink);
  padding: 10px 18px; border-radius: 16px; background: rgba(11, 8, 22, 0.6); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}
.caption.on { opacity: 1; transform: none; }

/* ── the story: the scene does the showing, the words sit opposite ───── */
.step { min-height: 110vh; display: flex; align-items: center; padding: 0 var(--gutter); }
.step-right { justify-content: flex-end; }
.panel {
  max-width: 460px; padding: 36px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(14px);
  display: grid; gap: 16px;
}
.panel p { color: var(--ink-soft); }
.panel .say { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; color: var(--violet); }

/* ── after the story: solid ground over the scene ────────────────────── */
.after { position: relative; background: linear-gradient(180deg, rgba(11, 8, 22, 0) 0, var(--bg) 220px); padding-top: 120px; }
.privacy, .pricing, .start, .faq { max-width: 1240px; margin: 0 auto; padding: 120px 24px 0; }
.privacy > h2, .pricing > h2, .start > h2 { margin-bottom: 48px; }

/* film grain over everything, fixed so it never repaints on scroll */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* glass surfaces; .tilt cards lean toward the cursor and catch a sheen (site.js sets --rx --ry --mx --my) */
.glass {
  position: relative; border-radius: var(--radius); padding: 36px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.glass-lit { background: linear-gradient(160deg, rgba(146, 119, 255, 0.16), rgba(255, 255, 255, 0.02) 60%); border-color: rgba(146, 119, 255, 0.35); }
.glass-strong { border-color: rgba(146, 119, 255, 0.4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 40px 100px -30px rgba(0, 0, 0, 0.85); }
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.4s var(--ease); }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: var(--sheen, 0);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.09), transparent 60%);
  transition: opacity 0.3s var(--ease);
}
.reveal.tilt.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.columns h3 { margin-bottom: 18px; }
.glass-lit h3 { color: #fff; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--violet-btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.ticks-soft li::before { background-color: rgba(146, 119, 255, 0.28); }

/* pricing: one wide card, the price huge on the left */
.price-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding: 56px; overflow: hidden; }
.price-card::before {
  content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -160px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 28%, #b9a8ff, #6d4cf0 45%, #24166b 75%); box-shadow: inset -18px -22px 44px rgba(0, 0, 0, 0.6); opacity: 0.55;
}
.price { font-family: var(--mono); font-size: clamp(88px, 10vw, 132px); line-height: 0.9; letter-spacing: -0.06em; color: #fff; }
.price .cur { font-size: 0.42em; vertical-align: 0.9em; margin-right: 4px; color: var(--violet); }
.price-pill { display: inline-block; margin-top: 22px; padding: 8px 16px; border-radius: 999px; background: rgba(146, 119, 255, 0.2); color: #e2d9ff; font-size: 14px; }
.price-note { margin-top: 16px; color: var(--muted); }
.price-main { position: relative; display: grid; gap: 26px; }
.btn-wide { justify-content: center; padding: 18px 28px; font-size: 17px; }
@media (max-width: 860px) {
  .tagline { white-space: nowrap; gap: 12px; letter-spacing: 0.16em; }
  .tagline::before, .tagline::after { width: 22px; }
  .nav .brand-logo { height: 38px; }
  .wide-only { display: none; }   /* phones: "Buy $50" leaves room for the bigger logo */
  }

/* install: numbered steps; a violet line draws across each top edge in turn */
.steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps li { position: relative; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-soft); counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--mono); font-size: 44px; line-height: 1; color: var(--violet); margin-bottom: 18px; letter-spacing: -0.04em; }
.steps li::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--violet), #e9e2ff); transition: transform 0.9s var(--ease); transition-delay: calc(var(--n) * 180ms);
}
.steps.in li::after { transform: scaleX(1); }
.steps b { display: block; color: var(--ink); font-weight: 500; font-size: 21px; margin-bottom: 6px; }

/* FAQ: sticky heading left, answers right; the + turns into a filled x */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-side { position: sticky; top: 110px; display: grid; gap: 18px; justify-items: start; }
.faq-side p { color: var(--ink-soft); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.plus { flex: none; position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); transition: transform 0.35s var(--ease), background 0.35s var(--ease); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; background: var(--violet); translate: -50% -50%; }
.plus::after { rotate: 90deg; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--violet-btn); border-color: var(--violet-btn); }
.faq details[open] .plus::before, .faq details[open] .plus::after { background: #fff; }
.faq details p { padding: 0 56px 24px 0; color: var(--ink-soft); max-width: 64ch; }

/* finale: a violet panel with a ring of light off its corner */
.finale {
  position: relative; overflow: hidden; max-width: 1192px; margin: 140px auto 0; padding: 88px 56px; border-radius: 40px; text-align: center;
  background: linear-gradient(135deg, #4f33c4 0%, #3a24a0 55%, #24166b 100%);
  display: grid; gap: 18px; justify-items: center;
}
.finale::after { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; bottom: -260px; border-radius: 50%; border: 80px solid rgba(255, 255, 255, 0.1); pointer-events: none; }
.finale h2 { color: #fff; max-width: 16ch; }
.finale p { color: #e2d9ff; font-size: 19px; }
.finale .btn { position: relative; z-index: 1; margin-top: 10px; }

/* footer: a slab with link columns and a giant fading wordmark */
.foot { margin-top: 140px; padding: 72px var(--gutter) 28px; border-radius: 48px 48px 0 0; background: #07050f; border-top: 1px solid var(--line); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin-top: 14px; color: var(--muted); max-width: 34ch; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-head { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 6px; }
.foot-col a { color: var(--ink-soft); text-decoration: none; width: fit-content; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1.5px; transition: background-size 0.35s var(--ease), color 0.25s; }
.foot-col a:hover { color: var(--ink); background-size: 100% 1.5px; }
.wordmark {
  margin: 48px 0 0; font-size: clamp(96px, 18vw, 260px); line-height: 0.8; font-weight: 700; letter-spacing: -0.06em; text-align: center;
  color: rgba(185, 168, 255, 0.2); -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent);
}
.wordmark::before { content: "Raisya"; }   /* decoration, drawn by CSS so it is not read as text */
.foot-bar { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

/* ── motion: the hero arrives, lists rise in ─────────────────────────── */
.hero-copy > * { animation: rise 1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── small screens: the scene fills the top, words sit below on a scrim ─ */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav { grid-template-columns: auto auto; justify-content: space-between; gap: 16px; padding: 0 6px 0 16px; height: 56px; top: 10px; }
  .nav nav { display: none; }
  #sound { display: none; }   /* phones: the switch for her language and Buy are enough up here */
  .nav-actions { gap: 6px; }
  .nav .btn-small { padding: 9px 12px; font-size: 13px; }
  .hero { align-items: end; padding: 0 16px 40px; }
  .hero::before { background: linear-gradient(180deg, rgba(11, 8, 22, 0) 40%, rgba(11, 8, 22, 0.9) 70%); }
  .hero-copy { padding: 24px 0 0; background: linear-gradient(180deg, rgba(11, 8, 22, 0), rgba(11, 8, 22, 0.85) 30%); }
  .caption { font-size: 16px; }
  .step, .step-right { justify-content: center; align-items: flex-end; padding: 0 16px 8vh; }
  .panel { padding: 24px; }
  .privacy, .pricing, .start, .faq { padding: 88px 16px 0; }
  .columns { grid-template-columns: 1fr; gap: 16px; }
  .glass { padding: 26px; }
  .price-card { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; }
  .price-card::before { width: 200px; height: 200px; right: -110px; top: -110px; opacity: 0.4; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .faq { grid-template-columns: 1fr; gap: 28px; }
  .faq-side { position: static; }
  .faq details p { padding-right: 0; }
  .finale { margin: 96px 16px 0; padding: 56px 24px; border-radius: 28px; }
  .foot { margin-top: 96px; padding: 48px 16px 24px; border-radius: 32px 32px 0 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── thank-you page (after Razorpay) ─────────────────────────────────── */
.thanks-main { max-width: 900px; margin: 0 auto; padding: 72px 24px 96px; display: grid; gap: 26px; justify-items: start; }
.thanks-main .steps { width: 100%; margin-top: 30px; }
@media (max-width: 860px) { .thanks-main .steps { grid-template-columns: 1fr; } }

