/* ==========================================================================
   PhantomAsh — dark assassin theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  --bg-void: #050303;
  --bg-panel: #0e0808;
  --bg-panel-2: #150b0b;
  --border-dim: rgba(200, 40, 50, 0.22);
  --border-bright: rgba(230, 50, 60, 0.55);
  --red-core: #b3122a;
  --red-bright: #e6293f;
  --red-glow: #ff3b4e;
  --text-main: #e6dcdc;
  --text-mute: #9c8a8a;
  --text-faint: #6e5c5c;
  --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.65);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--text-main);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  cursor: url('../cursor/phantomash.cur'), auto;
}

a, button, .btn, .nav-toggle, .card, .link-tile {
  cursor: url('../cursor/phantomash.cur'), pointer;
}

/* ---------- background atmosphere ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(179, 18, 42, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 30% at 100% 100%, rgba(179, 18, 42, 0.10), transparent 60%),
    #050303;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0px, transparent 1px, transparent 2px);
  opacity: 0.5;
}

#ember-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

h1, h2, h3, .brand-mark {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-main);
  text-shadow: 0 0 18px rgba(230, 41, 63, 0.35);
  margin: 0;
}

h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { color: var(--text-mute); line-height: 1.7; }

a { color: var(--red-bright); text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: var(--red-glow); }

.eyebrow {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 0.9rem;
  opacity: 0.9;
}

/* ---------- layout shell ---------- */

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 3, 3, 0.72);
  border-bottom: 1px solid var(--border-dim);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border-bright);
  object-fit: cover;
  box-shadow: 0 0 16px rgba(230, 41, 63, 0.4);
}

.brand-mark {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.brand-mark span { color: var(--red-bright); }

.nav-links {
  display: flex;
  gap: 2.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-mute);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--red-bright);
  transition: right 0.25s ease;
}

.nav-links a:hover { color: var(--text-main); }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--text-main); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-dim);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(8, 4, 4, 0.98);
    border-bottom: 1px solid var(--border-dim);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { border-top: 1px solid var(--border-dim); }
  .nav-links a { display: block; padding: 1rem clamp(1.2rem, 4vw, 2.5rem); }
  .nav-links a::after { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.7rem;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-core), #7a0d1e);
  color: #fff;
  box-shadow: 0 8px 24px rgba(179, 18, 42, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(230, 41, 63, 0.5);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-bright);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(230, 41, 63, 0.1);
  transform: translateY(-2px);
  color: var(--text-main);
}

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

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

.hero {
  position: relative;
  padding: clamp(4rem, 10vh, 7rem) 0 4rem;
  border-bottom: 1px solid var(--border-dim);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(5,3,3,0.55) 0%, rgba(5,3,3,0.85) 55%, var(--bg-void) 100%), url('../images/banner.jpg');
  background-size: cover;
  background-position: center 35%;
  z-index: 0;
  filter: saturate(1.1);
}

.hero .wrap { position: relative; z-index: 1; }

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 3px solid var(--border-bright);
  object-fit: cover;
  box-shadow: 0 0 40px rgba(230, 41, 63, 0.45), 0 0 0 8px rgba(20, 8, 8, 0.6);
  flex-shrink: 0;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
}

.hero-text .tagline {
  margin-top: 0.9rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-mute);
  max-width: 46ch;
}

.hero-cta { margin-top: 2rem; }

/* ---------- sections ---------- */

section { padding: clamp(3rem, 7vw, 5rem) 0; }
section.alt { background: linear-gradient(180deg, transparent, rgba(179,18,42,0.04), transparent); }

.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head p { margin-top: 0.8rem; }

/* ---------- stat strip ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border-dim);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  overflow: hidden;
}

.stat-cell {
  background: var(--bg-panel);
  padding: 1.6rem 1rem;
  text-align: center;
}

.stat-num {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--red-bright);
  text-shadow: 0 0 16px rgba(230,41,63,0.4);
}

.stat-label {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  gap: 1.6rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  padding: 1.9rem;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.9rem;
  display: inline-block;
  filter: drop-shadow(0 0 10px rgba(230,41,63,0.5));
}

.card h3 { margin-bottom: 0.6rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.2rem; }

.tag {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--border-dim);
  border-radius: 20px;
  padding: 0.3rem 0.7rem;
}

.feature-list {
  list-style: none;
  margin: 1rem 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.feature-list li {
  color: var(--text-mute);
  font-size: 0.93rem;
  padding-left: 1.3rem;
  position: relative;
}

.feature-list li::before {
  content: "\2726";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red-bright);
  font-size: 0.75rem;
}

.card-links { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.2rem; }

.card-links a {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 2px;
}

.card-links a:hover { border-color: var(--red-glow); }

/* ---------- quote / divider ---------- */

