/* ─────────────────────────────────────────────────────────────────────────────
   Ironvale Network — Landing Page
───────────────────────────────────────────────────────────────────────────── */

:root {
  --red:    #c62828;
  --red-h:  #e53935;
  --gold:   #ffb300;
  --dark:   #060606;
  --dark2:  #0d0d0d;
  --card:   #0f0f0f;
  --border: rgba(255,255,255,.06);
  --text:   #f5f5f5;
  --muted:  #777;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ─── Particles ──────────────────────────────────────────────────────────── */
.particles-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: .4;
}

/* ─── Nav ────────────────────────────────────────────────────────────────── */
.land-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s;
}
.land-nav.scrolled {
  background: rgba(8,8,8,.95); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.land-nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 18px 24px;
  display: flex; align-items: center; gap: 32px;
}
.land-nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; letter-spacing: 1px;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.land-nav-brand strong { color: var(--red); }
.land-nav-logo { height: 36px; width: auto; }
.land-nav-links {
  display: flex; gap: 28px; margin-left: auto;
}
.land-nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  transition: color .2s; font-weight: 500;
}
.land-nav-links a:hover { color: var(--text); }
.land-nav-actions { display: flex; gap: 10px; }

/* Mobile */
.land-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: none; cursor: pointer;
  margin-left: auto; padding: 4px;
}
.land-hamburger span {
  width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all .3s;
}
.land-mobile-menu {
  display: none; flex-direction: column;
  background: rgba(8,8,8,.98); backdrop-filter: blur(12px);
  padding: 16px 24px 24px; gap: 4px;
  border-top: 1px solid var(--border);
}
.land-mobile-menu.open { display: flex; }
.land-mobile-menu a {
  color: var(--text); text-decoration: none;
  padding: 12px 0; font-size: 16px;
  border-bottom: 1px solid var(--border);
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.land-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.land-btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 10px; }
.land-btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 0 0 0 rgba(192,57,43,0);
}
.land-btn-primary:hover {
  background: var(--red-h); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(192,57,43,.4);
}
.land-btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid rgba(255,255,255,.2);
}
.land-btn-outline:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.4); transform: translateY(-2px);
}
.land-btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
}
.land-btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.land-btn-discord {
  background: #5865F2; color: #fff;
}
.land-btn-discord:hover {
  background: #4752C4; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88,101,242,.4);
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(192,57,43,.18) 0%, transparent 70%),
              linear-gradient(to bottom, rgba(8,8,8,0) 0%, rgba(8,8,8,.6) 70%, var(--dark) 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-content {
  position: relative; z-index: 1;
  text-align: center; padding: 120px 24px 80px;
  max-width: 800px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-size: 13px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 24px;
}
.hero-eyebrow-dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}
.hero-title {
  display: flex; flex-direction: column; line-height: .9; margin-bottom: 24px;
}
.hero-title-top {
  font-size: clamp(64px, 12vw, 120px); font-weight: 900;
  letter-spacing: -2px; color: var(--text);
  text-shadow: 0 0 80px rgba(192,57,43,.4);
}
.hero-title-bottom {
  font-size: clamp(32px, 6vw, 60px); font-weight: 300;
  letter-spacing: 12px; color: var(--muted); text-transform: uppercase;
}
.hero-subtitle {
  font-size: 18px; color: var(--muted); margin-bottom: 36px; line-height: 1.6;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }

/* Status widget */
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 30px; padding: 8px 20px; font-size: 13px;
  color: var(--muted);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #888;
}
.status-dot.online  { background: #2ecc71; }
.status-dot.offline { background: var(--red); }
.status-dot.pulsing { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
  50%       { box-shadow: 0 0 0 5px rgba(46,204,113,.2); }
}
.status-sep { color: var(--border); }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--muted); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; z-index: 1;
  animation: float 3s ease-in-out infinite;
}
.hero-scroll-arrow {
  width: 16px; height: 16px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─── Sections ───────────────────────────────────────────────────────────── */
.land-section { padding: 100px 24px; position: relative; z-index: 1; }
.land-section-dark { background: rgba(0,0,0,.3); }
.land-container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 11px; color: var(--red); font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px;
}
.section-title {
  font-size: clamp(32px, 5vw, 52px); font-weight: 800;
  line-height: 1.1; margin-bottom: 20px;
}
.section-lead {
  font-size: 17px; color: var(--muted); max-width: 600px;
  line-height: 1.7; margin-bottom: 60px;
}
.text-red { color: var(--red); }

