/* ==========================================================================
   EROCHA SOLUÇÕES EM TECNOLOGIA — DARK TECH PREMIUM DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-deep: #050811;
  --bg-surface: #0b1120;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(21, 32, 58, 0.88);
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-glow: rgba(0, 240, 255, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.12);
  --emerald: #10b981;
  --emerald-dim: rgba(16, 185, 129, 0.14);
  --indigo: #6366f1;
  --amber: #f59e0b;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-lg: 0 24px 60px -15px rgba(0, 0, 0, 0.65);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   AMBIENT TECH BACKGROUND
   ========================================================================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.25;
}

.orb-cyan {
  width: 520px;
  height: 520px;
  background: var(--cyan);
  top: -160px;
  left: -120px;
}

.orb-emerald {
  width: 480px;
  height: 480px;
  background: var(--emerald);
  top: 28%;
  right: -160px;
}

.orb-indigo {
  width: 550px;
  height: 550px;
  background: var(--indigo);
  bottom: -200px;
  left: 20%;
}

.tech-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 85%);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
  background: rgba(5, 8, 17, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-emblem svg {
  width: 40px;
  height: 40px;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 2px;
  color: #fff;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 1.4px;
  color: var(--cyan);
}

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

.nav-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-highlight {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.nav-highlight:hover {
  background: rgba(16, 185, 129, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  display: inline-block;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.65; }
}

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

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
}

/* ==========================================================================
   BUTTONS & TYPOGRAPHY HELPERS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 15px 26px;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #0ea5e9 50%, var(--emerald) 100%);
  color: #041019;
  font-weight: 700;
  box-shadow: 0 8px 25px -6px rgba(0, 240, 255, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -6px rgba(0, 240, 255, 0.65);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #03150e;
  font-weight: 700;
  box-shadow: 0 10px 28px -6px rgba(16, 185, 129, 0.5);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -6px rgba(16, 185, 129, 0.7);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-primary);
  border-color: rgba(148, 163, 184, 0.28);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

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

.text-gradient {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 45%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-emerald { color: var(--emerald); }
.text-cyan { color: var(--cyan); }

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.8px;
  margin-bottom: 24px;
}

.status-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-description strong {
  color: var(--text-primary);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-metrics-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
}

.hero-metric {
  display: flex;
  flex-direction: column;
}

.hero-metric strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
}

.hero-metric span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.hero-metric-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* Ecosystem Window on Right */
.ecosystem-window {
  background: rgba(11, 17, 32, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 240, 255, 0.08);
  overflow: hidden;
}

.window-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(5, 8, 17, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.window-address {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.window-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--emerald-dim);
  color: var(--emerald);
}

.window-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eco-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease;
}

.eco-card-hermes {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.85));
}

.eco-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.eco-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.tag-emerald { color: var(--emerald); }
.tag-cyan { color: var(--cyan); }

.eco-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: #fff;
}

.eco-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.eco-link-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

.eco-link-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.eco-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #a7f3d0;
}

.eco-mini-stats span {
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 9px;
  border-radius: 6px;
}

.eco-template-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.mini-tpl-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mini-tpl-pill:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-1px);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.eco-code-footer {
  padding: 12px 14px;
  border-radius: 10px;
  background: #04070f;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  overflow-x: auto;
}

