/* ===== ROOT & RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

:root {
  --bg: #050810;
  --bg2: #080d1a;
  --blue1: #0066ff;
  --blue2: #00d4ff;
  --purple: #7c3aed;
  --cyan: #06b6d4;
  --green: #10b981;
  --orange: #f59e0b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.04);
  --grad-main: linear-gradient(135deg, #0066ff, #00d4ff);
  --grad-purple: linear-gradient(135deg, #7c3aed, #0066ff);
  --shadow-blue: 0 0 40px rgba(0, 102, 255, 0.25);
  
  --nav-bg: rgba(5, 8, 16, 0.8);
}

html[data-theme="light"] {
  --bg: #f8fafc;
  --bg2: #f1f5f9;
  --blue1: #0056d6;
  --blue2: #00a3cc;
  --purple: #6d28d9;
  --cyan: #0891b2;
  --green: #059669;
  --orange: #d97706;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --card-bg: rgba(255, 255, 255, 0.8);
  --grad-main: linear-gradient(135deg, #0056d6, #00a3cc);
  --grad-purple: linear-gradient(135deg, #6d28d9, #0056d6);
  --shadow-blue: 0 10px 30px rgba(0, 102, 255, 0.08);
  
  --nav-bg: rgba(248, 250, 252, 0.8);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  padding: 100px 0;
}

.section-dark-alt {
  padding: 100px 0;
  background: var(--bg2);
}

/* ===== NAV ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

#navbar.scrolled {
  padding: 10px 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

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

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

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

.btn-nav {
  background: var(--grad-main);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s !important;
}

.btn-nav:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 102, 255, 0.2) 0%, transparent 60%), var(--bg);
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb1 {
  width: 500px;
  height: 500px;
  background: rgba(0, 102, 255, 0.15);
  top: -100px;
  right: -100px;
}

.orb2 {
  width: 300px;
  height: 300px;
  background: rgba(0, 212, 255, 0.1);
  bottom: 100px;
  left: -50px;
}

.orb3 {
  width: 200px;
  height: 200px;
  background: rgba(124, 58, 237, 0.12);
  top: 40%;
  left: 40%;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 102, 255, 0.15);
  border: 1px solid rgba(0, 102, 255, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--blue2);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue2);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-desc strong {
  color: var(--text);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-main);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, transform 0.2s;
}

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

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.phone-mockup {
  position: relative;
  z-index: 1;
  width: 290px;
  height: 570px;
  background: #090d16;
  border: 10px solid #1f293d;
  border-radius: 36px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), var(--shadow-blue);
  overflow: hidden;
  animation: float 4s ease-in-out infinite;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 20px;
  background: #1f293d;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* ===== PLATFORMS ===== */
.section-platforms {
  padding: 40px 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.platforms-label {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.platforms-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}

.platform-badge:hover {
  border-color: rgba(0, 102, 255, 0.4);
  color: var(--text);
}

.tech-icon {
  font-size: 16px;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(0, 102, 255, 0.15);
  border: 1px solid rgba(0, 102, 255, 0.3);
  color: var(--blue2);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-main);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 20px;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 102, 255, 0.4);
  box-shadow: var(--shadow-blue);
}

.card-glow:hover::before {
  opacity: 0.04;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-blue {
  background: rgba(0, 102, 255, 0.15);
  color: var(--blue1);
}

.icon-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
}

.icon-purple {
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple);
}

.icon-green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
}

.icon-orange {
  background: rgba(245, 158, 11, 0.15);
  color: var(--orange);
}

.feature-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-tag {
  font-size: 11px;
  color: var(--blue2);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
}

/* ===== SPLIT LAYOUT ===== */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.split-layout.reverse .split-visual {
  order: -1;
}

.section-desc-left {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 28px;
  line-height: 1.8;
}

.section-desc-left strong {
  color: var(--text);
}

