/* ============================================
   ASIAN NET LABS — PREMIUM REBUILD
   White Theme · Glassmorphism · Editorial
   ============================================ */

/* ---------- ROOT VARIABLES ---------- */
:root {
  --primary: #111111;
  --secondary: #444444;
  --bg: #FFFFFF;
  --bg-alt: #FAFAFA;
  --bg-soft: #F5F5F7;
  --accent: #00D084;
  --accent-hover: #00F08A;
  --accent-soft: rgba(0, 208, 132, 0.08);
  --card: #FFFFFF;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 208, 132, 0.3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 10px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.06), 0 30px 60px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.08), 0 50px 100px rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: 20px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--primary);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; border: none; background: none; }

/* ---------- CUSTOM CURSOR ---------- */
.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}

.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(0, 208, 132, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-spring), height 0.3s var(--ease-spring), border-color 0.3s, opacity 0.3s;
}

.cursor-ring.hovering {
  width: 60px; height: 60px;
  border-color: var(--accent);
  background: rgba(0, 208, 132, 0.05);
}

.cursor-dot.hovering {
  width: 4px; height: 4px;
}

.cursor-trail {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  background: rgba(0, 208, 132, 0.3);
  transform: translate(-50%, -50%);
}

/* ---------- THREE.JS CANVAS ---------- */
#hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  z-index: 0;
  pointer-events: auto;
}

#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

/* ---------- NOISE OVERLAY ---------- */
.noise-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
}

/* ---------- GRADENT ORBS ---------- */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 208, 132, 0.15), transparent 70%);
  top: -100px; right: -100px;
  animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0, 112, 255, 0.08), transparent 70%);
  bottom: 200px; left: -100px;
  animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255, 100, 200, 0.06), transparent 70%);
  top: 50%; left: 50%;
  animation: orbFloat3 30s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 80px) scale(1.1); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, -60px) scale(0.9); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-30%, -70%) scale(1.2); }
}

/* ---------- NAVIGATION ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-logo-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary);
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.nav-links a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-cta {
  padding: 10px 24px;
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s var(--ease-out);
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 208, 132, 0.3);
}

.nav-mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-mobile-toggle span {
  width: 22px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

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

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

.hero-visual {
  position: relative;
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease-out);
  filter: drop-shadow(0 20px 60px rgba(0, 208, 132, 0.15));
}

.hero-visual:hover img {
  transform: scale(1.03);
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-right {
    order: -1;
    max-width: 400px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 208, 132, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 700px;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--secondary);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
  z-index: -1;
}

.btn-primary:hover::before {
  transform: translateY(0);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 208, 132, 0.35);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--card);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s var(--ease-out);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: translateY(-1px) scale(0.98);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 20px;
  max-width: 560px;
}

.stat-item {
  position: relative;
}

.stat-number {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1;
}

.stat-number .accent {
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--secondary);
  margin-top: 8px;
  font-weight: 500;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 5;
  pointer-events: none;
}

.scroll-indicator .line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- SECTION GENERAL ---------- */
section {
  position: relative;
  padding: 120px 0;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-soft);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 700px;
}

