/* ===== XNET HUB - MAIN STYLESHEET ===== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --primary-rgb: 0, 212, 255;
  --secondary-rgb: 255, 107, 0;
  --accent-rgb: 124, 58, 237;
  --bg-deep-rgb: 2, 8, 16;

  --primary: #00d4ff;
  --primary-glow: rgb(var(--primary-rgb) / 0.3);
  --secondary: #ff6b00;
  --secondary-glow: rgb(var(--secondary-rgb) / 0.3);
  --accent: #7c3aed;
  --bg-deep: #020810;
  --bg-dark: #060e1a;
  --bg-card: #0a1628;
  --bg-card2: #0d1f38;
  --text-primary: #e8f4f8;
  --text-secondary: #8ab4c8;
  --text-muted: #4a6b7a;
  --border: rgb(var(--primary-rgb) / 0.15);
  --border-bright: rgb(var(--primary-rgb) / 0.5);
  --grid-line: rgb(var(--primary-rgb) / 0.06);
  --hex-grid: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27120%27%20height%3D%27104%27%20viewBox%3D%270%200%20120%20104%27%3E%3Cpolygon%20points%3D%2760%2C2%20118%2C30%20118%2C74%2060%2C102%202%2C74%202%2C30%27%20fill%3D%27none%27%20stroke%3D%27rgba(0%2C212%2C255%2C0.12)%27%20stroke-width%3D%271%27/%3E%3C/svg%3E");
  --nav-bg: rgb(var(--bg-deep-rgb) / 0.9);
  --nav-bg-scrolled: rgb(var(--bg-deep-rgb) / 0.98);
  --nav-bg-mobile: rgb(var(--bg-deep-rgb) / 0.97);
  --android-toolbar-height: 52px;
  --android-toolbar-compact-height: 48px;
  --toolbar-height: var(--android-toolbar-height);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  cursor: default;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

body.menu-open {
  overflow: hidden;
}

body.theme-green {
  --primary-rgb: 0, 255, 65;
  --secondary-rgb: 0, 204, 51;
  --accent-rgb: 0, 143, 32;
  --bg-deep-rgb: 2, 10, 2;

  --primary: #00ff41;
  --secondary: #00cc33;
  --accent: #008f20;
  --bg-deep: #020a02;
  --bg-dark: #040e04;
  --bg-card: #071407;
  --bg-card2: #0a1a0a;
  --text-primary: #e8ffe8;
  --text-secondary: #6bcc6b;
  --text-muted: #2d6b2d;
  --grid-line: rgb(var(--primary-rgb) / 0.08);
  --hex-grid: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27120%27%20height%3D%27104%27%20viewBox%3D%270%200%20120%20104%27%3E%3Cpolygon%20points%3D%2760%2C2%20118%2C30%20118%2C74%2060%2C102%202%2C74%202%2C30%27%20fill%3D%27none%27%20stroke%3D%27rgba(0%2C255%2C65%2C0.16)%27%20stroke-width%3D%271%27/%3E%3C/svg%3E");
}

/* Grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--hex-grid);
  background-size: 60px 60px, 60px 60px, 140px 120px;
  background-position: 0 0, 0 0, 10px 6px;
  pointer-events: none;
  z-index: 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top) 5% 0;
  height: calc(var(--toolbar-height) + env(safe-area-inset-top));
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: scanline 3s linear infinite;
}

@keyframes scanline {
  0% { transform: scaleX(0); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
  50.01% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.nav-logo {
  width: clamp(32px, calc(var(--toolbar-height) - 6px), 46px);
  height: clamp(32px, calc(var(--toolbar-height) - 6px), 46px);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 14px rgb(var(--primary-rgb) / 0.35));
  animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 15px var(--primary-glow); }
  50% { box-shadow: 0 0 30px var(--primary), 0 0 60px var(--primary-glow); }
}

.nav-title {
  font-family: 'Orbitron', monospace;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 2px;
  white-space: nowrap;
}

.nav-title span { color: var(--primary); }

.nav-links {
  position: fixed;
  top: calc(var(--toolbar-height) + env(safe-area-inset-top) + 8px);
  right: 24px;
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100vh - 96px);
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border-bright);
  background: linear-gradient(180deg, #081808, #051205);
  box-shadow:
    0 28px 65px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgb(var(--primary-rgb) / 0.08);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 5001;
}

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

.nav-links::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.85;
}

.nav-links li {
  width: 100%;
}

.nav-links a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  background: var(--bg-card);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-color: var(--border-bright);
  background: var(--bg-card2);
  text-shadow: 0 0 10px var(--primary);
  box-shadow: inset 0 0 0 1px rgb(var(--primary-rgb) / 0.08);
}

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

.auth-slot {
  display: flex;
  align-items: center;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgb(var(--primary-rgb) / 0.06);
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.auth-link:hover {
  border-color: var(--border-bright);
  color: var(--primary);
  box-shadow: 0 0 18px var(--primary-glow);
}

.auth-link.auth-login {
  background: linear-gradient(135deg, rgb(var(--primary-rgb) / 0.14), rgb(var(--accent-rgb) / 0.08));
}

.auth-link.auth-profile {
  max-width: 220px;
  padding-right: 12px;
}

.auth-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-bright);
  overflow: hidden;
  background: var(--bg-card2);
  box-shadow: 0 0 14px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.auth-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-secondary);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-toggle:hover {
  border-color: var(--border-bright);
  color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.theme-toggle .toggle-pill {
  position: relative;
  width: 28px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  background: rgb(var(--primary-rgb) / 0.08);
}

.theme-toggle .toggle-dot {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
  transform: translateX(0);
  transition: transform 0.2s ease;
}

body.theme-green .theme-toggle .toggle-dot {
  transform: translateX(14px);
}

.theme-toggle .theme-label {
  min-width: 40px;
  text-align: left;
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgb(var(--primary-rgb) / 0.08), rgb(var(--primary-rgb) / 0.03));
  box-shadow: 0 0 16px rgb(var(--primary-rgb) / 0.08);
  transition: all 0.25s ease;
}

.hamburger span {
  width: 18px; height: 2px;
  background: var(--primary);
  transition: all 0.3s;
  box-shadow: 0 0 8px rgb(var(--primary-rgb) / 0.45);
}

.hamburger:hover,
.hamburger.menu-open {
  border-color: var(--border-bright);
  box-shadow: 0 0 22px rgb(var(--primary-rgb) / 0.16);
}

.nav-menu-profile {
  margin-bottom: 4px;
}

.menu-divider {
  height: 1px;
  margin: 2px 0 4px;
  background: linear-gradient(90deg, transparent, rgb(var(--primary-rgb) / 0.55), transparent);
  opacity: 0.9;
}

.menu-profile-card {
  padding: 15px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #0b1d0b, #071507);
}

.menu-profile-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--primary);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.menu-profile-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

.menu-profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-bright);
  background: var(--bg-card2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Orbitron', monospace;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.menu-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-profile-copy {
  min-width: 0;
  flex: 1;
}

.menu-profile-name {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-profile-email {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-profile-sub {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
}

.menu-profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.menu-profile-btn {
  flex: 1;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  background: transparent;
  color: var(--primary);
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.menu-profile-btn:hover {
  box-shadow: 0 0 16px var(--primary-glow);
  transform: translateY(-1px);
}

.menu-profile-btn.primary {
  background: linear-gradient(135deg, var(--primary), rgb(var(--secondary-rgb) / 0.92));
  color: #ffffff;
  border: none;
}

.menu-profile-btn.secondary {
  background: var(--bg-card2);
}

.menu-profile-card.menu-profile-card-guest .menu-profile-actions {
  margin-top: 16px;
}

.install-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(360px, calc(100vw - 28px));
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid var(--border-bright);
  background: linear-gradient(180deg, #0b1d0b, #071507);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  z-index: 5200;
}

.install-banner[hidden] {
  display: none;
}

.install-banner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--primary);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.install-banner-kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.install-banner h3 {
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.install-banner p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.install-banner-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.install-banner-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  background: transparent;
  color: var(--text-primary);
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.install-banner-btn:hover {
  box-shadow: 0 0 16px var(--primary-glow);
  color: var(--primary);
}

.install-banner-btn.primary {
  background: linear-gradient(135deg, var(--primary), rgb(var(--secondary-rgb) / 0.92));
  color: #ffffff;
  border: none;
}

.install-banner-btn.subtle {
  color: var(--text-secondary);
  border-color: var(--border);
}

.install-footer-slot {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 28px;
}

.install-footer-slot[hidden] {
  display: none;
}

.install-footer-launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgb(var(--primary-rgb) / 0.05);
  color: var(--text-muted);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.install-footer-launcher:hover {
  color: var(--primary);
  border-color: var(--border-bright);
  box-shadow: 0 0 14px rgb(var(--primary-rgb) / 0.22);
}

.install-footer-launcher::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 5% 60px;
  overflow: hidden;
}

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

.orb1 {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -100px; left: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb2 {
  width: 400px; height: 400px;
  background: var(--accent);
  bottom: -50px; right: -50px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 30px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgb(var(--primary-rgb) / 0.1);
  border: 1px solid var(--border-bright);
  padding: 6px 20px;
  border-radius: 100px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease forwards;
}

.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.hero-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(36px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .line1 { color: var(--text-primary); }
.hero-title .line2 {
  color: var(--primary);
  text-shadow: 0 0 30px var(--primary), 0 0 60px var(--primary-glow);
}
.hero-title .line3 {
  font-size: clamp(14px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 4px;
  margin-top: 10px;
  display: block;
}

.hero-desc {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--primary);
  color: var(--bg-deep);
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  max-width: 100%;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  box-shadow: 0 0 40px var(--primary), 0 0 80px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  background: transparent;
  color: var(--primary);
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  max-width: 100%;
  border-radius: 4px;
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgb(var(--primary-rgb) / 0.1);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 70px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: 'Orbitron', monospace;
  font-size: 36px;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
  display: block;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== SECTION STYLES ===== */
