:root {
  --bg: #f5f5f7; --surface: #ffffff; --text: #1d1d1f; --muted: #6e6e73; --line: rgba(0, 0, 0, .09);
  --accent: #0071e3; --accent-hover: #0077ed; --capsule: rgba(0, 0, 0, .045);
  --shadow: 0 12px 36px rgba(18, 28, 56, .10), 0 1px 3px rgba(18, 28, 56, .06);
  --wall: radial-gradient(900px 420px at 12% 0%, #8fd3ff 0%, transparent 60%),
          radial-gradient(800px 420px at 92% 10%, #c7b8ff 0%, transparent 55%), var(--bg);
  --headline: linear-gradient(92deg, #0a84ff, #5e5ce6 55%, #bf5af2);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0d; --surface: #161618; --text: #f5f5f7; --muted: #a1a1a6; --line: rgba(255, 255, 255, .1);
    --accent: #2997ff; --accent-hover: #47a6ff; --capsule: rgba(255, 255, 255, .07);
    --shadow: 0 12px 36px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .4);
    --wall: radial-gradient(900px 420px at 12% 0%, #1f4f8a 0%, transparent 60%),
            radial-gradient(800px 420px at 92% 10%, #3c2f75 0%, transparent 55%), var(--bg);
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0d; --surface: #161618; --text: #f5f5f7; --muted: #a1a1a6; --line: rgba(255, 255, 255, .1);
  --accent: #2997ff; --accent-hover: #47a6ff; --capsule: rgba(255, 255, 255, .07);
  --shadow: 0 12px 36px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .4);
  --wall: radial-gradient(900px 420px at 12% 0%, #1f4f8a 0%, transparent 60%),
          radial-gradient(800px 420px at 92% 10%, #3c2f75 0%, transparent 55%), var(--bg);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wall); background-repeat: no-repeat; background-color: var(--bg); color: var(--text);
       -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
       font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans", "Helvetica Neue", sans-serif; }
main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
/* A little above the middle: a perfect centre looks low. */
main.wrap { padding-bottom: 9vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; border-radius: 10px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; width: 100%; }

header .wrap { display: flex; align-items: center; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
/* Language: a globe button; the real <select> sits on top of it, so the system's own language menu opens. */
.lang { position: relative; margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
        width: 36px; height: 36px; border-radius: 999px; background: var(--capsule); color: var(--text); cursor: pointer; }
.lang:hover { background: color-mix(in srgb, var(--capsule) 100%, var(--text) 6%); }
.lang:focus-within { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.lang svg { width: 19px; height: 19px; }
.lang select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }

.hero { padding: 24px 0 0; text-align: center; }
.hero h1 { font-size: clamp(36px, 6.4vw, 64px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 18px; text-wrap: balance; }
.hero h1 span { display: inline-block; background: var(--headline); -webkit-background-clip: text; background-clip: text; color: transparent; }

.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding: 48px 0 0; }
.card { background: var(--surface); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line);
        display: flex; flex-direction: column; }
.card-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.card img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
/* The FolderTrail icon carries macOS's standard padding; scale it to match the full-bleed icon beside it. */
.card img.mac-icon { border-radius: 0; transform: scale(1.22); }
.card h2 { font-size: 22px; letter-spacing: -0.015em; margin: 0; }
.tag { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.card p { color: var(--muted); margin: 0 0 22px; flex: 1; }
.card .actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
       background: var(--accent); color: #fff; }
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.soon { font-size: 13px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
        padding: 4px 10px; border-radius: 999px; }

/* Contact page. */
.page { max-width: 560px; padding: 24px 0 0; margin: 0 auto; width: 100%; }
.page h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 14px; }
.page p { color: var(--muted); margin: 0 0 18px; }
.mail { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 22px; font-size: 19px; font-weight: 600; }

footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer .links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (max-width: 600px) { footer .links { margin-left: 0; } main.wrap { padding-top: 32px; padding-bottom: 6vh; } }
