/* ==========================================================================
   KMB TECH STUDIO - BRAND BOOK STYLESHEET
   Identidade Visual: Dark Mode, Tecnológico, Dinâmico e Clean
   ========================================================================== */

:root {
  /* Paleta 60-30-10 */
  --bg-deep-slate: #0F172A;       /* 60% Fundo Principal */
  --surface-slate: #1E293B;       /* Superfícies, Cards, Modais */
  --surface-slate-hover: #283548;
  --primary-indigo: #4F46E5;      /* 30% Estrutura & Links */
  --primary-indigo-dark: #3730A3;
  --accent-coral: #FF6B6B;        /* 10% Destaques & CTAs */
  --accent-coral-hover: #FA5252;
  
  /* Textos */
  --text-primary: #F8FAFC;        /* Off-White Frio */
  --text-secondary: #94A3B8;      /* Cinza Névoa */
  --text-muted: #64748B;
  
  /* Status */
  --status-emerald: #10B981;
  
  /* Bordas & Raios */
  --border-subtle: rgba(148, 163, 184, 0.15);
  --border-indigo: rgba(79, 70, 229, 0.4);
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Fontes */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transições & Sombras */
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-coral-glow: 0 8px 24px -4px rgba(255, 107, 107, 0.4);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Reset Básico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep-slate);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Fundo Iluminado & Texturas */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

.bg-glow-indigo {
  top: -100px;
  right: -50px;
  width: 500px;
  height: 500px;
  background: var(--primary-indigo);
}

.bg-glow-coral {
  top: 400px;
  left: -150px;
  width: 450px;
  height: 450px;
  background: var(--accent-coral);
  opacity: 0.12;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-primary);
  font-size: 22px;
  letter-spacing: -0.5px;
}

.logo-play {
  color: var(--accent-coral);
  font-size: 18px;
  display: inline-block;
  transform: translateY(-1px);
}

.logo-badge {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--primary-indigo);
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid var(--border-indigo);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  margin-left: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Indicador de Status */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--status-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--status-emerald);
  display: inline-block;
}

/* ==========================================================================
   BOTÕES & AÇÕES (10% Coral Vivo)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--accent-coral);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-coral-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-coral-glow);
}

.btn-secondary {
  background-color: rgba(30, 41, 59, 0.7);
  color: var(--text-primary);
  border: 1px solid var(--border-indigo);
}

.btn-secondary:hover {
  background-color: var(--surface-slate);
  border-color: var(--primary-indigo);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #818CF8 0%, var(--primary-indigo) 40%, var(--accent-coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

/* ==========================================================================
   HERO VISUAL (Mockup Window + Mascote + Badges)
   ========================================================================== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup-window {
  width: 100%;
  background: var(--surface-slate);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--border-subtle);
}

.window-controls {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.mono-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.mono-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(79, 70, 229, 0.2);
  color: #818CF8;
  padding: 2px 8px;
  border-radius: 4px;
}

.window-body {
  padding: 20px;
  position: relative;
  min-height: 260px;
}

.code-editor {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #CBD5E1;
  overflow-x: auto;
}

.code-comment { color: #64748B; font-style: italic; }
.code-keyword { color: #818CF8; font-weight: 500; }
.code-type { color: #38BDF8; }
.code-string { color: #34D399; }
.code-func { color: #F472B6; }
.code-number { color: var(--accent-coral); }

/* Floating Card de Status */
.status-floating-card {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.status-online {
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
}

.status-ready {
  background: rgba(79, 70, 229, 0.15);
  color: #A5B4FC;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   MASCOTE ROBÔ VETORIAL & STICKERS
   ========================================================================== */
.mascot-wrapper {
  position: absolute;
  top: -50px;
  right: -30px;
  width: 140px;
  height: 154px;
  z-index: 5;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.45));
  animation: floatMascot 4s ease-in-out infinite alternate;
}

.mascot-svg {
  width: 100%;
  height: 100%;
}

@keyframes floatMascot {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(2deg); }
}

/* Stickers Die-Cut (Borda Grossa Branca) */
.sticker-badge {
  position: absolute;
  z-index: 6;
  border: 3.5px solid #F8FAFC;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.sticker-dev {
  bottom: -22px;
  left: 20px;
  background: #1E293B;
  color: #F8FAFC;
  border-radius: 50px;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(-6deg);
}

.sticker-dev:hover {
  transform: rotate(0deg) scale(1.05);
}

.sticker-stars {
  font-size: 10px;
  color: #FBBF24;
  letter-spacing: 2px;
}

.sticker-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.sticker-code {
  bottom: -15px;
  right: 15px;
  background: var(--primary-indigo);
  color: #FFFFFF;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transform: rotate(12deg);
}

.sticker-code:hover {
  transform: rotate(0deg) scale(1.1);
}

/* ==========================================================================
   SEÇÕES GERAIS
   ========================================================================== */
.section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
}

/* ==========================================================================
   CARDS DE SOLUÇÃO
   ========================================================================== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-card {
  background: var(--surface-slate);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.solution-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.4);
}

.highlighted-card {
  border-color: rgba(255, 107, 107, 0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.indigo-icon {
  background: rgba(79, 70, 229, 0.15);
  color: #818CF8;
}

.coral-icon {
  background: rgba(255, 107, 107, 0.15);
  color: var(--accent-coral);
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-indigo);
  margin-bottom: 8px;
}

.coral-badge {
  color: var(--accent-coral);
}

.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.5);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.upcoming-section {
  border-top: 1px solid var(--border-subtle);
}

.extension-previews {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.extension-preview {
  flex: 0 1 347px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  background: var(--surface-slate);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}

.extension-screenshot {
  position: relative;
  display: block;
  aspect-ratio: 322 / 462;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.extension-screenshot-upload {
  --screenshot-width: calc(100% * 347 / 322);
  --screenshot-left: calc(-100% * 6 / 322);
}

.extension-screenshot-captured {
  --screenshot-width: calc(100% * 343 / 322);
  --screenshot-left: calc(-100% * 5 / 322);
}

.extension-preview a:focus-visible {
  outline: 2px solid var(--accent-coral);
  outline-offset: 4px;
}

.extension-screenshot img {
  position: absolute;
  top: calc(-100% * 9 / 462);
  left: var(--screenshot-left);
  width: var(--screenshot-width);
  max-width: none;
  height: auto;
}

.extension-preview figcaption {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  background: rgba(15, 23, 42, 0.9);
}

.footer-content {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-contact {
  color: var(--text-secondary);
  font-size: 13px;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.footer-contact:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .solutions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-content {
    flex-wrap: wrap;
    gap: 12px 16px;
  }
  .nav-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hero-title {
    font-size: 38px;
  }
  .status-indicator {
    display: none;
  }
  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
