/* Mirei — getmirei.com. Same palette and type as the app and the store graphics. */

@font-face { font-family: "Jost"; src: url("fonts/jost_400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost_600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space_grotesk_700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0B0F1B;
  --bg-top: #101C34;
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.10);
  --text: #F7F9FF;
  --text-sub: #B7C2D5;
  --text-muted: #96A9C6;
  --blue: #0065FF;
  --blue-soft: #4C8DFF;
  --orange: #FFA617;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-sub);
  font: 400 17px/1.65 "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(0, 101, 255, 0.28), transparent 60%),
    radial-gradient(50rem 30rem at 0% 110%, rgba(255, 166, 23, 0.10), transparent 60%),
    linear-gradient(160deg, var(--bg-top), var(--bg) 48%, #080A10);
  background-attachment: fixed;
}

a { color: var(--blue-soft); }
a:hover { color: var(--text); }

.wrap { max-width: 760px; margin: 0 auto; padding: 32px 24px 64px; }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 48px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 24px; }
.brand img { width: 34px; height: 34px; }
.lang { font-size: 15px; color: var(--text-muted); }
.lang a { color: var(--text-muted); text-decoration: none; }
.lang a:hover { color: var(--text); }

h1, h2, h3 { color: var(--text); font-family: "Space Grotesk", "Jost", sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: 40px; margin: 0 0 8px; }
h2 { font-size: 24px; margin: 40px 0 12px; }
h3 { font-size: 19px; margin: 28px 0 8px; }
.accent { color: var(--orange); }
.meta { color: var(--text-muted); font-size: 15px; margin: 0 0 32px; }
.bar { display: flex; align-items: center; gap: 8px; margin: 16px 0 32px; }
.bar::before { content: ""; width: 62px; height: 5px; border-radius: 3px; background: var(--blue); }
.bar::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
strong { color: var(--text); font-weight: 600; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; margin: 20px 0; }
.card h3:first-child, .card h2:first-child { margin-top: 0; }

.button {
  display: inline-block; padding: 14px 24px; border-radius: 14px; background: var(--blue); color: #FFFFFF;
  font-weight: 600; text-decoration: none;
}
.button:hover { color: #FFFFFF; filter: brightness(1.1); }


footer { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--text-muted); }

.hero { padding: 40px 0 8px; }
.hero h1 { font-size: 52px; }
.hero p { font-size: 20px; max-width: 34em; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 40px 0; }
.features .card { margin: 0; }
.features h3 { margin-top: 0; }

@media (max-width: 560px) {
  h1 { font-size: 32px; }
  .hero h1 { font-size: 38px; }
}

/* Each page holds one language (build.py splits the bilingual sources), so only the switcher needs
   to know which one is current. */
.lang a[aria-current] { color: var(--text); }
