/* Landing page – index.php (extends public.css) */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(100px, 15vh, 160px) clamp(20px, 5vw, 60px) clamp(60px, 10vh, 120px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::before {
  content: '';
  position: absolute;
  width: 75vw;
  height: 75vw;
  max-width: 920px;
  max-height: 920px;
  border-radius: 50%;
  top: -22%;
  left: -18%;
  background: radial-gradient(circle, rgba(47, 156, 255, 0.22) 0%, transparent 68%);
  animation: aurora1 22s ease-in-out infinite;
  filter: blur(72px);
}
.hero-bg::after {
  content: '';
  position: absolute;
  width: 65vw;
  height: 65vw;
  max-width: 820px;
  max-height: 820px;
  border-radius: 50%;
  bottom: -18%;
  right: -12%;
  background: radial-gradient(circle, rgba(0, 27, 99, 0.45) 0%, transparent 70%);
  animation: aurora2 28s ease-in-out infinite;
  filter: blur(84px);
}
.hero-glow {
  position: absolute;
  width: 55vw;
  height: 55vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(246, 211, 101, 0.07) 0%, transparent 72%);
  animation: aurora3 18s ease-in-out infinite;
  filter: blur(56px);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 156, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 156, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at center, black 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at center, black 35%, transparent 100%);
}
@keyframes aurora1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5%, 8%) scale(1.08); }
  66% { transform: translate(-3%, 4%) scale(0.96); }
}
@keyframes aurora2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-6%, -5%) scale(1.06); }
  66% { transform: translate(4%, -8%) scale(1.04); }
}
@keyframes aurora3 {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: .55; }
  50% { transform: translateX(-50%) scale(1.25); opacity: 1; }
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wwm-gold-dim);
  border: 1px solid rgba(246, 211, 101, 0.28);
  color: var(--wwm-gold);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fade-up .8s ease both;
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wwm-gold);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}
.hero-title {
  font-size: var(--fs-2xl);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  animation: fade-up .8s .15s ease both;
}
.hero-title .grad {
  background: linear-gradient(135deg, #fff 20%, var(--wwm-gold) 75%, var(--wwm-gold-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: var(--fs-lg);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.6;
  animation: fade-up .8s .3s ease both;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fade-up .8s .45s ease both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

/* ── Sections ── */
.section {
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 60px);
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: var(--fs-tag);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--wwm-gold);
  margin-bottom: 10px;
}
.section-title {
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.section-lead {
  color: var(--muted);
  font-size: var(--fs-md);
  max-width: 520px;
  margin-bottom: 48px;
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ── Bento ── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.s7  { grid-column: span 7; }
.s5  { grid-column: span 5; }
.s4  { grid-column: span 4; }
.s3  { grid-column: span 3; }
.s12 { grid-column: span 12; }
@media (max-width: 900px) {
  .s7, .s5, .s4, .s3 { grid-column: span 6; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .s7, .s5, .s4, .s3, .s12 { grid-column: span 1; }
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--wwm-border);
  border-radius: var(--r-xl);
  padding: clamp(22px, 4vw, 36px);
  position: relative;
  overflow: hidden;
  transition: border-color .3s, background .3s, transform .3s, box-shadow .3s;
}
.bento-card:hover {
  border-color: var(--border-acc);
  background: var(--surface-hov);
  transform: translateY(-4px);
  box-shadow: var(--shadow-acc), var(--shadow-glow);
}
.card-hero-feat {
  background: linear-gradient(135deg, rgba(0, 27, 99, 0.35) 0%, rgba(7, 20, 33, 0.9) 100%);
  border-color: rgba(47, 156, 255, 0.22);
}
.card-hero-feat::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(47, 156, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  background: var(--wwm-accent-dim);
}
.bento-tag {
  font-size: var(--fs-tag);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 7px;
  color: var(--accent);
  opacity: .85;
}
.bento-h {
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}
.bento-p {
  color: var(--muted);
  font-size: var(--fs-sm);
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.pill {
  background: rgba(7, 20, 33, 0.6);
  border: 1px solid var(--wwm-border);
  border-radius: 100px;
  padding: 4px 11px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
}

/* ── Download ── */
.download-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.download-card {
  background: linear-gradient(135deg, rgba(7, 20, 33, 0.95), rgba(0, 27, 99, 0.25));
  border: 1px solid var(--wwm-border);
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
@media (max-width: 640px) { .download-card { grid-template-columns: 1fr; } }
.download-version {
  font-size: var(--fs-2xl);
  font-weight: 900;
  line-height: 1;
  margin: 8px 0 4px;
  color: var(--wwm-gold);
}
.download-date { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 20px; }
.download-mobile-title {
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1.2;
  margin: 8px 0 6px;
  color: var(--text);
}
.download-mobile-lead {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: 0 0 16px;
  line-height: 1.6;
}
.download-card-mobile {
  background: linear-gradient(135deg, rgba(16, 36, 58, 0.95), rgba(7, 20, 33, 0.98));
  border-color: var(--wwm-border);
}
.download-card-mobile {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  align-items: start;
}
.download-card-mobile .dl-notes-full { grid-column: 1 / -1; margin-top: 0; }
.download-apk-hint {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.5;
  text-align: right;
}
@media (max-width: 640px) {
  .download-card-mobile { grid-template-columns: 1fr; }
  .download-apk-hint { text-align: left; }
}
.check-list { display: flex; flex-direction: column; gap: 9px; }
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.check-item .ok { color: var(--success); font-size: 14px; }
.download-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  min-width: 220px;
}
@media (max-width: 640px) {
  .download-right { align-items: stretch; }
  .download-right .btn { justify-content: center; }
}
.download-req {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-align: right;
  line-height: 1.7;
}
@media (max-width: 640px) { .download-req { text-align: left; } }
.download-req a { color: var(--accent); }
.dl-notes {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--wwm-border);
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(246, 211, 101, 0.3) transparent;
}
.dl-notes-label {
  font-size: var(--fs-tag);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--wwm-gold);
  opacity: .85;
  margin-bottom: 8px;
}
.dl-notes .changelog-body h2,
.dl-notes .changelog-body h3,
.dl-notes .changelog-body hr { display: none; }
.dl-notes .changelog-body ul { padding-left: 16px; margin: 0 0 6px; }
.dl-notes .changelog-body li { font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; margin-bottom: 2px; }
.dl-notes .changelog-body p  { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 6px; }

.compat-block { display: flex; flex-direction: column; gap: 7px; width: 100%; }
.compat-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--fs-xs);
  line-height: 1.5;
}
.compat-ok    { color: var(--success); }
.compat-warn  { color: var(--wwm-gold); }
.compat-info  { color: var(--muted); }
.compat-error { color: var(--wwm-danger); }
.compat-item .ci-icon { flex-shrink: 0; font-size: 13px; margin-top: 1px; font-style: normal; }
.compat-item a { color: var(--accent); font-weight: 600; text-decoration: none; }
.compat-item a:hover { text-decoration: underline; }
.download-unavail {
  padding: 14px 28px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--wwm-border);
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
}
.download-mobile-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  justify-content: flex-end;
}
.btn-mobile {
  font-size: var(--fs-sm);
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--wwm-border);
  background: rgba(7, 20, 33, 0.6);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  width: 100%;
}
.btn-mobile:hover {
  border-color: rgba(246, 211, 101, 0.35);
  background: var(--wwm-gold-dim);
}
.btn-mobile.is-disabled {
  opacity: .5;
  pointer-events: none;
  cursor: not-allowed;
  border-style: dashed;
}
.btn-android::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  display: inline-block;
  background: #3ddc84;
}

