/* Arcshard website. Generated pages (scripts/build-site.py) share this stylesheet. */
@font-face {
  font-family: "Display";
  src: url("assets/display.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0b0a16;
  --bg-raised: #14121f;
  --plate: #1a1726;
  --line: #2e2a40;
  --text: #ece8f4;
  --muted: #a7a1b9;
  --violet: #a797c4;
  --gold: #e8c46a;
  --gold-deep: #b98831;
  --gold-text: #2b1a04;
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); }

.display {
  font-family: "Display", -apple-system, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
}
.eyebrow {
  font-family: "Display", -apple-system, sans-serif;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 14px;
}
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* Top bar */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(16px, calc((100% - 1120px) / 2));
}
.top .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-family: "Display", sans-serif; letter-spacing: 0.24em; font-size: 14px; }
.top .brand img { width: 34px; height: 34px; border-radius: 8px; }
.lang { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 6px 14px;
  background: rgba(11,10,22,0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lang:hover { border-color: var(--gold); }

/* Hero */
.hero {
  position: relative; min-height: min(100svh, 980px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 120px 16px 72px; text-align: center; isolation: isolate;
}
.hero picture, .hero picture img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(11,10,22,0.55) 0%, rgba(11,10,22,0) 22%, rgba(11,10,22,0) 40%, rgba(11,10,22,0.82) 70%, var(--bg) 100%);
}
.hero-inner { max-width: 760px; }
.hero .logo { width: min(520px, 86vw); margin: 0 auto 10px; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6)); }
.hero h1 { margin: 0 auto 14px; font-size: clamp(26px, 4.4vw, 46px); color: var(--gold); max-width: 18ch;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6); }
.hero p.lead { margin: 0 auto 26px; max-width: 34em; color: #ddd8ea; font-size: clamp(16px, 2vw, 19px); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.facts li { font-size: 13px; color: var(--text); padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }

.badge { display: inline-block; line-height: 0; border-radius: 12px; transition: transform .15s ease; }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 58px; width: auto; }

/* Feature rows */
section { padding: 88px 0; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip .phone { order: 2; }
.feature h2 { font-size: clamp(28px, 3.6vw, 44px); color: var(--gold); margin: 0 0 16px; }
.feature p { color: var(--muted); margin: 0 0 14px; max-width: 30em; }
.feature ul { margin: 0; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 26px; margin: 8px 0; }
.feature li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 9px; height: 9px;
  transform: rotate(45deg); background: var(--gold); border-radius: 1px; }

.phone {
  justify-self: center; width: min(320px, 78vw); padding: 11px; border-radius: 52px;
  background: linear-gradient(145deg, #3b3b46, #15151b 40%, #2b2b33);
  box-shadow: 0 0 0 2px #0b0a16, 0 40px 90px rgba(0,0,0,0.65), 0 0 120px rgba(167,151,196,0.12);
}
.phone img { border-radius: 42px; aspect-ratio: 1320 / 2868; width: 100%; object-fit: cover; }

/* Factions */
.factions { background: radial-gradient(ellipse at 50% 0%, rgba(167,151,196,0.14), transparent 60%), var(--bg-raised);
  border-block: 1px solid var(--line); }
.section-head { text-align: center; margin: 0 auto 48px; max-width: 40em; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); color: var(--gold); margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; }
.faction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.faction {
  background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px 24px; display: flex; flex-direction: column; gap: 12px; position: relative;
}
.faction .portrait { position: relative; width: 128px; height: 128px; margin: 0 auto 6px; }
.faction .portrait img.face { width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--accent); box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 45%, transparent); }
.faction .portrait img.emblem { position: absolute; right: -8px; bottom: -6px; width: 48px; height: 48px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.7)); }
.faction h3 { margin: 0; text-align: center; font-size: 20px; color: var(--text); }
.faction .commander { margin: -6px 0 0; text-align: center; color: var(--accent); font-size: 14px; font-weight: 600; }
.faction p { margin: 0; color: var(--muted); font-size: 15px; }
.faction blockquote { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line);
  font-style: italic; color: #d6d0e4; font-size: 15px; }
.faction.concord { --accent: #f0cf7a; }
.faction.swarm { --accent: #b57cff; }
.faction.neutral { --accent: #f08a3c; }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode { padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(232,196,106,0.07), transparent 70%); }
.mode h3 { margin: 0 0 8px; font-size: 18px; color: var(--gold); }
.mode p { margin: 0; color: var(--muted); font-size: 15px; }

/* iPad */
.ipad-frame { margin: 0 auto; width: min(980px, 100%); padding: clamp(8px, 1.6vw, 18px); border-radius: clamp(22px, 3.6vw, 44px);
  background: #121217; border: 3px solid #3b3b46; box-shadow: 0 40px 100px rgba(0,0,0,0.6); }
.ipad-frame img { border-radius: clamp(14px, 2.4vw, 28px); width: 100%; }

/* Final call */
.cta { text-align: center; padding: 104px 0 96px;
  background: radial-gradient(ellipse at 50% 100%, rgba(232,196,106,0.16), transparent 60%); }
.cta img.icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 80px rgba(232,196,106,0.18); }
.cta h2 { font-size: clamp(28px, 4vw, 48px); color: var(--gold); margin: 0 auto 12px; max-width: 16ch; }
.cta p { color: var(--muted); margin: 0 auto 28px; max-width: 30em; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--gold); }

/* Text pages (privacy, support) */
.page { width: min(720px, 100% - 32px); margin: 0 auto; padding: 96px 0 72px; }
.page h1 { font-size: clamp(26px, 4vw, 38px); color: var(--gold); margin: 0 0 6px; }
.page h2 { font-size: 20px; margin: 36px 0 8px; color: var(--gold); }
.page .muted { color: var(--muted); font-size: 15px; }
.page hr { border: none; border-top: 1px solid var(--line); margin: 56px 0; }
.page .top { position: absolute; }

@media (max-width: 860px) {
  section { padding: 64px 0; }
  .feature { grid-template-columns: 1fr; gap: 36px; text-align: left; }
  .feature.flip .phone { order: 0; }
  .feature + .feature { margin-top: 72px; }
  .faction-grid, .modes { grid-template-columns: 1fr; }
  .hero { padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) { .badge { transition: none; } }
