:root {
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-soft: #f1f5f9;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-soft-2: #f8fafc;
  --brand: #6366f1;
  --brand-dark: #5558e3;
  --radius: 16px;
}

[data-theme="dark"] {
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #243047;
  --border-soft: #1f2937;
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --bg-soft-2: #101b31;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-soft);
  z-index: 1000;
  padding: 16px 0;
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .nav {
  background: rgba(11, 18, 32, 0.92);
}

.nav-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--brand) 0%, #8b5cf6 100%);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
}

.logo-text span {
  color: var(--brand);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle i {
  color: var(--text);
  font-size: 16px;
}

.theme-toggle:hover {
  background: var(--bg-soft-2);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.btn-primary {
  background: var(--brand);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-soft-2);
}

.btn-hero {
  padding: 14px 28px;
  font-size: 16px;
}

/* Hero */
.hero {
  margin-top: 64px;
  padding: 120px 0 100px;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-soft) 0%, var(--bg) 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ede9fe;
  color: var(--brand);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero-badge::before {
  content: "●";
  font-size: 10px;
}

.hero h1 {
  font-size: 72px;
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.05;
}

.highlight {
  color: var(--brand);
}

.hero p {
  font-size: 20px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.features,
.admin-section {
  padding: 100px 0;
  background: var(--bg);
}

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

.section-header h2 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon i {
  color: #0f172a; /* requested: black icons */
  font-size: 22px;
}

[data-theme="dark"] .feature-icon i {
  color: #e5e7eb; /* still readable in dark */
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
}

/* Sticky Section */
.sticky-section {
  padding: 100px 0;
  background: linear-gradient(to bottom, #fafbff 0%, #f5f7ff 100%);
}

[data-theme="dark"] .sticky-section {
  background: linear-gradient(to bottom, #0f172a 0%, #0b1220 100%);
}

.sticky-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 100px;
  align-items: flex-start;
}

.sticky-text {
  position: sticky;
  top: 120px;
}

.section-tag {
  display: inline-block;
  background: #ede9fe;
  color: var(--brand);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.sticky-text h2 {
  font-size: 44px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}

.sticky-list {
  list-style: none;
  margin-bottom: 32px;
}

.sticky-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sticky-list li:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

.list-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.list-icon i {
  color: #0f172a; /* requested: black icons */
  font-size: 20px;
}

[data-theme="dark"] .list-icon i {
  color: #e5e7eb;
}

.list-content h4 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.list-content p {
  font-size: 14px;
  color: var(--muted);
}

/* Email Mockup */
.sticky-visual {
  padding-top: 40px;
}

.email-mockup {
  background: var(--bg);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  max-width: 520px;
  border: 1px solid var(--border-soft);
}

.email-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}

.email-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--brand) 0%, #8b5cf6 100%);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 16px;
}

.email-header-text h4 {
  font-size: 15px;
  font-weight: 800;
}

.order-number {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.email-body {
  padding: 32px 28px;
}

.email-body h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 12px;
}

.email-body > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.ticket-box {
  background: var(--bg-soft);
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  margin-bottom: 24px;
}

.qr-code {
  width: 140px;
  height: 140px;
  background: #0f172a;
  border-radius: 14px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-pattern {
  width: 110px;
  height: 110px;
  background-image:
    repeating-linear-gradient(0deg, white 0px, white 6px, transparent 6px, transparent 12px),
    repeating-linear-gradient(90deg, white 0px, white 6px, transparent 6px, transparent 12px);
}

.ticket-id {
  font-size: 13px;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.ticket-name {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 4px;
}

.ticket-type {
  font-size: 13px;
  color: var(--muted);
}

.email-buttons {
  display: flex;
  gap: 12px;
}

.btn-download,
.btn-wallet {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-download {
  background: #1e293b;
  color: white;
}

.btn-wallet {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Admin */
.admin-section {
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-soft) 100%);
}

.dashboard-mockup {
  background: var(--bg);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.dashboard-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dashboard-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 15px;
}

.dashboard-logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--brand) 0%, #8b5cf6 100%);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--bg-soft-2);
  border-radius: 10px;
  width: 280px;
  border: 1px solid var(--border-soft);
}

.search-bar i {
  color: var(--muted);
}

.search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: var(--muted);
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-soft-2);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.notification-icon i {
  color: #0f172a; /* requested: black icons */
}

