/* Mkuu website: one shared stylesheet. System fonts only, dark by default. */
:root {
  color-scheme: dark light;
  --bg: #0F0D17;
  --surface: #191624;
  --surface-2: #221E31;
  --border: rgba(255, 255, 255, .11);
  --text: #F4F2FA;
  --text-2: #CEC9DE;
  --muted: #A7A1BC;
  --accent: #B3A1FF;
  --btn: #6C4CF1;
  --btn-hover: #5A3BE0;
  --btn-text: #FFFFFF;
  --focus: #C9BDFF;
  --glow: rgba(108, 76, 241, .22);
  --radius: 18px;
  --wrap: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F7F6FB;
    --surface: #FFFFFF;
    --surface-2: #EFECF8;
    --border: rgba(22, 19, 31, .12);
    --text: #16131F;
    --text-2: #3D3751;
    --muted: #595370;
    --accent: #5236D6;
    --btn: #5B3DE0;
    --btn-hover: #4A2FC4;
    --focus: #5236D6;
    --glow: rgba(108, 76, 241, .12);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 14px; border-radius: 10px; background: var(--btn); color: var(--btn-text); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@supports not (background: color-mix(in srgb, red, blue)) { .site-header { background: var(--bg); } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; text-decoration: none; }
.brand img { border-radius: 9px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 9px; border-radius: 10px; color: var(--text-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 399px) { .brand span { display: none; } .nav a { padding: 8px 7px; font-size: 14.5px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-open { background: linear-gradient(135deg, #7B3FF2, #1F6FEB); color: #FFFFFF; }
.btn-open:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a, .card { transition: background-color .15s ease, filter .15s ease, border-color .15s ease; }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }

/* Hero */
.hero { position: relative; padding: 48px 0 40px; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -120px 0 auto; height: 420px; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero > .wrap { position: relative; }
.hero-logo { margin: 0 auto 18px; border-radius: 26px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.hero h1 { margin: 0; font-size: clamp(40px, 9vw, 60px); line-height: 1.05; letter-spacing: -.02em; }
.tagline { margin: 10px 0 0; font-size: clamp(19px, 4.4vw, 24px); font-weight: 600; color: var(--text-2); }
.lead { max-width: 560px; margin: 14px auto 26px; color: var(--text-2); }
.hero .btn-row { justify-content: center; }
.soon { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.soon .icon { width: 16px; height: 16px; }

/* Invite card */
.invite { margin: 20px auto 0; max-width: 560px; padding: 22px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center; }
.invite-badge { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 50%; background: var(--surface-2); color: var(--accent); }
.invite h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
.invite p { margin: 0 0 16px; color: var(--text-2); }
.invite .btn-row { justify-content: center; }
.invite .small { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.invite:not([hidden]) ~ .hero-logo { margin-top: 32px; }

/* Sections */
.section { padding: 44px 0; }
.section h2 { margin: 0 0 8px; font-size: clamp(26px, 5vw, 32px); line-height: 1.2; letter-spacing: -.01em; }
.section-lead { margin: 0 0 24px; color: var(--text-2); }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.card h3 { margin: 12px 0 4px; font-size: 18px; }
.card p { margin: 0; color: var(--text-2); }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--accent); }
.card-icon .icon { width: 22px; height: 22px; }
.section h2 + .grid { margin-top: 18px; }
.card-link { display: block; color: var(--text); text-decoration: none; }
.card-link:hover { border-color: var(--accent); }
.card-link h3 { display: flex; align-items: center; gap: 8px; }
.card-link .ext { width: 16px; height: 16px; color: var(--muted); }
.card-soon h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.soon-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 12.5px; font-weight: 600; line-height: 1.5; }
/* Official accounts: a centred row of round icon buttons */
.social { text-align: center; }
.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); }
.social-btn .brand { width: 20px; height: 20px; fill: var(--accent); }
.social-btn:hover { background: var(--surface-2); border-color: var(--accent); }
.social-btn:focus-visible { border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .social-btn { transition: background-color .15s ease, border-color .15s ease; } }
.social-handle { margin: 16px 0 2px; color: var(--text); font-size: 17px; font-weight: 700; }
.social-note { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.social-note a { color: var(--text-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Screenshots (phone frames): a scroll-snap row on phones, four columns on wide screens */
.section h2 + .phones { margin-top: 14px; }
.phones { display: flex; gap: 16px; margin: 0 -16px; padding: 6px 16px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; }
.shot { flex: none; width: 200px; margin: 0; scroll-snap-align: start; }
.phone { padding: 8px; border-radius: 30px; background: #000; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.phone img { width: 100%; height: auto; border-radius: 22px; }
.shot figcaption { margin-top: 10px; color: var(--text-2); font-size: 15px; font-weight: 600; text-align: center; }
@media (prefers-color-scheme: light) { .phone { border-color: #16131F; box-shadow: 0 10px 28px rgba(22, 19, 31, .18); } }
@media (min-width: 900px) {
  .phones { display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; gap: 24px; margin: 0; padding: 6px 0 0; overflow: visible; }
  .shot { width: auto; }
}

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .faq summary .icon { transition: transform .15s ease; } }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--text-2); }

/* Contact */
.contact-list { display: grid; gap: 14px; grid-template-columns: 1fr; max-width: 760px; }
@media (min-width: 640px) { .contact-list { grid-template-columns: repeat(2, 1fr); } }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.contact-card:hover { border-color: var(--accent); }
.contact-card small { display: block; color: var(--muted); font-size: 14px; }
.contact-card strong { display: block; overflow-wrap: anywhere; }

/* Footer */
.site-footer { margin-top: 24px; padding: 28px 0 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 10px; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding: 6px 0; color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.site-footer p { margin: 0; }

.noscript { margin: 16px auto 0; max-width: 560px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: 15px; }

/* Legal pages (privacy, terms, disclaimer, account deletion) */
.legal { max-width: 760px; padding-top: 28px; padding-bottom: 24px; }
.legal-head { padding: 26px 22px; border-radius: 20px; background: linear-gradient(135deg, #5B3DE0, #7A5CF0); color: #FFFFFF; }
.legal-head h1 { margin: 0 0 6px; font-size: clamp(26px, 6vw, 32px); line-height: 1.2; letter-spacing: -.01em; }
.legal-head p { margin: 0; color: #F3F0FF; }
.legal h2 { margin: 34px 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.legal p, .legal li { color: var(--text-2); }
.legal li { margin: 7px 0; }
.legal ul { padding-left: 22px; }
.legal strong { color: var(--text); }
.legal .contact { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.legal .contact:hover { border-color: var(--accent); }
.updated { margin-top: 36px; font-size: 14px; color: var(--muted) !important; }

/* Hidden SVG icon sprite (was an inline style attribute; moved here for the Content-Security-Policy). */
.sprite { position: absolute; }
