/* ============================================
   DIGITAL EXPERIENCE — CSS PREMIUM
   McKinsey meets Apple. Refined. Authoritative.
   ============================================ */

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

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --bg: #fafaf8;
  --bg-alt: #f2f1ef;
  --surface: #ffffff;
  --surface-raised: #f8f7f5;
  --border: #e8e6e1;
  --border-subtle: #f0eee9;

  --text-primary: #111110;
  --text-secondary: #6b6860;
  --text-muted: #9e9b96;
  --text-inverted: #fafaf8;

  --accent: #0a4aff;
  --accent-hover: #0038e0;
  --accent-subtle: #eef2ff;
  --accent-rgb: 10, 74, 255;

  --gold: #c9a84c;
  --green: #1a7a4a;
  --green-subtle: #eaf4ee;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1), 0 4px 16px rgba(0,0,0,0.06);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE ===== */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

@media (max-width: 768px) {
  body { cursor: auto; }
}

/* ===== NOISE OVERLAY ===== */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== CURSOR ===== */
.cursor, .cursor-follower {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.05s, width 0.2s, height 0.2s, background 0.2s;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  transform: translate(-50%, -50%);
  opacity: 0.4;
  transition: transform 0.12s, width 0.25s, height 0.25s, opacity 0.25s;
}

.cursor.active { width: 12px; height: 12px; }
.cursor-follower.active { width: 52px; height: 52px; opacity: 0.2; }

@media (max-width: 768px) {
  .cursor, .cursor-follower { display: none; }
}

/* ===== LAYOUT ===== */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .section-inner { padding: 0 24px; }
}

/* ===== SCROLL REVEAL ===== */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  transition-delay: var(--delay, 0s);
}

.reveal-up { transform: translateY(32px); }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }

.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ===== TYPOGRAPHY TOKENS ===== */
.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-primary);
  color: var(--text-inverted);
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-ghost:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: var(--surface);
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  background: var(--text-inverted);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  margin-top: 24px;
}

.btn-primary-sm:hover {
  background: var(--accent);
  color: white;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--text-primary);
  color: var(--text-inverted);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.logo-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

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

.nav-cta {
  background: var(--text-primary);
  color: var(--text-inverted);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover { background: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 48px 24px;
  gap: 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.nav-mobile a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}

.nav-mobile .nav-cta {
  display: inline-flex;
  width: fit-content;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { padding: 16px 24px; }
}

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

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 48px 80px;
}

.hero-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent) 0%, #6b8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.br-desktop { display: block; }
@media (max-width: 768px) { .br-desktop { display: none; } }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

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

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* Dashboard Preview */
.hero-visual {
  position: relative;
}

.dashboard-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.dash-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.dash-dot.red { background: #ff5f57; }
.dash-dot.yellow { background: #febc2e; }
.dash-dot.green { background: #28c840; }

.dash-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 8px;
  letter-spacing: 0.05em;
}

.dash-grid {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-metric {}
.dash-metric-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.dash-metric-value { font-family: var(--font-display); font-size: 1.8rem; color: var(--text-primary); margin-bottom: 8px; }

.dash-bar {
  height: 4px;
  background: var(--bg-alt);
  border-radius: 100px;
  overflow: hidden;
}

.dash-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #6b8cff);
  border-radius: 100px;
  transform-origin: left;
  animation: growBar 1.5s cubic-bezier(0.4,0,0.2,1) forwards;
  transform: scaleX(0);
}

@keyframes growBar {
  to { transform: scaleX(1); }
}

.dash-chart { background: var(--bg-alt); border-radius: var(--radius-md); padding: 12px; }
.dash-chart-label { font-size: 0.68rem; font-weight: 600; color: var(--green); margin-bottom: 8px; }
.spark-chart { width: 100%; height: 40px; }

.dash-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.dash-tag.green { background: var(--green-subtle); color: var(--green); border-color: transparent; }
.dash-tag.blue { background: var(--accent-subtle); color: var(--accent); border-color: transparent; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 120px 24px 60px;
    gap: 48px;
  }
  .hero-title { font-size: 2.4rem; }
}

/* ===== LOGOS ===== */
.logos-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-alt);
}

.logos-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.logos-row span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* ===== PROBLEM ===== */
.problem-section {
  padding: 120px 0;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 16px;
}

.problem-card {
  background: var(--surface);
  padding: 36px 28px;
  transition: background var(--transition);
}

.problem-card:hover { background: var(--bg-alt); }

.problem-icon {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.problem-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .problems-grid { grid-template-columns: 1fr; }
}