.section-title .gradient-text {
  background: linear-gradient(135deg, var(--accent), #00A8E8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-description {
  font-size: 1.15rem;
  color: var(--secondary);
  max-width: 600px;
  margin-bottom: 64px;
  line-height: 1.7;
}

/* ---------- MARKET COMMAND CENTER ---------- */
.market-section {
  background: var(--bg-alt);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.market-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.market-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.market-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.market-card:hover::before {
  transform: scaleX(1);
}

.market-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.market-coin {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.coin-bnb { background: linear-gradient(135deg, #F3BA2F, #F0A500); }
.coin-eth { background: linear-gradient(135deg, #627EEA, #454A75); }
.coin-btc { background: linear-gradient(135deg, #F7931A, #E85D04); }
.coin-xrp { background: linear-gradient(135deg, #23292F, #3E4C5A); }

.coin-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.coin-symbol {
  font-size: 0.8rem;
  color: var(--secondary);
}

.market-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.market-status .live-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.market-card .tradingview-widget-container {
  min-height: 80px;
}

.market-card .tradingview-widget-copyright {
  display: none;
}

/* Scanning line effect */
.market-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 208, 132, 0.03), transparent);
  transition: left 0.8s var(--ease-out);
  pointer-events: none;
}

.market-card:hover::after {
  left: 100%;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.2;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.about-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-visual img {
  width: 100%;
  height: auto;
  transition: transform 0.8s var(--ease-out);
}

.about-visual:hover img {
  transform: scale(1.05);
}

.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 208, 132, 0.08), transparent 50%);
  pointer-events: none;
}

/* About timeline */
.about-timeline {
  margin-top: 48px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.timeline-item {
  flex: 1;
  min-width: 200px;
}

.timeline-year {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.timeline-text {
  font-size: 0.95rem;
  color: var(--secondary);
  margin-top: 8px;
}

/* ---------- WHY CHOOSE US / PROCESS ---------- */
.process-section {
  background: var(--bg-soft);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.process-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.process-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.process-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: var(--accent-soft);
  transition: all 0.4s var(--ease-out);
}

.process-card:hover .process-icon {
  background: var(--accent);
  transform: scale(1.1) rotate(-5deg);
}

.process-icon svg {
  width: 28px; height: 28px;
  stroke: var(--accent);
  transition: stroke 0.3s;
}

.process-card:hover .process-icon svg {
  stroke: #fff;
}

.process-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.process-card p {
  font-size: 0.95rem;
  color: var(--secondary);
  line-height: 1.6;
}

.process-number {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.04);
  letter-spacing: -0.03em;
  transition: color 0.4s;
}

.process-card:hover .process-number {
  color: rgba(0, 208, 132, 0.1);
}

/* ---------- DEVELOPMENT PRODUCTS / SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.service-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease-out);
}

.service-card:hover .service-card-icon {
  background: var(--accent);
}

.service-card-icon svg {
  width: 24px; height: 24px;
  stroke: var(--accent);
  transition: stroke 0.3s;
}

.service-card:hover .service-card-icon svg {
  stroke: #fff;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.service-card ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card ul li {
  padding: 6px 12px;
  background: var(--bg-soft);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--secondary);
  transition: all 0.3s;
}

.service-card:hover ul li {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- PROJECT LAB ---------- */
.projects-section {
  background: var(--bg-alt);
}

.project-lab {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.project-window {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
  position: relative;
  box-shadow: var(--shadow-md);
}

.project-window:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: var(--shadow-xl);
}

.project-window-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.project-window-dots {
  display: flex;
  gap: 6px;
}

.project-window-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
}

.project-window-dots span:nth-child(1) { background: #FF5F57; }
.project-window-dots span:nth-child(2) { background: #FEBC2E; }
.project-window-dots span:nth-child(3) { background: #28C840; }

.project-window-title {
  font-size: 0.8rem;
  color: var(--secondary);
  margin-left: 8px;
  font-weight: 500;
}

.project-window-body {
  padding: 32px 28px;
}

.project-window-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.project-window-body p {
  font-size: 0.95rem;
  color: var(--secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-tech span {
  padding: 5px 12px;
  background: var(--accent-soft);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

.project-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.status-active { color: var(--accent); }
.status-active .dot { background: var(--accent); }

.project-status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* ---------- PARTNERSHIP ---------- */
.partnership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.partner-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  text-align: center;
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.partner-card-img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.6s var(--ease-out);
}

.partner-card:hover .partner-card-img {
  transform: scale(1.08);
}

.partner-card-body {
  padding: 16px;
}

.partner-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.partner-card-body p {
  font-size: 0.82rem;
  color: var(--secondary);
}

/* ---------- AFFILIATES ---------- */
.affiliates-section {
  background: var(--bg-soft);
  text-align: center;
}

.affiliates-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.affiliate-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.4s var(--ease-out);
  filter: grayscale(1);
  opacity: 0.6;
}

.affiliate-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.affiliate-logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
  padding: 12px;
}

/* ---------- CONTACT ---------- */
.contact-section {
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 32px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
}

.contact-channel:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.contact-channel-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel-icon svg {
  width: 22px; height: 22px;
  stroke: var(--accent);
}

.contact-channel-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-channel-info p {
  font-size: 0.85rem;
  color: var(--secondary);
  margin: 0;
}

/* Contact form */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  position: relative;
  margin-bottom: 28px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 0 8px;
  border: none;
  border-bottom: 2px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
  color: var(--primary);
  background: transparent;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--accent);
}

.form-group label {
  position: absolute;
  top: 16px;
  left: 0;
  font-size: 1rem;
  color: var(--secondary);
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 0;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  display: none;
  padding: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 208, 132, 0.2);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 16px;
}

.form-success.show {
  display: block;
  animation: fadeInUp 0.5s var(--ease-out);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

.footer-social svg {
  width: 18px; height: 18px;
  fill: rgba(255, 255, 255, 0.7);
  transition: fill 0.3s;
}

.footer-social a:hover svg {
  fill: #fff;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

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

.footer-col ul a {
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

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

.footer-newsletter input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

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

.footer-newsletter button {
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.footer-newsletter button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.footer-clock {
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--accent);
  font-size: 0.85rem;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

/* ---------- ANIMATED COUNTERS ---------- */
.counter {
  display: inline-block;
}

/* ---------- MAGNETIC BUTTONS ---------- */
.magnetic {
  transition: transform 0.3s var(--ease-out);
}

/* ---------- COMMAND PALETTE ---------- */
.command-palette {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

.command-palette.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.command-palette-box {
  width: 90%;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.command-input {
  width: 100%;
  padding: 20px 24px;
  border: none;
  font-size: 1.1rem;
  font-family: inherit;
  outline: none;
  border-bottom: 1px solid var(--border);
}

.command-results {
  max-height: 320px;
  overflow-y: auto;
}

.command-item {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: none;
  transition: background 0.2s;
}

.command-item:hover,
.command-item.selected {
  background: var(--accent-soft);
}

.command-item-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.command-item-icon svg {
  width: 18px; height: 18px;
  stroke: var(--secondary);
}

.command-item-text {
  font-size: 0.95rem;
  font-weight: 500;
}

.command-item-shortcut {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--secondary);
  padding: 2px 8px;
  background: var(--bg-soft);
  border-radius: 4px;
}

/* ---------- ACHIEVEMENT POPUP ---------- */
.achievement-popup {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-xl);
  z-index: 10001;
  transform: translateX(400px);
  transition: transform 0.5s var(--ease-spring);
}

.achievement-popup.show {
  transform: translateX(0);
}

.achievement-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #00A8E8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.achievement-icon svg {
  width: 24px; height: 24px;
  stroke: #fff;
}

.achievement-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

.achievement-text p {
  font-size: 0.8rem;
  color: var(--secondary);
}

/* ---------- DEVELOPER MODE ---------- */
.dev-mode-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 100000;
  display: none;
  overflow: hidden;
}

.dev-mode-overlay.active {
  display: block;
}

.dev-mode-overlay .scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 0, 0.03),
    rgba(0, 255, 0, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 2;
}

.dev-mode-overlay .crt-flicker {
  position: absolute;
  inset: 0;
  background: rgba(0, 255, 0, 0.02);
  pointer-events: none;
  z-index: 3;
  animation: flicker 0.15s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.97; }
}

#matrix-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.dev-terminal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(0, 255, 0, 0.3);
  border-radius: 8px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.15);
}

.dev-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0, 255, 0, 0.2);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: #0F0;
}

.dev-terminal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #0F0;
  line-height: 1.6;
}

.dev-terminal-body .line {
  white-space: pre-wrap;
  word-break: break-word;
}

.dev-terminal-body .line.input {
  color: #0F0;
}

.dev-terminal-body .line.output {
  color: rgba(0, 255, 0, 0.7);
}

.dev-terminal-body .line.error {
  color: #F44;
}

.dev-terminal-body .line.system {
  color: #08F;
}

.dev-terminal-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(0, 255, 0, 0.2);
}

