/* ============================================
   SCANLINE — Shared Design System v3.0
   ============================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Brand colors */
  --green-50: #e6fff2;
  --green-100: #b3ffd9;
  --green-200: #80ffbf;
  --green-300: #4dffa6;
  --green-400: #26ff94;
  --green-500: #00ff88;
  --green-600: #00cc6a;
  --green-700: #00994f;
  --green-800: #006635;
  --green-900: #00331a;

  /* Neutrals */
  --black: #0a0a0a;
  --black-2: #0d0d0d;
  --black-3: #111111;
  --gray-900: #1a1a1a;
  --gray-800: #222222;
  --gray-700: #333333;
  --gray-600: #4a4a4a;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #b9c0cc;
  --gray-200: #d1d5db;
  --gray-100: #e5e7eb;
  --gray-50: #f3f4f6;

  /* Light neutrals */
  --white: #ffffff;
  --light-100: #f8f9fa;
  --light-200: #f0f0f0;
  --light-300: #e5e7eb;
  --light-400: #d1d5db;

  /* Functional — DARK (default) */
  --accent: var(--green-500);
  --accent-dark: var(--green-700);
  --accent-neon: #39ff14;
  --bg-primary: var(--black);
  --bg-secondary: var(--black-2);
  --bg-card: var(--gray-900);
  --bg-elevated: #1e1e1e;
  --text-primary: #f0f0f0;
  --text-secondary: #b9c0cc;
  --text-muted: var(--gray-500);
  --border: rgba(0, 255, 136, 0.12);
  --border-light: rgba(0, 255, 136, 0.06);
  --border-hover: rgba(0, 255, 136, 0.25);

  /* Shadows */
  --glow-sm: 0 0 8px rgba(0, 255, 136, 0.2);
  --glow-md: 0 0 16px rgba(0, 255, 136, 0.3);
  --glow-lg: 0 0 30px rgba(0, 255, 136, 0.4);
  --glow-xl: 0 0 50px rgba(0, 255, 136, 0.5);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --container: 1200px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);
  --transition-spring: 0.4s var(--ease-spring);

  color-scheme: dark;
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --accent: var(--green-600);
  --accent-dark: var(--green-700);
  --accent-neon: #00cc6a;
  --bg-primary: var(--white);
  --bg-secondary: var(--light-100);
  --bg-card: var(--white);
  --bg-elevated: var(--light-200);
  --text-primary: var(--black);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-400);
  --border: rgba(0, 0, 0, 0.1);
  --border-light: rgba(0, 0, 0, 0.04);
  --border-hover: rgba(0, 0, 0, 0.18);
  --glow-sm: 0 0 8px rgba(0, 204, 106, 0.15);
  --glow-md: 0 0 16px rgba(0, 204, 106, 0.2);
  --glow-lg: 0 0 30px rgba(0, 204, 106, 0.25);
  --glow-xl: 0 0 50px rgba(0, 204, 106, 0.3);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);
  color-scheme: light;
}

/* Light mode overrides for elements that use fixed colors */
[data-theme="light"] .crt-overlay,
[data-theme="light"] .grid-bg { display: none; }

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
}

[data-theme="light"] .nav-link { color: var(--gray-700); }
[data-theme="light"] .nav-link:hover { color: var(--accent); }
[data-theme="light"] .nav-link-active { color: var(--accent) !important; background: rgba(0, 204, 106, 0.08) !important; border-color: var(--border) !important; }

[data-theme="light"] .footer {
  background: var(--light-100);
  border-top-color: var(--border);
}
[data-theme="light"] .footer .footer-brand h3 { color: var(--black); }
[data-theme="light"] .footer .footer-heading { color: var(--gray-600); }
[data-theme="light"] .footer .footer-links a { color: var(--gray-500); }
[data-theme="light"] .footer .footer-links a:hover { color: var(--accent); }
[data-theme="light"] .social-link { color: var(--gray-500); border-color: var(--border); background: transparent; }
[data-theme="light"] .social-link:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
[data-theme="light"] .footer .footer-bottom { border-top-color: var(--border); }
[data-theme="light"] .footer .footer-bottom p { color: var(--text-muted); }

[data-theme="light"] .form-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.04));
}
[data-theme="light"] .contact-form label { color: var(--gray-700); }
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form select,
[data-theme="light"] .contact-form textarea {
  background: var(--white);
  border-color: var(--border);
  color: var(--text-primary);
}