/* ===== SOLUTIONS ===== */
.solutions-section {
  padding: 0 0 120px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.solution-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
}

.solution-card:hover { background: var(--bg-alt); }

.solution-card.large {
  grid-column: span 2;
}

.solution-card.dark {
  background: var(--text-primary);
  color: var(--text-inverted);
}

.solution-card.dark:hover { background: #1a1a1a; }
.solution-card.dark .solution-tag { color: rgba(255,255,255,0.4); }
.solution-card.dark h3, .solution-card.dark p { color: var(--text-inverted); }
.solution-card.dark p { color: rgba(255,255,255,0.6); }

.solution-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.solution-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.25;
}

.solution-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.solution-metric {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-subtle);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 20px;
}

.solution-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: 20px;
  display: inline-block;
  transition: gap var(--transition);
}

.solution-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-card.large { grid-column: span 1; }
}

/* ===== METHOD ===== */
.method-section {
  background: var(--text-primary);
  padding: 120px 0;
  margin: 0;
}

.method-section .section-label { color: rgba(255,255,255,0.4); }
.method-section .section-title { color: var(--text-inverted); }
.method-section .section-title em { color: #6b8cff; }
.method-section .section-subtitle { color: rgba(255,255,255,0.5); }

.method-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.method-step {
  flex: 1;
  padding: 40px 32px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-xl);
  transition: background var(--transition), border-color var(--transition);
  margin: 0 8px;
}

.method-step:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
}

.method-connector {
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  align-self: center;
  flex-shrink: 0;
  display: none;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgba(255,255,255,0.12);
  margin-bottom: 20px;
  line-height: 1;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-inverted);
  margin-bottom: 12px;
}

.step-content p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 20px;
}

.step-output {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(107,140,255,0.8);
  background: rgba(107,140,255,0.08);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(107,140,255,0.2);
}

@media (max-width: 900px) {
  .method-steps { flex-direction: column; gap: 16px; }
  .method-step { margin: 0; }
}

/* ===== RESULTS ===== */
.results-section {
  padding: 120px 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 64px;
}

.result-big {
  background: var(--surface);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--transition);
}

.result-big:hover { background: var(--bg-alt); }

.result-number {
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--accent);
  line-height: 1;
}

.result-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  transition: box-shadow var(--transition);
}

.testimonial:hover { box-shadow: var(--shadow-md); }

.testimonial p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial footer strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial footer span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ===== ABOUT ===== */
.about-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 120px 0;
}

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

.about-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.expertise-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.expertise-item:hover {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.about-card-header {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.pillar {
  background: var(--surface);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.pillar-score {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
}

.pillar-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.about-domains { display: flex; flex-direction: column; gap: 12px; }

.domain-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.domain-bar span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  width: 160px;
  flex-shrink: 0;
}

.bar {
  flex: 1;
  height: 4px;
  background: var(--bg-alt);
  border-radius: 100px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #6b8cff);
  border-radius: 100px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-fill.animated { transform: scaleX(1); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ===== FAQ ===== */
.faq-section {
  padding: 120px 0;
}

.faq-list { margin-top: 16px; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
}

.faq-q:hover { color: var(--accent); }

.faq-arrow {
  font-size: 1.2rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-bottom: 24px;
  max-width: 680px;
}

.faq-item.open .faq-a { max-height: 200px; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--text-primary);
  padding: 120px 0;
}

.cta-content {
  margin-bottom: 64px;
}

.cta-section .section-label { color: rgba(255,255,255,0.4); }

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1.15;
  color: var(--text-inverted);
  margin-bottom: 16px;
}

.cta-title em {
  font-style: italic;
  color: #6b8cff;
}

.cta-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

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

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-inverted);
  margin-bottom: 12px;
}

.contact-info p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 28px;
  line-height: 1.6;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition);
}

.contact-link:hover { color: var(--text-inverted); }
.wa-link:hover { color: #25d366; }
.email-link:hover { color: #6b8cff; }

.contact-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin-top: 20px;
  line-height: 1.6;
}

/* FORM */
.contact-form-wrap {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 40px;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.form-group textarea { resize: none; }

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--text-primary);
  color: var(--text-inverted);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-submit:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.3);
}

.form-disclaimer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 24px; }
}

/* ===== FOOTER ===== */
.footer {
  background: #070707;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .logo-mark {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}

.footer-brand .logo-text { color: rgba(255,255,255,0.6); }

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover { color: rgba(255,255,255,0.8); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 4px;
}

.footer-contact a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-contact a:hover { color: rgba(255,255,255,0.8); }

.footer-cta {
  margin-top: 8px;
  font-weight: 600 !important;
  color: rgba(107,140,255,0.8) !important;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* ===== FOUNDER SECTION ===== */
.founder-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.founder-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  overflow: hidden;
}

.founder-avatar-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-id {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.founder-id strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.founder-milestones {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--border);
  padding-left: 20px;
}

.milestone {
  padding: 0 0 20px 0;
  position: relative;
}

.milestone::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: -25px;
  top: 4px;
}

