:root {
  --bg: #090d13;
  --bg-2: #0e141d;
  --panel: #111926;
  --line: #1e2a3a;
  --line-strong: #2b3b50;
  --text: #e7edf5;
  --text-muted: #8ea0b6;
  --accent: #3fa9e0;
  --accent-dim: #2b6f95;
  --danger: #e0574a;
  --maxw: 760px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(63, 169, 224, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
/* Wider container for the feature-card row so the four cards spread out evenly */
.wrap.wrap-wide { max-width: 1040px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 19, 0.85);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.wordmark {
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 20px;
  color: var(--text);
}
.wordmark .mind { color: var(--accent); }
nav.top a { color: var(--text-muted); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-left: 20px; }
nav.top a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 88px 0 64px; text-align: center; }
.hero .big {
  font-weight: 800; letter-spacing: 0.12em; font-size: clamp(40px, 9vw, 76px);
  margin: 0 0 8px; line-height: 1.02;
}
.hero .big .mind { color: var(--accent); }
.hero .tag { color: var(--text-muted); font-size: clamp(15px, 2.6vw, 19px); max-width: 540px; margin: 0 auto 30px; }
/* Platform availability boxes — swap a .soon <span> for a .live <a href> when a
   platform's beta link goes live (iOS: TestFlight public link; Android: Play opt-in). */
.platforms { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.platform {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 22px;
  min-width: 150px;
}
.platform .p-name { font-weight: 700; letter-spacing: 0.08em; font-size: 13px; color: var(--text); }
.platform .p-status { font-size: 12px; letter-spacing: 0.03em; color: var(--text-muted); }
a.platform:hover { border-color: var(--accent); text-decoration: none; background: rgba(63, 169, 224, 0.06); }
a.platform.live .p-status { color: var(--accent); }
.platform.soon { opacity: 0.6; }

/* Primary call-to-action (the web builder is the one thing you can use today) */
.cta-row { margin: 0 0 28px; }
.btn-primary {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #5cbdee 0%, #3fa9e0 48%, #2f86bd 100%);
  color: #06121c;
  font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 14px;
  padding: 15px 32px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(63, 169, 224, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(63, 169, 224, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #06121c; text-decoration: none;
}
/* light sweep on hover */
.btn-primary::before {
  content: ""; position: absolute; top: 0; left: -75%; width: 55%; height: 100%; z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg); pointer-events: none; transition: left 0.55s ease;
}
.btn-primary:hover::before { left: 130%; }
.btn-arrow { font-size: 16px; transition: transform 0.18s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(5px); }
.hero .sub { color: var(--text-muted); font-size: 13px; margin: 0 0 30px; }
/* Header "Builder" link — accented so it reads as the primary action */
nav.top a.nav-cta { color: var(--accent); }
nav.top a.nav-cta:hover { color: var(--accent); text-decoration: underline; }

/* Discord join banner — sleek, glowing blurple button */
.discord-cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  max-width: 460px; margin: 10px auto 18px; padding: 14px 20px;
  background: linear-gradient(135deg, #6f7bff 0%, #5865f2 48%, #4750e0 100%);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px;
  color: #fff;
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.discord-cta > * { position: relative; z-index: 1; }
.discord-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(88, 101, 242, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  text-decoration: none;
}
/* light sweep on hover */
.discord-cta::before {
  content: ""; position: absolute; top: 0; left: -75%; width: 55%; height: 100%; z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg); pointer-events: none; transition: left 0.55s ease;
}
.discord-cta:hover::before { left: 130%; }
.discord-badge {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.discord-logo { width: 27px; height: auto; fill: #fff; }
.discord-text { display: flex; flex-direction: column; gap: 2px; }
.discord-text strong { font-size: 16px; letter-spacing: 0.01em; color: #fff; }
.discord-text span { font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.discord-arrow {
  margin-left: auto; font-size: 20px; font-weight: 700; color: #fff; flex: none;
  transition: transform 0.18s ease;
}
.discord-cta:hover .discord-arrow { transform: translateX(5px); }

@media (prefers-reduced-motion: reduce) {
  .discord-cta, .discord-cta::before, .discord-arrow,
  .btn-primary, .btn-primary::before, .btn-arrow { transition: none; }
  .discord-cta:hover, .btn-primary:hover { transform: none; }
}

/* Feature cards */
/* Four equal cards on one row; clean 2×2 then single-column as the page narrows (never an uneven 3+1) */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 10px 0 70px; }
@media (max-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .features { grid-template-columns: 1fr; } }
.card {
  position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 20px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
}
.card::before {
  content: ""; position: absolute; left: 14px; top: 14px; width: 3px; height: 16px;
  background: var(--accent); border-radius: 2px;
}
.card h3 { margin: 0 0 6px 14px; font-size: 15px; letter-spacing: 0.03em; }
.card p { margin: 0 0 0 14px; color: var(--text-muted); font-size: 14px; }

/* Legal / content pages */
main.doc { padding: 46px 0 80px; }
main.doc h1 { font-size: clamp(28px, 6vw, 40px); letter-spacing: 0.04em; margin: 0 0 6px; }
main.doc .updated { color: var(--text-muted); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 34px; }
main.doc h2 {
  font-size: 19px; letter-spacing: 0.02em; margin: 38px 0 10px; padding-top: 6px;
  border-top: 1px solid var(--line);
}
main.doc h2:first-of-type { border-top: none; }
main.doc p, main.doc li { color: #cdd8e6; font-size: 15.5px; }
main.doc ul { padding-left: 20px; }
main.doc li { margin-bottom: 7px; }
main.doc .lead { color: var(--text-muted); font-size: 16px; }
.callout {
  border: 1px solid var(--line-strong); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 14px 18px; margin: 18px 0; background: var(--panel);
}
.callout.danger { border-left-color: var(--danger); }
.callout p { margin: 0; }
code.inline { background: #0c1420; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 13px; color: var(--accent); }

/* Footer — margin-top:auto pins it to the bottom on short pages (body is a flex column) */
footer.site { margin-top: auto; border-top: 1px solid var(--line); padding: 30px 0 50px; color: var(--text-muted); font-size: 13px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
footer.site nav a { color: var(--text-muted); margin-right: 18px; }
footer.site nav a:hover { color: var(--text); text-decoration: none; }
footer.site .disclaimer { width: 100%; margin-top: 16px; font-size: 12px; line-height: 1.6; color: #6b7c92; }
