/* Mohona landing page. Colours come from the same theme tokens as the app (themes.css). */
:root {
  --bg: #f6f8fb; --panel: #ffffff; --line: #dde3ec; --text: #16202e; --muted: #5a6677;
  --accent: #1565c0; --accent-text: #ffffff; --hover: #eef2f8; --selected: #dce9f9;
  --ok: #1b7f3b; --bad: #b3261e; --warn: #8a5a00;
  --hero: linear-gradient(135deg, #1d5fc4, #0a2a63); --hero-text: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0f1420; --panel: #171e2c; --line: #28324a; --text: #e8edf6; --muted: #9aa7bf;
    --accent: #5b9df0; --accent-text: #08121f; --hover: #1f283a; --selected: #22364f;
    --ok: #5cc27a; --bad: #ff8a80; --warn: #e6b450;
    --hero: linear-gradient(135deg, #1d3f7a, #0a1a3a); --hero-text: #ffffff;
    color-scheme: dark;
  }
}
:root[data-theme="light"] { --hero: linear-gradient(135deg, #1d5fc4, #0a2a63); --hero-text: #ffffff; }
:root[data-theme="dark"] {
  --bg: #0f1420; --panel: #171e2c; --line: #28324a; --text: #e8edf6; --muted: #9aa7bf;
  --accent: #5b9df0; --accent-text: #08121f; --hover: #1f283a; --selected: #22364f;
  --hero: linear-gradient(135deg, #1d3f7a, #0a1a3a); --hero-text: #ffffff; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; transition: background .3s, color .3s; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
section { padding: 84px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 62ch; }
button, select { font: inherit; }

/* header */
header.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
header .bar { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
nav.links { display: flex; gap: 20px; margin-inline-start: auto; align-items: center; }
nav.links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
nav.links a:hover { color: var(--text); }
.theme-pick { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
@media (max-width: 860px) { nav.links a.hide-s { display: none; } }

/* hero */
.hero { background: var(--hero); color: var(--hero-text); padding: 72px 0 0; position: relative; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.05fr 1.25fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 850; }
.hero h1 small { display: block; font-size: .36em; font-weight: 500; opacity: .85; margin-top: 12px; letter-spacing: 0; }
.hero p { font-size: 1.15rem; opacity: .92; max-width: 48ch; margin: 22px 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: #fff; color: #0a2a63; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.btn.ghost { background: rgba(255,255,255,.12); color: var(--hero-text); border-color: rgba(255,255,255,.35); }
.btn.solid { background: var(--accent); color: var(--accent-text); }
.hero .note { font-size: .88rem; opacity: .8; margin-top: 14px; }
.frame { border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); box-shadow: 0 30px 80px rgba(0,0,10,.35); }
.frame .chrome { display: flex; gap: 7px; padding: 10px 14px; background: var(--hover); border-bottom: 1px solid var(--line); }
.frame .chrome i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.frame .chrome i:nth-child(2) { background: #febc2e; } .frame .chrome i:nth-child(3) { background: #28c840; }
.frame img { width: 100%; height: auto; }
.hero .shot { transform: perspective(1600px) rotateY(-4deg); transform-origin: left center; position: relative; z-index: 2; }
@media (max-width: 920px) { .hero .grid { grid-template-columns: 1fr; } .hero .shot { transform: none; } }
.waves { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none; }
.hero-pad { height: 70px; }

/* stats strip */
.strip { margin-top: -1px; padding: 0; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 26px; }
.stat { text-align: center; } .stat b { display: block; font-size: 1.9rem; color: var(--accent); } .stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 720px) { .strip .wrap { grid-template-columns: repeat(2, 1fr); } }

/* name */
.name .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.name .bn { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 800; background: var(--hero); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.name ul { padding-left: 1.1em; color: var(--muted); } .name li { margin: 8px 0; } .name li b { color: var(--text); }
.iconbox { display: grid; place-items: center; }
.iconbox img { width: min(320px, 70%); filter: drop-shadow(0 24px 40px rgba(10,40,100,.35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 860px) { .name .grid { grid-template-columns: 1fr; } }

/* features */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin-top: 40px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,30,70,.12); border-color: var(--accent); }
.card .ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--selected); font-size: 1.4rem; margin-bottom: 14px; }
.card h3 { font-size: 1.12rem; margin-bottom: 6px; } .card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* compare */
.compare { overflow-x: auto; margin-top: 36px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; min-width: 640px; }
th, td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); font-size: .96rem; }
th { background: var(--hover); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
th.us, td.us { background: color-mix(in srgb, var(--accent) 9%, var(--panel)); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.yes { color: var(--ok); font-weight: 800; } .no { color: var(--bad); font-weight: 800; } .mid { color: var(--warn); font-weight: 800; }
.fine { color: var(--muted); font-size: .85rem; margin-top: 12px; }
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 36px; }
.reason { padding: 4px 0; } .reason b { display: block; font-size: 1.05rem; margin-bottom: 4px; } .reason span { color: var(--muted); }

/* themes */
.themes { background: var(--panel); border-block: 1px solid var(--line); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.sw { border: 2px solid var(--line); background: var(--bg); color: var(--text); border-radius: 14px; padding: 10px 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.sw[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.sw i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }

/* gallery */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 22px; }
.tab { border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.stage { display: grid; place-items: center; }
.stage .frame { max-width: 1000px; width: 100%; }
.stage .frame.narrow { max-width: 380px; }
.stage .cap { color: var(--muted); margin-top: 14px; text-align: center; max-width: 70ch; }

/* download */
.dl { background: var(--hero); color: var(--hero-text); }
.dl h2, .dl .lead { color: var(--hero-text); } .dl .lead { opacity: .88; }
.dl .eyebrow { color: var(--hero-text); opacity: .8; }
.assets { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 34px; }
.asset { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); border-radius: 16px; padding: 18px 20px; color: var(--hero-text); text-decoration: none; display: block; backdrop-filter: blur(6px); }
.asset:hover { background: rgba(255,255,255,.2); }
.asset b { display: block; font-size: 1.05rem; } .asset span { opacity: .8; font-size: .86rem; word-break: break-all; }
.asset.main { background: #fff; color: #0a2a63; } .asset.main span { color: #35507f; opacity: 1; }
.dl pre { background: rgba(0,0,0,.3); color: #e8f1ff; padding: 16px 18px; border-radius: 14px; overflow-x: auto; margin: 26px 0 0; font-size: .92rem; }
.dl .small { opacity: .85; font-size: .92rem; margin-top: 16px; }
.dl a { color: #cfe3ff; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store { padding: 10px 18px; border-radius: 12px; border: 1px dashed rgba(255,255,255,.5); color: var(--hero-text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.store.live { border-style: solid; background: rgba(255,255,255,.14); }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 36px; padding: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 800; margin-bottom: 12px; }
.steps b { display: block; margin-bottom: 4px; } .steps span { color: var(--muted); font-size: .95rem; }
code { background: var(--hover); padding: 2px 6px; border-radius: 6px; font-size: .9em; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .iconbox img { animation: none; } html { scroll-behavior: auto; } }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; } dialog.lightbox::backdrop { background: rgba(0,0,0,.8); } dialog.lightbox img { max-height: 92vh; border-radius: 12px; }

/* ---- animated hero: streams flowing into the estuary, like the icon ---- */
.hero { background: radial-gradient(1200px 520px at 50% -10%, #2c62c9 0%, transparent 60%), var(--hero); }
.hero .wrap, .hero .grid { position: relative; z-index: 2; }
#streams { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; z-index: 0; pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.glow.g1 { width: 420px; height: 420px; background: #19c6c8; left: -120px; top: 40px; }
.glow.g2 { width: 520px; height: 520px; background: #3a6bff; right: -160px; top: -120px; animation-duration: 18s; animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }
.hero .waves { height: 150px; width: 100%; z-index: 1; }
.hero .waves .w { animation: slide 16s linear infinite; }
.hero .waves .w2 { animation-duration: 11s; animation-direction: reverse; }
.hero .waves .w3 { animation-duration: 22s; }
@keyframes slide { to { transform: translateX(-1440px); } }
.hero h1 { background: linear-gradient(100deg, #fff 30%, #9ff3e6 60%, #fff 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s ease-in-out infinite alternate; }
.hero h1 small { -webkit-text-fill-color: #e9f6ff; }
@keyframes shine { to { background-position: 100% 0; } }
.hero .cta .btn.primary { position: relative; overflow: hidden; }
.hero .cta .btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(21,160,200,.35) 50%, transparent 65%); transform: translateX(-120%); animation: sweep 4.5s ease-in-out infinite; }
@keyframes sweep { 60%, 100% { transform: translateX(120%); } }
.hero .shot { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -8px; } }
.native { font-family: system-ui, "Noto Sans Bengali", "Noto Sans Devanagari", "Noto Sans Arabic", "Noto Sans JP", "Noto Sans SC", "Segoe UI", sans-serif; }
.say { color: var(--muted); font-weight: 600; margin: -2px 0 12px; }
.say .orig { opacity: .75; }
header .theme-pick { max-width: 150px; }

/* ---- footer by the sea ---- */
footer.sea { position: relative; overflow: hidden; color: #f3fbff; margin-top: 40px; padding: 0; isolation: isolate; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; }
footer.sea .tide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
footer.sea .shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0, rgba(5,30,60,.35) 22%, rgba(4,22,45,.62) 100%); }
footer.sea .row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; padding: 150px 0 34px; }
footer.sea .brandline { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
footer.sea .flinks { display: flex; gap: 8px 22px; flex-wrap: wrap; }
footer.sea a { color: #eaf8ff; font-weight: 600; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
footer.sea a:hover { color: #fff; text-decoration: underline; }
footer.sea .credit { background: rgba(3,16,34,.72); backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,.18); text-align: center; padding: 14px 0; font-size: .95rem; }
footer.sea .credit a { text-shadow: none; color: #9ff3e6; }

/* right-to-left languages */
[dir="rtl"] .hero .shot { transform: perspective(1600px) rotateY(4deg); transform-origin: right center; }
[dir="rtl"] .steps li, [dir="rtl"] .name ul { text-align: start; }
@media (max-width: 920px) { [dir="rtl"] .hero .shot { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .glow, .hero .waves .w, .hero h1, .hero .cta .btn.primary::after, .hero .shot { animation: none; }
  footer.sea .tide { display: none; }
  footer.sea { background: url(tide-poster.jpg) center/cover; }
}
