/* BloxOS project page — warm dark theme, system fonts only, no third-party requests. */

:root {
  --bg: #15130f;
  --bg-raised: #1c1a15;
  --bg-raised-hover: #242019;
  --border: rgb(240 232 220 / 10%);
  --border-strong: rgb(240 232 220 / 18%);
  --text: #f4f1ea;
  --text-secondary: #c2bcae;
  --text-muted: #938d80;
  --accent: #8794ff;
  --accent-strong: #a7b1ff;
  --accent-on: #11141c;
  --radius-lg: 20px;
  --radius-md: 12px;
  --max-width: 1080px;
  --shadow-panel: 0 1px 0 rgb(255 255 255 / 4%) inset, 0 16px 40px rgb(0 0 0 / 35%);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

code,
pre,
kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-on);
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(21 19 15 / 88%);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.brand img {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-on);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-raised);
}

.site-nav .btn {
  padding: 8px 16px;
  font-size: 14px;
}

/* ---- Hero ---- */

.hero {
  padding: 72px 0 32px;
}

.hero-inner {
  display: grid;
  gap: 28px;
  text-align: center;
  justify-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 700;
  max-width: 820px;
  letter-spacing: -0.01em;
}

.hero p.lede {
  margin: 0;
  max-width: 620px;
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-shot {
  width: 100%;
  margin-top: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  background: var(--bg-raised);
}

.hero-shot img {
  width: 100%;
  height: auto;
}

.hero-caption {
  margin: 14px auto 0;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ---- Sections ---- */

section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.hero + section {
  border-top: none;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head .kicker {
  display: block;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
}

/* ---- Capability cards ---- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.card .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgb(135 148 255 / 14%);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card .mark svg {
  width: 18px;
  height: 18px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ---- How it works ---- */

.flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 28px;
}

.flow-step {
  flex: 1 1 200px;
  max-width: 230px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}

.flow-step .step-label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.flow-step strong {
  display: block;
  font-size: 15px;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 20px;
  padding: 0 2px;
}

.flow-note {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ---- Gallery ---- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery figure {
  margin: 0;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border);
}

.gallery figcaption {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---- Security ---- */

.security-panel {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.security-panel p {
  margin: 0;
  color: var(--text-secondary);
}

.security-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-weight: 600;
}

/* ---- Final CTA ---- */

.cta {
  text-align: center;
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.4vw, 32px);
}

.cta p {
  margin: 0 0 24px;
  color: var(--text-secondary);
  max-width: 540px;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-brand img {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-note {
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  max-width: 720px;
}

/* ---- Responsive ---- */

@media (max-width: 860px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-nav a:not(.btn) {
    display: none;
  }

  .hero {
    padding: 48px 0 24px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .flow {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .footer-grid {
    flex-direction: column;
  }

  section {
    padding: 48px 0;
  }
}

@media (max-width: 400px) {
  .wrap {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