.milestone-year {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.milestone-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== CASE STUDY ===== */
.case-section {
  padding: 120px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.case-grid {
  display: grid;
  grid-template-columns: 52fr 48fr;
  gap: 56px;
  align-items: stretch; /* ambas colunas esticam até a mesma altura */
  margin-top: 40px;
}

.case-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

/* Coluna esquerda: flex column empurra o challenge-box para baixo
   alinhando seu topo com os KPIs da coluna direita */
.case-context {
  display: flex;
  flex-direction: column;
}

.case-context h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 14px;
}

.case-context > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Challenge box ocupa o restante da altura disponível na coluna */
.case-challenge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  flex: 1;                /* expande para preencher a altura restante */
  display: flex;
  flex-direction: column;
}

.case-challenge-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.case-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;           /* gaps via padding instead for equal row height */
  flex: 1;
  justify-content: space-between;
}

.case-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 10px 0 10px 22px;
  position: relative;
  line-height: 1.5;
  margin: 0;
  border-bottom: 1px solid var(--border-subtle);
}

.case-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.case-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.case-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px; /* consistente com gap abaixo */
}

.timeline-item {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  min-height: 56px;   /* altura uniforme em todas as linhas */
}

.timeline-item:last-child { border-bottom: none; }

.timeline-week {
  padding: 0 16px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.timeline-action {
  padding: 0 18px;
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: flex;
  align-items: center;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px; /* mesmo gap do timeline → quote */
}

.case-metric {
  background: var(--surface);
  padding: 22px 12px;  /* padding uniforme em todos os 3 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}

.case-metric-val {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;    /* evita quebra de "+34%" em 2 linhas */
}

.case-metric-label {
  font-size: 0.71rem;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: nowrap;
}

.case-quote {
  background: var(--text-primary);
  color: var(--text-inverted);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.65;
  /* sem margin-bottom — quote é o último elemento da coluna direita */
}

.case-quote footer {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 14px;
}

@media (max-width: 900px) {
  .case-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Mobile: empilha context → results (timeline, métricas, quote) */
  .case-context { order: 1; }
  .case-results  { order: 2; }

  .case-challenge { flex: none; }

  .case-metric-val { font-size: 1.6rem; }
  .case-metric-label { white-space: normal; }
}

/* ===== STEP FORM ===== */
.form-step {
  display: none;
  animation: fadeStep 0.35s ease;
}

.form-step.active { display: block; }

@keyframes fadeStep {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.step-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.step-header h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.step-nav {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-step-prev {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  display: none;
}

.btn-step-prev:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.btn-step-next {
  flex: 1;
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, width 0.3s;
}

.step-dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 100px;
}

/* ===== MOBILE CTA BAR ===== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}

.mobile-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.mobile-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-cta-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mobile-cta-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mobile-cta-btn {
  background: var(--text-primary);
  color: var(--text-inverted);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition);
  flex-shrink: 0;
}

.mobile-cta-btn:hover { background: var(--accent); }

@media (max-width: 768px) {
  .mobile-cta-bar { display: flex; }
  /* Ensure footer not hidden behind bar */
  .footer { padding-bottom: 100px; }
}

/* ===== ALIGNMENT & HARMONY CORRECTIONS ===== */

/* Nav: perfect vertical centering and proportional spacing */
.nav-inner {
  align-items: center;
  min-height: 68px;
}

.nav-links {
  align-items: center;
}

/* Blog nav link subtle distinction */
.nav-link-blog {
  position: relative;
  font-weight: 600 !important;
  color: var(--accent) !important;
}

.nav-link-blog::after {
  content: 'Novo';
  position: absolute;
  top: -8px;
  right: -22px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent);
  color: white;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1.2;
}

