/* ============================================================
   ATAK GAMING B2B — Shared Stylesheet
   Dark industrial-premium gaming aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-void:    #080a0f;
  --bg-base:    #0d1017;
  --bg-surface: #111520;
  --bg-card:    #161b26;
  --bg-raised:  #1c2233;

  --neon-blue:  oklch(65% 0.22 230);
  --neon-violet:oklch(62% 0.20 285);
  --neon-cyan:  oklch(72% 0.18 200);
  --accent-glow:oklch(65% 0.22 230 / 0.35);

  --text-primary:  #eef1f7;
  --text-secondary:#8a93a8;
  --text-muted:    #4e5569;
  --text-accent:   var(--neon-blue);

  --border-subtle: rgba(255,255,255,0.06);
  --border-card:   rgba(255,255,255,0.09);
  --border-glow:   rgba(59,130,246,0.3);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 40px oklch(65% 0.22 230 / 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

/* ── Noise texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── Grid bg texture ── */
.grid-bg {
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--neon-blue);
  color: #fff;
  box-shadow: 0 0 24px oklch(65% 0.22 230 / 0.4);
}
.btn-primary:hover {
  background: oklch(68% 0.22 230);
  box-shadow: 0 0 40px oklch(65% 0.22 230 / 0.6);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}
.btn-secondary:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  background: oklch(65% 0.22 230 / 0.06);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 0 20px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
  background: #20bd5a;
  box-shadow: 0 0 36px rgba(37,211,102,0.5);
  transform: translateY(-1px);
}

.btn-outline-blue {
  background: transparent;
  color: var(--neon-blue);
  border: 1px solid var(--neon-blue);
}
.btn-outline-blue:hover {
  background: oklch(65% 0.22 230 / 0.1);
  box-shadow: 0 0 20px oklch(65% 0.22 230 / 0.25);
}

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

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-blue {
  background: oklch(65% 0.22 230 / 0.12);
  color: var(--neon-blue);
  border: 1px solid oklch(65% 0.22 230 / 0.25);
}

.badge-violet {
  background: oklch(62% 0.20 285 / 0.12);
  color: var(--neon-violet);
  border: 1px solid oklch(62% 0.20 285 / 0.25);
}

/* ── Section labels ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-blue);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--neon-blue);
  display: block;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.card:hover {
  border-color: oklch(65% 0.22 230 / 0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px oklch(65% 0.22 230 / 0.08);
  transform: translateY(-2px);
}

/* ── Form elements ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg-raised);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 11px 14px;
  transition: var(--transition);
  width: 100%;
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px oklch(65% 0.22 230 / 0.15);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a93a8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

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

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  background: rgba(8, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  background: var(--neon-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 0 16px oklch(65% 0.22 230 / 0.5);
}

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

.nav-links a {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

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

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Footer ── */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  padding: 72px 0 32px;
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

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

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ── Divider ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
}

/* ── Glowing accent line ── */
.accent-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-violet));
  border-radius: 2px;
  margin-bottom: 24px;
}

/* ── Stat block ── */
.stat-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ── WhatsApp float ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  cursor: pointer;
  z-index: 999;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(37,211,102,0.6);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ── Image placeholder ── */
.img-placeholder {
  background: var(--bg-raised);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.75rem;
  text-align: center;
  padding: 24px;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(255,255,255,0.015) 8px,
    rgba(255,255,255,0.015) 16px
  );
}

.img-placeholder-icon {
  font-size: 2rem;
  opacity: 0.3;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .container { padding: 0 16px; }

  .nav-links,
  .nav-actions .btn:not(.btn-whatsapp) {
    display: none;
  }

  .nav-hamburger { display: flex; }

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

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
}

/* ── Mobile nav menu ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(8,10,15,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  display: block;
}

.mobile-nav a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* ── Page hero generic ── */
.page-hero {
  padding: 140px 0 80px;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, oklch(65% 0.22 230 / 0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Prose ── */
.prose {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.prose p + p { margin-top: 1em; }

/* ── Two col layout helper ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .stat-number { font-size: 1.8rem; }
}

/* ── Animated entrance ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s cubic-bezier(0.4,0,0.2,1) both;
}

.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }

/* ── Cursor glow (gaming RGB ambience) ── */
.cursor-glow,
.cursor-glow-trail {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  mix-blend-mode: screen;
  will-change: transform, opacity;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cursor-glow {
  width: 28px;
  height: 28px;
  background: radial-gradient(circle, oklch(72% 0.22 230 / 0.55) 0%, oklch(72% 0.22 230 / 0) 70%);
  filter: blur(2px);
}
.cursor-glow-trail {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, oklch(62% 0.20 285 / 0.18) 0%, oklch(62% 0.20 285 / 0) 70%);
  filter: blur(20px);
}
.cursor-glow.is-active,
.cursor-glow-trail.is-active { opacity: 1; }

@media (max-width: 767px), (hover: none), (pointer: coarse) {
  .cursor-glow, .cursor-glow-trail { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-glow, .cursor-glow-trail { display: none !important; }
}

/* ── Responsive safety net ── */
html { overflow-x: hidden; }
iframe, video { max-width: 100%; }
h1, h2, h3, h4, p { overflow-wrap: break-word; }

/* Language dropdowns must stay inside viewport on narrow screens */
@media (max-width: 600px) {
  .lang-dropdown, .lang-dropdown-inline { right: auto !important; left: 0 !important; }
}

/* Tap target minimums on mobile */
@media (max-width: 768px) {
  .btn { min-height: 44px; }
}

/* Compact mobile header WhatsApp button — keep balance with logo/lang/hamburger */
@media (max-width: 767px) {
  .nav-actions .btn-whatsapp {
    padding: 8px 12px;
    font-size: 0.78rem;
    gap: 6px;
    min-height: 38px;
    letter-spacing: 0;
  }
  .nav-actions .btn-whatsapp svg {
    width: 14px;
    height: 14px;
  }
}
@media (max-width: 480px) {
  .nav-actions .btn-whatsapp {
    padding: 7px 10px;
    font-size: 0.74rem;
    min-height: 34px;
  }
}

/* intl-tel-input dropdown safety on very small phones */
@media (max-width: 480px) {
  .iti__country-list { max-width: 92vw; }
  .iti__country-name { display: inline-block; max-width: 56vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
}

/* Tighter spacing rhythm on very small phones (<= 480px) */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .page-hero { padding: 110px 0 48px; }
  .footer { padding: 48px 0 28px; }
}

/* ── Scroll to top floating button ── */
.scroll-top {
  position: fixed;
  left: 24px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 25, 38, 0.92);
  border: 1px solid oklch(65% 0.22 230 / 0.4);
  color: oklch(72% 0.22 230);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 16px oklch(65% 0.22 230 / 0.35), 0 6px 24px rgba(0,0,0,0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  padding: 0;
}
.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: oklch(65% 0.22 230 / 0.18);
  border-color: oklch(72% 0.22 230);
  color: #fff;
}
.scroll-top:focus-visible {
  outline: 2px solid var(--neon-blue);
  outline-offset: 2px;
}
.scroll-top svg { width: 20px; height: 20px; display: block; }

@media (max-width: 768px) {
  .scroll-top { left: 20px; bottom: 20px; }
}
@media (max-width: 480px) {
  .scroll-top { width: 42px; height: 42px; left: 16px; bottom: 16px; }
  .scroll-top svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-top { transition: opacity 0.18s linear; transform: none; }
}