/* ── Access cards ── */
.access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .access-grid { grid-template-columns: 1fr; } }
.access-grid.access-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .access-grid.access-grid-2 { grid-template-columns: 1fr; } }
.access-card {
  background: var(--surface);
  border: 1px solid var(--wwm-border);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .3s, background .3s, transform .3s, box-shadow .3s;
}
.access-card:hover {
  border-color: var(--border-acc);
  background: var(--surface-hov);
  transform: translateY(-4px);
  box-shadow: var(--shadow-acc);
}
.access-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--wwm-accent-dim);
}
.access-h  { font-size: var(--fs-lg); font-weight: 800; }
.access-p  { color: var(--muted); font-size: var(--fs-sm); flex: 1; }
.access-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--wwm-gold);
  transition: gap .2s;
}
.access-card:hover .access-cta { gap: 10px; }

.divider { border: none; border-top: 1px solid var(--wwm-border-soft); }

/* ── Changelog ── */
.changelog-card {
  background: linear-gradient(135deg, rgba(7, 20, 33, 0.95), rgba(0, 27, 99, 0.2));
  border: 1px solid var(--wwm-border);
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 60px);
}
.changelog-body h2 {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--wwm-gold);
  margin: 0 0 6px;
  border-bottom: 1px solid var(--wwm-border);
  padding-bottom: 8px;
}
.changelog-body h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 8px;
}
.changelog-body ul { padding-left: 20px; margin-bottom: 12px; }
.changelog-body li {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: 4px;
}
.changelog-body p {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
  margin-bottom: 10px;
}
.changelog-body hr { border: none; border-top: 1px solid var(--wwm-border-soft); margin: 20px 0; }
.changelog-body a { color: var(--accent); }
.changelog-body strong { color: var(--text); }

/* ── Screenshots ── */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.screenshot-card {
  aspect-ratio: 16/10;
  border-radius: var(--r-lg);
  border: 2px dashed var(--wwm-border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-align: center;
  padding: 20px;
  transition: border-color .3s, background .3s;
  overflow: hidden;
  position: relative;
}
.screenshot-card:hover { border-color: var(--border-acc); background: var(--surface-hov); }
.screenshot-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: none;
}
.screenshot-card img.loaded { display: block; }
.screenshot-placeholder-icon { font-size: 28px; opacity: .4; }
.screenshot-label {
  font-size: var(--fs-tag);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .5;
}

/* ── Handbook teaser ── */
.handbook-teaser {
  background: linear-gradient(135deg, rgba(0, 27, 99, 0.28), rgba(7, 20, 33, 0.95));
  border: 1px solid var(--wwm-border);
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
@media (max-width: 640px) { .handbook-teaser { grid-template-columns: 1fr; } }
.handbook-book-icon {
  width: 96px;
  height: 120px;
  background: linear-gradient(160deg, var(--wwm-bg-card), var(--wwm-black));
  border: 1px solid var(--wwm-border);
  border-radius: 4px 12px 12px 4px;
  box-shadow: -4px 0 0 var(--wwm-gold), 4px 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
}
.handbook-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
@media (max-width: 640px) {
  .handbook-right { align-items: stretch; }
  .handbook-right .btn { justify-content: center; }
}

/* ── Small phones & tablets ── */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: clamp(88px, 18vh, 120px);
    padding-bottom: clamp(48px, 8vh, 80px);
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .section {
    padding-top: clamp(48px, 8vw, 80px);
    padding-bottom: clamp(48px, 8vw, 80px);
  }
  .section-lead { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(32px, 10vw, 48px); }
  .download-card,
  .changelog-card,
  .handbook-teaser {
    padding: clamp(24px, 5vw, 36px);
  }
  .access-card { padding: 24px; }
  .book-controls-note { display: none; }
}
