/* Workshop commercial site — brand Nebulosa (#3b1f6e), moldado no VH apps/site */

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

:root {
  --primary-color: #3b1f6e;
  --secondary-color: #2c1753;
  --accent-color: #6032b3;
  --text-dark: #0f172a;
  --text-light: #64748b;
  --bg-light: #f7f6f8;
  --bg-white: #ffffff;
  --page-bg: #ffffff;
  --bg-footer: #1a1a1a;
  --border-color: #e2e8f0;
  --gradient-start: #3b1f6e;
  --gradient-end: #6032b3;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
  --primary-color: #af9ad6;
  --secondary-color: #845eca;
  --accent-color: #d8d0e6;
  --text-dark: #fafafa;
  --text-light: #a1a1aa;
  --bg-light: #18181b;
  --bg-white: #18181b;
  --page-bg: #09090b;
  --bg-footer: #0a0a0a;
  --border-color: #27272a;
  --gradient-start: #2c1753;
  --gradient-end: #150b27;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.55);
}

html {
  scroll-behavior: smooth;
  background-color: var(--page-bg);
}

html[data-theme='dark'] {
  color-scheme: dark;
}

html[data-theme='light'] {
  color-scheme: light;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  background-color: var(--page-bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark,
.hero-logo-mark {
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
}

.logo-mark {
  width: 1.65rem;
  height: 1.65rem;
}

.logo-text {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

.nav a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  transition: all 0.3s ease;
}

.theme-toggle {
  background: none;
  border: 2px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--text-dark);
  font-size: 1.2rem;
}

.theme-toggle:hover {
  background: var(--bg-light);
  border-color: var(--primary-color);
  transform: rotate(20deg);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  padding: 150px 20px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  color: white;
  animation: fadeInUp 0.8s ease;
}

.hero-logo-mark {
  width: clamp(3.25rem, 8vw, 4.5rem);
  height: clamp(3.25rem, 8vw, 4.5rem);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-brand-text {
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  color: white;
}

.hero-badge {
  display: inline-block;
  margin: 0 auto 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease 0.08s both;
}

.hero-title {
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 720px;
  margin: 0 auto 1rem;
  animation: fadeInUp 0.8s ease 0.12s both;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1.75rem;
  opacity: 0.92;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
  animation: fadeInUp 0.8s ease 0.24s both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  animation: fadeInUp 0.8s ease 0.36s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: white;
  color: #3b1f6e;
}

.btn-primary:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-hero-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: white;
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 90px 20px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.como-funciona {
  background: var(--page-bg);
}

.como-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.como-card {
  flex: 1 1 220px;
  max-width: 280px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.como-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 31, 110, 0.1);
  color: var(--primary-color);
  font-size: 1.25rem;
}

[data-theme="dark"] .como-icon {
  background: rgba(175, 154, 214, 0.15);
}

.como-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.como-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.como-arrow {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-size: 1.25rem;
  opacity: 0.7;
}

.pilares {
  background: var(--bg-light);
}

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.solucao-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.solucao-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 31, 110, 0.1);
  color: var(--primary-color);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

[data-theme="dark"] .solucao-icon {
  background: rgba(175, 154, 214, 0.15);
}

.solucao-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.solucao-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.exemplo {
  background: var(--page-bg);
}

.exemplo-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.exemplo-icon {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 31, 110, 0.1);
  color: var(--primary-color);
  font-size: 1.35rem;
}

[data-theme="dark"] .exemplo-icon {
  background: rgba(175, 154, 214, 0.15);
}

.exemplo-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.exemplo-body p {
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.exemplo-note {
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.85;
}

.contato {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  text-align: center;
}

.contato .section-title,
.contato .section-subtitle {
  color: white;
}

.contato .section-subtitle {
  opacity: 0.92;
}

.btn-contato {
  background: white;
  color: #3b1f6e;
  margin-top: 0.5rem;
}

.btn-contato:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: translateY(-2px);
}


.footer {
  background: var(--bg-footer);
  color: #a1a1aa;
  padding: 2rem 20px;
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: #d8d0e6;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer p + p {
  margin-top: 0.35rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }

  .nav.active {
    display: flex;
  }

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

  .theme-toggle {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .como-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .como-card {
    max-width: 100%;
  }

  .como-arrow {
    transform: rotate(90deg);
    align-self: center;
  }

  .pilares-grid {
    grid-template-columns: 1fr;
  }

  .exemplo-card {
    flex-direction: column;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 15px;
  }

  .hero-brand-text {
    font-size: 2.15rem;
  }

  .hero-title {
    font-size: 1.25rem;
  }
}
