/* ==========================================================================
   CVWEBDESIGNER - SUPABASE INITIATIVE DESIGN SYSTEM
   Estética: Tech Luxury • Dark Bento Grid • Hairline 1px Borders • Blue & Black
   Inspirado em: https://supabase.com/
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Cores Oficiais da Marca (Azul Cobalto, Elétrico & Ciano) */
  --blue-brand: #091FFE;        /* Azul sólido oficial */
  --blue-electric: #091FFE;
  --blue-hover: #091FFE;
  --blue-soft: #091FFE;
  --cyan-accent: #091FFE;
  --cyan-light: #7DD3FC;        /* Ciano Claro */
  --cyan-glow: rgba(0, 210, 255, 0.35);
  --blue-glow: rgba(0, 102, 255, 0.35);
  --blue-subtle: rgba(0, 102, 255, 0.08);

  /* Superfícies Escuras Precisas (Supabase Dark Palette) */
  --bg-dark-base: #030712;      /* Fundo Principal Escuro Profundo */
  --bg-dark-surface: #070D1C;   /* Superfície Elevada */
  --bg-dark-card: #0B1328;      /* Cards Bento */
  --bg-dark-card-hover: #0F1A36;/* Hover nos Cards */
  --bg-dark-subtle: rgba(11, 19, 40, 0.7);

  /* Bordas Ultrafinas de 1px (Hairline Borders) */
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-hairline-hover: rgba(0, 102, 255, 0.4);
  --border-hairline-cyan: rgba(0, 210, 255, 0.4);
  --border-subtle: rgba(255, 255, 255, 0.04);

  /* Gradientes Oficiais */
  --btn-primary-gradient: #091FFE;
  --btn-primary-hover: #091FFE;
  --text-gradient-hero: #FFFFFF;
  --cyan-gradient-text: #091FFE;
  --bento-glow-gradient: rgba(9,31,254,.08);

  /* Tipografia */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Hierarquia de Textos */
  --text-high: #FFFFFF;
  --text-medium: #CBD5E1;
  --text-low: #94A3B8;
  --text-dim: #64748B;

  /* Transições Precisas */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mantém o cabeçalho editorial acima das regras legadas deste arquivo. */
