/* ========================================
   BYTX - bytx.com.br
   Styles v1.0
   ======================================== */

/* 5.1 Variaveis e Reset */
:root {
  /* Cores */
  --bg-primary: #0A0A0F;
  --bg-card: #0F0F1A;
  --bg-card-hover: #141428;
  --border: #1E1E2E;
  --border-hover: #2A2A3E;
  --cyan: #00E5FF;
  --cyan-hover: #33EEFF;
  --cyan-glow: rgba(0, 229, 255, 0.15);
  --cyan-glow-sm: rgba(0, 229, 255, 0.08);
  --purple: #8B5CF6;
  --purple-hover: #A78BFA;
  --purple-glow: rgba(139, 92, 246, 0.15);
  --white: #FFFFFF;
  --gray-100: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;

  /* Gradientes */
  --gradient-brand: linear-gradient(135deg, #00E5FF 0%, #8B5CF6 100%);
  --gradient-card: linear-gradient(135deg, rgba(0,229,255,0.04) 0%, rgba(139,92,246,0.04) 100%);

  /* Tipografia */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Espacamento */
  --container: 1200px;
  --section-py: 96px;
  --card-radius: 12px;

  /* Transicoes */
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--gray-400);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Texto com gradiente */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Grid de fundo sutil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
}

body > * {
  position: relative;
  z-index: 1;
}


/* ========================================
   5.2 Header e Nav — Floating Pill
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: padding var(--transition-slow);
}

.header.scrolled {
  padding: 10px 24px;
}

.header-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 10px 20px;
  background: rgba(15, 15, 26, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(30, 30, 46, 0.6);
  border-radius: 100px;
  pointer-events: all;
  max-width: 860px;
  width: 100%;
  justify-content: space-between;
  transition: background var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-slow);
}

.header.scrolled .header-pill {
  background: rgba(10, 10, 15, 0.9);
  border-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 229, 255, 0.04);
}

.logo {
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  text-decoration: none;
}

.logo-text .x-char {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 100px;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}

/* CTA no nav */
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: #000;
  background: var(--cyan);
  text-decoration: none;
  padding: 7px 18px;
  border-radius: 100px;
  flex-shrink: 0;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--cyan-hover);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
  transform: scale(1.03);
}

/* Hamburger toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gray-100);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger animation — open state */
.menu-toggle.open .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
  }

  .header-pill {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 12px 16px;
    gap: 0;
  }

  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    padding-top: 16px;
    margin-top: 12px;
    border-top: 1px solid var(--border);
    order: 3;
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 12px;
  }

  .nav-cta {
    display: none;
  }

  .nav-cta-mobile {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    background: var(--cyan);
    text-decoration: none;
    border-radius: 12px;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }
}


/* ========================================
   5.3 Hero
   ======================================== */

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,229,255,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 60% 80%, rgba(0,229,255,0.04) 0%, transparent 40%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 32px;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1), inset 0 0 12px rgba(0, 229, 255, 0.05);
}

.hero-title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 24px;
  max-width: 800px;
  text-shadow: 0 0 80px rgba(0, 229, 255, 0.08);
}

.hero-title .gradient-text {
  filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.25));
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-400);
  max-width: 560px;
  margin-bottom: 48px;
}

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

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 4px;
}


/* ========================================
   5.4 Botoes
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--cyan);
  color: #000;
}

.btn-primary:hover {
  background: var(--cyan-hover);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-100);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-glow-sm);
}


/* ========================================
   5.5 Secoes Genericas
   ======================================== */

.section {
  padding: var(--section-py) 0;
}

.section-alt {
  background: var(--bg-card);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-hover);
  margin-bottom: 16px;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.1);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-400);
}


/* ========================================
   5.6 Cards de Produto
   ======================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

/* Linha gradiente no topo */
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition);
}

/* Glow ambient atras do card */
.product-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0,229,255,0.12) 0%, rgba(139,92,246,0.06) 40%, transparent 70%);
  opacity: 0;
  filter: blur(40px);
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: -1;
}

.product-card:hover {
  border-color: rgba(0, 229, 255, 0.15);
  background: var(--bg-card-hover);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 229, 255, 0.06),
    0 0 60px -12px rgba(0, 229, 255, 0.1);
}

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

.product-card:hover::after {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.product-card:hover .card-icon {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.15);
}

.card-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-hover);
  background: rgba(139, 92, 246, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  transition: color var(--transition);
}

.product-card:hover .card-title {
  color: var(--cyan);
}

.card-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-400);
  flex: 1;
}

.card-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.card-status {
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.card-status.active {
  color: var(--cyan);
}

.card-status.active::before {
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.card-status.available {
  color: var(--purple-hover);
}

.card-status.available::before {
  background: var(--purple);
}


/* ========================================
   5.7 Pilares / Sobre
   ======================================== */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  position: relative;
}

.pillar:hover {
  border-color: rgba(0, 229, 255, 0.15);
  box-shadow: 0 0 40px -8px rgba(0, 229, 255, 0.08);
  background: rgba(0, 229, 255, 0.02);
}

.pillar-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.pillar-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.pillar-desc {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.65;
}


/* ========================================
   5.8 Faixa de Numeros
   ======================================== */

.numbers-band {
  padding: 64px 0;
  background: linear-gradient(135deg,
    rgba(0,229,255,0.04) 0%,
    rgba(139,92,246,0.04) 50%,
    rgba(0,229,255,0.02) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.number-value {
  display: block;
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.2));
}

.number-label {
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 500;
}


/* ========================================
   5.9 Contato
   ======================================== */

.contact-inner {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.contact-email {
  display: inline-block;
  font-size: 20px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  padding: 16px 32px;
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 8px;
  margin-top: 32px;
  font-family: var(--font-mono);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.contact-email:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.05);
}

.contact-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--gray-600);
}


/* ========================================
   5.10 Footer
   ======================================== */

.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.footer-brand p {
  font-size: 14px;
  color: var(--gray-600);
  margin-top: 12px;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-links a {
  font-size: 14px;
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--gray-600);
}


/* ========================================
   5.11 Responsivo
   ======================================== */

@media (max-width: 768px) {
  :root { --section-py: 64px; }

  .hero-title { font-size: 44px; }
  .hero-br { display: none; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .products-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; gap: 16px; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .nav { gap: 20px; }
}

@media (max-width: 480px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