/* Hero: vertical rhythm between elements */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-label {
  margin-bottom: 20px;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-subtitle {
  margin-bottom: 32px;
}

.hero-actions {
  margin-bottom: 40px;
  align-items: center;
}

.hero-stats {
  align-items: center;
  gap: 28px;
}

/* Logos row: perfectly centered */
.logos-section .section-inner {
  text-align: center;
}

.logos-row {
  justify-content: center;
  align-items: center;
  gap: 48px;
}

/* Section titles: consistent bottom spacing */
.section-title {
  margin-bottom: 32px;
}

/* Problem grid: equal height cards */
.problems-grid {
  align-items: stretch;
}

.problem-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Solutions: equal height cards */
.solutions-grid {
  align-items: stretch;
}

/* Method steps: equal height */
.method-steps {
  align-items: stretch;
}

.method-step {
  display: flex;
  flex-direction: column;
}

.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-output {
  margin-top: auto;
}

/* Results: vertically centered content */
.result-big {
  justify-content: center;
}

/* Testimonials: equal height */
.testimonials-grid {
  align-items: stretch;
}

.testimonial {
  display: flex;
  flex-direction: column;
}

.testimonial p {
  flex: 1;
}

/* About grid alignment */
.about-grid {
  align-items: start;
}

/* Founder avatar: circular, perfectly centered */
.founder-avatar-placeholder {
  border-radius: 50%;
  overflow: hidden;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.founder-avatar-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%);
}

/* Contact grid: align tops */
.contact-grid {
  align-items: start;
}

/* Contact info links spacing */
.contact-link {
  padding: 16px 0;
}

/* Footer grid alignment */
.footer-grid {
  align-items: start;
}

/* Case section grid alignment */
.case-grid {
  align-items: start;
}

/* Timeline items: vertically centered text */
.timeline-item {
  min-height: 56px;
}

.timeline-week,
.timeline-action {
  align-items: center;
}

/* Case metrics: vertically centered */
.case-metric {
  justify-content: center;
}

/* Step form: center step indicator and nav */
.step-nav {
  align-items: center;
}

.step-indicator {
  align-items: center;
  margin-top: 16px;
}

/* FAQ: consistent vertical rhythm */
.faq-list {
  margin-top: 8px;
}

.faq-q {
  min-height: 64px;
}

/* Scroll padding for sticky nav */
html {
  scroll-padding-top: 80px;
}

/* Consistent section spacing */
.problem-section,
.solutions-section,
.results-section,
.about-section,
.case-section,
.faq-section {
  padding-top: 112px;
  padding-bottom: 112px;
}

.method-section {
  padding-top: 112px;
  padding-bottom: 112px;
}

.cta-section {
  padding-top: 112px;
  padding-bottom: 112px;
}

/* Mobile: tighten spacing proportionally */
@media (max-width: 768px) {
  .problem-section,
  .solutions-section,
  .results-section,
  .about-section,
  .case-section,
  .faq-section,
  .method-section,
  .cta-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero-divider { display: none; }

  .logos-row { gap: 24px; }

  .case-metrics { grid-template-columns: repeat(3, 1fr); }

  .contact-form-wrap { padding: 24px 20px; }
}

/* ================================================
   TECNOLOGIAS & ESPECIALIDADES — SEÇÃO PREMIUM
   ================================================ */

.tech-section {
  padding: 112px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tech-header {
  max-width: 720px;
  margin-bottom: 56px;
}

/* Grid principal: featured card ocupa coluna dupla no topo */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* Card featured: 2 colunas */
.tech-card--featured {
  grid-column: span 2;
}

/* ── Base card ── */
.tech-card {
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

.tech-card:hover {
  background: var(--bg-alt);
  z-index: 1;
}

.tech-card-inner {
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ── Featured card overrides ── */
.tech-card--featured {
  background: var(--text-primary);
}

.tech-card--featured:hover {
  background: #1a1a1a;
}

.tech-card--featured .tech-card-title {
  color: var(--text-inverted);
  font-size: 1.55rem;
}

.tech-card--featured .tech-card-desc {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  max-width: 560px;
}

.tech-card--featured .tech-card-label {
  color: rgba(255,255,255,0.35);
}

.tech-card--featured .badge {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  border-color: rgba(255,255,255,0.12);
}

.tech-card--featured .badge:hover {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

/* Barra de acento colorida no topo do card featured */
.tech-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #6b8cff 60%, #2dd4bf 100%);
  opacity: 0.9;
}

/* ── Card top row ── */
.tech-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

/* ── Ícone ── */
.tech-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.tech-card:hover .tech-icon-wrap {
  background: var(--accent-subtle);
  color: var(--accent);
  transform: scale(1.05);
}

.featured-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}

.tech-card--featured:hover .featured-icon {
  background: rgba(var(--accent-rgb), 0.25);
  color: #a5baff;
  transform: scale(1.05);
}

.tech-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Título e descrição ── */
.tech-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.25;
}

.tech-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 22px;
}

/* ── Badge pills ── */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
  cursor: default;
  white-space: nowrap;
}

