/* =========================================================================
 * FLYLO FX 2026 — delivery site
 *
 * Aesthetic shared with the CAM FX HUD: dark void background, dual-accent
 * (magenta hot + cyan live), VT323 for display chrome, JetBrains Mono for
 * body. Corner-bracket reticles on cards.
 * ========================================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Backgrounds — cool void rather than pure black. */
  --bg: #04050a;
  --bg2: #0a0c14;
  --bg3: #11141e;
  --card: #0d1019;
  --card-hover: #131726;

  /* Borders — hairlines. */
  --line-soft: rgba(180, 200, 220, 0.10);
  --line-hard: rgba(180, 200, 220, 0.22);

  /* Accents. */
  --hot: #ff5cf5;          /* magenta — primary, "this is hot" */
  --hot-d: rgba(255, 92, 245, 0.18);
  --hot-b: rgba(255, 92, 245, 0.55);
  --live: #65f8ff;         /* cyan — telemetry, "this is live" */
  --live-d: rgba(101, 248, 255, 0.16);
  --live-b: rgba(101, 248, 255, 0.45);

  --text: #e8e8ee;
  --text-dim: #989aa8;
  --text-quiet: rgba(232, 232, 238, 0.50);

  --success: #4ade80;

  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Fira Code", "Menlo", monospace;
  --display: "VT323", ui-monospace, "JetBrains Mono", monospace;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  min-height: 100vh;
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================================
 * Password gate
 * ========================================================================= */
#gate {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at center, rgba(255, 92, 245, 0.04) 0%, transparent 60%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.gate-inner {
  text-align: center;
  max-width: 400px;
  padding: 40px;
}

.gate-logo {
  font-family: var(--display);
  font-size: 5.5rem;
  letter-spacing: 0.16em;
  background: linear-gradient(180deg, var(--hot), var(--live));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.gate-sub {
  color: var(--live);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 40px;
  font-weight: 600;
}

#pw {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg2);
  border: 1px solid var(--line-hard);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  text-align: center;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
  transition: border-color 100ms ease, box-shadow 100ms ease;
}

#pw:focus {
  border-color: var(--hot-b);
  box-shadow: 0 0 0 3px var(--hot-d);
}

#pw-btn {
  width: 100%;
  padding: 14px;
  background: var(--hot);
  border: none;
  color: var(--bg);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  cursor: pointer;
  text-transform: uppercase;
  transition: opacity 0.2s, transform 0.1s;
}

#pw-btn:hover { opacity: 0.9; }
#pw-btn:active { transform: translateY(1px); }

#pw-error {
  color: #ff6b6b;
  font-size: 0.75rem;
  margin-top: 12px;
  min-height: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================================
 * Header
 * ========================================================================= */
header {
  text-align: center;
  padding: 70px 20px 50px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse at center top, rgba(255, 92, 245, 0.05) 0%, transparent 70%),
    transparent;
}

.header-tag {
  font-size: 9px;
  letter-spacing: 0.30em;
  color: var(--live);
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 600;
}

h1 {
  font-family: var(--display);
  font-size: 6rem;
  letter-spacing: 0.04em;
  line-height: 1;
  font-weight: 400;
}

.accent {
  background: linear-gradient(135deg, var(--hot), var(--live));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-dim);
  font-size: 0.78rem;
  margin-top: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* =========================================================================
 * HERO — CAM FX 2026 headline section
 * ========================================================================= */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 30px;
  position: relative;
}

.hero-inner {
  position: relative;
  border: 1px solid var(--line-hard);
  padding: 48px 40px 40px;
  background:
    linear-gradient(180deg, rgba(101, 248, 255, 0.025) 0%, transparent 100%),
    var(--bg2);
}

/* Corner-bracket reticle on the hero panel — same recipe as the CAM FX HUD. */
.hero-inner::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  --c: var(--line-hard);
  --s: 14px;
  --w: 1px;
  background:
    linear-gradient(var(--c), var(--c)) top    left  / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top    left  / var(--w) var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) top    right / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top    right / var(--w) var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left  / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left  / var(--w) var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--s) no-repeat;
}

.hero-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.30em;
  color: var(--bg);
  background: var(--hot);
  padding: 4px 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--display);
  font-size: 5.5rem;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  font-weight: 400;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 650px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-bottom: 36px;
  max-width: 600px;
}

.stat {
  background: var(--bg);
  padding: 18px 16px;
  text-align: center;
}

.stat-value {
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--live);
  letter-spacing: 0;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 8.5px;
  letter-spacing: 0.20em;
  color: var(--text-quiet);
  text-transform: uppercase;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.meta-pill {
  display: inline-block;
  padding: 5px 10px;
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg3);
  border: 1px solid var(--line-soft);
}

/* =========================================================================
 * CAM FX feature grid
 * ========================================================================= */
.cam-fx-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

.grid-heading {
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 400;
}

