/* Venge Craft landing page. System fonts only: no external requests. */
:root {
  --bg: #0d0b1a;
  --bg-alt: #13102a;
  --surface: #1a1636;
  --border: #2e2858;
  --text: #ece9f7;
  --muted: #a9a3c7;
  --tech: #f0a640;   /* brass / Create */
  --magic: #a77bff;  /* arcane violet */
  --link: #c4a8ff;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 var(--font);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--tech); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center-text { text-align: center; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--tech); color: #000; padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* Header */
/* Alpha-test notice above the header (scrolls away). */
.notice {
  background: linear-gradient(90deg, rgba(240, 166, 64, .16), rgba(167, 123, 255, .2));
  border-bottom: 1px solid var(--border);
}
.notice-bar { display: flex; align-items: center; justify-content: center; gap: 8px 16px; flex-wrap: wrap; padding: 10px 0; text-align: center; }
.notice p { margin: 0; font-size: .95rem; }
.notice-tag {
  display: inline-block; margin-right: 6px; padding: 1px 10px; border-radius: 999px;
  background: var(--tech); color: var(--bg); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
}

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(13, 11, 26, .92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.wordmark { font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; color: var(--tech); text-decoration: none; }
.wordmark span { color: var(--magic); }
.site-header nav ul { display: flex; gap: 4px 16px; list-style: none; margin: 0; padding: 0; align-items: center; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-header nav a:hover { color: var(--text); }
@media (max-width: 560px) { .site-header nav li:not(:last-child) { display: none; } }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(90deg, var(--tech), var(--magic));
  color: #120e22 !important; font-weight: 700; text-decoration: none;
  border: 0;
}
.btn { transition: filter .2s ease, box-shadow .2s ease, border-color .2s ease; }
.btn:hover { filter: brightness(1.1); box-shadow: 0 0 22px rgba(240, 166, 64, .35), 0 0 34px rgba(167, 123, 255, .3); }
.btn-ghost { background: transparent; color: var(--text) !important; border: 2px solid var(--border); }
.btn-ghost:hover { border-color: var(--magic); box-shadow: 0 0 22px rgba(167, 123, 255, .25); }
.btn-small { padding: 6px 14px; font-size: .9rem; }

/* Hero */
.hero { padding: 56px 0 16px; position: relative; overflow: hidden; isolation: isolate; }
/* Slow brass/violet aurora behind the hero. */
.hero::before {
  content: ""; position: absolute; inset: -25%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 35% at 25% 25%, rgba(240, 166, 64, .22), transparent 70%),
    radial-gradient(ellipse 45% 40% at 75% 35%, rgba(167, 123, 255, .26), transparent 70%),
    radial-gradient(ellipse 35% 30% at 50% 80%, rgba(120, 80, 220, .14), transparent 70%);
  filter: blur(30px);
  animation: aurora 26s ease-in-out infinite alternate;
}
/* Faint block grid, fading out from the centre. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
}
@keyframes aurora {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate(4%, 3%) rotate(6deg) scale(1.08); }
  100% { transform: translate(-4%, -2%) rotate(-4deg) scale(1.03); }
}
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; margin: 0 0 8px; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.1; margin: 0 0 16px; }
.tech { color: var(--tech); }
.magic { color: var(--magic); }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 20px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.badges li { border: 1px solid var(--border); background: var(--surface); padding: 4px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta.center { justify-content: center; margin-top: 32px; }
h1 .tech { text-shadow: 0 0 28px rgba(240, 166, 64, .35); }
h1 .magic { text-shadow: 0 0 28px rgba(167, 123, 255, .45); }
/* Hero screenshot: brass-to-violet frame and glow. */
.hero-shot {
  margin: 0; padding: 2px; border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg, var(--tech), var(--magic));
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 48px rgba(167, 123, 255, .25);
}
.hero-shot picture, .gallery picture { display: block; }
.hero-shot img { width: 100%; height: auto; border-radius: var(--radius); display: block; }

/* Screenshot gallery */
.gallery { display: grid; gap: 20px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure {
  margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.gallery figure:hover { transform: translateY(-3px); border-color: var(--magic); box-shadow: 0 12px 36px rgba(0, 0, 0, .45); }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; color: var(--muted); font-size: .95rem; }

/* Fact bar */
.facts {
  list-style: none; margin: 40px auto 0; padding: 18px 8px; max-width: 900px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 8px; text-align: center;
  background: rgba(26, 22, 54, .7); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--muted); font-size: .9rem;
}
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts strong { display: block; font-size: 1.6rem; line-height: 1.2; color: var(--tech); }
.facts li:nth-child(even) strong { color: var(--magic); }

/* Sections */
.section { padding: 64px 0; scroll-margin-top: 60px; }
.section.alt {
  background:
    linear-gradient(90deg, transparent, var(--tech), var(--magic), transparent) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, var(--magic), var(--tech), transparent) bottom / 100% 1px no-repeat,
    var(--bg-alt);
}
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 28px; text-align: center; color: #fff; }
h2::after {
  content: ""; display: block; width: 56px; height: 3px; margin: 12px auto 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--tech), var(--magic));
}
h3 { margin: 0 0 10px; font-size: 1.15rem; }
.section-intro { text-align: center; color: var(--muted); margin: -12px auto 24px; max-width: 640px; }
.card p { margin: 0; color: var(--muted); }
.about p { color: var(--muted); font-size: 1.05rem; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card, .steps li {
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 40%), var(--surface);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card:hover, .steps li:hover {
  transform: translateY(-3px); border-color: #4a3f8a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 24px rgba(167, 123, 255, .12);
}
.tech-card:hover { border-color: var(--tech); box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 24px rgba(240, 166, 64, .18); }
.magic-card:hover { border-color: var(--magic); box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 24px rgba(167, 123, 255, .25); }
@media (prefers-reduced-motion: reduce) { .card, .steps li { transition: none; } .card:hover, .steps li:hover { transform: none; } }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.card li + li { margin-top: 6px; }
.tech-card { border-top: 3px solid var(--tech); }
.magic-card { border-top: 3px solid var(--magic); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: step; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--tech), var(--magic)); color: #120e22; font-weight: 800;
}
.steps p { margin: 0; color: var(--muted); }

details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; transition: border-color .2s ease; }
details + details { margin-top: 10px; }
details:hover { border-color: #4a3f8a; }
details[open] { border-color: var(--tech); box-shadow: inset 3px 0 0 var(--tech); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; flex: none; font-size: 1.4rem; line-height: 1; font-weight: 400; color: var(--tech);
  transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(45deg); color: var(--magic); }

/* Fade cards in as they scroll into view (Chrome/Edge; others show them as normal). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .card, .steps li, details, .about p, .gallery figure {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}
@keyframes reveal { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer {
  padding: 48px 0 40px; color: var(--muted); font-size: .9rem;
  background: linear-gradient(90deg, transparent, var(--tech), var(--magic), transparent) top / 100% 1px no-repeat;
}
.site-footer p { margin: 0 0 8px; }
.footer-cols { display: grid; gap: 28px; grid-template-columns: 1fr; margin-bottom: 28px; }
@media (min-width: 520px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 900px) { .footer-cols { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } .footer-brand { grid-column: auto; } }
.footer-brand .wordmark { display: inline-block; margin-bottom: 6px; }
.footer-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--text); margin: 0 0 10px !important; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; font-size: .8rem; }
.disclaimer { letter-spacing: .02em; }
