/* Dragon Ball Legend — product site styles
   Design canvas: 1350px, colors sampled from 013官网_cut.psd */

:root {
  --magenta: #a71ab1;
  --magenta-hover: #bb2cc5;
  --cyan: #40f8f8;
  --cyan-soft: #20b8d8;
  --yellow: #ffea00;
  --card-panel: rgba(29, 12, 63, 0.58);
  --dl-panel: rgba(62, 48, 171, 0.58);
  --form-panel: rgba(27, 21, 128, 0.58);
  --input-bg: rgba(16, 13, 120, 0.66);
  --page-deep: #1e0b37;
  --font: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: #fff;
  background: var(--page-deep) url("../assets/page-bg.jpg") top center / 100% auto no-repeat;
  overflow-x: hidden;
}

@media (min-width: 1350px) {
  /* keep the art pixel-aligned with the 1350px content column on big screens */
  body { background-size: 1350px auto; }
}

img { max-width: 100%; height: auto; } /* height:auto keeps width/height HTML attrs from distorting scaled images */

section { scroll-margin-top: 108px; }

h1, h2, h3 { font-weight: 800; line-height: 1.15; }

a { color: inherit; }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--magenta);
  box-shadow: 0 2px 14px rgba(20, 4, 40, 0.45);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1350px;
  height: 84px;
  margin: 0 auto;
  padding: 0 40px 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-icon { width: 54px; height: 54px; border-radius: 10px; }

.brand-name { font-size: 27px; font-weight: 800; }

.nav-menu {
  display: flex;
  align-items: stretch;
  gap: 34px;
  list-style: none;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  height: 84px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
}

.nav-link:hover { color: var(--yellow); }

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 5px;
  border-radius: 3px;
  background: var(--yellow);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 6px 0;
  border-radius: 2px;
  background: #fff;
}

/* ---------- hero ---------- */

.hero {
  text-align: center;
  padding: 22px 20px 0;
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: clamp(34px, 4.5vw, 60px);
  color: var(--cyan);
  text-shadow: 0 3px 10px rgba(30, 5, 60, 0.65), 0 1px 2px rgba(30, 5, 60, 0.5);
}

.hero-ball { width: clamp(50px, 6vw, 80px); flex: none; }

.hero-sub {
  max-width: 960px;
  margin: 24px auto 0;
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 600;
  line-height: 1.45;
  text-shadow: 0 2px 8px rgba(30, 5, 60, 0.7);
}

.hero-logo {
  display: block;
  width: min(524px, 52%);
  margin: 27% auto 0;
}

/* ---------- shared section heading ---------- */

.section-heading {
  text-align: center;
  font-size: clamp(28px, 2.8vw, 37px);
  text-shadow: 0 3px 8px rgba(20, 5, 50, 0.8);
}

/* ---------- features ---------- */

.features { padding-top: 14px; }

.feature-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 38px;
  max-width: 1286px;
  margin: 34px auto 0;
  padding: 42px 44px;
  background: var(--card-panel);
  border: 2px solid var(--cyan);
  border-radius: 20px;
}

.feature-card h3 {
  font-size: clamp(20px, 2vw, 27px);
  color: var(--cyan);
  text-align: center;
  margin-bottom: 14px;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
}

/* ---------- download ---------- */

.download { padding-top: 96px; text-align: center; }

.dl-panel {
  max-width: 796px;
  margin: 40px auto 0;
  padding: 44px 30px 40px;
  background: var(--dl-panel);
  border: 2px solid var(--cyan);
  border-radius: 20px;
}

.store-badge {
  display: inline-block;
  transition: transform 0.15s ease;
}

.store-badge:hover { transform: scale(1.04); }

.store-badge img { width: min(310px, 72%); }

.dl-note {
  margin-top: 26px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
}

.dl-contact {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
}

.dl-contact a { text-decoration: none; }
.dl-contact a:hover { text-decoration: underline; }

/* ---------- contact ---------- */

.contact { padding-top: 96px; }

.contact-panel {
  max-width: 744px;
  margin: 40px auto 0;
  padding: 40px 30px;
  background: var(--form-panel);
  border: 2px solid var(--cyan);
  border-radius: 20px;
}

.field-label {
  display: block;
  font-size: 21px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 10px;
}

.field-input {
  width: 100%;
  padding: 20px 22px;
  margin-bottom: 26px;
  font: inherit;
  font-size: 18px;
  color: #fff;
  background: var(--input-bg);
  border: 2px solid rgba(64, 232, 248, 0.7);
  border-radius: 10px;
  outline: none;
}

