/* ============================================================
   PyBots — Landing Page Styles
   Inspired by GitHub, Discord, Linear
   ============================================================ */

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

:root {
  /* Colors */
  --bg:          #0d0f14;
  --bg-2:        #13161e;
  --bg-3:        #1a1e2a;
  --border:      rgba(255,255,255,0.07);
  --border-light:rgba(255,255,255,0.12);

  --text:        #e6eaf4;
  --text-muted:  #7c8ba1;
  --text-dim:    #4a5568;

  --accent:      #5865F2;    /* Discord blue */
  --accent-2:    #7983f5;
  --green:       #3dd68c;
  --yellow:      #f59e0b;
  --red:         #ef4444;

  /* Gradient */
  --grad:        linear-gradient(135deg, #5865F2 0%, #8b5cf6 50%, #06b6d4 100%);

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

  /* Spacing */
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  /* Transitions */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --speed:       0.25s;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- Selection ---------- */
::selection { background: rgba(88,101,242,0.35); color: #fff; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background var(--speed) var(--ease),
              transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
  box-shadow: 0 0 0 0 rgba(88,101,242,0);
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88,101,242,0.4);
}
.btn-primary.btn-large { padding: 16px 36px; font-size: 1.05rem; }
.btn-primary.btn-full  { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--border-light);
  transition: color var(--speed), border-color var(--speed), background var(--speed);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  transition: color var(--speed), border-color var(--speed);
}
.btn-ghost-white:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ---------- Section Shared ---------- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--speed), backdrop-filter var(--speed),
              border-color var(--speed), padding var(--speed);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(13,15,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-icon { font-size: 1.4rem; }
.logo-text .accent { color: var(--accent-2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--speed), background var(--speed);
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.btn-nav {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}
.btn-nav:hover {
  background: var(--accent-2) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform var(--speed), opacity var(--speed);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(88,101,242,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88,101,242,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
}
.glow-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -150px; left: -100px;
  animation: floatGlow 8s ease-in-out infinite;
}
.glow-2 {
  width: 400px; height: 400px;
  background: #8b5cf6;
  top: 20%; right: 0;
  animation: floatGlow 10s ease-in-out infinite reverse;
}
.glow-3 {
  width: 350px; height: 350px;
  background: #06b6d4;
  bottom: 0; left: 40%;
  opacity: 0.1;
  animation: floatGlow 12s ease-in-out infinite;
}

@keyframes floatGlow {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  max-width: 780px;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(88,101,242,0.12);
  border: 1px solid rgba(88,101,242,0.25);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 40px;
  width: fit-content;
  margin: 0 auto;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-suffix {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-2);
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: center;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Terminal flutuante */
.hero-terminal {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5);
  z-index: 2;
  display: none; /* shown via media query on wide screens */
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-3);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.t-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.t-dot.red    { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green  { background: #28c840; }
.t-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
}
.terminal-body {
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.9;
}
.t-line { color: var(--text-muted); }
.t-out  { color: var(--text); padding-left: 12px; }
.t-green { color: var(--green) !important; }
.t-prompt { color: var(--accent-2); margin-right: 8px; }
.t-cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
  color: var(--accent-2);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 100px 0;
  background: var(--bg);
}

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

.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--speed), transform var(--speed), box-shadow var(--speed);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(88,101,242,0.06), transparent 60%);
  opacity: 0;
  transition: opacity var(--speed);
}
.service-card:hover { 
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--icon-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--icon-color) 25%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg {
  width: 22px; height: 22px;
  stroke: var(--icon-color);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-tags span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products {
  padding: 100px 0;
  background: var(--bg-2);
}

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

.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color var(--speed), transform var(--speed), box-shadow var(--speed);
}
.product-card:hover {
  border-color: rgba(88,101,242,0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.product-card.featured {
  border-color: rgba(88,101,242,0.3);
  background: linear-gradient(135deg, rgba(88,101,242,0.06), var(--bg));
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-2);
  background: rgba(88,101,242,0.15);
  border: 1px solid rgba(88,101,242,0.3);
  padding: 3px 10px;
  border-radius: 100px;
}

.product-icon { font-size: 2rem; }

.product-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.product-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-features li {
  font-size: 0.83rem;
  color: var(--text-muted);
}
.product-features li::first-letter { color: var(--green); }

.btn-product {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
  border: 1px solid rgba(88,101,242,0.3);
  border-radius: 8px;
  padding: 9px 18px;
  text-align: center;
  transition: background var(--speed), color var(--speed), border-color var(--speed);
}
.btn-product:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 100px 0;
  background: var(--bg);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  padding: 32px 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.step-number {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-arrow {
  align-self: center;
  font-size: 1.5rem;
  color: var(--text-dim);
  padding: 0 8px;
  flex-shrink: 0;
}

/* ============================================================
   TECH STACK MARQUEE
   ============================================================ */
.tech-stack {
  padding: 40px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.stack-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.stack-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.stack-track {
  display: flex;
  gap: 0;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.stack-track span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 28px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: color var(--speed);
}
.stack-track span:hover { color: var(--accent-2); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   CLIENTS
   ============================================================ */
.clients {
  padding: 100px 0;
  background: var(--bg);
}

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

.client-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  transition: border-color var(--speed), transform var(--speed);
}
.client-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.client-status {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.client-status.online  { background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 2.5s ease-in-out infinite; }
.client-status.offline { background: var(--text-dim); }

.client-icon { font-size: 1.8rem; flex-shrink: 0; }

.client-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.client-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}
.client-tag {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
}

.client-add {
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border-style: dashed;
  border-color: var(--border-light);
  background: transparent;
  cursor: pointer;
  gap: 8px;
}
.client-add:hover { border-color: var(--accent); }
.client-add-icon {
  font-size: 1.8rem;
  color: var(--text-dim);
  font-weight: 300;
}
.client-add p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.client-add a {
  font-size: 0.8rem;
  color: var(--accent-2);
  font-weight: 600;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 100px 0;
  background: var(--bg-2);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 16px 0;
  line-height: 1.2;
}
.about-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0;
}
.highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.h-icon { font-size: 1.1rem; }

/* Code window */
.code-window {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}
.cw-header {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-2);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.cw-dot { width: 10px; height: 10px; border-radius: 50%; }
.cw-dot.red    { background: #ff5f57; }
.cw-dot.yellow { background: #febc2e; }
.cw-dot.green  { background: #28c840; }
.cw-filename {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 8px;
}
.cw-code {
  padding: 24px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 2;
  overflow-x: auto;
  white-space: pre;
}

/* Syntax highlight */
.c-kw  { color: #c792ea; }
.c-mod { color: #82aaff; }
.c-cls { color: #ffcb6b; }
.c-fn  { color: #82aaff; }
.c-str { color: #c3e88d; }
.c-comment { color: #546e7a; font-style: italic; }
.c-bool { color: #f78c6c; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(88,101,242,0.12) 0%, rgba(139,92,246,0.08) 100%);
  border-top: 1px solid rgba(88,101,242,0.2);
  border-bottom: 1px solid rgba(88,101,242,0.2);
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.cta-band p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 100px 0;
  background: var(--bg);
}

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

.contact-info h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 16px 0;
}
.contact-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color var(--speed), transform var(--speed);
}
.contact-method:hover {
  border-color: var(--border-light);
  transform: translateX(4px);
}
.cm-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Form */
.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 12px 16px;
  transition: border-color var(--speed), box-shadow var(--speed);
  outline: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88,101,242,0.15);
}
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-2); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: -8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.65;
}
.footer-brand .nav-logo { margin-bottom: 0; }

.footer-col h5 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color var(--speed);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); transition: color var(--speed); }
.footer-bottom a:hover { color: var(--accent-2); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--speed), transform var(--speed),
              background var(--speed), color var(--speed);
  pointer-events: none;
  z-index: 99;
}
.back-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-top:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================================================
   AOS — Animate on Scroll
   ============================================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 1280px) {
  .hero-terminal { display: block; }
  .hero-container { margin-left: 80px; text-align: left; }
  .hero-cta, .hero-stats { justify-content: flex-start; }
  .hero-badge { margin-left: 0; }
}

@media (max-width: 1024px) {
  .services-grid,
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-container { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0;
    top: 60px;
    background: rgba(13,15,20,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; padding: 14px 32px; }
  .hamburger { display: flex; }

  .hero { padding: 100px 0 60px; }
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }
  .stat-divider { width: 80px; height: 1px; }
  .stat { padding: 0; }

  .services-grid,
  .products-grid,
  .clients-grid { grid-template-columns: 1fr; }

  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 4px 0; }

  .contact-container { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .cta-band-inner { flex-direction: column; text-align: center; }

  .hero-stats { width: 100%; }

  .about-highlights { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta a { text-align: center; justify-content: center; }
  .contact-form { padding: 24px 20px; }
}

/* ============================================================
   RANKING DINÂMICO — destaques por popularidade
   ============================================================ */

/* Badge injetado pelo tracker.js */
.rank-badge {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
  width: fit-content;
}

/* Top 1 — Mais popular */
.product-card.rank-1 {
  border-color: rgba(245, 158, 11, 0.55) !important;
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.3),
    0 20px 50px rgba(245, 158, 11, 0.15),
    0 0 60px rgba(245, 158, 11, 0.08);
  animation: rankGlow1 3s ease-in-out infinite;
  z-index: 1;
}
.product-card.rank-1 .rank-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
}

@keyframes rankGlow1 {
  0%, 100% { box-shadow: 0 0 0 1px rgba(245,158,11,.3), 0 20px 50px rgba(245,158,11,.12); }
  50%       { box-shadow: 0 0 0 1px rgba(245,158,11,.5), 0 20px 60px rgba(245,158,11,.28); }
}

/* Top 2 e 3 — Em alta */
.product-card.rank-2,
.product-card.rank-3 {
  border-color: rgba(121, 131, 245, 0.45) !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.12);
}
.product-card.rank-2 .rank-badge,
.product-card.rank-3 .rank-badge {
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.3);
  color: var(--accent-2);
}