[data-theme="light"] .whatsapp-float { background: #25d366; color: #fff; }

[data-theme="light"] .back-to-top { background: var(--light-200); color: var(--gray-700); border-color: var(--border); }

[data-theme="light"] .blog-card { background: var(--white); }
[data-theme="light"] .blog-card-body h3 { color: var(--black); }

[data-theme="light"] .hero-card-display {
  border-color: var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,240,240,0.95));
}
[data-theme="light"] .hero-card-display .terminal-header { background: var(--light-200); border-bottom-color: var(--border); }
[data-theme="light"] .hero-card-display .terminal-body { background: transparent; }
[data-theme="light"] .hero-code-line .comment { color: var(--gray-400); }
[data-theme="light"] .hero-code-line .path { color: var(--green-700); }
[data-theme="light"] .hero-code-line .success { color: var(--accent); }
[data-theme="light"] .hero-code-line .prompt { color: var(--gray-500); }

[data-theme="light"] .testimonial-card { background: var(--white); }

[data-theme="light"] .price-card { background: var(--white); }
[data-theme="light"] .price-card.featured { border-color: var(--accent); }

[data-theme="light"] .feature-card { background: var(--white); }

[data-theme="light"] .about-grid blockquote { color: var(--gray-700); border-left-color: var(--accent); background: var(--light-100); }

[data-theme="light"] .section-dark { background: var(--light-100); }

[data-theme="light"] .demo-header-bar { background: var(--light-100); border-bottom-color: var(--border); }
[data-theme="light"] .demo-back-btn { color: var(--gray-700); }
[data-theme="light"] .demo-label { color: var(--text-muted); }

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  position: relative;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--accent-neon); }

ul, ol { list-style: none; }

/* ---------- CONTAINER ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--green-800); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-700); }

/* ---------- SELECTION ---------- */
::selection { background: rgba(0, 255, 136, 0.3); color: var(--black); }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-label::before {
  content: '//';
  color: var(--green-700);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.7;
}

.text-mono { font-family: var(--font-mono); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 204, 102, 0.08));
  color: var(--accent);
  box-shadow: var(--glow-sm), inset 0 1px 0 rgba(255,255,255,0.08);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-md), 0 10px 30px rgba(0, 255, 136, 0.1);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.22), rgba(0, 204, 102, 0.12));
}

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

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  box-shadow: none;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--accent);
  background: rgba(0, 255, 136, 0.04);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: var(--accent);
  background: rgba(0, 255, 136, 0.05);
  border-color: var(--border-light);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-block { width: 100%; }

.btn .arrow {
  font-family: var(--font-mono);
  font-size: 1.1em;
  transition: transform var(--transition-fast);
}

.btn:hover .arrow { transform: translateX(4px); }

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
  position: relative;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  background: rgba(0, 255, 136, 0.04);
}
.theme-toggle .theme-icon-sun,
.theme-toggle .theme-icon-moon {
  position: absolute;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
[data-theme="light"] .theme-toggle .theme-icon-sun { opacity: 0; transform: rotate(90deg) scale(0); }
[data-theme="light"] .theme-toggle .theme-icon-moon { opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle .theme-icon-sun { opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle .theme-icon-moon { opacity: 0; transform: rotate(-90deg) scale(0); }

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: var(--glow-sm);
  transition: box-shadow var(--transition-fast);
}

.brand:hover .brand-logo {
  box-shadow: var(--glow-md);
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
  margin: 0;
}

.brand-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 1px;
}

/* ---------- NAVIGATION ---------- */
.nav { display: flex; gap: 4px; align-items: center; }

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(0, 255, 136, 0.04);
}

.nav-link:hover::before { transform: scaleX(1); }

.nav-link-cta {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.12), rgba(0, 204, 102, 0.08));
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 600;
  box-shadow: var(--glow-sm);
}

.nav-link-cta::before { display: none; }

.nav-link-cta:hover {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 204, 102, 0.12));
  transform: translateY(-2px);
  box-shadow: var(--glow-md);
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  z-index: 1001;
  transition: border-color var(--transition-fast);
}

.menu-toggle:hover { border-color: var(--border); }

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 80px 0;
  width: 100%;
  overflow: hidden;
}

.section-dark {
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
}

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

.section-header p {
  margin: 0 auto;
}

