:root {
  color-scheme: dark;
  --bg: #07101d;
  --panel: rgba(18, 31, 49, 0.72);
  --panel-strong: rgba(22, 38, 59, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #aeb8c8;
  --coral: #ff6f68;
  --amber: #ffb23f;
  --teal: #42d6cf;
  --max: 1120px;
}

@font-face {
  font-family: "Murecho BiBimba";
  src: url("assets/fonts/Murecho-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 4%, rgba(255, 111, 104, 0.13), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(66, 214, 207, 0.14), transparent 30rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Segoe UI", sans-serif;
  font-kerning: normal;
  font-feature-settings: "palt" 1;
  letter-spacing: 0.006em;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}

html:lang(en) body { font-feature-settings: "kern" 1; letter-spacing: 0; line-height: 1.68; }

a { color: inherit; }

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Murecho BiBimba", sans-serif;
  font-weight: 620;
  letter-spacing: -0.012em;
}

.brand img { width: 42px; height: 42px; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.nav a:hover { color: var(--text); }
.language-menu { position: relative; }
.language-menu > summary {
  min-width: 94px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 560;
  list-style: none;
  text-align: center;
}
.language-menu > summary::-webkit-details-marker { display: none; }
.language-menu > summary::after { content: "⌄"; margin-left: 7px; color: var(--teal); }
.language-menu[open] > summary { color: var(--text); background: rgba(255,255,255,.06); }
.language-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(12, 24, 40, 0.96);
  box-shadow: 0 18px 50px rgba(0,0,0,.36);
  backdrop-filter: blur(24px);
}
.language-options a { padding: 7px 10px; border-radius: 8px; color: var(--muted); }
.language-options a:hover { color: var(--text); background: rgba(255,255,255,.07); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: 48px;
  min-height: 700px;
  padding: 70px 0 110px;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

h1 {
  margin: 15px 0 22px;
  font-family: "Murecho BiBimba", sans-serif;
  font-size: clamp(3rem, 5.6vw, 4.25rem);
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: -0.026em;
}

html:lang(en) h1 { font-size: clamp(3rem, 6vw, 4.65rem); line-height: 1.01; letter-spacing: -0.048em; }

.hero-copy {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.8vw, 1.17rem);
  letter-spacing: 0.012em;
  line-height: 1.9;
}

html:lang(en) .hero-copy { letter-spacing: 0; line-height: 1.7; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 178, 63, 0.96), rgba(255, 111, 104, 0.96));
  color: #121820;
  font-family: "Murecho BiBimba", sans-serif;
  font-weight: 680;
  letter-spacing: -0.005em;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(255, 111, 104, 0.2);
}

.button[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.fine { color: var(--muted); font-size: 0.83rem; }

.app-stage { position: relative; min-height: 510px; display: grid; place-items: center; }
.app-stage::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, var(--coral), var(--amber), var(--teal), var(--coral));
  filter: blur(90px);
  opacity: 0.22;
}

.app-icon {
  position: relative;
  width: min(88%, 430px);
  filter: drop-shadow(0 30px 65px rgba(0, 0, 0, 0.45));
}

.key-orbit {
  position: absolute;
  right: 0;
  bottom: 48px;
  display: flex;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 25, 41, 0.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

kbd {
  min-width: 31px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.16);
  border-bottom-color: rgba(255,255,255,.28);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  font: 600 0.8rem ui-monospace, SFMono-Regular, monospace;
  text-align: center;
}

.section { padding: 105px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.section h2 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.15; letter-spacing: -0.035em; }
.section h2, .card h3 { font-family: "Murecho BiBimba", sans-serif; font-weight: 610; }
.section h2 { letter-spacing: -0.022em; }
.section-lead { max-width: 680px; margin: 0 0 46px; color: var(--muted); font-size: 1.05rem; line-height: 1.9; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  min-height: 235px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 22px 65px rgba(0,0,0,.16);
  backdrop-filter: blur(20px);
}

.card .mark { display: block; margin-bottom: 28px; color: var(--amber); font-size: 1.45rem; }
.card:nth-child(2) .mark { color: var(--teal); }
.card:nth-child(3) .mark { color: var(--coral); }
.card h3 { margin: 0 0 10px; font-size: 1.18rem; letter-spacing: -0.012em; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.82; }

.privacy-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  padding: 55px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--panel-strong);
}

.privacy-panel p { color: var(--muted); }
.check-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.check-list li::before { content: "✓"; display: inline-block; width: 1.7em; color: var(--teal); font-weight: 800; }

.faq { display: grid; gap: 12px; max-width: 820px; }
details { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
summary { cursor: pointer; font-weight: 700; }
details p { margin-bottom: 0; color: var(--muted); }

.site-footer { display: flex; justify-content: space-between; gap: 30px; padding: 45px 0 60px; color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

.legal { max-width: 800px; padding: 70px 0 120px; }
.legal h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
.legal h2 { margin-top: 48px; font-family: "Murecho BiBimba", sans-serif; font-weight: 610; letter-spacing: -0.018em; }
.legal p, .legal li { color: var(--muted); }
.legal code { color: var(--text); }

@media (max-width: 840px) {
  .nav > a:not(.button) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 30px; padding-top: 55px; }
  .app-stage { min-height: 420px; }
  .feature-grid { grid-template-columns: 1fr; }
  .privacy-panel { grid-template-columns: 1fr; padding: 30px; gap: 20px; }
}

@media (max-width: 520px) {
  .shell { width: min(calc(100% - 24px), var(--max)); }
  .hero { padding-bottom: 75px; }
  .app-stage { min-height: 340px; }
  .key-orbit { right: 4px; bottom: 12px; }
  .site-footer { flex-direction: column; }
  h1 { letter-spacing: -0.02em; }
}