/* AOS (animate on scroll) */
[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-aos].aos-in { opacity: 1; transform: translateY(0); }

/* ─── About cards ────────────────────────────────────────────────────────── */
.about-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.about-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
  transition: all .3s;
}
.about-card:hover {
  border-color: rgba(192,57,43,.4);
  box-shadow: 0 8px 40px rgba(192,57,43,.1);
  transform: translateY(-4px);
}
.about-card-icon { font-size: 32px; margin-bottom: 14px; }
.about-card h3   { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.about-card p    { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ─── Features ───────────────────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.feature-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; background: var(--card);
  border: 1px solid var(--border);
  transition: background .2s;
}
.feature-item:hover { background: rgba(192,57,43,.05); }
.feature-icon { font-size: 26px; flex-shrink: 0; margin-top: 2px; }
.feature-text h4   { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature-text p    { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ─── Rules ──────────────────────────────────────────────────────────────── */
.rules-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.rule-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: all .3s;
}
.rule-card:hover {
  border-color: rgba(192,57,43,.4);
  transform: translateY(-2px);
}
.rule-num {
  font-size: 13px; font-weight: 900; color: var(--red);
  letter-spacing: 1px; font-variant-numeric: tabular-nums;
}
.rule-card h4 { font-size: 16px; font-weight: 700; }
.rule-card p  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ─── Steps ──────────────────────────────────────────────────────────────── */
.steps-wrap {
  display: flex; gap: 0; align-items: flex-start;
  margin-bottom: 60px; flex-wrap: wrap;
}
.step {
  flex: 1; min-width: 200px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px; padding: 0 16px;
}
.step-num {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; flex-shrink: 0;
  box-shadow: 0 0 30px rgba(192,57,43,.4);
}
.step-body h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step-body p  { font-size: 13px; color: var(--muted); line-height: 1.6; }
.step-link    { display: inline-block; margin-top: 8px; color: var(--red); font-size: 13px; font-weight: 600; text-decoration: none; }
.step-link:hover { color: var(--red-h); }
.step-connector {
  flex-shrink: 0; align-self: center;
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--red), rgba(192,57,43,.2));
  margin-top: -30px;
}

.join-cta {
  text-align: center; padding: 60px;
  background: linear-gradient(135deg, rgba(192,57,43,.12), rgba(192,57,43,.04));
  border: 1px solid rgba(192,57,43,.2);
  border-radius: 20px;
}
.join-cta h3 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.join-cta p  { color: var(--muted); margin-bottom: 28px; font-size: 15px; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.land-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 30px;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo  { height: 36px; }
.footer-brand-name { font-size: 14px; font-weight: 800; letter-spacing: 1px; }
.footer-brand-sub  { font-size: 11px; color: var(--muted); margin-top: 2px; }
.footer-links {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13px; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-staff-link { color: rgba(255,255,255,.2) !important; font-size: 11px !important; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,.2);
  padding-top: 20px; border-top: 1px solid var(--border);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .land-nav-links, .land-nav-actions { display: none; }
  .land-hamburger { display: flex; }
  .hero-content { padding: 100px 16px 60px; }
  .step-connector { display: none; }
  .steps-wrap { flex-direction: column; align-items: center; gap: 24px; }
  .land-section { padding: 60px 16px; }
  .join-cta { padding: 40px 20px; }
  .footer-inner { flex-direction: column; }
  .footer-links { justify-content: center; }
}
