/* ------------------------------------------------------------------
   yourmy.life — landing page styles
   ------------------------------------------------------------------ */

:root {
  --bg-radial-start: #2b0000;
  --bg-radial-mid:   #090909;
  --bg-radial-end:   #000000;
  --accent:          #ff2d2d;
  --accent-bright:   #ff5a5a;
  --accent-soft:     #ff6b6b;
  --text:            #f2f2f2;
  --text-muted:      #cfcfcf;
  --text-dim:        #7d7d7d;
  --card-bg:         rgba(255, 255, 255, 0.04);
  --card-border:     rgba(255, 255, 255, 0.08);
  --topbar-h:        72px;
  --radius:          18px;
  --ease:            cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 12px);
}

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, var(--bg-radial-start) 0%, var(--bg-radial-mid) 45%, var(--bg-radial-end) 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--topbar-h);
}

/* ---------- Background grid overlay ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(8, 8, 8, 0.55);
  border-bottom: 1px solid rgba(255, 0, 0, 0.12);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.topbar.scrolled {
  background: rgba(6, 6, 6, 0.85);
  border-bottom-color: rgba(255, 0, 0, 0.25);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  height: 40px;
  line-height: 0;
  text-decoration: none;
  transition: filter 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-logo img {
  height: 100%;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.45));
}

.nav-logo:hover,
.nav-logo:focus-visible {
  transform: translateY(-1px);
}

.nav-logo:hover img,
.nav-logo:focus-visible img {
  filter: drop-shadow(0 0 14px rgba(255, 0, 0, 0.7));
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  position: relative;
  color: #d8d8d8;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

/* ---------- Layout ---------- */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 24px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 0 20px 60px;
  position: relative;
}

.hero img {
  max-width: 700px;
  width: 100%;
  margin: 0 auto 24px;
  display: block;
  filter: drop-shadow(0 0 30px rgba(255, 0, 0, 0.35));
  position: relative;
  z-index: 1;
}

/* ---------- Hero particles ---------- */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
  .hero-particles { display: none; }
}

.discord-button {
  display: inline-block;
  margin-top: 10px;
  padding: 16px 34px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff3c3c, #b10000);
  color: white;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.3);
}

.discord-button:hover,
.discord-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(255, 0, 0, 0.5);
}

/* ---------- Scroll-down hint ---------- */
.scroll-down {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: max-content;
  margin: 22px auto 10px;
  padding: 6px 14px;
  color: var(--accent-soft);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.scroll-down:hover,
.scroll-down:focus-visible {
  opacity: 1;
  color: #ffffff;
  transform: translateY(2px);
}

.scroll-down-arrow {
  font-size: 1.4rem;
  line-height: 1;
  animation: scroll-bounce 1.8s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255, 60, 60, 0.6);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-down-arrow { animation: none; }
}

.description {
  margin: 40px auto 0;
  max-width: 760px;
  font-size: 1.1rem;
  line-height: 1.9;
  color: #d0d0d0;
}

.description strong {
  color: #ffffff;
}

/* ---------- Section heading ---------- */
.section-title {
  margin-top: 90px;
  margin-bottom: 28px;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  border-left: 4px solid #ff3030;
  padding-left: 16px;
}

/* ---------- Server connect ---------- */
.connect {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.connect-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 0, 0, 0.25);
  border-radius: 14px;
  padding: 14px 20px;
  font-family: 'Inter', monospace;
  font-weight: 600;
  letter-spacing: 1px;
}

.connect-box .label {
  color: var(--accent-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.connect-box .value {
  color: #ffffff;
  font-size: 1.05rem;
  user-select: all;
}

.copy-btn {
  background: linear-gradient(180deg, #ff3c3c, #b10000);
  border: none;
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.5px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.25);
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.45);
}

.copy-btn.copied {
  background: linear-gradient(180deg, #2ecc71, #1a8a4d);
}

/* ---------- Cards / grid ---------- */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.grid .card {
  width: 240px;
  flex: 0 0 240px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 70, 70, 0.45);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.18);
}

.card h3 {
  margin-bottom: 12px;
  color: var(--accent-bright);
  font-size: 1.1rem;
}

.card p {
  line-height: 1.7;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ---------- Rules list ---------- */
.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.rule {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 20px;
}

.rule h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.rule p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}

.faq-item[open] {
  border-color: rgba(255, 70, 70, 0.4);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.12);
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: #ffffff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent-bright);
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.25s var(--ease);
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .answer {
  padding: 0 22px 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Status block ---------- */
.status {
  margin-top: 80px;
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.25);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
}

.status h2 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 1.8rem;
}

.status p {
  color: #d9d9d9;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 60, 60, 0.15);
  border: 1px solid rgba(255, 60, 60, 0.4);
  color: var(--accent-soft);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3c3c;
  box-shadow: 0 0 10px #ff3c3c;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.25); }
}

/* ---------- Footer & flourishes ---------- */
.bloodline {
  width: 140px;
  height: 2px;
  margin: 40px auto;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

.footer {
  margin-top: 40px;
  padding: 16px 0 8px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer a {
  color: var(--accent-soft);
  text-decoration: none;
}

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

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .status-pill .dot { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .container { padding: 40px 18px; }

  .hero { padding-top: 20px; }

  .description { font-size: 1rem; }

  .section-title { margin-top: 60px; font-size: 1.6rem; }

  .nav-toggle { display: inline-flex; align-items: center; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 8, 8, 0.95);
    border-bottom: 1px solid rgba(255, 0, 0, 0.18);
    padding: 8px 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-links a::after { display: none; }

  .grid .card { width: 100%; flex: 1 1 100%; max-width: 360px; }

  .connect { flex-direction: column; align-items: stretch; }
  .connect-box { justify-content: space-between; }
}