[data-theme="dark"] .notification-icon i {
  color: #e5e7eb;
}

.notification-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  position: absolute;
  top: 8px;
  right: 8px;
  border: 2px solid var(--bg);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, #8b5cf6 100%);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
}

.dashboard-sidebar {
  background: #fafbff;
  padding: 20px 0;
  border-right: 1px solid var(--border-soft);
}

[data-theme="dark"] .dashboard-sidebar {
  background: var(--bg-soft);
}

.sidebar-item {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-item i {
  color: #0f172a; /* requested: black icons */
}

[data-theme="dark"] .sidebar-item i {
  color: #e5e7eb;
}

.sidebar-item.active {
  background: var(--bg);
  color: var(--brand);
  border-left: 3px solid var(--brand);
}

.sidebar-item:hover {
  background: var(--bg);
}

.dashboard-content {
  padding: 32px;
}

.content-header {
  margin-bottom: 32px;
}

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

.content-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 4px;
}

.content-subtitle {
  font-size: 14px;
  color: var(--muted);
}

.export-btn {
  background: var(--brand);
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  padding: 24px;
  background: #fafbff;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
}

[data-theme="dark"] .stat-card {
  background: var(--bg-soft);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
}

.stat-change {
  font-size: 13px;
  font-weight: 800;
  color: #10b981;
}

.chart-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.chart-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 24px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.chart-title {
  font-size: 16px;
  font-weight: 900;
}

.chart-filter {
  padding: 6px 12px;
  background: var(--bg-soft-2);
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid var(--border);
  color: var(--text);
}

.chart-placeholder {
  height: 200px;
  background: linear-gradient(to top, #ede9fe 0%, transparent 100%);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.chart-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(
    to bottom,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(99, 102, 241, 0.05) 100%
  );
  border-top: 3px solid var(--brand);
  border-radius: 12px 12px 0 0;
}

.attendee-list {
  margin-top: 16px;
}

.attendee-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}

.attendee-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.attendee-label {
  font-weight: 800;
  font-size: 14px;
}

.attendee-bar {
  width: 100px;
  height: 8px;
  background: var(--border-soft);
  border-radius: 999px;
  overflow: hidden;
}

.attendee-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, #8b5cf6 100%);
  border-radius: 999px;
}

.attendee-percent {
  font-size: 14px;
  font-weight: 900;
  min-width: 40px;
  text-align: right;
}

.view-details {
  margin-top: 16px;
  text-align: center;
  color: var(--brand);
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
}

/* Final CTA */
.final-cta {
  margin: 80px 32px;
  padding: 80px 60px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
}

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

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cta-badge::before {
  content: "✨";
}

.final-cta h2 {
  font-size: 52px;
  font-weight: 900;
  color: white;
  margin-bottom: 20px;
  line-height: 1.15;
}

.final-cta h2 .highlight {
  color: #a5b4fc;
}

.final-cta p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: white;
  color: #0f172a;
  padding: 14px 32px;
  font-size: 16px;
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 32px;
  font-size: 16px;
}

/* Footer */
.footer {
  padding: 60px 32px 40px;
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
}

.footer-brand h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 12px;
}

.footer-brand h3 span {
  color: var(--brand);
}

.footer-brand-icon {
  font-size: 24px;
  color: var(--text) !important;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
}

.footer-section h4 {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-note {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  background: var(--bg);
  color: var(--text);
}

.newsletter-input:focus {
  border-color: var(--brand);
}

.btn-join {
  background: var(--brand);
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sticky-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .sticky-text {
    position: static;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none;
  }

  .chart-section {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 48px;
  }

  .section-header h2 {
    font-size: 36px;
  }

  .sticky-text h2 {
    font-size: 32px;
  }

  .final-cta h2 {
    font-size: 36px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .content-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
