/* Morph — getmorph.app. Cosmos palette, dark only. */
:root {
  --bg: #13131a;
  --surface: #1e1e26;
  --banner: #252532;
  --hair: rgba(255, 255, 255, 0.08);
  --text: #e2e2e8;
  --bright: #f4f3fb;
  --dim: #a3a3ae;
  --primary: #6149ff;
  --primary-hi: #7a66ff;
  --secondary: #8a78ff;
  --tide: #7ce3d2;
  --jung: #a78bfa;
  --sirin: #ffc107;
  --tao: #60a5fa;
  --vedic: #f472b6;
  --jp: #4ade80;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--secondary); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--bright); }
::selection { background: rgba(97, 73, 255, 0.55); color: #fff; }
:focus-visible { outline: 2px solid var(--tide); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #3a3a4c var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a3a4c; border-radius: 10px; border: 2px solid var(--bg); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Sky: stars + aurora, fixed behind everything ---------- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky::before, .sky::after {
  content: ""; position: absolute; inset: -20%;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff9, transparent 60%),
    radial-gradient(1px 1px at 72% 12%, #fff8, transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 64%, #fffa, transparent 60%),
    radial-gradient(1px 1px at 86% 72%, #fff7, transparent 60%),
    radial-gradient(1px 1px at 22% 88%, #fff6, transparent 60%),
    radial-gradient(1.5px 1.5px at 58% 34%, #fff9, transparent 60%),
    radial-gradient(1px 1px at 94% 42%, #fff6, transparent 60%),
    radial-gradient(1px 1px at 4% 52%, #fff7, transparent 60%);
  background-size: 420px 420px;
  animation: drift 160s linear infinite;
}
.sky::after { background-size: 690px 690px; opacity: 0.6; animation-duration: 240s; animation-name: twinkle-drift; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; animation: breathe 14s ease-in-out infinite alternate; }
.aurora.a1 { width: 70vw; height: 60vh; right: -25vw; top: -25vh; background: #5a3fd6; }
.aurora.a2 { width: 55vw; height: 55vh; left: -25vw; top: 55vh; background: #2c2d7a; animation-delay: -7s; }
@keyframes drift { to { transform: translate3d(-420px, -210px, 0); } }
@keyframes twinkle-drift { 0% { transform: translate3d(0, 0, 0); opacity: .35; } 50% { opacity: .7; } 100% { transform: translate3d(-690px, 345px, 0); opacity: .35; } }
@keyframes breathe { from { opacity: .38; transform: scale(1); } to { opacity: .62; transform: scale(1.12); } }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(64px, 9vw, 120px); }
main { overflow-x: clip; }

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(to bottom, rgba(19, 19, 26, 0.92), rgba(19, 19, 26, 0.72));
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hair);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bright); text-decoration: none; font-weight: 600; font-size: 1.125rem; letter-spacing: 0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-head nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.site-head nav a { color: var(--dim); text-decoration: none; font-size: 0.9375rem; padding: 10px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.site-head nav a:hover { color: var(--bright); background: rgba(255, 255, 255, 0.05); }
.site-head nav a.nav-cta { color: var(--bright); background: rgba(97, 73, 255, 0.18); border: 1px solid rgba(138, 120, 255, 0.35); margin-left: 8px; }
.site-head nav a.nav-lang { font-family: "IBM Plex Sans Arabic", "Space Grotesk", system-ui, sans-serif; }
.site-head nav a.nav-cta:hover { background: rgba(97, 73, 255, 0.32); }
@media (max-width: 760px) { .site-head nav a:not(.nav-cta):not(.nav-lang) { display: none; } }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--bright); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(3.25rem, 9vw, 6rem); line-height: 0.98; letter-spacing: -0.025em; }
h2 { font-size: clamp(2.25rem, 5.4vw, 3.75rem); line-height: 1.04; }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; }
.tide { color: var(--tide); }
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--dim); max-width: 36em; }
p { margin: 0; }
p + p { margin-top: 1em; }

/* ---------- Buttons ---------- */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px;
  border-radius: 14px; font: 500 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s, box-shadow .25s, border-color .2s;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-store { background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); padding: 0 18px 0 14px; }
.btn-store:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.9); }
.btn-store .lines { display: grid; gap: 3px; text-align: left; }
.btn-store small { font-size: 0.6875rem; letter-spacing: 0.02em; opacity: 0.85; }
.btn-store b { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; }
.btn-web { background: var(--primary); color: #fff; box-shadow: 0 12px 32px -14px rgba(97, 73, 255, 0.9); }
.btn-web:hover { background: var(--primary-hi); color: #fff; box-shadow: 0 16px 40px -14px rgba(97, 73, 255, 1); }
.btn-soon { background: transparent; color: #8d8d99; border: 1px dashed rgba(255, 255, 255, 0.2); cursor: not-allowed; padding: 0 16px 0 14px; }
.btn-soon:hover { transform: none; }
.btn-soon .lines { display: grid; gap: 3px; text-align: left; }
.btn-soon small { font-size: 0.6875rem; letter-spacing: 0.02em; }
.btn-soon b { font-size: 1rem; font-weight: 500; }
.fine { font-size: 0.875rem; color: var(--dim); }
.fine span + span::before { content: "·"; margin: 0 0.6em; opacity: 0.5; }

/* ---------- Hero ---------- */
.hero { overflow-x: clip; padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 112px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy > * + * { margin-top: 24px; }
.hero-copy .ctas { margin-top: 36px; }
.hero-copy .fine { margin-top: 18px; }

.stage { position: relative; height: clamp(520px, 50vw, 640px); perspective: 1400px; }
.stage .card {
  position: absolute; left: 50%; top: 50%; width: clamp(228px, 21vw, 288px); aspect-ratio: 660 / 1434;
  margin: 0; border-radius: 28px; overflow: hidden; background: #1a1030;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translate(-50%, -50%) translateX(var(--x, 0)) rotate(var(--r, 0deg)) scale(var(--s, 1));
  opacity: var(--o, 1); filter: brightness(var(--b, 1));
  transition: transform 1.1s var(--ease), opacity 1.1s var(--ease), filter 1.1s var(--ease);
  z-index: var(--z, 1);
}
.stage .card img { width: 100%; height: 100%; object-fit: cover; }
.stage .card[data-pos="0"] { --z: 5; }
.stage .card[data-pos="1"] { --x: 46%; --r: 7deg; --s: .84; --b: .55; --z: 4; }
.stage .card[data-pos="4"] { --x: -46%; --r: -7deg; --s: .84; --b: .55; --z: 4; }
.stage .card[data-pos="2"] { --x: 70%; --r: 12deg; --s: .7; --o: 0; --z: 2; }
.stage .card[data-pos="3"] { --x: -70%; --r: -12deg; --s: .7; --o: 0; --z: 2; }
.float { position: absolute; inset: 0; animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.stage-halo { position: absolute; left: 50%; top: 50%; width: 80%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(97, 73, 255, 0.45), transparent 65%); filter: blur(30px); }
.dots { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); display: flex; gap: 2px; z-index: 6; }
.dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.dots button::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); transition: background .3s, transform .3s; }
.dots button[aria-current="true"]::after { background: var(--tide); transform: scale(1.3); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { text-align: left; }
  .stage { height: 520px; margin-top: 8px; }
  .stage .card { width: 216px; }
}
@media (max-width: 420px) {
  .btn-store, .btn-web { flex: 1 1 100%; justify-content: center; }
  .btn-soon { flex: 1 1 100%; justify-content: center; }
  .stage .card[data-pos="1"] { --x: 36%; }
  .stage .card[data-pos="4"] { --x: -36%; }
}

/* ---------- Prism ---------- */
.prism-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; margin-top: clamp(40px, 6vw, 72px); }
.shot { border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08); max-width: 340px; width: 100%; }
.prism-grid .shot { position: sticky; top: 100px; justify-self: center; }
.lenses { list-style: none; margin: 0; padding: 0; }
.lens { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 4px 20px; padding: 28px 0; border-top: 1px solid var(--hair); }
.lens:last-child { border-bottom: 1px solid var(--hair); }
.lens::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), var(--tone));
  transition: width 1.4s var(--ease) var(--d, 0ms);
  width: 100%;
}
.js .lens::before { width: 0; }
.js .lens.lit::before { width: 100%; }
.glyph { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 400 1.5rem/1 var(--serif); color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 35%, transparent); }
.lens h3 { font-size: 1.625rem; }
.lens .sub { font-size: 0.8125rem; color: var(--tone); letter-spacing: 0.04em; margin-left: 10px; font-family: var(--sans); vertical-align: 0.25em; }
.lens p { color: var(--dim); max-width: 34em; grid-column: 2; }
.prism-close { margin-top: 36px; font: 400 1.5rem/1.3 var(--serif); color: var(--bright); }
@media (max-width: 860px) {
  .prism-grid { grid-template-columns: 1fr; }
  .prism-grid .shot { position: static; max-width: 280px; }
}
@media (max-width: 480px) { .lens .sub { display: block; margin: 4px 0 0; vertical-align: 0; } .lens { grid-template-columns: 44px 1fr; gap: 4px 14px; } .glyph { width: 40px; height: 40px; font-size: 1.25rem; } }

