/* Landing-only refresh. The shared legal-page stylesheet is unchanged. */
.landing {
  --bg: #080e27;
  --bg2: #0b1430;
  --panel: #142141;
  --ink: #eef3ff;
  --muted: #a9b9d4;
  --cyan: #3de6ff;
  --stroke: #2c4268;
  background-color: var(--bg);
  background-attachment: scroll;
}
.landing img { max-width: 100%; }
.landing .wrap { max-width: 1184px; padding-inline: 28px; }
.landing .nav { background: #080e27ed; }
.landing .nav-inner { height: auto; min-height: 76px; gap: 24px; }
.landing .brand { letter-spacing: 1px; font-size: 19px; flex-shrink: 0; }
.landing .brand img { border-radius: 10px; margin-right: 3px; }
.landing .brand .a { color: var(--ink); }
.landing .brand .s { color: var(--cyan); }
.landing .nav-links { gap: 26px; }
.landing .nav-links a { font-size: 13px; padding-block: 12px; }
.landing .nav-links .nav-download { color: var(--cyan); border: 1px solid #3de6ff60; border-radius: 8px; padding: 9px 16px; }
.landing :is(a, summary):focus-visible { outline: 3px solid var(--cyan); outline-offset: 5px; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 100; padding: 12px 20px; background: white; color: #080e27; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.landing section[id] { scroll-margin-top: 110px; }
.landing h1, .landing h2, .landing h3 { font-family: var(--font-display); }
.landing h2 { font-size: clamp(29px, 3.6vw, 42px); letter-spacing: -.8px; line-height: 1.13; }
.landing h3 { font-size: 24px; line-height: 1.3; }
.landing .eyebrow { color: var(--cyan); font-size: 11px; letter-spacing: 2.2px; margin-bottom: 20px; font-weight: 700; }
.launch-hero { position: relative; overflow: hidden; padding: 52px 0 0; }
.launch-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 80% 28%, #1b567a46, transparent 50%); }
.launch-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 38px; align-items: center; position: relative; }
.launch-copy { padding-block: 30px; position: relative; z-index: 1; }
.launch-copy .eyebrow { display: flex; align-items: center; gap: 10px; }
.signal { display: inline-block; width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 14px #3de6ff90; flex-shrink: 0; }
.launch-copy h1 { font-size: clamp(42px, 5.25vw, 64px); line-height: 1.04; letter-spacing: -2px; font-weight: 700; }
.launch-copy h1 span { color: var(--cyan); }
.launch-intro { color: var(--muted); max-width: 470px; font-size: 17px; line-height: 1.8; margin: 24px 0 28px; }
.store-links { display: flex; flex-wrap: wrap; gap: 12px; }
.store-link { display: inline-flex; align-items: center; gap: 12px; min-height: 66px; padding: 10px 16px; border: 1px solid #526992; background: #182746; color: var(--ink); border-radius: 10px; min-width: 199px; transition: border-color .18s, transform .18s; }
.store-link:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--cyan); }
.store-link.primary { background: linear-gradient(110deg,#28cfee,#81f3ff); border-color: #81f3ff; color: #07182c; box-shadow: 0 8px 32px #00ccff12; }
.store-link small { display: block; font-size: 10px; line-height: 1.4; }
.store-link strong { display: block; font-size: 17px; letter-spacing: -.3px; line-height: 1.5; }
.store-symbol { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.store-symbol.apple { font-weight: 600; font-size: 26px; }
.store-arrow { margin-left: auto; align-self: center; font-size: 18px; opacity: .75; }
.store-note { font-size: 11px; color: var(--muted); margin-top: 15px; line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; gap: 15px; font-size: 13px; font-weight: 600; padding: 12px 0; margin-top: 17px; }
.gameplay-scroll-hint { display: none; }
#gameplay-preview { scroll-margin-top: calc(var(--landing-header-height, 100px) + 12px); }
.landing #download { scroll-margin-top: calc(var(--landing-header-height, 76px) + 12px); }
.launch-visual { position: relative; margin: 0; display: grid; justify-items: center; padding: 0 0 30px; isolation: isolate; }
.capture-frame { width: min(300px, 100%); border-radius: 24px; padding: 7px; background: #101d38; border: 1px solid #477c9c; box-shadow: 0 24px 70px #0008, 0 0 45px #36d7ff12; overflow: hidden; }
.capture-frame img { width: 100%; height: auto; display: block; border-radius: 17px; }
.launch-visual figcaption { font-size: 10px; font-weight: 500; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: 24px; }
.capture-tag { color: var(--cyan); border-left: 1px solid var(--stroke); padding-left: 10px; margin-left: 3px; }
.hero-world { position: absolute; z-index: -2; inset: 3% -5% auto auto; width: 100%; height: 90%; object-fit: cover; opacity: .35; border-radius: 50%; mask-image: radial-gradient(ellipse,#000 20%,transparent 69%); }
.orbit-line { border: 1px solid #3de6ff1f; border-radius: 50%; position: absolute; z-index: -1; pointer-events: none; }
.orbit-one { width: 115%; height: 58%; top: 20%; transform: rotate(-28deg); }
.orbit-two { width: 105%; height: 77%; top: 10%; transform: rotate(25deg); }
.command-stats { position: relative; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); margin-top: 34px; padding: 24px 0; }
.command-stats > div { text-align: center; border-right: 1px solid var(--stroke); }
.command-stats > div:last-child { border-right: 0; }
.command-stats dt { font-family: var(--font-display); font-weight: 600; color: var(--cyan); font-size: 32px; line-height: 1.2; }
.command-stats dd { margin: 7px 0 0; text-transform: uppercase; letter-spacing: 1.2px; font-size: 10px; color: var(--muted); }
.landing .section { padding-block: 78px; }
.section-heading { display: grid; grid-template-columns: 1.15fr 1fr; gap: 55px; align-items: end; margin-bottom: 32px; }
.section-heading > p { font-size: 15px; color: var(--muted); max-width: 430px; }
.mode-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.mode-card { --accent: var(--cyan); overflow: hidden; border: 1px solid var(--stroke); border-radius: 16px; background: linear-gradient(145deg,#1c2e52,#101a36); }
.mode-card.siege { --accent: #b79cff; }
.mode-card.conquest { --accent: #5ce4b2; }
.mode-shot { position: relative; display: block; background: radial-gradient(ellipse at 50% 100%,#274266,#0a1127 70%); height: 355px; padding: 20px 18px 0; overflow: hidden; border-bottom: 1px solid var(--stroke); }
.mode-shot img { display: block; width: auto; height: 100%; margin: auto; object-fit: contain; border-radius: 8px 8px 0 0; box-shadow: 0 0 32px #0004; }
.enlarge { position: absolute; right: 14px; top: 13px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #3f5877; background: #101c35; border-radius: 50%; color: var(--accent); }
.mode-copy { padding: 25px 24px; }
.mode-type { color: var(--accent); font-family: var(--font-display); font-size: 10px; text-transform: uppercase; letter-spacing: 1.6px; margin-bottom: 10px; font-weight: 600; }
.mode-copy > p:not(.mode-type) { font-size: 13px; line-height: 1.8; color: var(--muted); margin-top: 12px; }
.mode-label { display: block; border-top: 1px solid #344b6f; padding-top: 16px; margin-top: 23px; color: var(--accent); font-size: 10px; font-weight: 600; }
.section-note { color: var(--muted); font-size: 11px; margin-top: 20px; }
.fleet-section { background: linear-gradient(95deg,#111c3b88,#0a112500); border-block: 1px solid #273c5a; }
.fleet-layout { display: grid; grid-template-columns: .8fr 1fr; gap: 88px; align-items: center; }
.fleet-art { position: relative; display: flex; flex-direction: column; align-items: center; }
.fleet-art img { width: 285px; height: auto; border: 1px solid #3b537d; border-radius: 16px; box-shadow: 0 20px 65px #0005; }
.art-caption { font: 500 11px var(--font-display); letter-spacing: 1px; text-transform: uppercase; color: var(--cyan); margin-top: 20px; }
.section-lead { color: var(--muted); font-size: 15px; margin: 20px 0; max-width: 510px; }
.upgrade-list { list-style: none; padding: 0; margin: 26px 0 0; }
.upgrade-list li { display: flex; gap: 17px; padding: 19px 0; border-top: 1px solid var(--stroke); }
.upgrade-list > li > span { color: var(--cyan); font-family: var(--font-display); font-size: 12px; padding-top: 2px; }
.upgrade-list h3 { font-size: 18px; margin-bottom: 7px; }
.upgrade-list p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.world-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 45px; align-items: center; }
.world-panel > div > p:not(.eyebrow) { color: var(--muted); font-size: 14px; margin: 20px 0 24px; }
.world-previews { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.world-previews figure { position: relative; margin: 0; height: 265px; border: 1px solid var(--stroke); border-radius: 12px; overflow: hidden; }
.world-previews figure:nth-child(2) { transform: translateY(23px); }
.world-previews img { width: 100%; height: 100%; object-fit: cover; }
.world-previews figcaption { position: absolute; inset: auto 0 0; padding: 55px 10px 14px; background: linear-gradient(transparent,#080e27); font: 600 11px var(--font-display); text-align: center; }
.collectibles-section { border-block: 1px solid var(--stroke); background: radial-gradient(ellipse at 50% 30%,#23385660,transparent 70%),#0b142b; }
.collectible-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; }
.collectible-card { --badge-accent: #b8cce0; --badge-glow: #b8cce018; margin: 0; min-width: 0; border: 1px solid #344763; border-top: 2px solid var(--badge-accent); border-radius: 12px; background: linear-gradient(160deg,#192944,#0d1730); overflow: hidden; }
.collectible-refined { --badge-accent: #63dfc4; --badge-glow: #63dfc424; }
.collectible-elite { --badge-accent: #ffca69; --badge-glow: #ffca6924; }
.collectible-rare { --badge-accent: #72b9ff; --badge-glow: #72b9ff24; }
.collectible-ultra { --badge-accent: #c796ff; --badge-glow: #c796ff24; }
.collectible-unique { --badge-accent: #ffb2d5; --badge-glow: #ffb2d524; }
.collectible-art { padding: 20px 12px 10px; background: radial-gradient(ellipse,var(--badge-glow),transparent 72%); }
.collectible-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 12px #0007); }
.collectible-card figcaption { padding: 7px 13px 20px; }
.collectible-category { display: block; color: var(--badge-accent); font: 600 10px var(--font-display); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 10px; }
.collectible-card h3 { font-size: 16px; line-height: 1.35; min-height: 65px; }
.collectible-card p { color: var(--muted); font-size: 11px; line-height: 1.65; margin-top: 8px; }
.collectible-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; }
.collectible-footer p { font: 500 14px var(--font-display); color: var(--cyan); }
.collectible-footer span { color: var(--muted); font-size: 11px; }
.screenshot-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
.screenshot-grid figure { margin: 0; min-width: 0; }
.screenshot-grid a { display: block; border: 1px solid var(--stroke); border-radius: 12px; overflow: hidden; transition: border-color .18s; }
.screenshot-grid a:hover { border-color: var(--cyan); }
.screenshot-grid img { display: block; width: 100%; height: auto; }
.screenshot-grid figcaption { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; margin-top: 15px; }
.screenshot-grid figcaption span { color: var(--cyan); font-size: 10px; }
.screenshot-grid figcaption span:last-child { margin-left: auto; font-size: 16px; }
.faq-section { border-top: 1px solid var(--stroke); }
.faq-layout { display: grid; grid-template-columns: .8fr 1fr; gap: 80px; }
.faq-list details { border-bottom: 1px solid var(--stroke); }
.faq-list details:first-child { border-top: 1px solid var(--stroke); }
.faq-list summary { cursor: pointer; padding: 20px 24px 20px 0; font-size: 14px; font-weight: 600; }
.faq-list summary::marker { color: var(--cyan); }
.faq-list details p { color: var(--muted); font-size: 13px; padding: 0 12px 22px 0; }
.landing .download-section { padding-top: 0; }
.download-panel { text-align: center; border: 1px solid #3c5c84; border-radius: 20px; padding: 48px 24px !important; background: radial-gradient(ellipse at 50% 0%,#24557288,transparent 75%),#111c37; }
.download-panel h2 { font-size: clamp(34px,5vw,54px); }
.download-panel > p:not(.eyebrow):not(.store-note) { color: var(--muted); font-size: 15px; margin: 20px 0 27px; }
.download-panel .store-links { justify-content: center; text-align: left; }
.download-branded { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 48px; padding: 48px !important; background: radial-gradient(ellipse at 18% 50%,#24557299,transparent 60%),#111c37; }
.download-brand { display: flex; flex-direction: column; align-items: center; }
.download-logo { display: block; width: min(220px,100%); border-radius: 22%; box-shadow: 0 18px 45px #0006,0 0 65px #3de6ff18; overflow: hidden; }
.download-logo img { display: block; width: 100%; height: auto; }
.download-wordmark { font: 700 clamp(22px,3vw,32px) var(--font-display); text-transform: uppercase; letter-spacing: 1.3px; margin-top: 22px; }
.download-wordmark span { color: var(--cyan); }
.download-tagline { color: var(--muted); text-transform: uppercase; letter-spacing: 2px; font-size: 9px; margin-top: 7px; }
.download-copy { text-align: left; }
.download-copy > p:not(.eyebrow):not(.store-note) { color: var(--muted); font-size: 15px; margin: 20px 0 27px; }
.download-copy .store-links { justify-content: flex-start; }
.landing .download-copy > .eyebrow { margin: 18px 0 0; }
.landing .footer { margin-top: 0; }
.landing .footer-links { gap: 18px; }
.landing .footer-links a { font-size: 12px; }
.landing .footer-copy { font-size: 11px; }
@media (max-width: 1000px) {
  .launch-copy h1 { font-size: 48px; }
  .launch-grid { grid-template-columns: 1.1fr .85fr; gap: 24px; }
  .store-link { min-width: 180px; gap: 10px; padding-inline: 12px; }
  .store-link strong { font-size: 16px; }
  .mode-shot { height: 300px; }
  .mode-copy { padding: 22px 18px; }
  .mode-copy h3 { font-size: 21px; }
  .fleet-layout { gap: 45px; }
  .screenshot-grid { gap: 15px; }
  .collectible-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .collectible-art img { max-width: 180px; margin-inline: auto; }
  .collectible-card h3 { min-height: 44px; }
}
@media (max-width: 760px) {
  .landing .wrap { padding-inline: 20px; }
  .landing .nav-inner { flex-wrap: wrap; gap: 0; padding-block: 13px 8px; }
  .landing .nav-links { width: 100%; justify-content: space-between; gap: 10px; margin-top: 9px; }
  .landing .nav-links a { font-size: 11px; padding-block: 7px; }
  .landing .nav-links .nav-download { padding: 6px 12px; }
  .landing section[id] { scroll-margin-top: 135px; }
  .launch-hero { padding-top: 20px; }
  .launch-grid { grid-template-columns: 1fr; gap: 15px; }
  .launch-copy { padding-block: 20px; }
  .launch-copy .hero-modes-link { display: none; }
  .gameplay-scroll-hint { display: inline-flex; min-height: 44px; -webkit-tap-highlight-color: transparent; }
  .gameplay-scroll-hint span { font-size: 22px; animation: gameplay-scroll-cue 2s ease-in-out infinite; }
  .launch-copy h1 { font-size: clamp(40px,7.5vw,58px); letter-spacing: -1.3px; }
  .launch-intro { max-width: 530px; font-size: 16px; margin-block: 20px 24px; }
  .store-links { gap: 10px; }
  /* Keep both official store badges in one fluid row on narrow screens. */
  .landing .store-links {
    display: grid; grid-template-columns: minmax(0,143.6fr) minmax(0,186fr);
    width: 100%; max-width: 337.6px; gap: 8px;
  }
  .landing .store-links .store-badge { min-width: 0; min-height: 44px; margin: 0; }
  .landing .store-links .store-badge img { width: 100%; max-width: 100%; height: auto; }
  .store-link { flex: 1 1 160px; max-width: 245px; min-width: 0; }
  .store-symbol { display: none; }
  .store-link strong { font-size: 15px; }
  .launch-visual { padding-top: 15px; overflow: hidden; }
  .capture-frame { width: min(260px, 100%, calc((100svh - var(--landing-header-height, 100px) - 132px) * .5625 + 16px)); }
  .orbit-one, .orbit-two { width: 92%; }
  .hero-world { width: 95%; right: 0; }
  .command-stats { margin-top: 15px; padding: 20px 0; }
  .command-stats dt { font-size: 28px; }
  .command-stats dd { font-size: 8px; letter-spacing: .6px; max-width: 65px; margin: 7px auto 0; }
  .landing .section { padding-block: 50px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .section-heading > p { max-width: 520px; font-size: 14px; }
  .mode-grid { grid-template-columns: 1fr; gap: 23px; }
  .mode-card { display: grid; grid-template-columns: .85fr 1fr; }
  .mode-shot { height: 315px; padding: 15px 10px 0; border-bottom: 0; border-right: 1px solid var(--stroke); display: flex; align-items: flex-end; }
  .mode-shot img { height: auto; width: 100%; max-height: 100%; object-fit: contain; object-position: bottom; }
  .enlarge { width: 24px; height: 24px; font-size: 13px; right: 8px; top: 8px; }
  .mode-copy { align-self: center; padding: 22px 18px; }
  .mode-copy > p:not(.mode-type) { font-size: 12px; }
  .mode-label { margin-top: 16px; padding-top: 12px; }
  .fleet-layout { grid-template-columns: 1fr; gap: 30px; }
  .fleet-copy { order: -1; }
  .fleet-art img { width: 270px; }
  .world-panel { grid-template-columns: 1fr; gap: 24px; }
  .world-previews { padding-bottom: 20px; }
  .world-previews figure { height: 215px; }
  .collectible-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .collectible-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .screenshot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 15px; }
  .screenshot-grid figcaption { font-size: 11px; }
  .faq-layout { grid-template-columns: 1fr; gap: 20px; }
  .download-panel { width: calc(100% - 40px) !important; }
  .download-branded { grid-template-columns: 1fr; gap: 34px; padding: 32px 22px !important; }
  .download-logo { width: 170px; }
  .download-copy { text-align: center; }
  .download-copy .store-links { justify-content: center; margin-inline: auto; }
  .landing .download-section { padding-top: 0; }
  /* Reserve end-of-page scroll room without adding space above the card. */
  .landing .footer { padding-block: 30px; min-height: max(0px, calc(100svh - var(--landing-header-height, 100px) - var(--landing-download-height, 700px) - 12px)); }
}
@media (max-width: 390px) {
  .landing .wrap { padding-inline: 16px; }
  .launch-copy h1 { font-size: 38px; }
  .store-links { flex-direction: column; }
  .store-link { max-width: none; flex-basis: auto; width: 100%; }
  .mode-card { display: block; }
  .mode-shot { height: 325px; border-right: 0; border-bottom: 1px solid var(--stroke); }
  .mode-shot img { height: 100%; width: auto; }
  .world-previews figcaption { font-size: 9px; padding-inline: 5px; }
}
@keyframes gameplay-scroll-cue {
  0%, 100% { transform: translateY(-2px); opacity: .6; }
  50% { transform: translateY(3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .landing *, .landing *::before, .landing *::after { animation: none !important; transition: none !important; }
}