.modern-header-wrapper {
  top: 0;
  padding: 0;
  display: block;
  background-color: #15171b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.075'/%3E%3C/svg%3E");
}
.modern-header-wrapper .modern-header-nav {
  width: min(100% - 2.5rem, 76rem);
  min-height: 92px;
  margin: 0 auto;
  padding: .8rem 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.modern-header-wrapper .modern-nav-item a { border-radius: 0; color: #d7dbe1; }
.modern-header-wrapper .modern-nav-item a:hover { background: transparent; color: #fff; }
.modern-header-wrapper .modern-nav-item.active a { color: #6f9cff; background: transparent; border: 0; }
.modern-header-wrapper .btn-supabase-primary,
.modern-header-wrapper .btn-supabase-primary:hover { background: #1749b8; border-radius: 0; box-shadow: none; }

/* Cabeçalho institucional texturizado, sem gradiente de cor. */
.modern-header-wrapper {
  top: 0;
  display: block;
  padding: 0;
  background-color: #15171b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.075'/%3E%3C/svg%3E");
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.modern-social-bar { border-bottom: 1px solid rgba(255,255,255,.08); pointer-events: auto; }
.modern-social-inner {
  width: min(100% - 2.5rem, 76rem);
  min-height: 36px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9da3ad;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.modern-social-links { display: flex; align-items: center; gap: .55rem; }
.modern-social-links a { color: #d7dbe1; text-decoration: none; }
.modern-social-links a:hover { color: #6f9cff; }
.modern-header-wrapper .modern-header-nav {
  width: min(100% - 2.5rem, 76rem);
  min-height: 92px;
  margin: 0 auto;
  padding: .8rem 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.modern-header-actions { display: flex; align-items: center; gap: .65rem; }
.modern-header-wrapper .modern-nav-item a { border-radius: 0; color: #d7dbe1; }
.modern-header-wrapper .modern-nav-item a:hover { background: transparent; color: #fff; }
.modern-header-wrapper .modern-nav-item.active a { color: #6f9cff; background: transparent; border: 0; }
.modern-header-wrapper .btn-supabase-primary,
.modern-header-wrapper .btn-supabase-primary:hover {
  background: #1749b8;
  border: 1px solid #2f63d2;
  border-radius: 0;
  box-shadow: none;
}
.modern-header-wrapper .btn-supabase-primary:hover { background: #0f3d9f; }

@media (max-width: 900px) {
  .modern-header-wrapper .modern-header-nav { min-height: 76px; }
  .modern-social-inner { min-height: 32px; }
}

@media (max-width: 560px) {
  .modern-social-inner { width: min(100% - 1.5rem, 76rem); }
  .modern-social-inner > span { display: none; }
  .modern-social-links { margin-left: auto; }
  .modern-header-wrapper .modern-header-nav { width: min(100% - 1.5rem, 76rem); }
  .modern-header-wrapper .btn-supabase-primary { display: none; }
}

/* Reset & Estilos Base */
body {
  background-color: var(--bg-dark-base) !important;
  color: var(--text-medium);
  font-family: var(--font-body) !important;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading) !important;
  color: var(--text-high);
  letter-spacing: -0.025em;
}

/* ==========================================================================
   ILUMINAÇÃO AMBIENTE SUPABASE (SUBTLE RADIAL GLOW & GRID)
   ========================================================================== */
.modern-bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.16;
  mix-blend-mode: screen;
  pointer-events: none;
}

.glow-orb-1 {
  width: 700px;
  height: 700px;
  top: -15%;
  left: 25%;
  background: radial-gradient(circle, #0C29D0 0%, #0066FF 60%, transparent 70%);
}

.glow-orb-2 {
  width: 600px;
  height: 600px;
  top: 40%;
  right: -8%;
  background: radial-gradient(circle, #00D2FF 0%, #0066FF 60%, transparent 70%);
}

.glow-orb-3 {
  width: 750px;
  height: 750px;
  bottom: 5%;
  left: 10%;
  background: radial-gradient(circle, #0C29D0 0%, transparent 70%);
}

.cosmic-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 65%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 65%, transparent 100%);
}

/* ==========================================================================
   HEADER & NAVBAR DE PRECISÃO (ESTILO SUPABASE)
   ========================================================================== */
.modern-header-wrapper {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 1.25rem;
  pointer-events: none;
}

.modern-header-nav {
  pointer-events: auto;
  width: 100%;
  max-width: 76rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  background: rgba(7, 13, 28, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-hairline);
  border-radius: 9999px;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.8), 0 0 20px -5px rgba(0, 102, 255, 0.12);
  transition: all 0.25s var(--ease-smooth);
}

.modern-header-nav:hover {
  border-color: var(--border-hairline-hover);
}

.modern-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.modern-logo-img {
  height: 32px;
  width: auto;
  transition: transform 0.2s ease;
}

.modern-logo-link:hover .modern-logo-img {
  transform: scale(1.02);
}

.modern-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.modern-nav-item a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-medium);
  text-decoration: none;
  border-radius: 9999px;
  transition: all 0.2s var(--ease-smooth);
}

.modern-nav-item a:hover {
  color: var(--text-high);
  background: rgba(255, 255, 255, 0.06);
}

.modern-nav-item.active a {
  color: #60A5FA;
  background: var(--blue-subtle);
  border: 1px solid rgba(0, 102, 255, 0.3);
}

/* Botões Estilo Supabase */
.btn-supabase-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: #FFFFFF !important;
  background: var(--btn-primary-gradient);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.4);
  transition: all 0.2s var(--ease-smooth);
}

.btn-supabase-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 102, 255, 0.55);
  color: #FFFFFF !important;
}

.btn-supabase-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-high) !important;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.btn-supabase-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-high) !important;
  transform: translateY(-1px);
}

.modern-burger-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-high);
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   HERO SECTION SUPABASE STYLE
   ========================================================================== */
.modern-hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8.5rem 1.5rem 4rem;
  overflow: hidden;
  z-index: 10;
}

.modern-hero-container {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.modern-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

/* Monospace / Tech Badge */
.tech-mono-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid var(--border-hairline-hover);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: #60A5FA;
  letter-spacing: 0.04em;
}

.tech-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-accent);
  box-shadow: 0 0 8px var(--cyan-accent);
}

/* H1 Estilo Supabase */
.modern-hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.9rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text-high);
  margin: 0;
  letter-spacing: -0.035em;
}

.title-line-accent {
  background: var(--cyan-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.modern-hero-desc {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-medium);
  margin: 0;
  max-width: 36rem;
}

.modern-hero-desc strong {
  color: var(--text-high);
  font-weight: 600;
}

.modern-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

/* Feature Checklist Tags */
.hero-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-hairline);
  width: 100%;
}

