/* www.xikey.com — local mock. Tokens from doc/WEBSITE-PLAN.md §4. */
@font-face { font-family: "Outfit"; src: url("fonts/Outfit.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Noto Sans Arabic"; src: url("fonts/NotoSansArabic.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f5f4ec; --panel: #fffef9; --ink: #202e2e; --muted: #596664; --line: #d4d8ce;
  --accent: #d8ee73; --soft: #e8ecdf; --deep: #203832; --on-deep: #f0f1e9;
  --guard: #2f6f8f; --vault: #6a5acd; --erp: #b5652b;
  --radius: 18px; --max: 1160px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #171f21; --panel: #222c2d; --ink: #f0f1e9; --muted: #b6c0ba; --line: #3d4a46;
  --soft: #293b32; --deep: #132922;
  --guard: #7fb8d6; --vault: #a99cf0; --erp: #e09a63;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171f21; --panel: #222c2d; --ink: #f0f1e9; --muted: #b6c0ba; --line: #3d4a46;
    --soft: #293b32; --deep: #132922;
    --guard: #7fb8d6; --vault: #a99cf0; --erp: #e09a63;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Outfit", "Noto Sans Arabic", system-ui, sans-serif; font-size: 17px; line-height: 1.6;
}
:lang(ar) body, body:lang(ar) { font-family: "Noto Sans Arabic", "Outfit", system-ui, sans-serif; line-height: 1.8; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 24px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; background: var(--panel); padding: 8px 14px; z-index: 10; }

/* Mock-only review annotations */
.mockbar { background: repeating-linear-gradient(-45deg, #fff3b0 0 14px, #ffe98a 14px 28px); color: #3a3200; font-size: 14px; text-align: center; padding: 6px 12px; }
.note { display: inline-block; border: 1px dashed var(--muted); color: var(--muted); border-radius: 8px; font-size: 12.5px; padding: 1px 8px; margin-block: 6px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; }
.brand small { font-family: "Noto Sans Arabic", sans-serif; font-weight: 500; font-size: 15px; color: var(--muted); }
nav.main { display: flex; gap: 22px; margin-inline-start: auto; font-size: 15.5px; }
nav.main a { text-decoration: none; color: var(--muted); }
nav.main a:hover { color: var(--ink); }
.tools { display: flex; gap: 8px; }
.btn-ghost { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14.5px; cursor: pointer; text-decoration: none; }
.btn-ghost:hover { border-color: var(--muted); }
@media (max-width: 860px) { nav.main { display: none; } .tools { margin-inline-start: auto; } }

/* Hero */
.hero { padding-block: 72px 56px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 18px; font-weight: 600; }
:lang(ar) .hero h1 { letter-spacing: 0; line-height: 1.35; }
.hero p.lead { font-size: 19.5px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn.primary { background: var(--deep); color: var(--on-deep); }
:root[data-theme="dark"] .btn.primary { background: var(--accent); color: #1f292c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { background: var(--accent); color: #1f292c; } }
.btn.secondary { border-color: var(--line); background: var(--panel); }
.hero-art { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 40px; position: relative; overflow: hidden; }
.hero-art::before { content: ""; position: absolute; inset-inline-end: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%; background: var(--accent); opacity: .18; }
.hero-art img { width: 100%; height: auto; position: relative; display: block; }
.lockup-dark { display: none !important; }
:root[data-theme="dark"] .lockup-light { display: none !important; }
:root[data-theme="dark"] .lockup-dark { display: block !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lockup-light { display: none !important; } :root:not([data-theme="light"]) .lockup-dark { display: block !important; } }
.icon-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; position: relative; }
.icon-strip img { width: 40px; height: 40px; border-radius: 10px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-block: 44px; } }

/* Sections */
section.block { padding-block: 64px; border-top: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
:lang(ar) .eyebrow { text-transform: none; letter-spacing: 0; font-size: 14px; }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 600; }
:lang(ar) h2 { letter-spacing: 0; line-height: 1.4; }
.sub { color: var(--muted); max-width: 44em; margin: 0 0 36px; }

/* Product family cards */
.families { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; border-top: 5px solid var(--fam, var(--accent)); }
.card.desktop { --fam: var(--accent); } .card.guard { --fam: var(--guard); } .card.vault { --fam: var(--vault); } .card.erp { --fam: var(--erp); }
.card .head { display: flex; align-items: center; gap: 12px; }
.card .glyph { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); font-weight: 700; font-size: 18px; flex: none; }
.card .glyph img { width: 46px; height: 46px; border-radius: 12px; }
.card h3 { margin: 0; font-size: 21px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .meta { font-size: 14px; color: var(--muted); }
.card .go { margin-top: auto; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.card .go:hover { text-decoration: underline; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 2px 10px; border: 1px solid var(--line); background: var(--soft); white-space: nowrap; }
.badge.alpha { background: #fff1c7; color: #6b4e00; border-color: #f0d98a; }
.badge.beta { background: #e7e3ff; color: #3d2f9a; border-color: #cbc3f5; }
.badge.premium { background: #dff0f8; color: #1d5570; border-color: #b6dbeb; }

/* Why */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.why h3 { font-size: 18.5px; margin: 10px 0 6px; font-weight: 600; }
.why p { color: var(--muted); margin: 0; font-size: 15.5px; }
.why .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; color: #1f292c; font-weight: 700; }

/* Two-column panels */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; }
.panel p { color: var(--muted); margin: 0 0 16px; }
.panel.deep { background: var(--deep); color: var(--on-deep); border-color: var(--deep); }
.panel.deep p { color: #c9d3cc; }
.swatches { display: flex; gap: 8px; margin-bottom: 16px; }
.swatches span { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding-block: 40px 56px; color: var(--muted); font-size: 14.5px; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 28px; }
footer.site h4 { color: var(--ink); font-size: 14.5px; margin: 0 0 8px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ink); text-decoration: underline; }
.legal { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 2px; }
@media (max-width: 860px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
.sw-d8ee73 { background: #d8ee73; }
.sw-1f292c { background: #1f292c; }
.sw-203832 { background: #203832; }
.sw-f5f4ec { background: #f5f4ec; }
.sw-e8ecdf { background: #e8ecdf; }

/* XiKey Desktop: launcher hub + suites */
.launcher { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--deep); color: var(--on-deep); border-radius: 24px; padding: 28px 32px; }
.launcher img { width: 84px; height: 84px; border-radius: 20px; }
.launcher h3 { margin: 0; font-size: 26px; font-weight: 600; }
.launcher p { margin: 4px 0 0; color: #c9d3cc; font-size: 15.5px; max-width: 46em; }
.launcher .launcher-tag { color: var(--accent); font-size: 17px; font-weight: 500; }
.launcher .meta { font-size: 13.5px; color: #a9b6ae; }
.launcher .btn.primary { background: var(--accent); color: #1f292c; white-space: nowrap; }
.rail { display: grid; grid-template-columns: repeat(4, 1fr); height: 28px; margin-inline: 12%; border-inline: 0; position: relative; }
.rail::before { content: ""; position: absolute; inset-inline: calc(12.5% - 1px); top: 14px; border-top: 2px solid var(--line); }
.rail span { justify-self: center; width: 2px; background: var(--line); }
.suites { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.suite { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 5px solid var(--suite, var(--accent)); }
.suite-creative { --suite: #d8ee73; } .suite-office { --suite: #6fa8dc; } .suite-media { --suite: #e58f6b; } .suite-engineering { --suite: #9aa7a3; }
.suite-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.suite-head h3 { margin: 0; font-size: 21px; font-weight: 600; }
.suite-blurb { color: var(--muted); margin: 4px 0 14px; font-size: 15px; }
.chip { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 1px 9px; background: var(--soft); border: 1px solid var(--line); }
.chip.proposed { border-style: dashed; background: transparent; color: var(--muted); }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.app { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; background: var(--paper); transition: border-color .15s, transform .15s; }
.app:hover { border-color: var(--suite, var(--muted)); transform: translateY(-1px); }
.app img { width: 44px; height: 44px; border-radius: 11px; }
.app-text { display: grid; min-width: 0; }
.app-name { font-weight: 600; font-size: 15.5px; }
.app-tag { color: var(--muted); font-size: 13px; line-height: 1.4; }
.badge.avail { background: #e3f5c4; color: #2f4d05; border-color: #c8e69a; }
.badge.soon { background: transparent; color: var(--muted); }
.all-apps { margin: 22px 0 0; font-weight: 600; }
.all-apps a { text-decoration: none; } .all-apps a:hover { text-decoration: underline; }
@media (max-width: 860px) { .launcher { grid-template-columns: 1fr; } .suites { grid-template-columns: 1fr; } .rail { display: none; } }
.app-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-name .badge { font-size: 11px; padding: 0 8px; font-weight: 600; }

/* Review fixes (AGY): 2-branch rail, tiers, link affordance, status per suite */
.rail { grid-template-columns: repeat(2, 1fr); margin-inline: 0; height: 32px; }
.rail::before { inset-inline: 25%; top: 16px; }
.rail::after { content: ""; position: absolute; inset-inline-start: calc(50% - 1px); top: 0; height: 16px; width: 2px; background: var(--line); }
.rail span { align-self: end; height: 16px; }
.suite-local { color: var(--muted); font-weight: 500; }
.suite-status { margin: -8px 0 14px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.app { align-items: start; grid-template-columns: 44px 1fr auto; }
.app-go { color: var(--muted); font-size: 15px; transition: color .15s, transform .15s; }
.app:hover .app-go { color: var(--ink); transform: translate(2px, -2px); }
:root[dir="rtl"] .app-go, [dir="rtl"] .app-go { transform: scaleX(-1); }
[dir="rtl"] .app:hover .app-go { transform: scaleX(-1) translate(2px, -2px); }
.app.is-avail { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); }
.tier2 { margin-top: 28px; }
.tier2-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tier2-head h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--muted); }
.tier2-grid { grid-template-columns: 3fr 1.2fr; }
.suite.compact { background: transparent; border-style: dashed; border-top-style: solid; padding: 18px; }
.suite.compact .apps { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
@media (max-width: 860px) { .tier2-grid { grid-template-columns: 1fr; } }