section { position: relative; z-index: 1; }

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

.section-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
}

.section-title span { color: var(--primary); }

.section-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 20px auto 0;
}

/* ===== APPS SECTION ===== */
.apps-section {
  padding: 100px 5%;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(var(--primary-rgb) / 0.03), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.app-card:hover::before { opacity: 1; }

.app-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgb(var(--primary-rgb) / 0.1), 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  position: relative;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-info { flex: 1; }
.app-info,
.contact-detail,
.footer-brand,
.footer-grid > div {
  min-width: 0;
}

.app-number {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.app-name {
  font-family: 'Orbitron', monospace;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.app-category {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.app-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.app-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.feature-tag {
  background: rgb(var(--primary-rgb) / 0.08);
  border: 1px solid rgb(var(--primary-rgb) / 0.2);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  gap: 12px;
}

.app-size {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 22px;
  background: var(--primary);
  color: var(--bg-deep);
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-align: center;
  line-height: 1.35;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px var(--primary-glow);
  max-width: 100%;
}

.download-btn:hover {
  box-shadow: 0 0 30px var(--primary);
  transform: scale(1.05);
}

.download-btn svg { width: 14px; height: 14px; }

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 100px 5%;
  background: linear-gradient(180deg, transparent, rgb(var(--primary-rgb) / 0.02), transparent);
}

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

.about-visual {
  position: relative;
}

.about-hex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hex-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.hex-item:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-4px);
}

.hex-icon {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
}

.hex-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-text h2 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-text h2 span { color: var(--primary); }

.about-text p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 20px;
}