.quote-block {
  border-left: 2px solid var(--red-core);
  padding-left: 1.6rem;
  margin: 2rem 0;
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-main);
  font-weight: 700;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
  margin: 3rem 0;
}

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

.site-footer {
  border-top: 1px solid var(--border-dim);
  padding: 2.6rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-mute); font-size: 0.88rem; }
.footer-links a:hover { color: var(--red-bright); }

.footer-note { color: var(--text-faint); font-size: 0.8rem; }

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 2.5rem;
  border-bottom: 1px solid var(--border-dim);
  background: radial-gradient(ellipse 70% 60% at 30% 0%, rgba(179,18,42,0.13), transparent 65%);
}

.page-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
.page-hero .tagline { color: var(--text-mute); margin-top: 0.8rem; max-width: 60ch; font-size: 1.05rem; }

/* ---------- about page specifics ---------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.identity-card {
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
}

.identity-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-bright);
  box-shadow: 0 0 30px rgba(230,41,63,0.4);
  margin-bottom: 1.2rem;
}

.identity-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  text-align: left;
  display: grid;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.identity-list li { color: var(--text-mute); display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border-dim); padding-bottom: 0.5rem; }
.identity-list li strong { color: var(--text-main); font-weight: 600; }

/* ---------- connect page ---------- */

.connect-card {
  background: linear-gradient(135deg, rgba(179,18,42,0.16), var(--bg-panel));
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 2.6rem;
  text-align: center;
}

.connect-card h2 { margin-bottom: 0.8rem; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.link-tile {
  background: var(--bg-panel);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  padding: 1.4rem;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.link-tile:hover { border-color: var(--border-bright); transform: translateY(-3px); }

.link-tile .tile-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  display: block;
  margin-bottom: 0.4rem;
}

.link-tile .tile-title { font-weight: 700; color: var(--text-main); font-size: 1.05rem; }

/* ---------- media page ---------- */

.media-feature {
  display: flex;
  gap: 2.4rem;
  align-items: center;
  flex-wrap: wrap;
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  padding: 2.4rem;
}

.media-feature .icon-plate {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(230,41,63,0.35);
}

.media-feature .content { flex: 1; min-width: 240px; }

/* ==========================================================================
   Live presence widgets — viewer counter, local clock, Discord status
   ========================================================================== */

.live-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-dim);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  white-space: nowrap;
  transition: border-color 0.2s ease;
}
.live-pill:hover { border-color: var(--border-bright); }
.live-pill strong { color: var(--text-main); font-weight: 700; }

.live-pill .clock-glyph {
  color: var(--red-bright);
  font-size: 0.95rem;
  line-height: 1;
}

/* pulsing "someone's here" pip */
.pip {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red-glow);
  box-shadow: 0 0 0 0 rgba(255, 59, 78, 0.55);
  animation: pip-pulse 2.2s infinite;
  flex: 0 0 auto;
}
@keyframes pip-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 59, 78, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 59, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 78, 0); }
}

/* small Discord status dot inside the pill */
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #747f8d;
  flex: 0 0 auto;
}

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

/* ---------- Discord presence card (Connect page) ---------- */
.discord-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: 480px;
  margin: 0 auto 2.2rem;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  box-shadow: var(--shadow-deep);
  text-align: left;
}

.discord-card .dc-avatar { position: relative; flex: 0 0 auto; }
.discord-card .dc-avatar img {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-bright);
}
.discord-card .dc-status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #747f8d;
  border: 3px solid var(--bg-panel);
}

.discord-card .dc-tag {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 0.25rem;
}
.discord-card .dc-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.1rem;
  color: var(--text-main);
  line-height: 1.2;
}
.discord-card .dc-activity {
  font-size: 0.88rem;
  color: var(--text-mute);
  margin-top: 0.3rem;
}
.discord-card .dc-state {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.4rem;
}
.discord-card.is-loading .dc-activity { opacity: 0.6; }