.tech-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-low);
}

.tech-tag-item svg {
  width: 14px;
  height: 14px;
  color: var(--cyan-accent);
}

/* Hero Terminal / Metric Card (Estilo Supabase Console) */
.modern-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.supabase-console-card {
  width: 100%;
  max-width: 440px;
  background: #080E20;
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.9), 0 0 30px -5px rgba(0, 102, 255, 0.2);
  transition: all 0.3s var(--ease-smooth);
}

.supabase-console-card:hover {
  border-color: var(--border-hairline-hover);
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: #050A17;
  border-bottom: 1px solid var(--border-hairline);
}

.console-dots {
  display: flex;
  gap: 0.35rem;
}

.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #EF4444; opacity: 0.8; }
.dot-yellow { background: #F59E0B; opacity: 0.8; }
.dot-green { background: #10B981; opacity: 0.8; }

.console-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.console-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Métricas no Console */
.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.metric-box {
  background: rgba(11, 19, 40, 0.6);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-low);
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-high);
}

.val-green { color: #34D399; }
.val-blue { color: #60A5FA; }

.console-preview-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-hairline);
}

/* ==========================================================================
   TICKER MARQUEE DE TECNOLOGIAS & PARCEIROS
   ========================================================================== */
.modern-ticker-wrap {
  position: relative;
  width: 100%;
  background: #040815;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  padding: 0.9rem 0;
  overflow: hidden;
  z-index: 10;
}

.ticker-fade-left, .ticker-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6rem;
  z-index: 2;
  pointer-events: none;
}

.ticker-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark-base) 0%, transparent 100%);
}

.ticker-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark-base) 0%, transparent 100%);
}

.modern-ticker-content {
  display: flex;
  align-items: center;
  width: max-content;
  animation: tickerScroll 35s linear infinite;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 2rem;
  border-right: 1px solid var(--border-hairline);
  flex-shrink: 0;
}

.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3B82F6;
}

.ticker-highlight {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-high);
}

.ticker-desc {
  font-size: 0.76rem;
  color: var(--text-low);
}

/* ==========================================================================
   SEÇÕES & CONTAINERS
   ========================================================================== */
.modern-section {
  position: relative;
  padding: 6rem 1.5rem;
  z-index: 10;
}

.modern-container {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 800;
  color: var(--text-high);
  margin: 0;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-medium);
  max-width: 40rem;
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   BENTO GRID DE SOLUÇÕES & SERVIÇOS (SUPABASE BENTO DNA)
   ========================================================================== */
.bento-grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.bento-card {
  position: relative;
  background: var(--bg-dark-card);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: all 0.25s var(--ease-smooth);
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bento-glow-gradient);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bento-card:hover {
  border-color: var(--border-hairline-hover);
  background: var(--bg-dark-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 35px -10px rgba(0, 0, 0, 0.7), 0 0 20px -5px rgba(0, 102, 255, 0.15);
}

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

/* Bento Sizes */
.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-4 { grid-column: span 4; }
.bento-span-8 { grid-column: span 8; }
.bento-span-6 { grid-column: span 6; }
.bento-span-12 { grid-column: span 12; }

.bento-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bento-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid var(--border-hairline-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60A5FA;
}

.bento-icon-badge svg {
  width: 20px;
  height: 20px;
}

.bento-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-high);
  margin: 0;
}

.bento-card p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-medium);
  margin: 0;
}

.bento-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #60A5FA;
  text-decoration: none;
  margin-top: 1.25rem;
  transition: gap 0.2s ease;
}

.bento-card:hover .bento-card-link {
  gap: 0.65rem;
  color: #93C5FD;
}

/* Bento Previews */
.bento-code-preview {
  margin-top: 1.25rem;
  background: #050914;
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #93C5FD;
  line-height: 1.5;
}

