:root {
  --bg-body: #06070c;
  --bg-card: rgba(13, 16, 27, 0.75);
  --bg-card-hover: rgba(22, 27, 46, 0.9);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.4);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-cyan: #00f0ff;
  --accent-violet: #8b5cf6;
  --accent-indigo: #6366f1;
  --accent-magenta: #f43f5e;
  --font-display: 'Bebas Neue', sans-serif;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

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

::selection {
  background: rgba(0, 240, 255, 0.25);
  color: #ffffff;
}

/* Background Canvas & Ambient Mesh */
.cyber-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.22;
}

.ambient-glow--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6366f1, #8b5cf6);
  top: -100px;
  left: 25%;
}

.ambient-glow--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00f0ff, #3b82f6);
  bottom: 10%;
  right: -50px;
}

.cyber-grid {
  position: fixed;
  inset: 0;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* Bottom Ticker */
.data-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 6px 0;
  background: rgba(6, 7, 12, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  z-index: 40;
  overflow: hidden;
  white-space: nowrap;
}

.data-ticker__track {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  opacity: 0.7;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
  z-index: 100;
  width: 0%;
  transition: width 0.1s ease;
}

/* Header */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 8px 16px;
  background: var(--accent-cyan);
  color: black;
  font-weight: 700;
  z-index: 999;
}
.skip-link:focus { top: 20px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  z-index: 50;
  transition: all 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 7, 12, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 48px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--text-main);
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseRec 1.8s ease-in-out infinite alternate;
}

@keyframes pulseRec {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; }
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* Main Hero */
main {
  position: relative;
  z-index: 10;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 120px 24px 80px;
  text-align: center;
}

/* HUD elements */
.hud {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud--tl {
  top: 90px;
  left: 48px;
  text-align: left;
}

.hud--tr {
  top: 90px;
  right: 48px;
  text-align: right;
}

.hud--status {
  position: static;
}

.hud-rec {
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rec-blink {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.hud-time {
  color: var(--text-muted);
}

.hud-ep {
  color: var(--accent-violet);
  font-weight: 600;
}

.hud-res {
  color: var(--text-dim);
}

/* Hero Content */
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 9999px;
}

.hero-tag-cursor {
  animation: blinkCursor 1s step-end infinite;
}

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

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.title-sm {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.title-main {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  position: relative;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
}

/* Chromatic Glitch effect */
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--accent-cyan);
  clip-path: rect(24px, 550px, 90px, 0);
  animation: glitch-anim-1 3.5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--accent-magenta);
  clip-path: rect(85px, 550px, 140px, 0);
  animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% { clip-path: inset(40% 0 61% 0); }
  20% { clip-path: inset(92% 0 1% 0); }
  40% { clip-path: inset(43% 0 1% 0); }
  60% { clip-path: inset(25% 0 58% 0); }
  80% { clip-path: inset(54% 0 7% 0); }
  100% { clip-path: inset(58% 0 43% 0); }
}

@keyframes glitch-anim-2 {
  0% { clip-path: inset(25% 0 58% 0); }
  20% { clip-path: inset(54% 0 7% 0); }
  40% { clip-path: inset(58% 0 43% 0); }
  60% { clip-path: inset(40% 0 61% 0); }
  80% { clip-path: inset(92% 0 1% 0); }
  100% { clip-path: inset(43% 0 1% 0); }
}

.title-sub {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Hero CTA Button */
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 28px 12px 14px;
  border-radius: 9999px;
  background: rgba(13, 16, 27, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  text-decoration: none;
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-play:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 240, 255, 0.4);
}

.play-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.play-label {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.play-label strong {
  font-family: var(--font-mono);
  font-size: 15px;
  color: #ffffff;
}

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

/* Hero Bottom */
.hero-bottom {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-scroll {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 12px;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-dim);
}

.hud-loc {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

/* Contact Section */
.section.contact {
  padding: 100px 24px 120px;
  max-width: 960px;
  margin: 0 auto;
}

.chapter--center {
  text-align: center;
  margin-bottom: 50px;
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-cyan);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  display: block;
}

.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1;
}

.chapter-desc {
  font-size: 16px;
  color: var(--text-muted);
}

/* Cards Grid */
.contact-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .contact-cta-grid { grid-template-columns: 1fr; }
  .hud--tl, .hud--tr { position: static; text-align: center; margin-bottom: 20px; }
  .site-header { padding: 16px 24px; }
  .hero-bottom { display: none; }
}

.tech-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 28px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(99, 102, 241, 0.2);
}

.contact-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-cta-icon--youtube {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.contact-cta-icon--email {
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.contact-cta-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.contact-cta-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.contact-cta-value {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  word-break: break-all;
}

a.contact-cta-value:hover {
  color: var(--accent-cyan);
}

.contact-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-top: 2px;
}

.contact-cta-phone:hover {
  color: var(--text-main);
}

.contact-cta small {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.contact-cta-arrow {
  font-size: 20px;
  color: var(--text-dim);
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-cta:hover .contact-cta-arrow {
  transform: translateX(4px);
  color: var(--accent-cyan);
}

/* Secondary Socials Card */
.contact-secondary {
  text-align: center;
  padding: 32px 28px;
}

.contact-social-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.contact-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.contact-social:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.contact-social--facebook:hover { border-color: #3b82f6; color: #3b82f6; }
.contact-social--tiktok:hover { border-color: #ec4899; color: #ec4899; }
.contact-social--instagram:hover { border-color: #d946ef; color: #d946ef; }
.contact-social--threads:hover { border-color: #ffffff; color: #ffffff; }

/* Site Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 48px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  position: relative;
  z-index: 10;
}

.footer-brand {
  color: var(--text-muted);
}

.footer-tag {
  color: var(--accent-cyan);
}

.back-top {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-top:hover {
  color: var(--text-main);
}