.badge:hover {
  background: var(--accent-subtle);
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.2);
  transform: translateY(-1px);
}

/* ── Micro animação: linha de scan no hover ── */
.tech-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.3), transparent);
  transition: top 0.6s ease;
  pointer-events: none;
}

.tech-card:hover::before {
  top: 100%;
}

/* ── Responsividade ── */
@media (max-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-card--featured {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .tech-grid {
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
  }

  .tech-card--featured {
    grid-column: span 1;
  }

  .tech-card-inner {
    padding: 28px 24px 24px;
  }

  .tech-card--featured .tech-card-title {
    font-size: 1.3rem;
  }

  .tech-section {
    padding: 72px 0;
  }

  .tech-header {
    margin-bottom: 40px;
  }
}

/* ================================================
   ABOUT SECTION — REFINEMENTS PREMIUM
   ================================================ */

/* Headline com espaçamento superior limpo */
.about-headline {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  margin-bottom: 20px;
}

/* Founder profile: badges inline abaixo do cargo */
.founder-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.founder-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 100px;
  padding: 3px 10px;
}

/* About text: strong inline sem perder leveza */
.about-text strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* About card header: badge "Verified" */
.about-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.about-card-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-subtle);
  border: 1px solid rgba(26, 122, 74, 0.15);
  border-radius: 100px;
  padding: 3px 10px;
}

/* Pilares: label mais descritivo */
.pillar-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
}

/* Domain bar: adiciona percentual discreto à direita */
.domain-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.domain-bar span:first-child {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-secondary);
  width: 170px;
  flex-shrink: 0;
}

.bar-pct {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 24px;
  text-align: right;
  flex-shrink: 0;
}

/* CTA dentro do card — discreto, elegante */
.about-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
  background: var(--bg);
}

.about-card-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

/* Mobile: ajuste de pilares para 2 cols */
@media (max-width: 480px) {
  .about-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-pillars .pillar:last-child {
    grid-column: span 2;
  }

  .domain-bar span:first-child {
    width: 140px;
  }
}

/* ================================================
   FOOTER — PRESENÇA DIGITAL / SOCIAL LINKS
   ================================================ */

.footer-social {
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0;
}

.footer-social-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 20px;
}

/* ── Viewport do carrossel: clip lateral + fade nas bordas ── */
.footer-social-grid {
  position: relative;
  overflow: hidden;
  /* fade esquerda/direita para entrada/saída premium */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,1) 6%,
    rgba(0,0,0,1) 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,1) 6%,
    rgba(0,0,0,1) 94%,
    transparent 100%
  );
}

/* ── Track: linha única com os 2 grupos lado a lado ── */
.social-track {
  display: flex;
  width: max-content;
  animation: socialScroll 38s linear infinite;
  will-change: transform;
}

/* Pausa suave ao hover sobre o viewport */
.footer-social-grid:hover .social-track {
  animation-play-state: paused;
}

/* ── Grupo: flex row sem quebra ── */
.social-group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  padding-right: 10px; /* garante gap entre a última pill e a 1ª do clone */
}

/* ── Animação: move de 0 → -50% (= -1 grupo), reinicia sem pulo ── */
@keyframes socialScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Link base */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.social-link:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  transform: translateY(-1px);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.social-link:hover .social-icon {
  opacity: 1;
}

.social-name {
  line-height: 1;
}

/* Portfólio Digital — destaque sutil */
.social-link--featured {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.06);
  color: rgba(107, 140, 255, 0.85);
  position: relative;
}

.social-link--featured:hover {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.55);
  color: #a5baff;
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.12);
}

.social-featured-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(107, 140, 255, 0.6);
  margin-left: 2px;
  transition: color 0.2s;
}

.social-link--featured:hover .social-featured-badge {
  color: #a5baff;
}

/* Mobile: carrossel continua rolando — apenas tamanho ajustado */
@media (max-width: 640px) {
  .social-link {
    padding: 7px 12px;
    font-size: 0.74rem;
  }

  .social-group { gap: 8px; padding-right: 8px; }
}

/* ================================================
   CASE STUDY — COLUNA DIREITA (results)
   Flex column garante que quote fica na base,
   espelhando a altura da coluna esquerda.
   ================================================ */
.case-results {
  display: flex;
  flex-direction: column;
}

/* Timeline e métricas crescem conforme conteúdo,
   quote absorve o espaço restante para atingir a base */
.case-results .case-quote {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Remove margin-bottom duplicada em duplicações antigas */
@media (min-width: 901px) {
  .case-results .case-timeline { margin-bottom: 16px; }
  .case-results .case-metrics  { margin-bottom: 16px; }
}