.code-kw { color: #c084fc; }
.code-str { color: #34d399; }
.code-num { color: #38bdf8; }

/* ==========================================================================
   SECTIONS COMMON
   ========================================================================== */
.section-block {
  padding: 92px 0;
}

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

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  line-height: 1.18;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.section-subtitle code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ==========================================================================
   2. PILLARS GRID
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.pillar-featured {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 20px 50px -20px rgba(16, 185, 129, 0.25);
}

.pillar-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.icon-cyan { background: var(--cyan-dim); color: var(--cyan); }
.icon-emerald { background: var(--emerald-dim); color: var(--emerald); }
.icon-indigo { background: rgba(99, 102, 241, 0.16); color: #818cf8; }

.pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.pillar-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.pillar-list {
  list-style: none;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pillar-list li {
  font-size: 0.88rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-list li::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 700;
}

.pillar-cta {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pillar-cta:hover {
  text-decoration: underline;
}

/* ==========================================================================
   2.1 TECNOLOGIAS QUE TRABALHAMOS (TECH STACK)
   ========================================================================== */
.techs-section {
  padding: 80px 0 96px;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, transparent 70%);
}

.tech-filter-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.tech-filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tech-filter-btn:hover {
  color: #fff;
  border-color: rgba(0, 240, 255, 0.4);
}

.tech-filter-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(16, 185, 129, 0.18));
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

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

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: rgba(148, 163, 184, 0.35);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
}

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

.tech-card.hidden {
  display: none !important;
}

.tech-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.tech-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-bg, rgba(255, 255, 255, 0.08));
  color: var(--brand-color, var(--cyan));
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.tech-card:hover .tech-icon-box {
  transform: scale(1.08);
}

.tech-icon-box svg {
  width: 26px;
  height: 26px;
}

.tech-card-meta {
  display: flex;
  flex-direction: column;
}

.tech-category-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 2px;
}

.tech-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.tech-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tech-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
}

/* ==========================================================================
   3. HERMES SPOTLIGHT SECTION
   ========================================================================== */
.hermes-section {
  padding: 40px 0 80px;
}

.hermes-spotlight {
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), rgba(11, 17, 32, 0.95) 60%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 28px;
  padding: 44px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.75);
}

.hermes-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hermes-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: #6ee7b7;
}

.hermes-domain-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--cyan);
  transition: all 0.2s ease;
}

.hermes-domain-pill:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--cyan);
}

.hermes-main-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hermes-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.18;
  margin-bottom: 16px;
}

.hermes-brand-accent {
  color: var(--emerald);
}

.hermes-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hermes-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.hermes-feature-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(5, 8, 17, 0.55);
  border: 1px solid var(--border-subtle);
}

.hf-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.hermes-feature-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 4px;
}

.hermes-feature-item p {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.hermes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hermes Cockpit Mockup */
.cockpit-frame {
  background: #060a15;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.cockpit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.cockpit-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cockpit-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald), #059669);
  color: #04130d;
  font-family: var(--font-display);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.cockpit-brand strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: 1px;
}

.cockpit-brand small {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.cockpit-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald);
  background: var(--emerald-dim);
  padding: 4px 10px;
  border-radius: 999px;
}

.cockpit-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.cockpit-kpi {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.kpi-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 4px 0;
}

.kpi-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cockpit-routes-list {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.routes-list-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.route-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.route-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.route-row strong {
  display: block;
  font-size: 0.82rem;
}

.route-row small {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.route-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-ok {
  background: var(--emerald-dim);
  color: #6ee7b7;
}

.badge-cyan {
  background: var(--cyan-dim);
  color: var(--cyan);
}

.cockpit-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cockpit-footer a {
  color: var(--emerald);
  font-weight: 700;
}

/* ==========================================================================
   4. VITRINE INTERATIVA DE TEMPLATES
   ========================================================================== */
.template-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.filter-btn {
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: #fff;
  border-color: rgba(0, 240, 255, 0.4);
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(16, 185, 129, 0.18));
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

.filter-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

.tpl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.28s ease;
}

.tpl-card:hover {
  transform: translateY(-7px);
  border-color: var(--border-glow);
  box-shadow: 0 24px 55px -15px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 240, 255, 0.12);
}

.tpl-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(5, 8, 17, 0.9);
  border-bottom: 1px solid var(--border-subtle);
}

.tpl-url-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: 6px;
}

.tpl-views-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tpl-preview-box {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #090d16;
  cursor: pointer;
}

.tpl-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tpl-card:hover .tpl-cover-img {
  transform: scale(1.06);
}

.tpl-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 17, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tpl-preview-box:hover .tpl-hover-overlay {
  opacity: 1;
}