/* ---------- Feature rows ---------- */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.row + .row { margin-top: clamp(80px, 11vw, 160px); }
.row .shot { justify-self: center; }
.row.flip .shot { order: 2; }
.row-copy > * + * { margin-top: 20px; }
.row-copy p { color: var(--dim); max-width: 32em; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; color: var(--text); }
.ticks li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--tide); transform: translateY(-2px); box-shadow: 0 0 12px var(--tide); }
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; }
  .row .shot, .row.flip .shot { order: 2; max-width: 280px; }
}

/* ---------- Also inside ---------- */
.also { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--hair); }
.also div { padding: 28px 24px 8px 0; }
.also div + div { padding-left: 24px; border-left: 1px solid var(--hair); }
.also dt { font: 400 1.375rem/1.2 var(--serif); color: var(--bright); }
.also dd { margin: 10px 0 0; color: var(--dim); font-size: 0.975rem; }
@media (max-width: 900px) {
  .also { grid-template-columns: 1fr 1fr; }
  .also div:nth-child(3) { padding-left: 0; border-left: 0; }
  .also div:nth-child(n+3) { border-top: 1px solid var(--hair); margin-top: 20px; }
}
@media (max-width: 520px) {
  .also { grid-template-columns: 1fr; }
  .also div, .also div + div { padding: 24px 0 4px; border-left: 0; }
  .also div + div { border-top: 1px solid var(--hair); margin-top: 16px; }
}

