/* The public site at veydr.tech (landing page, privacy policy). Colors and
   type follow the app's game UI tokens in lib/core/theme/veydr_tokens.dart:
   deep-space ground and starfield, glass panels, arc blue, solar amber,
   hostile red, silver and triumph gold. Fonts and the starfield are copied in
   from assets/ by scripts/build-hosting.sh; nothing loads from another
   site. */

@font-face {
  font-family: "Rajdhani";
  src: url("/fonts/Rajdhani-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Rajdhani";
  src: url("/fonts/Rajdhani-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/Barlow-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/Barlow-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Share Tech Mono";
  src: url("/fonts/ShareTechMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ground: #03050a;
  --glass-top: rgba(20, 32, 48, 0.17);
  --glass-bottom: rgba(6, 10, 18, 0.12);
  --glass-edge: rgba(160, 185, 220, 0.14);
  --glass-edge-lit: rgba(160, 185, 220, 0.3);
  --hairline: rgba(160, 185, 220, 0.14);
  --text-high: #eef3fa;
  --text: #d5deea;
  --text-secondary: #a9b6c8;
  --text-muted: #7a879a;
  --arc: #5fd6f0;
  --arc-hover: #8fe4f6;
  --on-arc: #03121a;
  --terminal: #a8ecfa;
  --solar: #f2a65a;
  --hostile: #ff5468;
  --silver: #c7d3e3;
  --triumph: #e8c76a;

  --display: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: 16px;
  --max: 1120px;
  color-scheme: dark;
}

@media (min-width: 600px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--ground);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
}

/* The starfield, fixed behind everything, darker toward the bottom so long
   pages stay readable. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 5, 10, 0.15) 0%, rgba(3, 5, 10, 0.55) 70%, rgba(3, 5, 10, 0.8) 100%),
    url("/starfield.jpg") center / cover no-repeat,
    var(--ground);
}

a { color: var(--arc); text-underline-offset: 3px; }
a:hover { color: var(--arc-hover); }
:focus-visible { outline: 2px solid var(--arc); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: -48px;
  padding: 8px 12px; background: var(--arc); color: var(--on-arc);
  font-weight: 500; text-decoration: none; z-index: 10;
}
.skip:focus { top: 12px; color: var(--on-arc); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* A frosted panel floating over the stars, as in the app. */
.glass {
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
  border: 1px solid var(--glass-edge);
  border-top-color: var(--glass-edge-lit);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--hairline);
  background: rgba(3, 5, 10, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand svg { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 6px rgba(95, 214, 240, 0.35)); }
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.42em;
  color: var(--silver);
}
.wordmark .accent { color: var(--arc); }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a:not(.btn) {
  color: var(--text-secondary); text-decoration: none;
  font: 600 15px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase;
}
.site-nav a:not(.btn):hover { color: var(--text-high); }
.site-nav a[aria-current="page"] { color: var(--text-high); }

/* Buttons: cut corners, like the app's. */

.btn {
  --cut: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 22px;
  font: 700 15px/1.2 var(--display); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
  color: var(--text-high);
  background: rgba(160, 185, 220, 0.1);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 0 0 1px rgba(160, 185, 220, 0.35);
}
.btn:hover { background: rgba(160, 185, 220, 0.18); color: var(--text-high); }
.btn.primary { background: var(--arc); color: var(--on-arc); box-shadow: none; }
.btn.primary:hover { background: var(--arc-hover); color: var(--on-arc); }
.site-header .btn { --cut: 8px; min-height: 38px; padding: 6px 16px; font-size: 14px; }

/* Hero */

.hero { padding: 56px 0 64px; }
.hero .wrap {
  display: grid; gap: 48px; align-items: center;
}
@media (min-width: 960px) {
  .hero { padding: 88px 0 96px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
}
.eyebrow { color: var(--arc); margin: 0 0 18px; }
h1, h2, h3 {
  font-family: var(--display);
  color: var(--text-high);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(40px, 7vw, 66px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(95, 214, 240, 0.18);
}
h1 .lit { color: var(--arc); }
.lede {
  font-size: 19px; line-height: 1.6; color: var(--text-secondary);
  margin: 22px 0 0; max-width: 34em;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine {
  margin: 20px 0 0; font-size: 15px; color: var(--text-muted); max-width: 34em;
}

/* The example scope: home base, orbits and the incoming queue */

.scope {
  margin: 0;
  overflow: hidden;
  container-type: inline-size;
}
.scope-head {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--hairline);
  color: var(--text-muted);
}
.scope-head span:first-child { color: var(--text-high); }
.scope-body { display: grid; }
@container (min-width: 500px) {
  .scope-body { grid-template-columns: 210px minmax(0, 1fr); }
  .queue { border-left: 1px solid var(--hairline); border-top: 0; }
}
.orbit {
  display: block; width: 100%; max-width: 250px; margin: 0 auto;
  padding: 14px; aspect-ratio: 1; overflow: visible;
}
.orbit text { font-family: var(--mono); font-size: 4px; letter-spacing: 0.06em; }
.spin {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: spin 24s linear infinite;
}
.spin.slow { animation-duration: 40s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.breathe { animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .spin, .breathe { animation: none; } }

.queue { list-style: none; margin: 0; padding: 6px 0; border-top: 1px solid var(--hairline); }
.queue li {
  position: relative;
  display: grid; grid-template-columns: 12px 50px minmax(0, 1fr);
  align-items: center; gap: 10px;
  padding: 10px 16px;
}
.queue li + li { border-top: 1px solid rgba(160, 185, 220, 0.07); }
.queue .code { font-family: var(--mono); font-size: 15px; letter-spacing: 0.04em; white-space: nowrap; }
.queue .title {
  color: var(--text-high); font: 600 16px/1.25 var(--display); letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.queue .meta {
  display: block; color: var(--text-muted);
  font: 400 12px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
}

/* Contact markers, the same glyphs and colors the app uses for each kind */

.marker { display: block; width: 9px; height: 9px; justify-self: center; }
.marker.task { background: var(--solar); border-radius: 50%; box-shadow: 0 0 8px var(--solar); }
.marker.deadline { background: var(--hostile); transform: rotate(45deg); width: 8px; height: 8px; box-shadow: 0 0 8px var(--hostile); }
.marker.recurring { background: var(--arc); box-shadow: 0 0 8px var(--arc); }
.marker.travel { background: var(--silver); box-shadow: 0 0 6px var(--silver); }
.marker.training { border: 1.5px solid var(--silver); border-radius: 50%; }
.c-task { color: var(--solar); }
.c-recurring { color: var(--arc); }
.c-deadline { color: var(--hostile); }
.c-travel, .c-training { color: var(--silver); }

/* Sections */

.section { padding: 80px 0; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head .mono { color: var(--arc); margin: 0 0 12px; }
h2 { font-size: clamp(30px, 4.4vw, 42px); text-transform: uppercase; letter-spacing: 0.04em; }
.section-head p:not(.mono) { margin: 14px 0 0; color: var(--text-secondary); }

.features {
  display: grid; gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.features li { position: relative; padding: 22px 22px 26px; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--arc); box-shadow: 0 0 10px var(--arc);
}
.features .mono { color: var(--arc); margin: 0 0 10px; }
h3 { font-size: 23px; letter-spacing: 0.03em; }
.features p:not(.mono) { margin: 10px 0 0; color: var(--text-secondary); font-size: 16px; }

/* Example pushes, as they look on a lock screen */

.pushes { display: grid; gap: 12px; max-width: 560px; margin: 0; padding: 0; list-style: none; }
.push {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px;
  padding: 14px 16px; border-radius: 18px;
}
.push img { width: 38px; height: 38px; border-radius: 9px; }
.push .top { display: flex; justify-content: space-between; gap: 12px; }
.push .app { font: 400 12px/1.4 var(--mono); letter-spacing: 0.14em; color: var(--text-muted); }
.push .title { color: var(--text-high); font-weight: 500; margin: 2px 0 0; }
.push .tag { font-family: var(--display); font-weight: 700; letter-spacing: 0.12em; }
.push .body { color: var(--text-secondary); font-size: 15px; margin: 2px 0 0; }
.tag.done { color: var(--triumph); }
.tag.inbound { color: var(--hostile); }
.tag.brief { color: var(--arc); }

.split { display: grid; gap: 40px; }
@media (min-width: 860px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
.split > div { padding: 24px; }
.split h3 { margin-bottom: 14px; }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative; padding: 12px 0 12px 26px;
  border-top: 1px solid var(--hairline); color: var(--text-secondary);
}
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 21px;
  width: 8px; height: 8px; background: var(--arc); box-shadow: 0 0 6px var(--arc);
}
.ticks.never li::before {
  background: none; box-shadow: none; border: 1.5px solid var(--hostile); transform: rotate(45deg);
  width: 7px; height: 7px;
}

.more { margin: 28px 0 0; }

.about p { max-width: 40em; color: var(--text-secondary); margin: 14px 0 0; }
.notice {
  margin-top: 28px; max-width: 40em;
  padding: 16px 18px; border-left: 3px solid var(--solar);
  color: var(--text-secondary); font-size: 16px;
}

/* Footer */

.site-footer { border-top: 1px solid var(--hairline); padding: 28px 0 40px; background: rgba(3, 5, 10, 0.5); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between; align-items: center;
  color: var(--text-muted); font-size: 14px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--text-high); }

/* Long-form pages (privacy policy) */

.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 800px; }
.doc .sheet { padding: 28px 24px 36px; }
@media (min-width: 600px) { .doc .sheet { padding: 40px 44px 48px; } }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc .effective { margin: 14px 0 0; color: var(--text-muted); }
.doc h2 {
  font-size: 24px; margin: 48px 0 0; padding-top: 24px;
  border-top: 1px solid var(--hairline); scroll-margin-top: 16px;
}
.doc h3 { font-size: 19px; margin: 28px 0 0; }
.doc p, .doc ul { color: var(--text-secondary); margin: 12px 0 0; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--arc); }
.doc strong { color: var(--text); font-weight: 500; }
.doc .summary {
  margin-top: 32px; padding: 20px 22px;
  border: 1px solid var(--hairline); border-left: 3px solid var(--arc);
  background: rgba(6, 10, 18, 0.4);
}
.doc .summary h2 { margin: 0; padding: 0; border: 0; font-size: 20px; }
.toc { margin-top: 32px; }
.toc .mono { color: var(--text-muted); margin: 0; }
.toc ol {
  margin: 12px 0 0; padding: 0; list-style: none;
  display: grid; gap: 4px 24px;
}
@media (min-width: 600px) { .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.toc a { text-decoration: none; font-size: 16px; }
.toc a:hover { text-decoration: underline; }

.not-found { padding: 120px 0; }
.not-found .mono { color: var(--hostile); margin: 0 0 16px; }
.not-found p:not(.mono) { color: var(--text-secondary); max-width: 32em; }
