/* FlowShift — static site styles.
   Design tokens mirror lib/shared/theme/app_theme.dart so the site and the
   game read as one product. No framework, no build step, one stylesheet. */

:root {
  --void: #04060f;
  --navy: #070b1c;
  --navy-deep: #0a1020;
  --navy-card: #0c1428;
  --navy-lift: #141d3c;
  --line: #24304f;

  --cyan: #2be8ff;
  --cyan-dim: #1ba9c8;
  --violet: #b14bff;
  --magenta: #ff3dda;
  --ember: #ff5a3c;
  --gold: #ffb03a;
  --lime: #c8ff32;

  --white: #f2f7ff;
  --muted: #8296bc;
  --faint: #4b5c80;

  --max: 1080px;
  --cut: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The angular neon maze that sits behind everything, matching the in-game
   backdrop. Pure CSS gradients — no image request. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      ellipse 80% 55% at 50% -10%,
      rgba(43, 232, 255, 0.16),
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 50% at 88% 18%,
      rgba(177, 75, 255, 0.13),
      transparent 70%
    ),
    radial-gradient(
      ellipse 70% 45% at 8% 72%,
      rgba(255, 61, 218, 0.08),
      transparent 70%
    ),
    linear-gradient(180deg, var(--navy) 0%, var(--void) 100%);
}

/* ---------- layout ---------- */

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

section {
  padding: 72px 0;
}

@media (max-width: 640px) {
  section {
    padding: 48px 0;
  }
  .wrap {
    padding: 0 18px;
  }
}

/* ---------- typography ---------- */

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 232, 255, 0.3);
  transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover {
  color: var(--white);
  border-bottom-color: var(--cyan);
}

code {
  font-family: "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: 0.88em;
  background: rgba(43, 232, 255, 0.08);
  border: 1px solid rgba(43, 232, 255, 0.16);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--cyan);
  overflow-wrap: anywhere;
}

/* Section eyebrow: small caps label with an accent tick, as in the game UI. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.eyebrow.violet {
  color: var(--violet);
}
.eyebrow.violet::before {
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet);
}
.eyebrow.lime {
  color: var(--lime);
}
.eyebrow.lime::before {
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}
.eyebrow.gold {
  color: var(--gold);
}
.eyebrow.gold::before {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* ---------- nav ---------- */

header.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 28, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--white);
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--muted);
  border: 0;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--cyan);
}

@media (max-width: 520px) {
  .nav-links {
    gap: 15px;
    font-size: 0.82rem;
  }
  .brand span {
    display: none;
  }
}

/* ---------- hero ---------- */

.hero {
  text-align: center;
  padding: 92px 0 76px;
}

.hero img.logo {
  width: 116px;
  height: 116px;
  border-radius: 26px;
  margin-bottom: 26px;
  filter: drop-shadow(0 0 34px rgba(43, 232, 255, 0.42));
}

.tagline {
  font-size: clamp(1.05rem, 3.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 22px;
  text-shadow: 0 0 22px rgba(43, 232, 255, 0.5);
}

.hero p.lede {
  max-width: 640px;
  margin: 0 auto 30px;
  font-size: 1.06rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--cyan);
  border-radius: 3px;
  color: var(--navy);
  background: var(--cyan);
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(43, 232, 255, 0.34);
}

.btn.ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(43, 232, 255, 0.45);
}

.btn.ghost:hover {
  color: var(--white);
  border-color: var(--cyan);
  box-shadow: 0 8px 26px rgba(43, 232, 255, 0.18);
}

/* ---------- panels ---------- */

.panel {
  background: var(--navy-card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 24px;
  clip-path: polygon(
    14px 0,
    100% 0,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    0 100%,
    0 14px
  );
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.forms {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.grid.features {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Form cards: silhouette shape drawn in CSS, matching the in-game icon set —
   each form is identifiable by outline alone, never by colour alone. */
.form-card {
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.form-card:hover {
  transform: translateY(-3px);
}

.shape-slot {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.shape {
  background: currentColor;
  box-shadow: 0 0 22px currentColor;
  opacity: 0.92;
}

.shape.ball {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.shape.cube {
  width: 38px;
  height: 38px;
  border-radius: 5px;
}
.shape.disc {
  width: 54px;
  height: 17px;
  border-radius: 9px;
}
.shape.pillar {
  width: 17px;
  height: 52px;
  border-radius: 7px;
}
.shape.bridge {
  width: 62px;
  height: 11px;
  border-radius: 3px;
}

.form-card h3 {
  margin-bottom: 6px;
}

.form-card p {
  margin: 0;
  font-size: 0.88rem;
}

.c-cyan {
  color: var(--cyan);
}
.c-violet {
  color: var(--violet);
}
.c-magenta {
  color: var(--magenta);
}
.c-lime {
  color: var(--lime);
}
.c-gold {
  color: var(--gold);
}

.feature h3 {
  color: var(--white);
  margin-bottom: 8px;
}

.feature p {
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- coming soon ---------- */

.coming {
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 17px;
  border: 1px solid rgba(255, 176, 58, 0.4);
  background: rgba(255, 176, 58, 0.09);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* ---------- document pages ---------- */

.doc {
  padding-top: 52px;
}

.doc h2 {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.doc h2:first-of-type {
  margin-top: 26px;
}

.doc h3 {
  margin-top: 26px;
  color: var(--cyan);
}

.doc ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--muted);
}

.doc li {
  margin-bottom: 8px;
}

.doc li::marker {
  color: var(--cyan);
}

.doc strong {
  color: var(--white);
}

.meta {
  font-size: 0.86rem;
  color: var(--faint);
  margin-bottom: 8px;
}

.callout {
  border-left: 3px solid var(--cyan);
  background: rgba(43, 232, 255, 0.05);
  padding: 16px 20px;
  margin: 0 0 24px;
  border-radius: 0 3px 3px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout.gold {
  border-left-color: var(--gold);
  background: rgba(255, 176, 58, 0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 0.92rem;
}

.table-scroll {
  overflow-x: auto;
  margin-bottom: 24px;
}

.table-scroll table {
  margin-bottom: 0;
  min-width: 460px;
}

th,
td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(20, 29, 60, 0.5);
}

td {
  color: var(--muted);
}

.yes {
  color: var(--lime);
  font-weight: 600;
}
.no {
  color: var(--faint);
  font-weight: 600;
}

/* Placeholder token the developer must replace before publishing. */
.placeholder {
  font-family: "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: 0.86em;
  background: rgba(255, 90, 60, 0.12);
  border: 1px dashed rgba(255, 90, 60, 0.5);
  border-radius: 4px;
  padding: 1px 7px;
  color: var(--ember);
  overflow-wrap: anywhere;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  margin-top: 40px;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
}

.foot-links a {
  color: var(--muted);
  border: 0;
}

.foot-links a:hover {
  color: var(--cyan);
}

footer small {
  color: var(--faint);
  font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .btn:hover,
  .form-card:hover {
    transform: none;
  }
}
