/* Blightfall website — styled after the game: dusk sky, low-poly islands, amber logo, creeping purple blight. */
:root {
  --horizon: #f7a982;
  --dusk: #5c4d99;
  --zenith: #1b1f52;
  --night: #0c0a22;
  --panel: rgba(14, 10, 34, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --amber: #ffad40;
  --amber-hi: #ffe7c2;
  --peach: #ffb880;
  --blight: #c74df2;
  --blight-deep: #6b0d4d;
  --mint: #73ffbf;
  --red: #ff6659;
  --grass: #73b354;
  --sea: #2173a0;
  --text: #f3eefb;
  --muted: #b9b0d6;
  --display: "Avenir Next", "Avenir", "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --radius: 10px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  font: 17px/1.6 var(--body);
  background-color: var(--night);
  /* Faint low-poly facets over a dusk sky, like the game's flat-shaded world */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='140'><g fill='%23ffffff'><path d='M0 0 L80 0 L40 70Z' fill-opacity='.025'/><path d='M80 0 L160 0 L120 70Z' fill-opacity='.04'/><path d='M40 70 L120 70 L80 140Z' fill-opacity='.03'/><path d='M80 0 L120 70 L40 70Z' fill-opacity='.012'/><path d='M0 140 L40 70 L80 140Z' fill-opacity='.02'/><path d='M80 140 L120 70 L160 140Z' fill-opacity='.035'/></g></svg>"),
    linear-gradient(180deg, var(--zenith) 0%, #3a3378 30%, var(--dusk) 52%, #a36a8f 72%, var(--horizon) 100%);
  background-attachment: scroll, fixed;
  overflow-x: hidden;
}

a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--amber-hi); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Decorative layer: seeders drifting down, low-poly islands at the horizon ---------- */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.seeder {
  position: absolute; top: 0;
  width: 26px; height: 34px;
  background: linear-gradient(90deg, #8e2fd0 0 50%, #e26cf0 50% 100%);
  clip-path: polygon(50% 0, 100% 45%, 50% 100%, 0 45%);
  filter: drop-shadow(0 0 10px rgba(199, 77, 242, .8));
  opacity: .7;
  animation: fall 38s linear infinite;
}
.seeder.s1 { left: 12%; animation-delay: -6s; }
.seeder.s2 { left: 78%; animation-duration: 46s; animation-delay: -24s; transform: scale(.7); }
.seeder.s3 { left: 52%; animation-duration: 54s; animation-delay: -40s; opacity: .45; }
@keyframes fall {
  from { transform: translate(0, -60px) rotate(0deg); }
  to   { transform: translate(40px, calc(100vh + 60px)) rotate(360deg); }
}
.horizon {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26vh; min-height: 160px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'><path d='M0 200 L0 150 L90 120 L160 140 L250 92 L330 128 L420 110 L470 130 L560 96 L640 70 L720 112 L800 130 L880 100 L960 118 L1040 84 L1120 120 L1200 104 L1200 200Z' fill='%232b2457' fill-opacity='.55'/><path d='M0 200 L0 170 L120 150 L210 168 L300 140 L380 160 L520 146 L600 166 L700 150 L820 170 L930 146 L1050 164 L1200 150 L1200 200Z' fill='%23140f33' fill-opacity='.7'/></svg>") bottom/100% 100% no-repeat;
}

main, header.site, footer.site { position: relative; z-index: 1; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12, 9, 30, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img.icon { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.brand .word { font: 900 italic 22px var(--display); letter-spacing: .06em; }
nav.links { margin-left: auto; display: flex; gap: 22px; }
nav.links a { color: var(--text); text-decoration: none; font: 700 14px var(--display); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--amber); opacity: 1; }

/* ---------- Type ---------- */
h1, h2, h3, .display { font-family: var(--display); font-style: italic; font-weight: 900; letter-spacing: .01em; line-height: 1.08; margin: 0; }
/* The game's logo treatment: warm cream-to-peach gradient with a purple drop */
.logo-text, h2.title, .page-hero h1, .brand .word {
  background: linear-gradient(180deg, #fffbee 10%, var(--peach) 70%, #ff9a5e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(64, 13, 89, .85));
}
.logo-text { font-size: clamp(48px, 5.1vw, 74px); letter-spacing: .05em; display: block; }
h2.title { font-size: clamp(30px, 4.6vw, 46px); }
.kicker { font: 800 13px var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--amber); margin: 0 0 10px; }
.lede { color: var(--muted); font-size: 19px; max-width: 640px; }

/* Faceted divider in blight purple and amber, used under section titles */
.facets {
  height: 10px; width: 120px; margin: 14px 0 0;
  background: repeating-linear-gradient(-60deg, var(--amber) 0 10px, var(--blight) 10px 20px);
  clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%);
}
.center .facets { margin-left: auto; margin-right: auto; }

/* ---------- Buttons (match the in-game buttons: slightly rounded, accent bar) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 8px;
  font: 900 italic 18px var(--display); letter-spacing: .08em; text-transform: uppercase;
  color: #120c22; text-decoration: none;
  background: linear-gradient(180deg, #ffc477, var(--amber));
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { color: #120c22; transform: translateY(-2px); filter: brightness(1.06); }
.btn.ghost {
  color: #fff; background: var(--panel);
  border: 1px solid rgba(255,255,255,.22); border-left: 3px solid var(--amber);
  font-style: normal; font-weight: 800; font-size: 15px;
}
.btn.ghost:hover { color: #fff; }

/* ---------- Panels ---------- */
.panel {
  background: var(--panel);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.panel.accent { border-top: 2px solid var(--amber); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.hero .tag { font: 800 14px var(--display); letter-spacing: .26em; color: var(--amber); margin: 14px 0 22px 4px; }
.hero p.lede { margin: 0 0 28px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font: 700 12px var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 6px; background: rgba(14,10,34,.78); border: 1px solid var(--line); color: var(--muted); }

.hero-art { position: relative; justify-self: center; width: 100%; max-width: 560px; min-width: 0; }
.hero-art .ship {
  position: absolute; width: 130px; right: -6px; top: -54px; z-index: 2;
  filter: drop-shadow(18px 30px 0 rgba(10, 6, 30, .35));
  animation: hover 4s ease-in-out infinite;
}
@keyframes hover { 50% { transform: translate(-6px, -12px) rotate(-4deg); } }

/* Landscape phone frame around screenshots (the game plays sideways) */
.phone {
  width: 560px; aspect-ratio: 2622 / 1206;
  border-radius: 44px; padding: 10px;
  background: linear-gradient(145deg, #2f2a3c, #0d0b14);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.12) inset, 0 30px 60px rgba(0,0,0,.5);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 35px; }
.hero-art .phone { width: 100%; transform: rotate(-2deg); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; }
.section-head.center .lede { margin: 14px auto 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; }
.feature .ico {
  width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(255, 173, 64, .14); border: 1px solid rgba(255, 173, 64, .4);
}
.feature .ico svg { width: 24px; height: 24px; stroke: var(--amber); }
.feature h3 { font-size: 22px; color: #fff; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

/* Screenshot carousel */
.gallery {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 16px 30px; margin: 0 -16px;
  scrollbar-width: thin; scrollbar-color: var(--amber) transparent;
}
.gallery figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.gallery .phone { width: 440px; border-radius: 36px; padding: 8px; }
.gallery .phone img { border-radius: 29px; }
.gallery figcaption { margin-top: 14px; font: 800 italic 15px var(--display); color: var(--amber); letter-spacing: .04em; }

/* Enemies strip */
.enemies { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.enemy { padding: 20px 16px; text-align: center; }
.enemy .glyph { width: 40px; height: 48px; margin: 0 auto 10px; clip-path: polygon(50% 0, 100% 45%, 50% 100%, 0 45%); }
.enemy .glyph.seeder-g { background: linear-gradient(90deg, #8e2fd0 0 50%, #e26cf0 50% 100%); }
.enemy .glyph.hunter-g { background: linear-gradient(90deg, #b8152b 0 50%, #ff4a4a 50% 100%); clip-path: polygon(50% 0, 100% 100%, 50% 75%, 0 100%); }
.enemy .glyph.spore-g { width: 26px; height: 26px; margin: 11px auto 21px; border-radius: 50%; clip-path: none; background: radial-gradient(circle at 35% 35%, #f1b4ff, #b23ee8 60%, #5a137a); box-shadow: 0 0 16px rgba(199,77,242,.8); }
.enemy .glyph.blight-g { clip-path: polygon(0 30%, 30% 0, 70% 10%, 100% 40%, 85% 85%, 45% 100%, 10% 80%); background: linear-gradient(135deg, var(--blight-deep), #a3207a); }
.enemy .name { font: 800 italic 16px var(--display); letter-spacing: .06em; color: #fff; }
.enemy .what { font-size: 14px; color: var(--muted); }

/* Pilot Pack */
.pack .panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; padding: 36px; border-top: 2px solid var(--amber); }
.pack .shot { border-radius: 18px; box-shadow: 0 24px 50px rgba(0,0,0,.5); border: 8px solid #17141f; }
.pack .price { display: inline-block; font: 900 italic 22px var(--display); color: #120c22; background: var(--amber); padding: 4px 14px; border-radius: 6px; margin: 14px 0 18px; }
.pack ul { list-style: none; padding: 0; margin: 0 0 24px; }
.pack li { padding: 8px 0 8px 30px; position: relative; color: var(--text); }
.pack li::before { content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 14px; background: linear-gradient(90deg, var(--amber) 0 50%, var(--peach) 50% 100%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 6px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font: 800 12px var(--display); letter-spacing: .1em; }
.swatch i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }

/* Stats band */
.band { padding: 28px; display: flex; flex-wrap: wrap; gap: 18px 44px; justify-content: center; text-align: center; }
.band .stat .v { font: 900 italic 34px var(--display); color: var(--amber); }
.band .stat .l { font: 700 12px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Document pages (privacy, support) ---------- */
.page-hero { padding: 64px 0 28px; text-align: center; }
.page-hero h1 { font-size: clamp(38px, 6vw, 60px); }
.page-hero .ship-small { width: 84px; margin: 0 auto 16px; filter: drop-shadow(12px 20px 0 rgba(10,6,30,.35)); animation: hover 4s ease-in-out infinite; }
.doc { max-width: 760px; margin: 0 auto 72px; padding: 0 16px; }
.doc .panel { padding: 8px 28px 28px; margin-bottom: 18px; }
.doc h2 { font-size: 24px; color: var(--amber); margin: 22px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc .muted { color: var(--muted); }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; font: 800 italic 19px var(--display); color: #fff; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-style: normal; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }
.mail { font: 800 italic 20px var(--display); }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); background: rgba(10, 8, 26, .85); padding: 34px 0; margin-top: 20px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer.site .links { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site a { color: var(--muted); text-decoration: none; font-weight: 600; }
footer.site a:hover { color: var(--amber); }
footer.site small { color: var(--muted); }

/* ---------- App Store badge ---------- */
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .15s ease; position: relative; }
.store-badge img { height: 56px; width: auto; display: block; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge .soon { position: absolute; top: -9px; right: -10px; line-height: 1; font: 800 10px var(--display); letter-spacing: .12em; text-transform: uppercase; color: #120c22; background: var(--amber); padding: 4px 7px; border-radius: 4px; }
.pack .store-badge img { height: 48px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero .wrap, .pack .panel { grid-template-columns: 1fr; }
  .logo-text { font-size: clamp(40px, 12.5vw, 104px); }
  .hero { padding-top: 40px; text-align: center; }
  .hero .ctas, .hero .facts { justify-content: center; }
  .hero .tag { margin-left: 0; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .hero-art { margin-top: 20px; }
  .features { grid-template-columns: 1fr 1fr; }
  .enemies { grid-template-columns: 1fr 1fr; }
  .pack .panel { padding: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  nav.links { gap: 14px; }
  nav.links a { font-size: 12px; letter-spacing: .04em; }
  .brand .word { display: none; }
  .features { grid-template-columns: 1fr; }
  .phone { width: min(92vw, 560px); border-radius: 30px; padding: 7px; }
  .phone img { border-radius: 24px; }
  .gallery .phone { width: 82vw; }
  .hero-art .ship { width: 86px; right: -6px; top: -40px; }
  section { padding: 52px 0; }
  .doc .panel { padding: 4px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .seeder { display: none; }
  .store-badge:hover, .btn:hover { transform: none; }
}