.mission-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 30px 0;
}

.mission-box p {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--primary);
  line-height: 1.7;
  margin: 0;
}

/* ===== FOUNDER SECTION ===== */
.founder-section {
  padding: 100px 5%;
}

.founder-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 60px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 50px;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.founder-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary), var(--secondary));
}

.founder-photo-wrap {
  position: relative;
  text-align: center;
}

.founder-photo {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  border: 2px solid var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
  background: var(--bg-card2);
}

.founder-photo-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  border: 2px solid var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: var(--bg-card2);
  font-family: 'Orbitron', monospace;
  font-size: 48px;
  font-weight: 900;
  color: var(--primary);
}

.founder-handle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  color: var(--primary);
  letter-spacing: 2px;
}

.founder-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.badge {
  background: rgb(var(--primary-rgb) / 0.08);
  border: 1px solid rgb(var(--primary-rgb) / 0.2);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  text-align: center;
}

.founder-info h2 {
  font-family: 'Orbitron', monospace;
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.founder-title-text {
  font-size: 14px;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-family: 'Share Tech Mono', monospace;
}

.founder-bio p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 16px;
}

.founder-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.skill-tag {
  background: rgb(var(--accent-rgb) / 0.15);
  border: 1px solid rgb(var(--accent-rgb) / 0.4);
  color: #a78bfa;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 100px 5%;
  background: linear-gradient(180deg, transparent, rgb(var(--primary-rgb) / 0.02), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  font-family: 'Orbitron', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-item:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateX(4px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgb(var(--primary-rgb) / 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-detail { flex: 1; }

.contact-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  display: block;
}

.contact-value {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.community-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.community-box h3 {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.community-box p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.community-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: white;
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  width: 100%;
  justify-content: center;
}

.community-link:hover {
  box-shadow: 0 0 30px rgb(var(--accent-rgb) / 0.5);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 60px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 16px 0 20px;
  max-width: 300px;
}

.footer-heading {
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  overflow-wrap: anywhere;
  transition: color 0.3s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
  font-family: 'Share Tech Mono', monospace;
}

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 140px 5% 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.page-hero h1 span { color: var(--primary); }

.page-hero p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.on,
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .founder-card { grid-template-columns: 1fr; text-align: center; padding: 40px 24px; }
  .founder-photo-wrap { margin: 0 auto; }
  .founder-badges { align-items: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 30px; }
}

@media (max-width: 768px) {
  .navbar {
    padding: env(safe-area-inset-top) 12px 0;
  }

  .nav-brand {
    gap: 10px;
    max-width: calc(100% - 104px);
  }

  .nav-logo {
    width: clamp(30px, calc(var(--toolbar-height) - 8px), 40px);
    height: clamp(30px, calc(var(--toolbar-height) - 8px), 40px);
  }

  .nav-title {
    font-size: 14px;
    letter-spacing: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero,
  .page-hero {
    padding-left: 4%;
    padding-right: 4%;
  }

  .hero-badge {
    max-width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 14px;
    font-size: 11px;
    letter-spacing: 1.4px;
    line-height: 1.5;
  }

  .hero-desc,
  .page-hero p {
    font-size: 16px;
  }

  .section-tag {
    font-size: 10px;
    letter-spacing: 1.6px;
    line-height: 1.5;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: min(100%, 280px);
    justify-content: center;
    padding: 13px 18px;
    font-size: 12px;
    letter-spacing: 1.2px;
  }

  .nav-links {
    top: calc(var(--toolbar-height) + env(safe-area-inset-top) + 8px);
    left: auto;
    right: 12px;
    width: min(320px, calc(100vw - 24px));
    height: auto;
    max-height: calc(100vh - 104px);
    padding: 14px;
    border: 1px solid var(--border-bright);
    border-radius: 18px;
    box-shadow:
      0 24px 54px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgb(var(--primary-rgb) / 0.06);
  }

  .menu-profile-card {
    padding: 14px;
  }

  .menu-profile-sub {
    font-size: 12px;
    line-height: 1.55;
  }

  .menu-profile-actions {
    gap: 8px;
  }

  .menu-profile-btn {
    min-height: 36px;
    padding: 0 10px;
    font-size: 10px;
  }

  .nav-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  .theme-toggle {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  .theme-toggle .theme-label { display: none; }
  .theme-toggle .toggle-pill { width: 26px; }
  .auth-link { padding: 8px 12px; }
  .auth-name { display: none; }
  .apps-grid { grid-template-columns: 1fr; }
  .app-card {
    padding: 24px 20px;
  }
  .app-card-top,
  .contact-item {
    align-items: flex-start;
  }
  .app-card-footer {
    flex-wrap: wrap;
  }
  .download-btn {
    width: 100%;
    padding: 12px 16px;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .about-hex-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .install-footer-slot { justify-content: center; }

  .install-banner {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 12px;
  }

  .install-banner-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-item { width: 45%; }
  .hero-title .line3 {
    letter-spacing: 2px;
  }
}

/* ===== HACKER DOCUMENTATION OVERRIDES ===== */
:root {
  --signal-cyan: #7ec8e3;
  --signal-gold: #ffd700;
  --signal-orange: #ff9e64;
  --signal-red: #ff4444;
  --signal-lime: #c0ca33;
  --terminal-black: #010601;
}

body:not(.admin-shell)::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  pointer-events: none;
  z-index: 2;
  opacity: 0.32;
}

.navbar {
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.25);
}

.nav-brand {
  position: relative;
}

.nav-brand::before,
.nav-brand::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -3px;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.nav-brand::before {
  opacity: 0.72;
  background-image: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%2052%2052%27%20fill%3D%27none%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpolygon%20points%3D%2726%2C2%2050%2C14%2050%2C38%2026%2C50%202%2C38%202%2C14%27%20stroke%3D%27rgba(255%2C255%2C255%2C0.18)%27%20stroke-width%3D%271.2%27%20stroke-dasharray%3D%274%203%27/%3E%3C/svg%3E");
  animation: hexSpin 10s linear infinite;
}

.nav-brand::after {
  opacity: 0.95;
  background-image: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%2052%2052%27%20fill%3D%27none%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpolygon%20points%3D%2726%2C6%2046%2C16%2046%2C36%2026%2C46%206%2C36%206%2C16%27%20stroke%3D%27rgba(0%2C255%2C65%2C0.18)%27%20stroke-width%3D%271%27/%3E%3C/svg%3E");
  animation: glowPulse 4s ease-in-out infinite;
}

.nav-logo {
  position: relative;
  z-index: 1;
}

.nav-links a,
.menu-profile-btn,
.auth-link {
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.nav-links a {
  background:
    linear-gradient(90deg, rgba(255, 158, 100, 0.04), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 60%),
    var(--bg-card);
}

.theme-toggle {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.theme-toggle .theme-label {
  color: var(--signal-gold);
}

.glitch-text {
  position: relative;
  display: inline-block;
  color: var(--primary);
  animation: textGlitchIdle 6s infinite;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-glitch-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.glitch-text::before {
  color: var(--signal-orange);
  transform: translate(-2px, 0);
  animation: glitchLayerA 6s infinite;
}

.glitch-text::after {
  color: var(--signal-cyan);
  transform: translate(2px, 0);
  animation: glitchLayerB 6s infinite;
}

@keyframes hexSpin {
  to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: translateY(-50%) scale(0.96); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.05); }
}

@keyframes textGlitchIdle {
  0%, 87%, 100% { filter: none; }
  90% { filter: saturate(1.2); }
  92% { filter: brightness(1.15); }
}

@keyframes glitchLayerA {
  0%, 87%, 100% { opacity: 0; clip-path: inset(0 0 0 0); }
  89% { opacity: 0.8; clip-path: inset(12% 0 58% 0); }
  91% { opacity: 0; }
  93% { opacity: 0.8; clip-path: inset(58% 0 12% 0); }
  95% { opacity: 0; }
}

@keyframes glitchLayerB {
  0%, 88%, 100% { opacity: 0; clip-path: inset(0 0 0 0); }
  90% { opacity: 0.75; clip-path: inset(48% 0 22% 0); }
  92% { opacity: 0; }
  94% { opacity: 0.78; clip-path: inset(16% 0 56% 0); }
  96% { opacity: 0; }
}

.hero,
.page-hero {
  position: relative;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 158, 100, 0.09), transparent 28%),
    radial-gradient(circle at 85% 78%, rgba(126, 200, 227, 0.08), transparent 30%),
    radial-gradient(ellipse 60% 50% at 50% 14%, rgba(var(--primary-rgb) / 0.12), transparent 68%);
}

.hero::after,
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%),
    radial-gradient(circle at 50% 18%, rgba(var(--primary-rgb) / 0.14), transparent 36%);
  pointer-events: none;
  z-index: 0;
}

.hero::before,
.page-hero::before {
  z-index: 2;
}

.hero::after,
.page-hero::after {
  z-index: 4;
}

.hero-space-canvas,
.hero-hex-grid,
.hero-space-nebula,
.hero-space-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-space-canvas {
  z-index: 0;
  opacity: 0.9;
}

.hero-hex-grid {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 20%, rgba(var(--primary-rgb) / 0.05), transparent 35%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104'%3E%3Cpolygon points='30,2 58,17 58,47 30,62 2,47 2,17' fill='none' stroke='rgba(0,255,65,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: auto, 60px 104px;
  mix-blend-mode: screen;
  opacity: 0.26;
}

.hero-space-nebula {
  z-index: 3;
  background:
    radial-gradient(circle at 50% 18%, rgba(var(--primary-rgb) / 0.16), transparent 34%),
    radial-gradient(circle at 24% 26%, rgba(255, 158, 100, 0.09), transparent 24%),
    radial-gradient(circle at 82% 74%, rgba(126, 200, 227, 0.08), transparent 28%);
  animation: glowPulse 4s ease-in-out infinite;
}

.hero-space-vignette {
  z-index: 3;
  background: radial-gradient(circle at center, transparent 38%, rgba(2, 10, 2, 0.18) 70%, rgba(2, 10, 2, 0.62) 100%);
}

.hero-content,
.hero > :not(.hero-bg-orb):not(.hero-space-canvas):not(.hero-hex-grid):not(.hero-space-nebula):not(.hero-space-vignette),
.page-hero > :not(.hero-bg-orb):not(.hero-space-canvas):not(.hero-hex-grid):not(.hero-space-nebula):not(.hero-space-vignette) {
  position: relative;
  z-index: 5;
}

.hero-badge,
.section-tag {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.025), 0 0 22px rgba(var(--primary-rgb) / 0.12);
}

.hero-badge {
  background:
    linear-gradient(135deg, rgba(var(--primary-rgb) / 0.12), rgba(255, 158, 100, 0.08)),
    rgba(0, 0, 0, 0.18);
}

.hero-title .line2 {
  position: relative;
  display: inline-block;
  font-size: clamp(42px, 8vw, 92px);
  letter-spacing: 4px;
}

.hero-title .line3 {
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  color: var(--signal-cyan);
  text-shadow: 0 0 12px rgba(126, 200, 227, 0.28);
}

.typing-effect {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  padding-right: 8px;
  border-right: 2px solid currentColor;
  animation:
    typingReveal var(--typing-duration, 2.4s) steps(var(--typing-steps, 18)) 0.15s forwards,
    caretBlink 0.7s step-end infinite;
}

.typing-effect.typing-done {
  width: min(100%, var(--typing-width, 24ch));
}

.hero-badge.typing-effect,
.page-tag.typing-effect,
.loading span.typing-effect,
.loading-txt.typing-effect,
.profile-loading.typing-effect {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 2px;
}

.hero-desc strong {
  color: var(--signal-gold) !important;
}

.hero-stats {
  background: linear-gradient(180deg, rgba(var(--primary-rgb) / 0.08), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
  padding: 28px 36px 0;
  backdrop-filter: blur(12px);
}

.stat-item:nth-child(2) .stat-number { color: var(--signal-gold); text-shadow: 0 0 18px rgba(255, 215, 0, 0.22); }
.stat-item:nth-child(3) .stat-number { color: var(--signal-orange); text-shadow: 0 0 18px rgba(255, 158, 100, 0.22); }
.stat-item:nth-child(4) .stat-number { color: var(--signal-cyan); text-shadow: 0 0 18px rgba(126, 200, 227, 0.22); }

.section-header {
  position: relative;
}

.section-line {
  width: 108px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--signal-orange), var(--primary), var(--signal-cyan), transparent);
  box-shadow: 0 0 22px rgba(var(--primary-rgb) / 0.26);
}