.bento-code-keyword { color: #F472B6; }
.bento-code-string { color: #34D399; }
.bento-code-func { color: #60A5FA; }

.bento-stats-preview {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.bento-stat-chip {
  background: rgba(5, 9, 20, 0.8);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  padding: 0.5rem;
  text-align: center;
}

.bento-stat-chip-val {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #34D399;
  display: block;
}

.bento-stat-chip-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-low);
  text-transform: uppercase;
}

/* ==========================================================================
   TIMELINE TÉCNICA (JORNADA COM HAIRLINE TRACK & SVGS)
   ========================================================================== */
.timeline-section {
  position: relative;
  padding: 6.5rem 1.5rem;
  z-index: 10;
}

.timeline-wrapper {
  position: relative;
  max-width: 62rem;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--border-hairline);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #0C29D0 0%, #0066FF 60%, #00D2FF 100%);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.45);
  transition: height 0.25s ease-out;
}

.timeline-item {
  position: relative;
  display: flex;
  margin-bottom: 3.5rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-spring);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.left {
  justify-content: flex-start;
  padding-right: calc(50% + 2.5rem);
}

.timeline-item.right {
  justify-content: flex-end;
  padding-left: calc(50% + 2.5rem);
}

.timeline-node {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #070D1C;
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  z-index: 3;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
  transition: all 0.4s var(--ease-spring);
}

.timeline-item.is-visible .timeline-node {
  transform: translate(-50%, -50%) scale(1);
  border-color: #00D2FF;
  background: linear-gradient(135deg, #0C29D0 0%, #0066FF 100%);
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.45);
}

.timeline-node svg {
  width: 22px;
  height: 22px;
}

.timeline-card {
  width: 100%;
  background: var(--bg-dark-card);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.25s var(--ease-smooth);
}

.timeline-card:hover {
  background: var(--bg-dark-card-hover);
  border-color: var(--border-hairline-hover);
  transform: translateY(-2px);
}

.timeline-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: #60A5FA;
  letter-spacing: 0.05em;
}

.timeline-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-high);
  margin: 0;
}

.timeline-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-medium);
  margin: 0;
}

.timeline-deliverables {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.timeline-deliverables li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-low);
}

.timeline-deliverables li svg {
  width: 13px;
  height: 13px;
  color: var(--cyan-accent);
  flex-shrink: 0;
}

/* ==========================================================================
   PORTFÓLIO DINÂMICO MODERNO (TABS & BENTO CARDS)
   ========================================================================== */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.portfolio-tab-btn {
  padding: 0.5rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-medium);
  background: transparent;
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.portfolio-tab-btn:hover {
  color: var(--text-high);
  background: rgba(255, 255, 255, 0.07);
}

.portfolio-tab-btn.active {
  color: #FFFFFF;
  background: var(--btn-primary-gradient);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
}

.portfolio-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

.portfolio-card-modern {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  transition: all 0.25s var(--ease-smooth);
}

.portfolio-card-modern:hover {
  transform: translateY(-3px);
  border-color: var(--border-hairline-hover);
  box-shadow: 0 16px 35px -10px rgba(0, 0, 0, 0.8), 0 0 20px -5px rgba(0, 102, 255, 0.2);
}

.portfolio-thumb-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #050914;
}

.portfolio-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-smooth);
}

.portfolio-card-modern:hover .portfolio-thumb-wrap img {
  transform: scale(1.04);
}

.portfolio-card-info {
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #080E20;
  border-top: 1px solid var(--border-hairline);
}

.portfolio-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-high);
  margin: 0;
}

.portfolio-card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93C5FD;
  transition: all 0.2s ease;
}

.portfolio-card-modern:hover .portfolio-card-arrow {
  background: var(--blue-electric);
  color: #FFFFFF;
  border-color: var(--blue-electric);
}

/* ==========================================================================
   DEPOIMENTOS GOOGLE & PROVA SOCIAL
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}

.testimonial-card-modern {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.2s var(--ease-smooth);
}

.testimonial-card-modern:hover {
  border-color: var(--border-hairline-hover);
  transform: translateY(-2px);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.google-verified-icon {
  width: 20px;
  height: 20px;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-high);
}

.testimonial-stars {
  display: flex;
  gap: 0.15rem;
  color: #F59E0B;
}

.testimonial-stars svg {
  width: 14px;
  height: 14px;
  fill: #F59E0B;
}

.testimonial-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-medium);
  margin: 0;
}

/* ==========================================================================
   FAQ ACORDEÃO ESTILO SUPABASE DOCS
   ========================================================================== */
.faq-accordion-container {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item-modern {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s var(--ease-smooth);
}

.faq-item-modern:hover {
  border-color: var(--border-hairline-hover);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.35rem;
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-high);
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-toggle-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93C5FD;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item-modern.open .faq-toggle-icon {
  transform: rotate(180deg);
  background: var(--blue-electric);
  color: #FFFFFF;
  border-color: var(--blue-electric);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 1.35rem;
  color: var(--text-medium);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item-modern.open .faq-answer {
  max-height: 280px;
  padding: 0 1.35rem 1.35rem;
}

/* ==========================================================================
   BANNER FINAL CTA SUPABASE
   ========================================================================== */
.final-cta-section {
  position: relative;
  padding: 5.5rem 1.5rem;
  z-index: 10;
}

.final-cta-box {
  background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.16) 0%, #070D1C 75%);
  border: 1px solid var(--border-hairline-hover);
  border-radius: 18px;
  padding: 3.8rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.85);
}