.grid-count {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--live);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-weight: 600;
  margin-left: 10px;
  vertical-align: middle;
}

.cam-fx-rows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.cam-fx-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  padding: 20px;
  position: relative;
  transition: border-color 100ms ease, background 100ms ease;
}

.cam-fx-card:hover {
  border-color: var(--line-hard);
  background: var(--card-hover);
}

.cam-fx-num {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--live);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.cam-fx-card h4 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hot);
  margin-bottom: 10px;
  font-weight: 700;
}

.cam-fx-card p {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.cam-fx-card p:last-child {
  margin-bottom: 0;
  color: var(--text-quiet);
  font-size: 0.68rem;
}

.cam-fx-note {
  font-style: italic;
}

/* =========================================================================
 * Buttons
 * ========================================================================= */
.btn {
  display: inline-block;
  padding: 13px 24px;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  transition: all 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--hot);
  color: var(--bg);
  border-color: var(--hot);
}

.btn-primary:hover {
  background: transparent;
  color: var(--hot);
}

.btn-secondary {
  background: transparent;
  color: var(--live);
  border-color: var(--live-b);
}

.btn-secondary:hover {
  background: var(--live-d);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--line-hard);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.7rem;
  background: var(--bg3);
  color: var(--hot);
  border: 1px solid var(--line-soft);
  letter-spacing: 0.10em;
}

.btn-small:hover {
  border-color: var(--hot-b);
  background: var(--hot-d);
  color: var(--text);
}

/* =========================================================================
 * Install guide
 * ========================================================================= */
.install-guide {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.install-guide h2 {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 18px;
  color: var(--text);
  letter-spacing: 0.04em;
}

.install-guide h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--live);
  margin-top: 24px;
  margin-bottom: 12px;
}

.install-guide ol {
  padding-left: 24px;
  line-height: 2;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.install-guide code {
  background: var(--bg2);
  padding: 2px 8px;
  font-size: 0.8rem;
  color: var(--hot);
  border: 1px solid var(--line-soft);
}

/* =========================================================================
 * LAYER3 banner
 * ========================================================================= */
.ffgl-banner {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 40px 24px;
  border-top: 1px solid var(--line-hard);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(101, 248, 255, 0.03) 0%, transparent 70%);
}

.ffgl-banner-title {
  font-family: var(--display);
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 14px;
}

.ffgl-banner-sub {
  color: var(--text-dim);
  font-size: 0.85rem;
  max-width: 700px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.header-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================================
 * Plugin sections (FFGL)
 * ========================================================================= */
.plugin-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px;
  border-top: 1px solid var(--line-soft);
}

.plugin-section h2 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.section-desc {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 28px;
  max-width: 750px;
  line-height: 1.6;
}

.badge {
  font-family: var(--mono);
  font-size: 0.6rem;
  padding: 3px 8px;
  vertical-align: middle;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  margin-left: 10px;
}

.badge.new {
  background: var(--hot);
  color: var(--bg);
}

.badge:not(.new) {
  background: var(--bg3);
  color: var(--live);
  border: 1px solid var(--live-b);
}

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.plugin-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  padding: 22px;
  transition: all 0.15s;
  position: relative;
}

.plugin-card:hover {
  background: var(--card-hover);
  border-color: var(--hot-b);
}

.plugin-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--hot);
  line-height: 1;
}

.plugin-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  color: var(--text);
}

.plugin-card p {
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.plugin-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.param-count, .plugin-type {
  font-size: 0.6rem;
  padding: 3px 7px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 600;
}

.param-count {
  background: var(--hot-d);
  color: var(--hot);
}

.plugin-type {
  background: var(--live-d);
  color: var(--live);
}

/* =========================================================================
 * Footer
 * ========================================================================= */
footer {
  text-align: center;
  padding: 60px 20px 40px;
  border-top: 1px solid var(--line-hard);
  color: var(--text-dim);
  font-size: 0.78rem;
  background:
    linear-gradient(180deg, transparent 0%, rgba(101, 248, 255, 0.03) 100%);
}

.footer-mark {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--live);
  letter-spacing: 0.18em;
  margin-bottom: 6px;
}

.footer-note {
  margin-top: 12px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  opacity: 0.6;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* =========================================================================
 * Responsive
 * ========================================================================= */
@media (max-width: 768px) {
  h1 { font-size: 4rem; }
  .hero-title { font-size: 3.5rem; }
  .ffgl-banner-title { font-size: 2.8rem; }
  .hero-inner { padding: 32px 24px; }
  .gate-logo { font-size: 4rem; }
  .plugin-grid, .cam-fx-rows { grid-template-columns: 1fr; }
  header { padding: 40px 16px 30px; }
  .hero { padding: 30px 16px 20px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); max-width: 320px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  body { font-size: 12px; }
  .hero-title { font-size: 2.5rem; }
  .stat-value { font-size: 2rem; }
}
