/* Damu landing page. Palette comes from the character: olive shirt, cream mundu, green stripe, gold accent. */
@font-face {
  font-family: "Noto Sans Malayalam";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("assets/NotoSansMalayalam-SemiBold.woff2") format("woff2");
  unicode-range: U+0D00-0D7F, U+200C-200D, U+25CC;
}

:root {
  --bg: #fbf6e6;
  --bg-alt: #f4ecd2;
  --surface: #fffdf4;
  --ink: #26220f;
  --muted: #6b6236;
  --line: rgba(80, 66, 10, .14);
  --green: #2e7d32;
  --green-2: #55b45a;
  --gold: #f5b53b;
  --gold-2: #ffd96e;
  --shadow: 0 1px 2px rgba(60, 45, 0, .06), 0 12px 32px -8px rgba(60, 45, 0, .18);
  --radius: 22px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14120a;
    --bg-alt: #1a170d;
    --surface: #211d10;
    --ink: #f6efd6;
    --muted: #b9ae80;
    --line: rgba(255, 240, 180, .13);
    --green: #6fcf74;
    --green-2: #55b45a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 36px -10px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code { font: .88em ui-monospace, "SF Mono", Consolas, monospace; background: color-mix(in srgb, var(--ink) 9%, transparent); padding: .12em .45em; border-radius: 6px; word-break: break-all; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 9px; }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: .95rem; font-weight: 500; opacity: .82; }
.nav nav a:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; border: 0; cursor: pointer; text-decoration: none;
  font: 600 1rem var(--font); border-radius: 999px; padding: 14px 24px; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn small { display: block; font-weight: 500; font-size: .78rem; opacity: .85; margin-top: 1px; }
.btn b { font-weight: 700; display: block; }
.btn-primary { background: linear-gradient(180deg, var(--green-2), #2e7d32); color: #fff; box-shadow: 0 10px 24px -8px rgba(46, 125, 50, .7), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 14px 28px -8px rgba(46, 125, 50, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn-sm { padding: 9px 16px; font-size: .9rem; gap: 8px; }
.btn-sm svg { width: 18px; height: 18px; }
.btn-lg { padding: 18px 32px; font-size: 1.1rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.blob-a { width: 520px; height: 520px; background: var(--gold-2); top: -160px; right: -120px; }
.blob-b { width: 460px; height: 460px; background: var(--green-2); bottom: -200px; left: -160px; opacity: .35; }
@media (prefers-color-scheme: dark) { .blob { opacity: .22; } .blob-b { opacity: .18; } }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 7px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: .86rem; font-weight: 600; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green-2) 28%, transparent); }
h1 { margin: 0 0 22px; font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 850; }
.grad { background: linear-gradient(100deg, var(--green) 0%, #b58a12 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .grad { background: linear-gradient(100deg, #8be28f 0%, #ffd96e 100%); -webkit-background-clip: text; background-clip: text; } }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.stat { margin: 18px 0 0; color: var(--muted); font-size: .92rem; font-weight: 500; }
.stat span { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }

.stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 600px; }
.say { position: relative; z-index: 3; width: 100%; min-height: 176px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 22px; }
.glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; bottom: 6%; background: radial-gradient(circle, color-mix(in srgb, var(--gold-2) 70%, transparent) 0%, transparent 68%); }
.damu { position: relative; z-index: 2; background: none; border: 0; padding: 0; cursor: pointer; width: min(250px, 58vw); animation: float 5.5s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.damu img { width: 100%; filter: drop-shadow(0 18px 22px rgba(40, 30, 0, .28)); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.damu:hover img { transform: scale(1.03) rotate(-1deg); }
.damu:active img { transform: scale(.97); }
.shadow { position: absolute; bottom: 24px; width: 190px; height: 22px; border-radius: 50%; background: radial-gradient(ellipse, rgba(40, 30, 0, .35), transparent 70%); animation: shadow 5.5s ease-in-out infinite; }
.hint { position: absolute; bottom: -8px; margin: 0; font-size: .8rem; color: var(--muted); opacity: .8; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.82); opacity: .7; } }

.bubble {
  position: relative; max-width: min(360px, 94%); display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 26px; background: linear-gradient(180deg, #fffdf3, #f4e8c8); color: #3a3417;
  border: 2px solid rgba(200, 173, 102, .55);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .95), inset 0 -5px 0 rgba(200, 173, 102, .28), 0 6px 0 #c8ad66, 0 18px 28px rgba(40, 30, 0, .25);
  animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) both;
}
.bubble::after { content: ""; position: absolute; bottom: -11px; left: 50%; width: 20px; height: 20px; margin-left: -10px; transform: rotate(45deg); border-radius: 0 0 7px 0; background: #f4e8c8; border-right: 2px solid rgba(200, 173, 102, .55); border-bottom: 2px solid rgba(200, 173, 102, .55); box-shadow: 3px 5px 0 #c8ad66; }
.bubble.swap { animation: none; }
.bubble .face { border-radius: 50%; border: 3px solid #fff; box-shadow: 0 3px 0 #c8ad66, 0 6px 10px rgba(40, 30, 0, .25); flex: none; background: #fff; }
.bubble p { margin: 0; font: 600 15px/1.65 "Noto Sans Malayalam", system-ui, "Nirmala UI", "Segoe UI", sans-serif; color: #3a3417; }
.bubble .ok { flex: none; color: #fff; font: 700 13px var(--font); padding: 6px 14px 7px; border-radius: 13px; background: linear-gradient(180deg, #55b45a, #2e7d32); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .38), 0 4px 0 #1b5e20; }
@keyframes pop { from { transform: scale(.4) translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.alt { background: var(--bg-alt); }
.kicker { margin: 0 0 10px; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
h2 { margin: 0 0 44px; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; max-width: 18em; }
h3 { margin: 0 0 8px; font-size: 1.2rem; letter-spacing: -.01em; }
.sub { margin: -24px 0 36px; color: var(--muted); }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .2s ease; }
.card:hover { transform: translateY(-4px); }
.card p { margin: 0; color: var(--muted); }
.c-wide { grid-column: span 2; }
.c-full { grid-column: 1 / -1; }
.ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 18px; color: #fff; background: linear-gradient(145deg, var(--green-2), #2e7d32); box-shadow: 0 8px 18px -6px rgba(46, 125, 50, .6); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; margin: 0; counter-reset: s; }
.steps li { position: relative; background: var(--surface); border-radius: var(--radius); padding: 30px 26px 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps p { margin: 0; color: var(--muted); }
.n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; margin-bottom: 16px; font-weight: 800; color: #3a2a00; background: linear-gradient(145deg, var(--gold-2), var(--gold)); box-shadow: 0 6px 14px -4px rgba(200, 140, 0, .6); }

/* ---------- video ---------- */
.video-wrap {
  position: relative;
  width: min(860px, 100%);
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- upcoming character teaser ---------- */
.upcoming-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.dot-fire {
  background: #e53935;
  box-shadow: 0 0 0 4px color-mix(in srgb, #e53935 28%, transparent);
}
.grad-aavesham {
  background: linear-gradient(100deg, #d32f2f 0%, #f57c00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  .grad-aavesham {
    background: linear-gradient(100deg, #ff6b6b 0%, #ffb74d 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}
.upcoming-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}
.upcoming-perks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: .95rem;
}
.upcoming-perks li b {
  color: var(--ink);
}
.perk-ico {
  font-size: 1.35rem;
  line-height: 1;
  flex: none;
}
.upcoming-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .88rem;
  box-shadow: var(--shadow);
}
.badge-tag {
  background: linear-gradient(135deg, #d32f2f, #f57c00);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-text {
  color: var(--muted);
  font-weight: 600;
}
.glow-amban {
  background: radial-gradient(circle, rgba(230, 81, 0, .42) 0%, rgba(255, 179, 0, .28) 45%, transparent 70%);
}
.amban-bubble {
  border-color: rgba(220, 100, 50, .45);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .95), inset 0 -5px 0 rgba(220, 100, 50, .2), 0 6px 0 #d97736, 0 18px 28px rgba(50, 20, 0, .22);
}
.amban-bubble::after {
  border-right-color: rgba(220, 100, 50, .45);
  border-bottom-color: rgba(220, 100, 50, .45);
  box-shadow: 3px 5px 0 #d97736;
}
.amban-bubble .ok {
  background: linear-gradient(180deg, #ff7043, #d84315);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .38), 0 4px 0 #bf360c;
}
.amban-btn {
  width: min(250px, 56vw);
}
.shadow-amban {
  width: 200px;
}

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.shot { margin: 0; }
.shot img { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; }
.shot figcaption { margin-top: 12px; text-align: center; color: var(--muted); font-size: .92rem; }

.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.platform { background: var(--surface); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 20px; align-content: start; }
.platform.is-you { outline: 3px solid var(--green-2); outline-offset: -3px; }
.plat-head { display: flex; align-items: center; gap: 16px; }
.plat-head svg { width: 42px; height: 42px; fill: currentColor; color: var(--ink); flex: none; }
.plat-head h3 { margin: 0; font-size: 1.35rem; }
.plat-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.platform .btn { justify-content: center; text-align: left; }
.info-box {
  background: color-mix(in srgb, var(--gold) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line));
  border-radius: 14px;
  padding: 14px 16px;
  font-size: .88rem;
  line-height: 1.55;
}
.info-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: .88rem;
  color: var(--ink);
}
.info-head svg {
  width: 17px;
  height: 17px;
  stroke: var(--gold);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.info-box p {
  margin: 0;
  color: var(--muted);
}
.info-box b, .info-box strong {
  color: var(--ink);
}
.info-box code {
  font-size: .85em;
}
.note { margin: 24px 0 0; color: var(--muted); font-size: .94rem; }

.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--green); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); }


.footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--muted); font-size: .92rem; }
.foot { display: grid; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { color: var(--muted); }
.foot p { margin: 0; max-width: 56em; }

/* ---------- sound button + talking Damu ---------- */
.sound {
  position: fixed; left: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px 10px 13px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer;
  background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink); backdrop-filter: blur(12px);
  font: 600 .88rem var(--font); box-shadow: var(--shadow); transition: transform .15s ease;
}
.sound:hover { transform: translateY(-2px); }
.sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sound .ic-off { display: none; }
body[data-intro="muted"] .sound .ic-on { display: none; }
body[data-intro="muted"] .sound .ic-off { display: block; }
body[data-intro="playing"] .sound { color: var(--green); }
body[data-intro="pending"] .sound { animation: nudge 1.6s ease-in-out infinite; box-shadow: 0 0 0 3px color-mix(in srgb, var(--green-2) 45%, transparent), var(--shadow); }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.stage.talking .damu img { animation: talk .42s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes talk { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.025, .975); } }
@media (max-width: 640px) { .sound { left: 12px; bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { .sound, .stage.talking .damu img, body[data-intro="pending"] .sound { animation: none; transition: none; } }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .upcoming-grid { grid-template-columns: 1fr; }
  .stage { min-height: 520px; order: -1; }
  .upcoming-stage { min-height: 480px; }
  .bento, .steps { grid-template-columns: 1fr 1fr; }
  .c-wide, .c-full { grid-column: span 2; }
  .nav nav a:not(.gh) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bento, .steps, .shots, .dl-grid { grid-template-columns: 1fr; }
  .c-wide, .c-full { grid-column: auto; }
  .stage { min-height: 430px; }
  .say { min-height: 160px; margin-bottom: 18px; }
  .damu { width: min(165px, 44vw); }
  .glow { bottom: 2%; }
  .nav-inner { gap: 10px; }
  .btn-sm span { display: none; }
  .btn-sm { padding: 10px; }
  .nav nav { margin-left: auto; }
  .cta .btn-primary { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .damu, .shadow, .bubble { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .damu img { transition: none; }
}