.tpl-badge-floating {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(5, 8, 17, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(8px);
}

.tpl-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tpl-meta-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.tpl-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  margin-bottom: 10px;
  color: #fff;
}

.tpl-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.tpl-highlights {
  list-style: none;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tpl-highlights li {
  font-size: 0.82rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.tpl-highlights li::before {
  content: "▹";
  color: var(--cyan);
  font-weight: bold;
}

.tpl-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.stack-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
}

.tpl-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.tpl-use-btn-row {
  margin-top: 8px;
}

/* ==========================================================================
   5. EROCHA LABS (PRODUTOS EM DESENVOLVIMENTO)
   ========================================================================== */
.labs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lab-card {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.8), rgba(11, 17, 32, 0.92));
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.lab-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-4px);
}

.lab-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 4px 11px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 16px;
}

.lab-card h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  margin-bottom: 6px;
}

.lab-tagline {
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 12px;
}

.lab-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.lab-features {
  list-style: none;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lab-features li {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.lab-features li::before {
  content: "⚡ ";
}

/* ==========================================================================
   6. PROCESS STEPS
   ========================================================================== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 28px 24px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan);
  display: block;
  margin-bottom: 12px;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   7. CONTACT & QUOTE FORM
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: flex-start;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.18;
  margin-bottom: 16px;
}

.contact-desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin-bottom: 28px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.channel-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.channel-icon {
  font-size: 1.4rem;
}

.channel-card strong {
  display: block;
  margin-bottom: 4px;
}

.channel-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.channel-card a {
  color: var(--cyan);
  text-decoration: underline;
}

.contact-form-card {
  background: rgba(11, 17, 32, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.erocha-form h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 22px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.form-field span {
  font-size: 0.84rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(5, 8, 17, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.94rem;
  color: #fff;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.14);
}

.form-feedback {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.form-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #d1fae5;
}

.form-feedback.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #03060d;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-bio {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 360px;
  margin-top: 14px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 14px;
  color: #fff;
}

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

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-tech-info {
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* ==========================================================================
   INTERACTIVE TEMPLATE STUDIO MODAL
   ========================================================================== */
.studio-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}

.studio-modal.open {
  display: block;
}

.studio-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 13, 0.88);
  backdrop-filter: blur(10px);
}

.studio-container {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.studio-topbar {
  height: 64px;
  background: #060a15;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.studio-left,
.studio-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.studio-close-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.studio-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
}

.studio-select {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: #fff;
  min-width: 280px;
}

.studio-devices {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 3px;
}

.device-btn {
  background: transparent;
  border: 0;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.device-btn.active {
  background: var(--cyan);
  color: #041019;
}

.studio-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.studio-frame-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  border: 2px solid rgba(148, 163, 184, 0.25);
  transition: width 0.32s cubic-bezier(0.16, 1, 0.3, 1), height 0.32s ease;
}

.studio-stage[data-viewport="tablet"] .studio-frame-wrapper {
  width: 780px;
  max-width: 100%;
  height: 94%;
  border-width: 6px;
  border-radius: 22px;
}

.studio-stage[data-viewport="mobile"] .studio-frame-wrapper {
  width: 395px;
  max-width: 100%;
  height: 92%;
  border-width: 8px;
  border-radius: 32px;
}

.studio-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0a0a0a;
}

.studio-loading {
  position: absolute;
  inset: 0;
  background: #060913;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-secondary);
  z-index: 3;
}

.studio-loading.hidden {
  display: none;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid,
  .hermes-main-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .templates-grid,
  .pillars-grid,
  .techs-grid,
  .labs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #060a15;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 20px;
  }

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

  .mobile-menu-btn {
    display: flex;
  }

  .templates-grid,
  .pillars-grid,
  .techs-grid,
  .labs-grid,
  .process-steps,
  .hermes-features-grid,
  .form-row.two-cols,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hermes-spotlight {
    padding: 24px;
  }

  .studio-topbar {
    flex-wrap: wrap;
    height: auto;
    padding: 12px;
  }

  .studio-devices {
    display: none;
  }
}