.field-input::placeholder { color: rgba(216, 210, 255, 0.72); }

.field-input:focus { border-color: var(--cyan); }

textarea.field-input { min-height: 200px; resize: vertical; }

.submit-btn {
  width: 100%;
  padding: 20px;
  font: inherit;
  font-size: 23px;
  font-weight: 700;
  color: #fff;
  background: var(--magenta);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.submit-btn:hover { background: var(--magenta-hover); }

.form-error {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #ffd256;
  text-align: center;
}

/* ---------- privacy / legal page ---------- */

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 44px 20px 0;
  text-align: center;
}

.legal-page h1 {
  font-size: clamp(30px, 3.2vw, 40px);
  text-shadow: 0 3px 8px rgba(20, 5, 50, 0.8);
}

.legal-panel {
  margin-top: 30px;
  padding: 36px 34px;
  background: var(--form-panel);
  border: 2px solid var(--cyan);
  border-radius: 20px;
  text-align: left;
}

.legal-panel h2 {
  margin: 30px 0 12px;
  font-size: 22px;
  color: var(--cyan);
}

.legal-panel h3 {
  margin: 20px 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.legal-panel p {
  margin-bottom: 10px;
  font-size: 15.5px;
  line-height: 1.65;
}

.legal-panel ul {
  margin: 0 0 12px 22px;
  font-size: 15.5px;
  line-height: 1.65;
}

.legal-panel .privacy-mail { color: var(--cyan); font-weight: 700; }

@media (max-width: 768px) {
  .legal-page { padding-top: 28px; }
  .legal-panel { margin-top: 20px; padding: 26px 20px; }
  .legal-panel h2 { font-size: 19px; }
}

/* ---------- footer ---------- */

.site-footer { padding-top: 110px; text-align: center; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.footer-brand img { width: 48px; height: 48px; border-radius: 8px; }

.footer-brand span { font-size: 26px; font-weight: 800; }

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin-top: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--cyan-soft);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.footer-links a:hover { text-decoration: underline; }

.footer-divider {
  margin-top: 30px;
  border-top: 2px solid rgba(37, 216, 245, 0.85);
}

.footer-copy {
  padding: 14px 20px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--cyan-soft);
}

/* ---------- reveal animation (visible by default; JS adds .in to animate) ---------- */

.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store-badge, .submit-btn { transition: none; }
}

/* ---------- tablet (two-column cards, tightened chrome) ---------- */

@media (max-width: 1295px) {
  .nav { padding: 0 28px 0 16px; }
  .nav-menu { gap: 24px; }
  .nav-link { font-size: 18px; }
  .brand-name { font-size: 23px; }
  .feature-panel { gap: 30px; padding: 36px 30px; }
}

@media (max-width: 1024px) {
  .feature-panel { grid-template-columns: repeat(2, 1fr); }
  .hero-logo { width: min(480px, 58%); }
}

/* ---------- mobile ---------- */

@media (max-width: 768px) {
  section { scroll-margin-top: 84px; }

  .nav { height: 72px; }
  .brand-icon { width: 44px; height: 44px; }
  .brand-name { font-size: 21px; }

  .nav-toggle { display: block; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
    background: var(--magenta);
    box-shadow: 0 14px 24px rgba(20, 4, 40, 0.4);
  }

  .nav-menu.open { display: flex; }

  .nav-link { height: 52px; justify-content: center; font-size: 18px; }

  .nav-link.active::after { bottom: 6px; height: 4px; left: 34px; right: 34px; }

  .hero { padding-top: 16px; }
  .hero-title { gap: 12px; text-shadow: 0 2px 8px rgba(30, 5, 60, 0.75); }
  .hero-sub { margin-top: 16px; }
  .hero-logo { width: min(420px, 78%); margin-top: 24%; }

  .feature-panel { grid-template-columns: 1fr; gap: 28px; margin-top: 24px; padding: 30px 24px; }

  .download, .contact { padding-top: 64px; }
  .dl-panel, .contact-panel { margin-top: 26px; padding: 28px 20px; }
  .dl-contact { font-size: 18px; }

  .field-label { font-size: 19px; }
  .field-input { padding: 16px 16px; font-size: 16px; }
  .submit-btn { font-size: 20px; padding: 16px; }

  .site-footer { padding-top: 72px; }
  .footer-brand span { font-size: 21px; }
  .footer-links { gap: 10px 22px; margin-top: 18px; }
  .footer-links a { font-size: 16px; }
}
