/* Flux brand home page. Design notes: README.md (apple-design review). One accent, system type,
   no external fonts/scripts/trackers. Light and dark follow the system; no in-page switch. */
:root {
  --bg: #F5F5F7; --surface: #FFFFFF; --ink: #1D1D1F; --ink2: #5E5E63; /* 15.5:1, 5.9:1 on bg */
  --accent: #0A5FD1;                                                   /* 5.4:1 on bg, 5.9:1 on white */
  --on-accent: #FFFFFF; --line: #D2D2D7; --radius: 22px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --arabic: "Segoe UI", "SF Arabic", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000000; --surface: #1C1C1E; --ink: #F5F5F7; --ink2: #A1A1A6; /* 19.3:1, 8.2:1 */
          --accent: #5AA2FF; --on-accent: #0B1A33; --line: #38383A; }         /* 8.0:1, 6.7:1 */
}
@media (prefers-contrast: more) {
  :root { --ink2: var(--ink); --line: var(--ink2); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.55 var(--sans); }
html[lang="ar"] body { font-family: var(--arabic); line-height: 1.75; }
a { color: var(--accent); }
a:focus-visible, .get:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* Header: the mark once, the language switch. */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; min-height: 44px; }
.mark img { width: 32px; height: 32px; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; text-decoration: none; }

/* Hero: words only. */
.hero { padding-block: clamp(32px, 8vw, 88px) clamp(24px, 5vw, 48px); max-width: 720px; }
.hero h1 { font-size: clamp(2.25rem, 7vw, 4rem); line-height: 1.05; letter-spacing: -0.035em;
  margin: 0 0 16px; font-weight: 800; }
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.25; }
.hero p { font-size: clamp(1.125rem, 2.4vw, 1.375rem); color: var(--ink2); margin: 0; }

/* Signature: the shelf of real app icons. */
.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.app { background: var(--surface); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.app .icon { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 6px 18px rgb(0 0 0 / .10); }
.app h3 { font-size: 1.375rem; margin: 0; letter-spacing: -0.01em; }
.app p { margin: 0; color: var(--ink2); }
.app .meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.status { font-size: 0.9375rem; color: var(--ink2); display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--ink); }
.status.live::before { background: #1F9D55; }
.get { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.app.soon .icon { opacity: .9; }

/* Promises: three things true of every Flux app. */
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px;
  margin-block: clamp(48px, 8vw, 88px); padding: 0; list-style: none; }
.promises h3 { font-size: 1.0625rem; margin: 0 0 4px; }
.promises p { margin: 0; color: var(--ink2); }

footer { border-top: 1px solid var(--line); padding-block: 20px 40px; color: var(--ink2); font-size: 0.9375rem;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .app { transition: transform .2s ease, box-shadow .2s ease; }
  .app:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgb(0 0 0 / .08); }
}