/* ---------- GRID ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

/* ---------- CARDS ---------- */
.card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.03), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--glow-sm), var(--shadow-card);
}

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

.card-accent-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--green-600));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card-accent-left:hover::before { opacity: 1; }

.card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid var(--border-light);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.card:hover .card-icon svg { opacity: 1; }

.card h3, .card h4 {
  margin-bottom: 10px;
  color: var(--accent);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ---------- PRICING CARD ---------- */
.price-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.price-card.featured {
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(0, 0, 0, 0.7));
  box-shadow: var(--glow-md);
  transform: scale(1.03);
  z-index: 1;
}

.price-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
  box-shadow: var(--glow-lg), var(--shadow-xl);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--accent);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
}

.price-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.price-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.price-amount {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-neon);
  margin: 16px 0;
  text-shadow: var(--glow-sm);
  letter-spacing: -1px;
}

.price-amount small {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-features {
  margin: 20px 0;
  flex-grow: 1;
}

.price-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-features li::before {
  content: '▸';
  color: var(--accent);
  font-weight: bold;
  flex-shrink: 0;
}

.price-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

/* ---------- TESTIMONIAL ---------- */
.testimonial-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5));
  border-left: 3px solid var(--accent);
  border-right: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  transition: all var(--transition-base);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.1;
  font-family: var(--font-mono);
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateX(6px);
  border-left-width: 5px;
  box-shadow: var(--glow-sm), var(--shadow-card);
}

.testimonial-text {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.85rem;
}

/* ---------- TESTIMONIALS CAROUSEL ---------- */
.testimonials-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s var(--ease-out);
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 8px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .testimonial-slide { flex: 0 0 50%; }
}

@media (min-width: 1024px) {
  .testimonial-slide { flex: 0 0 33.333%; }
}

.testimonials-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.testimonials-arrow:hover {
  opacity: 1;
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.testimonials-arrow.left { left: 0; }
.testimonials-arrow.right { right: 0; }

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.testimonials-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.testimonials-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
}

/* ---------- BLOG ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}

.blog-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.blog-card-img {
  height: 160px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 12px;
  position: relative;
}

.blog-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  backdrop-filter: blur(4px);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 8px;
}

.blog-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--text-primary);
}

.blog-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.blog-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}

.blog-card-link:hover {
  gap: 8px;
}

/* ---------- FORM ---------- */
.form-card {
  padding: 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.3));
  border: 1px solid var(--border);
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--glow-sm), var(--shadow-card);
}

.form-card h2 {
  margin-bottom: 8px;
}

.form-card > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  width: 100%;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: var(--glow-sm), 0 0 0 3px rgba(0, 255, 136, 0.08);
  background: rgba(0, 0, 0, 0.6);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-600);
}

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

.form-group .field-error {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group.error .field-error {
  display: block;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.form-success.show { display: block; }

.form-success .check-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.1);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
  animation: scaleIn 0.4s var(--ease-spring);
}

.form-hidden { display: none !important; }

/* ---------- FOOTER ---------- */
.footer {
  margin-top: 80px;
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-light);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent);
}

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

.footer-brand h3 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

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

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

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: rgba(0, 255, 136, 0.08);
  border-color: var(--border-hover);
  color: var(--accent);
  box-shadow: var(--glow-sm);
  transform: translateY(-3px);
}

/* ---------- WHATSAPP FLOAT ---------- */
/* ---------- WHATSAPP CHAT WIDGET ---------- */
.wa-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Trigger button (floating bubble) */
.wa-trigger {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 204, 102, 0.1));
  color: var(--accent);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-md);
  transition: all var(--transition-base);
  position: relative;
  animation: wa-pulse 2s ease-in-out infinite;
}
.wa-trigger:hover { transform: scale(1.12); box-shadow: var(--glow-lg); }
.wa-trigger svg { width: 26px; height: 26px; }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(0, 255, 136, 0.3); }
  50% { box-shadow: 0 0 30px rgba(0, 255, 136, 0.5); }
}

/* Card (hidden by default) */
.wa-card {
  display: none;
  width: 340px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  margin-bottom: 12px;
  flex-direction: column;
}
.wa-card.open { display: flex; }

.wa-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; background: var(--accent); color: #fff;
}
.wa-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; }
.wa-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wa-info { flex: 1; }
.wa-info strong { display: block; font-size: 0.9rem; }
.wa-status { font-size: 0.7rem; opacity: 0.85; display: flex; align-items: center; gap: 4px; }
.wa-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; display: inline-block; }
.wa-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: none;
  color: #fff; cursor: pointer; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.wa-close:hover { background: rgba(255,255,255,0.35); }

