:root {
  --bg: #070b14;
  --bg-alt: #0c1222;
  --surface: #11192e;
  --surface-hover: #17223d;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #2563eb;
  --primary-light: #38bdf8;
  --gold: #f59e0b;
  --gold-soft: rgba(245, 158, 11, 0.14);
  --blue-soft: rgba(56, 189, 248, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

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

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--gold), var(--primary-light));
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
}

.brand-text {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text);
}

.nav-mobile-cta {
  display: none;
}

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

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: 0.2s ease;
}

.icon-link:hover {
  color: var(--text);
  border-color: var(--primary-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #070b14;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary-light);
  background: rgba(56, 189, 248, 0.08);
}

/* Hero */
.hero {
  position: relative;
  padding: 92px 0 76px;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 780px;
  height: 420px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(245, 158, 11, 0.08) 45%, transparent 70%);
  pointer-events: none;
}

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

.badge-tag {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold {
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 30px;
}

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

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

.metric-item strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

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

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

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
  margin-left: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stack-pill {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.stack-pill.highlight {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(37, 99, 235, 0.08));
}

.pill-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.stack-pill.highlight .pill-label {
  color: var(--gold);
}

.stack-pill p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Pillars */
.pillars {
  padding: 20px 0 64px;
}

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

.pillar-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.pillar-num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 10px;
}

.pillar-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

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

/* Generic Sections */
.section {
  padding: 88px 0;
}

.section-dark {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Ecossistema / Services */
.services-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.service-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.group-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}

.group-badge.gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.group-badge.blue {
  background: var(--blue-soft);
  color: var(--primary-light);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service-item {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.service-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.service-item h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.service-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ISA Section */
.isa-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.isa-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.isa-content p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}

.isa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ai-core-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}

.ai-avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.35);
}

.ai-core-card h3 {
  margin-bottom: 10px;
}

.ai-core-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.ai-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.ai-tags span {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

/* Segments */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.segment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.segment-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 12px;
}

.segment-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.segment-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.segment-ref {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
}

/* Clients */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.client-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 18px;
  text-align: center;
  transition: 0.2s ease;
}

.client-card.featured {
  border-color: rgba(56, 189, 248, 0.28);
}

.client-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.client-name {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.client-sector {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Instagram Horizontal Gallery (6 posts) */
.insta-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
}

.insta-header h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.insta-header p {
  color: var(--text-muted);
}

.insta-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scroll-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.scroll-btn:hover {
  border-color: var(--primary-light);
}

.insta-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 80px) / 5);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-alt);
}

.insta-post {
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.insta-post img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.insta-post:hover img {
  transform: scale(1.06);
}

.insta-overlay {
  position: relative;
  z-index: 2;
  padding: 16px;
  background: linear-gradient(to top, rgba(7, 11, 20, 0.95) 15%, rgba(7, 11, 20, 0.4) 70%, transparent);
}

.insta-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.insta-caption {
  font-size: 0.8rem;
  color: #e2e8f0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.about-grid h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.about-grid p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.founders-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.founder-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.founder-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.founder-card span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-container {
  max-width: 840px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item p {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Contact */
.section-cta {
  background: linear-gradient(180deg, var(--bg) 0%, #0b1428 100%);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  font-size: 0.92rem;
}

.contact-row strong {
  color: var(--primary-light);
  font-size: 0.8rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 42px 0 28px;
  background: #050810;
}

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

.footer-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* AI Assistant Widget */
.ai-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
}

.ai-launcher {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, #11192e, #1e293b);
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
}

.ai-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.ai-window {
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 490px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ai-window[hidden] {
  display: none;
}

.ai-window-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--primary), #1e3a8a);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-window-header strong {
  display: block;
  font-size: 0.92rem;
}

.ai-window-header span {
  font-size: 0.74rem;
  opacity: 0.88;
}

.ai-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.ai-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.msg.bot {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  align-self: flex-start;
}

.msg.user {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
}

.ai-quick-replies {
  padding: 8px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border);
}

.quick-chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--primary-light);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.quick-chip:hover {
  border-color: var(--primary-light);
}

.ai-input-bar {
  display: flex;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.ai-input-bar input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
}

.ai-input-bar input:focus {
  outline: none;
}

.ai-input-bar button {
  padding: 0 16px;
  border: none;
  background: transparent;
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
}

/* Cookie Bar */
.cookie-bar {
  position: fixed;
  left: 20px;
  bottom: 20px;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  z-index: 900;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-bar p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

/* Responsive */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

@media (max-width: 980px) {
  .hero-grid,
  .services-columns,
  .isa-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid,
  .segments-grid {
    grid-template-columns: 1fr 1fr;
  }

  .insta-gallery {
    grid-auto-columns: calc((100% - 32px) / 2.6);
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-mobile-cta {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
  }

  .header-actions .btn-sm {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .pillars-grid,
  .segments-grid {
    grid-template-columns: 1fr;
  }

  .insta-gallery {
    grid-auto-columns: 76%;
  }

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