/* ---------- Private ---------- */
.private { background: linear-gradient(180deg, transparent, rgba(30, 30, 38, 0.6) 30%, rgba(30, 30, 38, 0.6) 70%, transparent); }
.private .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.private .lede { margin-top: 20px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.facts li { padding: 20px 0; border-top: 1px solid var(--hair); }
.facts li:last-child { border-bottom: 1px solid var(--hair); }
.facts b { display: block; color: var(--bright); font-weight: 500; }
.facts span { color: var(--dim); font-size: 0.975rem; }
@media (max-width: 860px) { .private .wrap { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 88px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; font: 400 4.5rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(138, 120, 255, 0.7); }
.steps h3 { font-size: 1.625rem; }
.steps p { color: var(--dim); margin-top: 12px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li { padding-top: 0; padding-left: 72px; } .steps li::before { font-size: 3.25rem; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid > div:first-child { position: sticky; top: 100px; }
.faq-grid .lede { margin-top: 20px; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-size: 1.125rem; font-weight: 500; color: var(--bright); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid var(--secondary); border-bottom: 1.5px solid var(--secondary); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: #fff; }
.faq .a { padding: 0 0 24px; color: var(--dim); max-width: 40em; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid > div:first-child { position: static; } }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final h2 { font-size: clamp(2.5rem, 7vw, 5rem); max-width: 12em; margin-inline: auto; }
.final .lede { margin: 24px auto 0; }
.final .ctas { justify-content: center; margin-top: 40px; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--hair); padding-block: 48px 40px; font-size: 0.9375rem; color: var(--dim); }
.site-foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot nav a { color: var(--dim); text-decoration: none; }
.site-foot nav a:hover { color: var(--bright); }
.site-foot .legal { grid-column: 1 / -1; font-size: 0.8125rem; color: #8a8a96; }
@media (max-width: 700px) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* ---------- Document pages (support / privacy / terms / 404) ---------- */
.doc { padding-top: clamp(48px, 8vw, 96px); }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); }
.doc .meta { margin-top: 16px; color: var(--dim); font-size: 0.9375rem; }
.doc h2 { font-size: clamp(1.625rem, 3.4vw, 2.125rem); margin-top: 56px; margin-bottom: 16px; }
.doc h3 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; margin-top: 28px; margin-bottom: 8px; letter-spacing: 0; }
.doc p, .doc li { color: #c9c9d2; }
.doc p + p { margin-top: 1em; }
.doc ul, .doc ol { padding-left: 1.25em; margin: 12px 0; }
.doc li + li { margin-top: 8px; }
.doc strong { color: var(--bright); font-weight: 600; }
.doc .summary { margin-top: 32px; padding: 24px 28px; background: var(--surface); border-radius: 18px; border: 1px solid var(--hair); }
.doc .summary ul { margin: 8px 0 0; }
.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--hair); border-radius: 14px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 560px; }
.doc th, .doc td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--hair); vertical-align: top; color: #c9c9d2; }
.doc th { color: var(--bright); font-weight: 600; background: rgba(255, 255, 255, 0.03); }
.doc tr:last-child td { border-bottom: 0; }
.contact-card { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding: 28px; border-radius: 20px; background: linear-gradient(135deg, rgba(97, 73, 255, 0.22), rgba(30, 30, 38, 0.9)); border: 1px solid rgba(138, 120, 255, 0.3); }
.contact-card p { color: var(--text); }
.contact-card a.mail { font: 400 1.75rem/1.1 var(--serif); color: var(--bright); text-decoration: none; }
.contact-card a.mail:hover { color: var(--tide); }
.lost { min-height: 62vh; display: grid; align-content: center; }
.lost .ctas { margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .lens::before { width: 100%; }
}