.wa-body {
  padding: 16px; min-height: 100px;
  background: var(--bg-secondary);
  display: flex; flex-direction: column; gap: 8px;
}
.wa-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  animation: wa-fadein 0.3s ease;
}
.wa-bubble.wa-in {
  align-self: flex-start;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px;
}
.wa-bubble.wa-out {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
@keyframes wa-fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.wa-footer {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
}
.wa-footer input {
  flex: 1; padding: 10px 14px;
  border-radius: 20px; border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text-primary);
  font-size: 0.85rem; outline: none;
  transition: border-color 0.2s;
}
.wa-footer input:focus { border-color: var(--accent); }
.wa-footer button {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); border: none; color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s; flex-shrink: 0;
}
.wa-footer button:hover { transform: scale(1.1); }
.wa-footer button svg { width: 18px; height: 18px; }

[data-theme="light"] .wa-card { background: var(--white); }
[data-theme="light"] .wa-body { background: var(--light-100); }
[data-theme="light"] .wa-bubble.wa-in { background: var(--white); }
[data-theme="light"] .wa-footer { background: var(--white); }
[data-theme="light"] .wa-footer input { background: var(--light-100); }

/* ---------- GALLERY CAROUSEL ---------- */
.gallery-wrapper {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
}
.gallery-track {
  display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 16px;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { height: 6px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
.gallery-track::-webkit-scrollbar-track { background: var(--border-light); border-radius: 3px; }

.gallery-card {
  flex: 0 0 320px; scroll-snap-align: start;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition-base);
}
.gallery-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: var(--glow-md), var(--shadow-lg); }

.gallery-card-img {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}
.gallery-card-img .gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  padding: 8px 20px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 0.8rem; font-weight: 600;
}

.gallery-card-body { padding: 20px; }
.gallery-card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.gallery-card-body p { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 10px; }
.gallery-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.gallery-tag {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0,255,136,0.08);
  color: var(--accent);
  border: 1px solid var(--border);
}

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-primary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; z-index: 2;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}
.gallery-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.gallery-arrow.left { left: -16px; }
.gallery-arrow.right { right: -16px; }
@media (max-width: 768px) { .gallery-arrow { display: none; } }

/* ---------- PLAYGROUND CONSOLE ---------- */
.playground-terminal {
  max-width: 700px; margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  background: var(--bg-card);
}
.playground-terminal .terminal-header {
  background: rgba(0,0,0,0.3);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}
.playground-body {
  padding: 20px;
  min-height: 260px; max-height: 360px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  background: var(--bg-secondary);
}
.playground-body::-webkit-scrollbar { width: 5px; }
.playground-body::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

.playground-output {
  color: var(--text-secondary);
  margin-bottom: 4px;
  white-space: pre-wrap;
}
.playground-output .cmd { color: var(--accent); font-weight: 600; }
.playground-output .success { color: var(--accent); }
.playground-output .error { color: #ef4444; }
.playground-output .highlight { color: var(--accent); }

.playground-input-line {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid var(--border-light);
}
.playground-prompt {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.playground-input-line input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.playground-input-line input::placeholder { color: var(--text-muted); }

[data-theme="light"] .playground-terminal { background: var(--white); }
[data-theme="light"] .playground-body { background: var(--light-100); }
[data-theme="light"] .playground-input-line { background: var(--light-200); }

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

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

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

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

@keyframes typing-cursor {
  0%, 100% { border-right-color: var(--accent); }
  50% { border-right-color: transparent; }
}

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes scan-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* ---------- GLITCH TEXT ---------- */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glitch-text::before {
  color: #00ff88;
  animation: glitch-1 3s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  opacity: 0.7;
}

.glitch-text::after {
  color: #39ff14;
  animation: glitch-2 2s infinite linear alternate-reverse;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  opacity: 0.7;
}

@keyframes glitch-1 {
  0%, 5% { transform: translate(0); }
  5.5% { transform: translate(-2px, 1px); }
  6%, 100% { transform: translate(0); }
}

@keyframes glitch-2 {
  0%, 8% { transform: translate(0); }
  8.5% { transform: translate(2px, -1px); }
  9%, 100% { transform: translate(0); }
}

/* ---------- CRT EFFECT ---------- */
.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: radial-gradient(ellipse 1400px 800px at 50% 35%, rgba(0, 255, 136, 0.06), rgba(0, 0, 0, 0.95) 65%);
}

.crt-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.04) 0px,
    rgba(0, 0, 0, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.5;
  animation: scan-line 8s linear infinite;
}