.btn-primary,
.btn-outline,
.download-btn,
.community-link {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.btn-primary,
.download-btn {
  background: linear-gradient(135deg, var(--primary), var(--signal-orange));
  color: #041104;
  box-shadow: 0 14px 30px rgba(var(--primary-rgb) / 0.24);
}

.btn-primary::before,
.btn-outline::before,
.download-btn::before,
.community-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 10%, rgba(255, 255, 255, 0.28) 45%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 0.4s ease;
}

.btn-primary:hover::before,
.btn-outline:hover::before,
.download-btn:hover::before,
.community-link:hover::before {
  transform: translateX(120%);
}

.btn-outline {
  color: var(--signal-cyan);
  border-color: rgba(126, 200, 227, 0.45);
  box-shadow: inset 0 0 0 1px rgba(126, 200, 227, 0.12);
}

.btn-outline:hover {
  background: rgba(126, 200, 227, 0.08);
  box-shadow: 0 0 24px rgba(126, 200, 227, 0.22);
}

.app-card,
.value-card,
.timeline-content,
.achievement-card,
.contact-item,
.community-box,
.app-detail-card,
.app-download-panel,
.error-page > div {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 42px rgba(0, 0, 0, 0.22);
}

.app-card::before,
.value-card::before,
.timeline-content::before,
.achievement-card::before,
.contact-item::before,
.community-box::before,
.app-detail-card::before,
.app-download-panel::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -40%;
  width: 34%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb) / 0.16), rgba(255, 158, 100, 0.08), transparent);
  transform: skewX(-26deg);
  opacity: 0;
  transition: left 0.45s ease, opacity 0.25s ease;
  pointer-events: none;
}