/* ===== NFC SECTION ===== */
.nfc-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.nfc-glow-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 2px solid rgba(0, 102, 255, 0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

.nfc-img {
  max-height: 280px;
  object-fit: contain;
  border-radius: 16px;
  position: relative;
  z-index: 1;
}

.nfc-flow {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.flow-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.dot-active {
  background: var(--blue2);
  box-shadow: 0 0 12px var(--blue2);
  animation: pulse 2s infinite;
}

.dot-end {
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.flow-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(0, 102, 255, 0.5), transparent);
  position: absolute;
  left: 5.5px;
  top: 28px;
}

.flow-step span {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feat-li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feat-li-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feat-li strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.feat-li p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== ADMIN DASHBOARD ===== */
.dashboard-preview {
  position: relative;
  margin-bottom: 40px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.dashboard-glow {
  position: absolute;
  inset: -1px;
  background: var(--grad-main);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.3;
  filter: blur(20px);
}

.dashboard-img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

.dashboard-badges {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-badge {
  background: rgba(5, 8, 16, 0.85);
  border: 1px solid rgba(0, 102, 255, 0.4);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  color: var(--blue2);
  font-weight: 600;
}

.admin-pages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.admin-page-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}

.admin-page-item:hover {
  border-color: rgba(0, 102, 255, 0.4);
  background: rgba(0, 102, 255, 0.08);
}

.ap-icon {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

/* ===== PAYMENT SECTION ===== */
.payment-channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.channel-row {
  display: flex;
  gap: 10px;
}

.channel-item {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.channel-item:hover {
  border-color: rgba(0, 102, 255, 0.4);
  background: rgba(0, 102, 255, 0.08);
}

.payment-logo {
  height: 16px;
  width: auto;
  object-fit: contain;
}


.autopoll-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--green);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}

.payment-visual-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  min-height: 100%;
}

/* Desktop: hide phone in payment section, card IS the visual */
.payment-visual-wrap .hero-phone-img {
  display: none;
}

/* Desktop: pay card is centered big visual */
.payment-overlay {
  position: static;
  transform: none;
  width: 100%;
  max-width: 380px;
}

/* Make the split-visual in payment sticky so it stays visible while scrolling content */
#payment .split-visual {
  position: sticky;
  top: 120px;
  align-self: start;
}

.pay-card {
  background: rgba(8, 13, 26, 0.92);
  border: 1px solid rgba(0, 102, 255, 0.4);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(20px);
}

.pay-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pay-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.5s infinite;
}

.pay-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pay-channel {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.pay-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.pay-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--grad-main);
  border-radius: 2px;
  animation: progressAnim 5s ease-in-out infinite;
}

@keyframes progressAnim {
  0% {
    width: 0%;
  }

  80% {
    width: 100%;
  }

  100% {
    width: 100%;
  }
}

.pay-note {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== ARCH GRID ===== */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.arch-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.arch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
  border-color: rgba(0, 102, 255, 0.3);
}

.arch-card-center {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.05));
  border-color: rgba(0, 102, 255, 0.3);
}

.arch-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.arch-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.arch-tech {
  font-size: 12px;
  color: var(--blue2);
  margin-bottom: 16px;
}

.arch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.arch-list li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.arch-list li::before {
  content: '▸';
  color: var(--blue1);
  font-size: 10px;
}

.arch-badge {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
}

/* ===== CTA SECTION ===== */
.section-cta {
  padding: 120px 24px;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 70%), var(--bg2);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.cta-orb1 {
  width: 400px;
  height: 400px;
  background: rgba(0, 102, 255, 0.2);
  top: -100px;
  left: -100px;
}

.cta-orb2 {
  width: 300px;
  height: 300px;
  background: rgba(0, 212, 255, 0.15);
  bottom: -50px;
  right: -50px;
}

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

.cta-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 24px;
}

.cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  margin-bottom: 16px;
}

