/* Waquod landing page. Standalone stylesheet on the portal design tokens (cold palette, IBM Plex Sans, 8 px grid).
   No component library: the page is static HTML served by Caddy next to the portals. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-semi-condensed-latin-600-normal.woff2) format("woff2"); }

:root {
  --navy: #0B1F33; --petrol: #0F5C6E; --ice: #4FD1E5; --slate: #64748B; --frost: #F2F6F9; --crimson: #C0392B; --teal-ok: #1E9E7A; --steel: #5B7C99;
  --petrol-700: #0B4756; --petrol-100: #D6ECF0; --ice-700: #157A8C; --ice-400: #4FD1E5;
  --bg: #FFFFFF; --surface-1: var(--frost); --surface-2: #E6EDF3; --ink: var(--navy); --ink-2: #334155; --muted: var(--slate);
  --rule: #D5DEE6; --rule-strong: #A9B8C6; --primary: var(--petrol); --primary-ink: #FFFFFF; --link: var(--petrol); --emphasis-text: var(--ice-700);
  --focus: var(--petrol);
  --font-latin: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --font-display: "Barlow Semi Condensed", "IBM Plex Sans", sans-serif;
  --r-sm: 3px; --r-md: 6px; --r-lg: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1F33; --surface-1: #10283F; --surface-2: #16324B; --ink: #F2F6F9; --ink-2: #D6E0EA; --muted: #9FB0C1;
    --rule: #24405A; --rule-strong: #3A5876; --primary: #3D9FB4; --primary-ink: #06131F; --link: #7FDCEC; --emphasis-text: #4FD1E5; --focus: #7FDCEC;
    --petrol-100: #12394A;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font-latin); font-feature-settings: "tnum"; }
html[lang="ar"] body { font-family: var(--font-arabic); line-height: 1.7; }
h1, h2, h3, p, ul, dl, dd, dt, figure { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; }
p a { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-sm); }
.skip { position: absolute; inset-inline-start: 16px; top: -48px; background: var(--primary); color: var(--primary-ink); padding: 8px 12px; border-radius: var(--r-md); z-index: 10; }
.skip:focus { top: 12px; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 767px) { .wrap { padding-inline: 16px; } }
.num { font-variant-numeric: tabular-nums; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -0.008em; }
.brand img { width: 32px; height: 32px; }
.brand .ar { font-family: var(--font-arabic); font-weight: 700; padding-inline-start: 10px; border-inline-start: 1px solid var(--rule-strong); }
.nav { display: flex; gap: 20px; margin-inline-start: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--primary); }
.top .actions { display: flex; gap: 8px; align-items: center; }
.lang { font-size: 14px; font-weight: 500; text-decoration: none; padding: 6px 10px; border: 1px solid var(--rule-strong); border-radius: var(--r-md); color: var(--ink); }
html[lang="en"] .lang { font-family: var(--font-arabic); }
html[lang="ar"] .lang { font-family: var(--font-latin); }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 640px) { .top .actions .btn-secondary { display: none; } .top .wrap { gap: 12px; } .brand { font-size: 18px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 40px; padding: 0 16px; border-radius: var(--r-md); font: 500 14px/1 inherit; font-family: inherit; text-decoration: none; border: 1px solid transparent; transition: background-color 120ms var(--ease), border-color 120ms var(--ease); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--petrol-700); }
@media (prefers-color-scheme: dark) { .btn-primary:hover { background: #5AB4C7; } }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn svg { width: 18px; height: 18px; }

/* hero */
.hero { padding-block: 72px 56px; border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -0.015em; max-width: 14ch; }
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.3; max-width: 18ch; }
.hero .lead { margin-top: 20px; font-size: 18px; color: var(--ink-2); max-width: 52ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .note { margin-top: 16px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .hero { padding-block: 48px 40px; } .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* the device panel: the one bold, always-navy element */
.device { background: #0B1F33; color: #F2F6F9; border-radius: var(--r-lg); padding: 20px 20px 16px; border: 1px solid #1E3A55; box-shadow: 0 18px 40px -24px rgba(11, 31, 51, .6); font-family: var(--font-latin); direction: ltr; }
.device header { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #9FB0C1; letter-spacing: 0.01em; }
.device .leds { display: flex; gap: 12px; }
.device .led { display: inline-flex; align-items: center; gap: 6px; }
.device .led::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3A5876; }
.device .led.on::before { background: #4FD1E5; box-shadow: 0 0 8px #4FD1E5; }
.device .led.ok::before { background: #1E9E7A; box-shadow: 0 0 8px #1E9E7A; }
.device .screen { margin-top: 16px; background: #06131F; border: 1px solid #1E3A55; border-radius: var(--r-md); padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.device .cell { display: grid; gap: 2px; }
.device .cell span { font-size: 11px; color: #9FB0C1; }
.device .cell strong { font-weight: 500; font-size: 15px; color: #F2F6F9; }
.device .cell.wide { grid-column: 1 / -1; }
.device .digits { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1; color: #4FD1E5; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.device .digits small { font-family: var(--font-latin); font-size: 13px; color: #9FB0C1; letter-spacing: 0; margin-inline-start: 8px; font-weight: 400; }
.device .status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #F2F6F9; }
.device .status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #1E9E7A; }
.device footer { margin-top: 12px; display: flex; justify-content: space-between; font-size: 12px; color: #9FB0C1; }
.device .keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.device .keys span { height: 26px; border-radius: var(--r-sm); background: #10283F; border: 1px solid #1E3A55; display: grid; place-items: center; font-size: 12px; color: #D6E0EA; }
.device .keys .accent { background: #0F5C6E; border-color: #157A8C; color: #F2F6F9; }
html[lang="ar"] .device { direction: rtl; font-family: var(--font-arabic); }
html[lang="ar"] .device .keys { direction: ltr; }
html[lang="ar"] .device header, html[lang="ar"] .device .digits small { font-family: var(--font-arabic); letter-spacing: 0; }

/* facts strip */
.facts { border-bottom: 1px solid var(--rule); background: var(--surface-1); }
.facts ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 20px 24px 20px 0; border-inline-end: 1px solid var(--rule); margin-inline-end: 24px; }
.facts li:last-child { border: 0; margin: 0; }
.facts strong { display: block; font-weight: 600; font-size: 15px; }
.facts span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .facts ul { grid-template-columns: 1fr 1fr; } .facts li:nth-child(2) { border-inline-end: 0; } }
@media (max-width: 560px) { .facts ul { grid-template-columns: 1fr; } .facts li { border-inline-end: 0; border-bottom: 1px solid var(--rule); margin: 0; padding-inline: 0; } .facts li:last-child { border: 0; } }

/* sections */
section.block { padding-block: 64px; border-bottom: 1px solid var(--rule); }
.block h2 { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; max-width: 24ch; }
html[lang="ar"] .block h2 { letter-spacing: 0; }
.block .intro { margin-top: 12px; color: var(--ink-2); max-width: 60ch; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: end; }
@media (max-width: 767px) { .section-head { grid-template-columns: 1fr; gap: 12px; } }

/* steps */
.steps { list-style: none; padding: 0; margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { border-top: 2px solid var(--rule-strong); padding-top: 16px; position: relative; }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-size: 32px; line-height: 1; color: var(--emphasis-text); font-weight: 600; display: block; margin-bottom: 8px; }
.steps h3 { font-size: 17px; font-weight: 600; }
.steps p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; gap: 20px; } }

/* capabilities list */
.caps { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 1px solid var(--rule); }
.caps > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.caps dt { font-weight: 600; font-size: 15px; }
.caps dd { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .caps { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .caps > div { grid-template-columns: 1fr; gap: 4px; } }

/* portals */
.portals { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.portal { background: var(--surface-1); padding: 28px; display: grid; gap: 12px; align-content: start; }
.portal h3 { font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.portal h3 img { width: 28px; height: 28px; }
.portal .host { font-size: 13px; color: var(--muted); font-family: var(--font-latin); direction: ltr; }
html[lang="ar"] .portal .host { text-align: end; }
.portal p { color: var(--ink-2); font-size: 15px; }
.portal ul { padding-inline-start: 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 4px; }
.portal .btn { justify-self: start; margin-top: 8px; }
.terminal { margin-top: 1px; background: var(--surface-2); padding: 20px 28px; border: 1px solid var(--rule); border-top: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; font-size: 15px; }
.terminal strong { font-weight: 600; }
.terminal code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; background: var(--bg); border: 1px solid var(--rule); padding: 2px 6px; border-radius: var(--r-sm); direction: ltr; unicode-bidi: isolate; }
@media (max-width: 767px) { .portals { grid-template-columns: 1fr; } }

/* footer */
.foot { background: #0B1F33; color: #D6E0EA; padding-block: 40px; }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.foot .brand { color: #F2F6F9; }
.foot p { margin-top: 12px; font-size: 14px; color: #9FB0C1; max-width: 48ch; }
.foot a { color: #F2F6F9; }
.foot nav { display: grid; gap: 8px; font-size: 14px; text-align: end; }
html[lang="ar"] .foot nav { text-align: start; }
@media (max-width: 767px) { .foot .wrap { grid-template-columns: 1fr; } .foot nav { text-align: start; } }
.foot .small { margin-top: 24px; font-size: 12px; color: #7A8CA0; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 12px; padding-block: 64px; }
.notfound h1 { font-size: 32px; font-weight: 600; }
.notfound .code { font-family: var(--font-display); font-size: 64px; color: var(--emphasis-text); line-height: 1; }