.app-card:hover::before,
.value-card:hover::before,
.timeline-content:hover::before,
.achievement-card:hover::before,
.contact-item:hover::before,
.community-box:hover::before,
.app-detail-card:hover::before,
.app-download-panel:hover::before {
  left: 118%;
  opacity: 1;
}

.app-card,
.value-card,
.achievement-card {
  border-radius: 16px;
}

.feature-tag,
.skill-tag {
  color: var(--signal-cyan);
  border-color: rgba(126, 200, 227, 0.24);
  background: rgba(126, 200, 227, 0.07);
}

.contact-icon,
.value-icon,
.ach-icon {
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.22);
}

.footer {
  position: relative;
  background:
    linear-gradient(180deg, rgba(var(--primary-rgb) / 0.06), transparent 26%),
    var(--bg-dark);
  border-top-color: var(--border-bright);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal-orange), var(--primary), var(--signal-cyan), transparent);
  opacity: 0.9;
}

.footer-heading {
  color: var(--signal-gold);
}

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

.footer-bottom {
  border-top-color: rgba(126, 200, 227, 0.18);
}

.page-hero {
  padding-top: 132px;
  padding-bottom: 74px;
}

.page-hero h1 {
  font-weight: 900;
}

.page-hero h1 span {
  text-shadow: 0 0 24px rgba(var(--primary-rgb) / 0.34);
}