/* ---------- GRID BACKGROUND ---------- */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.015;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ---------- FOCUS ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--black);
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- LOADING SHIMMER ---------- */
.shimmer {
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.03), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ---------- STATUS MESSAGE ---------- */
.status-msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: none;
  align-items: center;
  gap: 8px;
}

.status-msg.show { display: flex; }
.status-msg.success { background: rgba(0, 255, 136, 0.08); border: 1px solid var(--accent); color: var(--accent); }
.status-msg.error { background: rgba(255, 107, 107, 0.08); border: 1px solid #ff6b6b; color: #ff6b6b; }

/* ---------- CUSTOM CURSOR ---------- */
.custom-cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  will-change: transform, left, top;
}

.custom-cursor.hover {
  width: 24px;
  height: 24px;
  background: var(--accent-neon);
  mix-blend-mode: difference;
}

@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  .custom-cursor { display: none; }
}

/* ---------- NOTICE BOX ---------- */
.notice-box {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 170, 0, 0.2);
  background: linear-gradient(135deg, rgba(255, 170, 0, 0.06), rgba(0, 0, 0, 0.3));
  margin-top: 32px;
}

.notice-box h4 {
  color: #ffaa00;
  font-size: 1rem;
  margin-bottom: 8px;
}

.notice-box p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  z-index: 999;
  cursor: pointer;
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: rgba(0, 255, 136, 0.08);
  border-color: var(--border-hover);
  color: var(--accent);
  box-shadow: var(--glow-sm);
}

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

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

@media (max-width: 768px) {
  :root { --header-height: 64px; }

  .container { padding: 0 20px; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 80px 24px 32px;
    gap: 8px;
    transition: right 0.4s var(--ease-out);
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav.active { right: 0; }

  .nav-link {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    border: 1px solid var(--border-light);
  }

  .nav-link::before { display: none; }

  .nav-link-cta { text-align: center; }

  .menu-toggle { display: flex; }

  .section { padding: 60px 0; }

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

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

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

  .footer-bottom { flex-direction: column; text-align: center; }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .form-card { padding: 28px 20px; }

  .price-card.featured { transform: scale(1); }
  .price-card.featured:hover { transform: translateY(-8px); }

  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }

  .back-to-top { bottom: 20px; left: 20px; width: 40px; height: 40px; }

  .playground-body { min-height: 180px; max-height: 260px; font-size: 0.78rem; padding: 14px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .brand-logo { width: 40px; height: 40px; }
  .brand-text h1 { font-size: 1.1rem; }
  .brand-tagline { font-size: 0.6rem; }

  .btn { padding: 12px 20px; font-size: 0.85rem; white-space: normal; }

  .price-amount { font-size: 2rem; }

  .price-card { padding: 24px 20px; }

  .card { padding: 20px; }

  .testimonial-card { padding: 20px; }

  .blog-card-body { padding: 20px; }
  .blog-card-img { height: 120px; }

  .section { padding: 40px 0; }

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

/* ---------- VIEW SYSTEM ---------- */
[data-view] { display: none; }
[data-view="main"] { display: block; }

.nav-link-active {
  color: var(--accent) !important;
  background: rgba(0, 255, 136, 0.08) !important;
  border-color: var(--border) !important;
}

.demo-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-mono);
  border: 1px solid var(--border-light);
  cursor: pointer;
  background: transparent;
  transition: all var(--transition-fast);
  margin-bottom: 24px;
}

.demo-back-btn:hover {
  border-color: var(--border);
  color: var(--accent);
  background: rgba(0, 255, 136, 0.04);
  transform: translateX(-4px);
}

.demo-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.demo-header-bar .demo-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- DISCLAIMER ---------- */
.demo-disclaimer {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.5;
  margin-top: 4px;
  font-style: italic;
}

/* ---------- PRINT ---------- */
@media print {
  .header,
  .whatsapp-float,
  .back-to-top,
  .custom-cursor,
  .crt-overlay,
  .grid-bg { display: none; }

  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}
