/* ===================================================
   MELON STORE — Screen styles
   =================================================== */

/* ===========================
   Main
   =========================== */
.main {
  flex: 1;
  padding-bottom: 80px;
}

.section {
  margin-top: 80px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

/* density modifier */
[data-density="compact"] .section { margin-top: 56px; }
[data-density="roomy"]   .section { margin-top: 110px; }

/* ===========================
   LANDING — Hero
   =========================== */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 80% 20%, var(--accent-soft), transparent 65%),
    radial-gradient(600px 400px at 20% 80%, var(--accent-softer), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 96px 28px 120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 60px;
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; }
.hero-title {
  font-size: 84px;
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 18px 0 24px;
}
.hero-title .accent {
  color: var(--accent);
  text-shadow: var(--accent-glow);
}
.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 0 32px;
  line-height: 1.55;
}
.hero-ctas { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }

.hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
}
.hero-meta-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-2);
}
.hero-meta-item b { color: var(--text); font-family: var(--font-mono); font-weight: 600; }

/* Hero visual */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-moon {
  position: relative;
  width: 360px; height: 360px;
  display: grid; place-items: center;
}
.hero-moon img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 80px rgba(245, 200, 75, 0.35));
  animation: float-moon 8s ease-in-out infinite;
}
@keyframes float-moon {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.hero-moon-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}
.hero-moon-ring.r2 {
  inset: -40px;
  border-style: dashed;
  border-color: rgba(245, 200, 75, 0.18);
  animation: spin 80s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-stamp {
  position: absolute;
  top: 10px; right: -10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.hero-server-card {
  position: absolute;
  bottom: -10px;
  left: -20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  width: 240px;
  display: grid;
  gap: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  font-size: 13px;
  backdrop-filter: blur(20px);
  background: rgba(20, 20, 22, 0.85);
}
.hero-server-row { display: flex; justify-content: space-between; }
.hero-server-row code {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent);
}

/* ===========================
   STATS STRIP
   =========================== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat-v {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.stat-l { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ===========================
   FEATURED GRID
   =========================== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.featured-card {
  position: relative;
  display: grid;
  grid-template-rows: 180px 1fr;
}
.featured-icon-wrap {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--accent);
  overflow: hidden;
}
.featured-icon-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5));
}
.featured-icon-wrap svg { position: relative; z-index: 1; color: rgba(255,255,255,0.92); }
.featured-icon-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 80px;
  filter: blur(40px);
  opacity: 0.6;
}
.featured-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.featured-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px;
  letter-spacing: -0.01em;
}
.featured-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.featured-price-row {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: auto;
}
.featured-old { font-size: 13px; color: var(--text-dim); text-decoration: line-through; }
.featured-price {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--accent);
}
.featured-tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em;
}
.featured-tag.tag-accent { background: var(--accent); color: #1a1500; }
.featured-tag.tag-soft   { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(245,200,75,0.3); }

/* ===========================
   STEPS GRID
   =========================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step-card {
  padding: 28px;
  position: relative;
}
.step-n {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  opacity: 0.9;
  margin-bottom: 16px;
}
.step-t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}
.step-d { color: var(--text-muted); font-size: 14px; }

/* ===========================
   NEWS
   =========================== */
.news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
}
.news-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
}
.news-cover {
  position: relative;
  background:
    radial-gradient(circle at 60% 40%, var(--accent-soft), transparent 60%),
    linear-gradient(135deg, #1d1d20, #0f0f12);
  border-right: 1px solid var(--border);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}
.news-cover-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.news-cover-num {
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 800;
  color: var(--accent);
  line-height: 0.9;
  text-shadow: var(--accent-glow);
}
.news-cover-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--text-2);
}
.news-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-title {
  font-size: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.news-text { color: var(--text-2); font-size: 14.5px; flex: 1; }

.news-side { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.news-item:hover { border-color: var(--accent); background: var(--surface-2); }
.news-item-t { margin-top: 6px; font-weight: 600; }

/* ===========================
   FINAL CTA
   =========================== */
.final-cta {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 56px;
  background:
    radial-gradient(600px 240px at 80% 20%, var(--accent-soft), transparent 70%),
    var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 0 0 24px;
  margin-top: 80px;
  background: var(--bg-2);
}

/* Servers band */
.footer-servers {
  padding: 40px 28px 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.footer-servers-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}
.footer-servers-head code {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 12px;
}
.footer-servers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.footer-server {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s var(--ease);
}
.footer-server:hover { border-color: var(--border-strong); }
.footer-server.is-soon { opacity: 0.6; border-style: dashed; }
.footer-server-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.footer-server-name { font-weight: 700; font-family: var(--font-display); letter-spacing: -0.01em; }
.footer-server-online {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-2);
  font-family: var(--font-mono);
}
.footer-server-ip {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.footer-server-ip code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  flex: 1;
}
.footer-server-meta { font-size: 11px; letter-spacing: 0.04em; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 14px; cursor: pointer; transition: color .15s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-h {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}
.footer-about { color: var(--text-muted); font-size: 13px; max-width: 320px; margin: 8px 0 16px; }
.footer-socials { display: flex; gap: 8px; }
.footer-social {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-2);
  background: var(--surface);
  transition: border-color .15s var(--ease), color .15s var(--ease), background .15s var(--ease);
}
.footer-social:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.footer-ip {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.footer-ip code { color: var(--accent); }
.copy-btn {
  background: var(--accent-soft);
  color: var(--accent);
  border: none;
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid; place-items: center;
  cursor: pointer;
}
.footer-status { font-size: 13px; display: flex; align-items: center; gap: 8px; color: var(--text-2); margin-top: 8px; }

.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