.app-card,
.value-card,
.timeline-content,
.achievement-card,
.contact-item,
.community-box,
.app-detail-card,
.app-download-panel,
.hero-stats,
.install-banner,
.contact-form,
.contact-info,
.about-visual,
.founder-card,
.profile-card,
.auth-panel {
  border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.app-card::after,
.value-card::after,
.timeline-content::after,
.achievement-card::after,
.contact-item::after,
.community-box::after,
.app-detail-card::after,
.app-download-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 2px solid rgba(var(--primary-rgb) / 0.18);
  pointer-events: none;
}

.app-card:hover::after,
.value-card:hover::after,
.timeline-content:hover::after,
.achievement-card:hover::after,
.contact-item:hover::after,
.community-box:hover::after,
.app-detail-card:hover::after,
.app-download-panel:hover::after {
  border-top-color: var(--primary);
}

.spinner {
  position: relative;
  display: inline-block;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    linear-gradient(135deg, rgba(var(--primary-rgb) / 0.15), rgba(255, 158, 100, 0.1)),
    rgba(0, 0, 0, 0.2);
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
  animation: hexSpinner 1.8s linear infinite !important;
  box-shadow: 0 0 18px rgba(var(--primary-rgb) / 0.24);
}

.spinner::before,
.spinner::after {
  content: '';
  position: absolute;
  clip-path: inherit;
}

