/* Fonts are served from this site, so the page asks nothing of another server. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 700; font-stretch: 100%; font-display: swap; src: url(../fonts/bricolage-grotesque-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-stretch: 100%; font-display: swap; src: url(../fonts/instrument-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Reem Kufi"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/reem-kufi-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC; }

/* Layout: a harbour photo under a dark veil (menu bar with the real panel moored under it), then daylight sections of text and app windows. Colours come from the app's own theme. */
:root {
  --bg: #FFFFFF; --surface: #FFFFFF; --line: #DDE1E7; --ink: #14171C; --muted: #555D6B;
  --accent: #2F4FD8; --accent-ink: #2440B8; --tint: #E8ECFC;
  --code-bg: #14171C; --code-ink: #E6E9EE; --code-dim: #A9B1BD;
  --quay-top: #232A3D; --quay-bottom: #12151D; --quay-ink: #F2F4F8; --quay-muted: #B3BBCD;
  --quay-line: rgba(255,255,255,.12); --quay-chip: rgba(255,255,255,.10); --lamp: #B4C2FA;
  --on-accent: #FFFFFF; --panel-tip: #FFFFFF; --shadow: 0 24px 60px -28px rgba(18,21,29,.38);
  /* The veil over the hero image: heavy behind the text, lighter towards the panel. The same in both themes. */
  --veil-strong: rgba(18,21,29,.94); --veil-mid: rgba(18,21,29,.84); --veil-soft: rgba(18,21,29,.50);
  --veil-even-top: rgba(18,21,29,.88); --veil-even-bottom: rgba(18,21,29,.72);
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Instrument Sans", -apple-system, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --arabic: "Reem Kufi", "Geeza Pro", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171C; --surface: #20242B; --line: #2E333C; --ink: #ECEEF2; --muted: #A3ABB8;
    --accent: #4463E6; --accent-ink: #B4C2FA; --tint: #262F57;
    --code-bg: #0E1014; --quay-top: #1D2335; --quay-bottom: #0D0F15; --panel-tip: #20242B;
    --shadow: 0 24px 60px -28px rgba(0,0,0,.7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15171C; --surface: #20242B; --line: #2E333C; --ink: #ECEEF2; --muted: #A3ABB8;
  --accent: #4463E6; --accent-ink: #B4C2FA; --tint: #262F57;
  --code-bg: #0E1014; --quay-top: #1D2335; --quay-bottom: #0D0F15; --panel-tip: #20242B;
  --shadow: 0 24px 60px -28px rgba(0,0,0,.7); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Theme-matched screenshots */
img.lt { display: block; }
img.dk { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img.lt { display: none; }
  :root:not([data-theme="light"]) img.dk { display: block; }
}
:root[data-theme="dark"] img.lt { display: none; }
:root[data-theme="dark"] img.dk { display: block; }

/* Quay: hero */
.quay {
  color: var(--quay-ink);
  /* Veil, then the image, then the plain gradient that shows until the image has loaded. */
  background:
    linear-gradient(90deg, var(--veil-strong) 0%, var(--veil-mid) 40%, var(--veil-soft) 100%),
    url(hero.webp) center 62% / cover no-repeat,
    linear-gradient(180deg, var(--quay-top), var(--quay-bottom));
}
.menubar { border-bottom: 1px solid var(--quay-line); }
.menubar .wrap { display: flex; align-items: center; gap: 22px; min-height: 52px; font-size: .9rem; }
.brand { display: flex; align-items: center; gap: 9px; font: 700 1.05rem var(--display); color: var(--quay-ink); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.menubar nav { display: flex; gap: 20px; }
.menubar nav a { color: var(--quay-muted); text-decoration: none; }
.menubar nav a:hover { color: var(--quay-ink); }
.status { margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 4px 12px; border-radius: 6px; background: var(--quay-chip); font: 500 .78rem var(--mono); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 4px rgba(180,194,250,.2); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 370px); gap: 56px; align-items: start; }
.pitch { padding-block: 72px 80px; display: grid; gap: 24px; justify-items: start; align-content: start; }
.name-ar { font: 500 2.6rem/1 var(--arabic); color: var(--lamp); }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.02; }
.lead { font-size: 1.2rem; color: var(--quay-muted); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 9px; font-weight: 600; font-size: 1rem; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.pending, .btn.pending:hover { filter: none; opacity: .7; cursor: default; }
.btn.ghost { border: 1px solid var(--quay-line); color: var(--quay-ink); }
.btn.ghost:hover { background: var(--quay-chip); }
.facts { font: 400 .8rem/1.7 var(--mono); color: var(--quay-muted); }
.moored { position: relative; padding-top: 14px; margin-bottom: 56px; }
.moored::before { content: ""; position: absolute; top: 6px; right: 62px; width: 16px; height: 16px; background: var(--panel-tip); transform: rotate(45deg); border-radius: 3px; }
.panel { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0,0,0,.65); border: 1px solid var(--quay-line); }
.panel img { width: 100%; }

/* Daylight sections */
section { padding-block: 88px 0; }
.intro { display: grid; gap: 14px; max-width: 62ch; }
.intro p { color: var(--muted); }
.window { position: relative; margin-top: 36px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.window img { width: 100%; }
.lights { position: absolute; left: 1.9%; top: 2.9%; display: flex; gap: .75%; width: 100%; pointer-events: none; }
.lights i { width: 1.05%; aspect-ratio: 1; border-radius: 50%; background: var(--line); border: 1px solid rgba(127,127,127,.35); }

.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; margin-top: 36px; }
.more > div { border-top: 1px solid var(--line); padding-block: 22px 26px; display: grid; gap: 8px; align-content: start; }
.more p { color: var(--muted); }

.code { margin-top: 32px; border-radius: 14px; background: var(--code-bg); color: var(--code-ink); overflow: hidden; border: 1px solid var(--line); }
.code header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid rgba(255,255,255,.1); font: 400 .8rem var(--mono); color: var(--code-dim); }
.code button { font: 600 .8rem var(--body); color: var(--code-ink); background: rgba(255,255,255,.1); border: 0; border-radius: 6px; padding: 7px 14px; cursor: pointer; min-width: 78px; }
.code button:hover { background: rgba(255,255,255,.18); }
pre { margin: 0; padding: 20px; overflow-x: auto; font: 400 .85rem/1.7 var(--mono); }

.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--accent); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: "Step " counter(step); font: 500 .78rem var(--mono); color: var(--muted); }
.steps p { color: var(--muted); }
.note { margin-top: 28px; padding: 16px 20px; background: var(--tint); border-radius: 10px; font-size: .95rem; }

footer { margin-top: 96px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 32px 48px; color: var(--muted); font-size: .9rem; }
footer .ar { font-family: var(--arabic); font-size: 1.1rem; color: var(--ink); }

@media (max-width: 900px) {
  /* One column: the text spans the full width, so the veil is even from side to side. */
  .quay {
    background:
      linear-gradient(180deg, var(--veil-even-top), var(--veil-even-bottom)),
      url(hero.webp) center / cover no-repeat,
      linear-gradient(180deg, var(--quay-top), var(--quay-bottom));
  }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pitch { padding-block: 48px 36px; }
  .moored { width: 100%; max-width: 370px; justify-self: center; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .menubar nav, .status .addr { display: none; }
  .more { grid-template-columns: minmax(0, 1fr); }
  section { padding-block: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