.final-cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-high);
  margin: 0;
  max-width: 44rem;
  line-height: 1.15;
}

.final-cta-desc {
  font-size: 1.08rem;
  color: var(--text-medium);
  max-width: 34rem;
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER ESTILO TECH-PLATFORM
   ========================================================================== */
.modern-footer {
  position: relative;
  background: #020409;
  border-top: 1px solid var(--border-hairline);
  padding: 4rem 1.5rem 2rem;
  z-index: 10;
}

.modern-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-low);
  margin: 0;
  max-width: 22rem;
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
}

.footer-social-link {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-medium);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-social-link::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dotted rgba(148, 163, 184, 0.34);
  border-radius: 5px;
  pointer-events: none;
  transition: border-color 0.2s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  background: transparent;
  border-color: rgba(59, 130, 246, 0.72);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08), 0 0 14px rgba(37, 99, 235, 0.16);
  outline: none;
}

.footer-social-link:hover::after,
.footer-social-link:focus-visible::after {
  border-color: rgba(96, 165, 250, 0.72);
}

.footer-social-link img {
  width: 15px;
  height: 15px;
}

.footer-col h4 {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-high);
  margin: 0 0 1.15rem 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.86rem;
  color: var(--text-low);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #60A5FA;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE-FIRST)
   ========================================================================== */
@media (max-width: 1024px) {
  .modern-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  
  .modern-hero-content {
    align-items: center;
  }
  
  .modern-hero-actions {
    justify-content: center;
  }

  .hero-tech-tags {
    justify-content: center;
  }

  .bento-span-7, .bento-span-5, .bento-span-4, .bento-span-8, .bento-span-6 {
    grid-column: span 12;
  }

  .modern-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .modern-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.75rem;
    background: #070D1C;
    border: 1px solid var(--border-hairline-hover);
    border-radius: 14px;
    padding: 1.15rem;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.9);
  }

  .modern-nav-menu.open {
    display: flex;
  }

  .modern-nav-item a {
    width: 100%;
    justify-content: center;
    padding: 0.65rem;
  }

  .modern-burger-btn {
    display: flex;
  }

  .modern-header-nav .btn-supabase-primary {
    display: none;
  }

  .modern-hero-section {
    padding-top: 6.5rem;
  }

  .timeline-track {
    left: 23px;
  }

  .timeline-item {
    margin-bottom: 2rem;
  }

  .timeline-item.left, .timeline-item.right {
    padding-left: 3.75rem;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-node {
    left: 23px;
    width: 40px;
    height: 40px;
  }

  .timeline-node svg {
    width: 18px;
    height: 18px;
  }

  .timeline-card {
    padding: 1.35rem;
  }

  .bento-stats-preview {
    grid-template-columns: 1fr;
  }

  .modern-footer-grid {
    grid-template-columns: 1fr;
  }

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

/* Override final: cabeçalho editorial acima das regras legadas. */
.modern-header-wrapper {
  top: 0;
  padding: 0;
  display: block;
  background-color: #15171b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.075'/%3E%3C/svg%3E");
}
.modern-header-wrapper .modern-header-nav {
  width: min(100% - 2.5rem, 76rem);
  min-height: 92px;
  margin: 0 auto;
  padding: .8rem 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.modern-header-wrapper .modern-nav-item a { border-radius: 0; color: #d7dbe1; }
.modern-header-wrapper .modern-nav-item a:hover { background: transparent; color: #fff; }
.modern-header-wrapper .modern-nav-item.active a { color: #6f9cff; background: transparent; border: 0; }
.modern-header-wrapper .btn-supabase-primary,
.modern-header-wrapper .btn-supabase-primary:hover { background: #1749b8; border-radius: 0; box-shadow: none; }

@media (max-width: 900px) {
  .modern-header-wrapper .modern-header-nav { min-height: 76px; }
}

@media (max-width: 560px) {
  .modern-header-wrapper .modern-header-nav { width: min(100% - 1.5rem, 76rem); }
}
