/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0f0f12;
  --bg-card: #18181c;
  --bg-card-hover: #1e1e24;
  --border: #2a2a32;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --accent: #7c5cfc;
  --accent-hover: #6a4df0;
  --accent-glow: rgba(124, 92, 252, 0.4);
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 92, 252, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(124, 92, 252, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

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

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 18, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  border-radius: 10px;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.logo-icon.small {
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.nav-cta {
  background: linear-gradient(135deg, var(--accent), #6a4df0);
  color: #fff;
  font-weight: 600;
  padding: 8px 16px;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.nav-links a.nav-cta:hover {
  background: linear-gradient(135deg, #6a4df0, var(--accent));
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 15, 18, 0.75) 0%,
    rgba(15, 15, 18, 0.85) 50%,
    rgba(15, 15, 18, 0.97) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-block;
  background: rgba(124, 92, 252, 0.2);
  color: #c4b5fd;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 252, 0.4);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero h1 .accent {
  background: linear-gradient(135deg, #a78bfa, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  max-width: 560px;
  margin: 0 auto 32px;
  color: #d4d4d8;
  font-size: 1.05rem;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6a4df0);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* ===== Rules Section ===== */
.rules-section {
  padding: 60px 0 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.rule-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.rule-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124, 92, 252, 0.35);
  transform: translateY(-2px);
}

.rule-card.highlight {
  border-color: rgba(124, 92, 252, 0.4);
  background: linear-gradient(145deg, rgba(124, 92, 252, 0.08), var(--bg-card));
}

.rule-number {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(124, 92, 252, 0.12);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
}

.rule-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(124, 92, 252, 0.12);
  color: var(--accent);
  border-radius: 12px;
  margin-bottom: 18px;
}

.rule-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.rule-intro {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.rule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.rule-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.7;
}

.rule-list li strong {
  color: var(--text);
  font-weight: 600;
}

.rule-list code {
  background: rgba(124, 92, 252, 0.15);
  color: #c4b5fd;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.85em;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.rule-note {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid var(--danger);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== Apply / Create Ticket Section ===== */
.apply-section {
  padding: 20px 0 100px;
}

.apply-card {
  background: linear-gradient(145deg, rgba(124, 92, 252, 0.12), var(--bg-card));
  border: 1px solid rgba(124, 92, 252, 0.35);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.apply-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.apply-content {
  position: relative;
  z-index: 1;
}

.apply-badge {
  display: inline-block;
  background: rgba(124, 92, 252, 0.2);
  color: #c4b5fd;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 252, 0.35);
  margin-bottom: 16px;
}

.apply-card h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.apply-card > .apply-content > p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.apply-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto 32px;
  text-align: left;
}

.apply-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.apply-steps li strong {
  color: var(--text);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(124, 92, 252, 0.2);
  color: #c4b5fd;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.apply-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: rgba(0, 0, 0, 0.3);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .rules-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rule-card.highlight {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(15, 15, 18, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

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

  .nav-links a {
    display: block;
    padding: 12px 14px;
  }

  .nav-links a.nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  .hero {
    padding: 90px 0 70px;
    min-height: 460px;
  }

  .rule-card {
    padding: 24px;
  }

  .rule-number {
    font-size: 2rem;
    top: 20px;
    right: 20px;
  }

  .apply-card {
    padding: 36px 24px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