.spinner::before {
  inset: 16%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.spinner::after {
  inset: 32%;
  background: linear-gradient(135deg, var(--primary), var(--signal-cyan));
  box-shadow: 0 0 14px rgba(var(--primary-rgb) / 0.28);
}

@keyframes typingReveal {
  from { width: 0; }
  to { width: min(100%, var(--typing-width, 24ch)); }
}

@keyframes caretBlink {
  0%, 100% { border-right-color: currentColor; }
  50% { border-right-color: transparent; }
}

@keyframes hexSpinner {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .hero-stats {
    gap: 24px;
    padding: 20px 18px 0;
  }
}

@media (max-width: 768px) {
  .nav-brand::before,
  .nav-brand::after {
    width: 46px;
    height: 46px;
    left: -2px;
  }

  .hero-stats {
    border-radius: 18px;
  }

  .page-hero {
    padding-top: 118px;
    padding-bottom: 60px;
  }
}

/* ===== MOBILE WEBVIEW HARDENING ===== */
@media (max-width: 820px) {
  :root {
    --mobile-gutter: clamp(12px, 4vw, 18px);
    --toolbar-height: var(--android-toolbar-height);
  }

  .navbar {
    height: calc(var(--toolbar-height) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    padding-left: calc(var(--mobile-gutter) + env(safe-area-inset-left));
    padding-right: calc(var(--mobile-gutter) + env(safe-area-inset-right));
  }

  .nav-links {
    top: calc(var(--toolbar-height) + env(safe-area-inset-top) + 8px);
    right: calc(var(--mobile-gutter) + env(safe-area-inset-right));
    width: min(360px, calc(100vw - (2 * var(--mobile-gutter))));
    max-height: calc(100svh - 96px);
  }

  .hero,
  .page-hero {
    min-height: 100svh;
    padding-top: calc(var(--toolbar-height) + env(safe-area-inset-top) + 28px);
    padding-left: calc(var(--mobile-gutter) + env(safe-area-inset-left));
    padding-right: calc(var(--mobile-gutter) + env(safe-area-inset-right));
  }

  .apps-section,
  .about-section,
  .footer {
    padding-left: calc(var(--mobile-gutter) + env(safe-area-inset-left));
    padding-right: calc(var(--mobile-gutter) + env(safe-area-inset-right));
  }

  .section-header {
    margin-bottom: 34px;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .app-card {
    padding: 18px 14px;
  }

  .app-card-top {
    gap: 12px;
    margin-bottom: 14px;
  }

  .app-icon {
    width: 56px;
    height: 56px;
  }

  .app-desc {
    margin-bottom: 16px;
  }

  .app-features {
    margin-bottom: 16px;
  }

  .app-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .download-btn,
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: 100%;
    max-width: none;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
    margin-top: 34px;
    padding: 18px 14px;
  }

  .stat-item {
    min-width: 0;
  }

  .stat-number {
    font-size: clamp(24px, 7vw, 30px);
  }

  .stat-label {
    letter-spacing: 1px;
  }

  .about-grid {
    gap: 16px;
  }

  .about-hex-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  :root {
    --toolbar-height: var(--android-toolbar-compact-height);
  }

  .nav-title {
    max-width: 120px;
  }

  .hero-badge {
    margin-bottom: 16px;
  }

  .hero-title {
    margin-bottom: 14px;
  }

  .hero-title .line3 {
    letter-spacing: 1.2px;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 22px;
  }

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