/* Zohara OS site. Colours come from the logo: #0B0E14 (ink), #E8ECF1 (paper), #5FD4D4 (teal). */
:root {
  --bg: #0B0E14;
  --surface: #121722;
  --surface-2: #181f2d;
  --text: #E8ECF1;
  --muted: #a3aebf;
  --accent: #5FD4D4;
  --accent-ink: #062b2d;
  --line: rgba(232, 236, 241, .12);
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #8ee6e6; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; z-index: 20; font-weight: 600; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(11, 14, 20, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: .01em; }
.brand img { border-radius: 9px; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font-size: .975rem; }
nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--accent); line-height: 1.2; transition: background .15s, transform .15s; }
.btn:hover { background: #8ee6e6; border-color: #8ee6e6; color: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--muted); color: var(--text); }
.btn-small { padding: 8px 16px; font-size: .95rem; }
nav a.btn { color: var(--accent-ink); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); background: radial-gradient(900px 420px at 78% 0%, rgba(95, 212, 212, .10), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin: 0 0 14px; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #cdd5e0; margin: 0 0 26px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.fine { color: var(--muted); font-size: .9rem; margin: 0; }
.hero-shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(95, 212, 212, .08); }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 12px; }
h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 8px; }
.section-lead { color: var(--muted); max-width: 44em; margin: 0 0 34px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card h3::before { content: ""; flex: none; width: 11px; height: 11px; background: var(--accent); border-radius: 3px; transform: rotate(45deg); }
.card p { margin: 0; color: #c3ccd9; font-size: 1rem; }

kbd { font-family: var(--mono); font-size: .85em; background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

code.hash { display: block; margin-top: 6px; overflow-wrap: anywhere; word-break: break-all; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.gallery a:hover { border-color: var(--accent); }
.gallery img { width: 100%; }
figcaption { color: var(--muted); font-size: .95rem; margin-top: 10px; }
figcaption strong { color: var(--text); }

/* Two-column blocks, lists, notes */
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.ticks, .plain { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 0 0 12px 30px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
.plain li { padding: 0 0 10px; }
.note { background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 22px 24px; }
.note h3 { margin-top: 0; }
.note p { margin: 0 0 12px; }
.note p:last-child { margin: 0; }
.section.alt .note { background: var(--bg); }

.download { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.steps { padding-left: 1.3em; margin: 0 0 24px; }
.steps li { padding: 0 0 8px 6px; }
.steps li::marker { color: var(--accent); font-weight: 700; }

table.req { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.req th, .req td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.req tr:last-child th, .req tr:last-child td { border-bottom: 0; }
.req th { width: 11em; color: var(--muted); font-weight: 600; }

/* Footer */
.site-footer { padding: 36px 0 48px; border-top: 1px solid var(--line); }
.site-footer p { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.site-footer .fine { display: block; max-width: 52em; }

/* Small screens */
@media (max-width: 900px) {
  .hero-grid, .two, .download { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  nav a:not(.btn) { display: none; }
  .hero-shot { order: -1; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .cards, .gallery { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 32px); }
  .req th { width: 7.5em; padding: 14px; }
  .req td { padding: 14px; }
  .btn { padding: 12px 18px; }
}