.dev-terminal-input-line .prompt {
  color: #0F0;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
}

.dev-terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #0F0;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  caret-color: #0F0;
}

.dev-dashboard {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 4;
  width: 240px;
}

.dev-widget {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  color: #0F0;
}

.dev-widget-label {
  font-size: 0.65rem;
  color: rgba(0, 255, 0, 0.5);
  margin-bottom: 4px;
}

.dev-widget-bar {
  height: 4px;
  background: rgba(0, 255, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.dev-widget-bar-fill {
  height: 100%;
  background: #0F0;
  border-radius: 2px;
  transition: width 0.5s;
}

/* ---------- RESPONSIVE ---------- */

/* Tablet landscape */
@media (max-width: 1200px) {
  .container, .nav-inner { max-width: 100%; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
  .footer-grid .footer-col:nth-child(4) { grid-column: 1 / -1; }
}

/* Tablet portrait */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-right {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }
  .hero-left { text-align: center; }
  .hero-badge { margin: 0 auto 24px; }
  .hero-actions { justify-content: center; }
  .hero-stats { margin: 0 auto; }

  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

  .nav-links.open li { width: 100%; }
  .nav-links.open a { display: block; width: 100%; padding: 12px 16px; }
  .nav-links.open .nav-cta { text-align: center; margin-top: 8px; }

  .nav-mobile-toggle { display: flex; }

  .services-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
  .project-lab { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
  .partnership-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
  .market-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
  .process-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
  .service-card { padding: 24px; }
  .process-card { padding: 24px; }
}

/* Mobile */
@media (max-width: 640px) {
  section { padding: 60px 0; }
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-content { gap: 32px; }

  .hero h1 { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; padding: 14px 24px; font-size: 0.9rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 100%; }
  .stat-number { font-size: 1.3rem; }
  .stat-label { font-size: 0.75rem; }

  .hero-right { max-width: 280px; }
  .hero-visual img { filter: drop-shadow(0 10px 30px rgba(0, 208, 132, 0.12)); }

  .scroll-indicator { font-size: 0.7rem; bottom: 4px; }
  .scroll-indicator .line { height: 30px; }

  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section-label { font-size: 0.75rem; }

  .market-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .market-card { padding: 14px; }
  .market-card .price { font-size: 1rem; }
  .market-card-header h3 { font-size: 0.85rem; }
  .market-card-header .symbol { font-size: 0.75rem; }

  .about-grid { gap: 32px; }
  .about-text h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .about-text p { font-size: 0.9rem; }
  .about-features { gap: 16px; }
  .about-feature { padding: 12px; }
  .about-feature h4 { font-size: 0.9rem; }
  .about-feature p { font-size: 0.8rem; }

  .process-grid { grid-template-columns: 1fr; gap: 12px; }
  .process-card { padding: 16px; }
  .process-card h3 { font-size: 1rem; }
  .process-card p { font-size: 0.85rem; }
  .process-icon { width: 40px; height: 40px; }
  .process-icon svg { width: 20px; height: 20px; }

  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { padding: 18px; }
  .service-card h3 { font-size: 1rem; }
  .service-card ul li { font-size: 0.75rem; padding: 4px 10px; }
  .service-card-header { gap: 12px; margin-bottom: 14px; }
  .service-card-icon { width: 40px; height: 40px; border-radius: 10px; }
  .service-card-icon svg { width: 20px; height: 20px; }

  .project-lab { grid-template-columns: 1fr; gap: 16px; }
  .project-window-body { padding: 14px; }
  .project-window-body h3 { font-size: 1rem; }
  .project-tech span { font-size: 0.7rem; padding: 4px 10px; }

  .partnership-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .partner-card-img { height: 80px; padding: 8px; }
  .partner-card-body { padding: 12px; }
  .partner-card-body h3 { font-size: 0.9rem; }
  .partner-card-body p { font-size: 0.75rem; }

  .affiliates-grid { gap: 12px; }
  .affiliate-logo { padding: 12px; }
  .affiliate-logo img { height: 70px; padding: 8px; }

  .contact-grid { gap: 32px; }
  .contact-form { padding: 20px; }
  .contact-form input, .contact-form textarea { font-size: 0.9rem; padding: 12px; }
  .contact-info-card { padding: 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-clock { font-size: 0.8rem; }

  .dev-dashboard { display: none; }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring, .cursor-trail { display: none; }
  button, a { cursor: pointer; }

  .gradient-orb { display: none; }
  #hero-canvas { opacity: 0.5; }
}

/* Small mobile */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.4rem; }
  .hero-subtitle { font-size: 0.82rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-number { font-size: 1.1rem; }
  .stat-label { font-size: 0.7rem; }

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

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

  .section-title { font-size: 1.3rem; }
  .section-label { font-size: 0.7rem; }

  .hero-right { max-width: 220px; }
  .hero-actions { gap: 8px; }
  .btn-primary, .btn-secondary { padding: 12px 20px; font-size: 0.85rem; }

  .footer-grid { gap: 20px; }
  .nav-logo img { height: 26px; }
}

/* Landscape mobile */
@media (max-height: 500px) and (max-width: 900px) {
  .hero { min-height: auto; padding: 80px 0 40px; }
  .hero-right { display: none; }
  .hero-stats { display: none; }
  .scroll-indicator { display: none; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================
   LOADING SCREEN — AAA-style boot sequence
   Adapted to ANL white/green theme
   ============================================ */

.loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #FFFFFF;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loading-screen.fade-out {
  animation: loadingFadeOut 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loadingFadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

.loading-bg-grid {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(0, 208, 132, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 208, 132, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 2s linear infinite;
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

.loading-scan-line {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 20px rgba(0, 208, 132, 0.5);
  animation: scanDown 3s linear infinite;
}

@keyframes scanDown {
  0% { top: 0; }
  100% { top: 100%; }
}

.loading-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 90%;
  max-width: 500px;
}

.loading-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  opacity: 0;
  animation: loadingFadeIn 0.6s 0.2s forwards;
}

.loading-logo-img {
  width: 160px;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(0, 208, 132, 0.3));
}

@keyframes loadingFadeIn {
  to { opacity: 1; }
}

.loading-bar-container {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(0, 208, 132, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.loading-bar {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 208, 132, 0.5);
}

.loading-bar-glow {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(0, 208, 132, 0.5), transparent);
  filter: blur(4px);
}

.loading-percentage {
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 208, 132, 0.3);
  margin-bottom: 8px;
}

.loading-status {
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 0.75rem;
  color: var(--secondary);
  letter-spacing: 2px;
  margin-bottom: 20px;
  min-height: 1.2em;
}

.loading-tips {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent);
  font-style: italic;
  min-height: 1.5em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loading-terminal {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 300px;
  max-height: 180px;
  overflow: hidden;
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 0.68rem;
  color: var(--secondary);
  text-align: left;
  opacity: 0.85;
}

.loading-terminal div {
  margin-bottom: 2px;
  animation: terminalLineIn 0.3s forwards;
  opacity: 0;
}

@keyframes terminalLineIn {
  to { opacity: 1; }
}

/* ---------- LOADING SCREEN RESPONSIVE ---------- */
@media (max-width: 768px) {
  .loading-logo-img {
    width: 120px;
    max-height: 120px;
  }

  .loading-logo {
    margin-bottom: 24px;
  }

  .loading-percentage {
    font-size: 1.2rem;
  }

  .loading-status {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }

  .loading-tips {
    font-size: 0.72rem;
  }

  .loading-terminal {
    width: 200px;
    max-height: 100px;
    font-size: 0.58rem;
    bottom: 14px;
    left: 14px;
  }
}

@media (max-width: 480px) {
  .loading-logo-img {
    width: 96px;
    max-height: 96px;
  }

  .loading-logo {
    margin-bottom: 20px;
  }

  .loading-percentage {
    font-size: 1rem;
  }

  .loading-status {
    font-size: 0.65rem;
  }

  .loading-tips {
    font-size: 0.68rem;
  }

  .loading-terminal {
    width: 160px;
    max-height: 80px;
    font-size: 0.52rem;
    bottom: 10px;
    left: 10px;
  }

  .loading-content {
    width: 85%;
  }
}

@media (max-height: 500px) {
  .loading-logo-img {
    width: 80px;
    max-height: 80px;
  }

  .loading-logo {
    margin-bottom: 16px;
  }

  .loading-tips {
    display: none;
  }

  .loading-terminal {
    max-height: 60px;
  }
}