.cta-desc {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta-info-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.cta-info-row a {
  color: var(--blue2);
  transition: color 0.2s;
}

.cta-info-row a:hover {
  color: #fff;
}

/* ===== FOOTER ===== */
#footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-name {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

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

.footer-dev {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

.footer-dev strong {
  color: var(--text);
}

.footer-dev a {
  color: var(--blue2);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

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

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

  .admin-pages-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-dark-alt {
    padding: 60px 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-desc {
    margin: 0 auto 36px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  .hero-phone-img {
    max-width: 240px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg2);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

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

  .split-layout,
  .split-layout.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-layout.reverse .split-visual {
    order: unset;
  }

  #payment .split-visual {
    position: static;
  }

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

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-dev {
    text-align: left;
  }

  .cta-info-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* Payment: show phone on mobile since there's no phone/card overlap issue */
  .payment-visual-wrap .hero-phone-img {
    display: block;
    max-width: 220px;
  }

  .payment-overlay {
    max-width: 300px;
    width: 100%;
  }

  .pay-amount {
    font-size: 22px;
  }

  .section-cta {
    padding: 60px 16px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    justify-content: center;
  }

  .dashboard-badges-row {
    gap: 8px;
  }

  .db-badge-item {
    font-size: 12px;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(28px, 8vw, 48px);
  }

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

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

  .channel-row {
    flex-direction: column;
  }

  .hero-stats {
    gap: 12px;
    flex-wrap: wrap;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 20px;
    font-size: 14px;
  }
}


/* ===== SLEEK IMAGE MOCKUPS ===== */
.hero-phone-img {
  position: relative;
  z-index: 1;
  max-width: 320px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 60px rgba(0,102,255,0.15);
  border: 1px solid rgba(255,255,255,0.1);
  animation: float 4s ease-in-out infinite;
  display: block;
  margin: 0 auto;
  transition: box-shadow 0.3s;
}
.hero-phone-img:hover {
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 80px rgba(0,102,255,0.25);
}

.desktop-visual-wrap, .desktop-preview-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: center;
}

.desktop-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 40px rgba(0,102,255,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  display: block;
}

/* ===== DASHBOARD BADGES ROW ===== */
.dashboard-badges-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.db-badge-item {
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.25);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--blue2);
  font-weight: 600;
  transition: all 0.2s;
}
.db-badge-item:hover {
  background: rgba(0, 102, 255, 0.15);
  border-color: rgba(0, 102, 255, 0.4);
  transform: translateY(-1px);
}

/* ── Scroll back to top ─────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-main);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 999;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(0,102,255,0.5);
}

/* ── Light mode pay-card ────────────────────────────────────── */
html[data-theme="light"] .pay-card {
  background: rgba(255,255,255,0.95);
  border-color: rgba(0,86,214,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 0 30px rgba(0,102,255,0.08);
}
html[data-theme="light"] .pay-amount { color: #0f172a; }

/* ── Smooth scroll offset for fixed navbar ──────────────────── */
section[id] {
  scroll-margin-top: 80px;
}

/* ── Better focus ring ──────────────────────────────────────── */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue1);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Hero entrance animation ────────────────────────────────── */
.hero-content {
  animation: hero-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Platform badge stagger animation ───────────────────────── */
.platforms-row .platform-badge {
  opacity: 0;
  animation: fade-up 0.5s ease forwards;
}
.platforms-row .platform-badge:nth-child(1) { animation-delay: 0.1s; }
.platforms-row .platform-badge:nth-child(2) { animation-delay: 0.15s; }
.platforms-row .platform-badge:nth-child(3) { animation-delay: 0.2s; }
.platforms-row .platform-badge:nth-child(4) { animation-delay: 0.25s; }
.platforms-row .platform-badge:nth-child(5) { animation-delay: 0.3s; }
.platforms-row .platform-badge:nth-child(6) { animation-delay: 0.35s; }
.platforms-row .platform-badge:nth-child(7) { animation-delay: 0.4s; }
.platforms-row .platform-badge:nth-child(8) { animation-delay: 0.45s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Gradient overlay on hero background ────────────────────── */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg));
  pointer-events: none;
}

/* ── Smooth scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0,102,255,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,102,255,0.5); }

/* ── Light mode: adjust channel hover ───────────────────────── */
html[data-theme="light"] .channel-item:hover {
  background: rgba(0,86,214,0.06);
}

/* ── Light mode: navbar shadow ──────────────────────────────── */
html[data-theme="light"] #navbar.scrolled {
  box-shadow: 0 4px 30px rgba(15,23,42,0.08);
}