:root {
  --bg: #eef2f7;
  --bg-alt: #e4eaf2;
  --card: #ffffff;
  --card-hover: #f8fafc;
  --border: rgba(15, 23, 42, 0.1);
  --text: #0f172a;
  --muted: #64748b;
  --primary: #4338ca;
  --primary-light: #4f46e5;
  --accent: #0891b2;
  --accent-soft: #06b6d4;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 28px 60px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 76px;
  --input-bg: #ffffff;
  --grid-line: rgba(67, 56, 202, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(67, 56, 202, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(8, 145, 178, 0.07) 0%, transparent 50%);
  background-size: 48px 48px, 48px 48px, auto, auto;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1200px, 92%);
  margin: auto;
}

/* Header */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(238, 242, 247, 0.82);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s;
}

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

.nav-cta {
  flex-shrink: 0;
}

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

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
}

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

.mobile-menu .btn {
  margin-top: 8px;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
}

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

.btn-primary {
  background: var(--gradient);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(67, 56, 202, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(67, 56, 202, 0.38);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
  background: var(--card-hover);
  border-color: rgba(67, 56, 202, 0.25);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 60px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(67, 56, 202, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

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

.badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(67, 56, 202, 0.08);
  border: 1px solid rgba(67, 56, 202, 0.18);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-content > p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 36px;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.hero-stats strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stats span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Hero mock UI */
.hero-visual {
  position: relative;
}

.mock-window {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mock-bar {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.mock-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.12);
}

.mock-bar span:first-child { background: #ef4444; }
.mock-bar span:nth-child(2) { background: #eab308; }
.mock-bar span:nth-child(3) { background: #22c55e; }

.mock-body {
  display: flex;
  min-height: 280px;
}

.mock-sidebar {
  width: 28%;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
}

.mock-main {
  flex: 1;
  padding: 24px;
}

.mock-line {
  height: 10px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  margin-bottom: 14px;
}

.mock-line.long { width: 85%; }
.mock-line.short { width: 45%; }

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.mock-card {
  height: 72px;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.12), rgba(8, 145, 178, 0.1));
  border-radius: 12px;
  border: 1px solid rgba(67, 56, 202, 0.12);
}

.hero-float {
  position: absolute;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

.hero-float-1 {
  top: -12px;
  right: -16px;
}

.hero-float-2 {
  bottom: 24px;
  left: -24px;
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Logos */
.logos-section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logos-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

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

.logos-row span {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.35);
  letter-spacing: 0.02em;
}

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

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-title span {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-title p {
  color: var(--muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 28px;
}

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

.service-card-highlight {
  border-color: rgba(67, 56, 202, 0.22);
  background: linear-gradient(160deg, #ffffff 0%, rgba(67, 56, 202, 0.04) 100%);
}

.service-card-highlight .service-icon {
  background: rgba(8, 145, 178, 0.12);
  color: var(--accent);
}

/* Section IA */
.ai-section {
  padding-top: 40px;
}

.ai-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 48px;
  background: var(--card);
  border: 1px solid rgba(67, 56, 202, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.ai-banner-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 16px 0;
  line-height: 1.2;
}

.ai-banner-content p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.ai-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ai-benefits li {
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.ai-benefits strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text);
}

.ai-benefits span {
  font-size: 0.88rem;
  color: var(--muted);
}

.ai-banner > .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.hero-content p strong {
  color: var(--primary);
  font-weight: 600;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: border-color 0.3s, transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  border-color: rgba(67, 56, 202, 0.28);
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(67, 56, 202, 0.1);
  border-radius: 12px;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card > p {
  color: var(--muted);
  margin-bottom: 20px;
}

.service-card ul {
  list-style: none;
}

.service-card li {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Portfolio */
.portfolio-grid {
  grid-template-columns: repeat(4, 1fr);
}

.portfolio-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(8, 145, 178, 0.35);
  box-shadow: var(--shadow-lg);
}

.portfolio-thumb {
  height: 200px;
  overflow: hidden;
  background: var(--bg-alt);
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.portfolio-body {
  padding: 28px;
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

.portfolio-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.portfolio-body p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  position: relative;
}

.process-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5;
  margin-bottom: 16px;
  line-height: 1;
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Testimonials */
.testimonials-grid {
  grid-template-columns: repeat(3, 1fr);
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

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

.testimonial-card footer strong {
  display: block;
  font-size: 0.95rem;
}

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

/* CTA */
.cta-section {
  padding-bottom: 80px;
}

.cta-box {
  text-align: center;
  padding: 72px 48px;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.08) 0%, rgba(8, 145, 178, 0.06) 100%);
  border: 1px solid rgba(67, 56, 202, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 32px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
  background: var(--bg-alt);
}

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

.footer-brand p {
  color: var(--muted);
  margin-top: 16px;
  max-width: 280px;
  font-size: 0.95rem;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Contact page */
.page-hero {
  padding: calc(var(--header-h) + 60px) 0 48px;
  text-align: center;
}

.page-hero .badge {
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
  padding-bottom: 100px;
}

.contact-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 4px;
}

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

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.15);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.contact-info-item {
  margin-bottom: 24px;
}

.contact-info-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-info-item a,
.contact-info-item p {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
}

.contact-info-item a:hover {
  color: var(--accent);
}

.contact-info-list {
  list-style: none;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.contact-info-list li {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

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

.form-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-note a {
  color: var(--accent);
  text-decoration: none;
}

.form-note a:hover {
  text-decoration: underline;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Animations */
.fade-up,
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible,
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    max-width: 520px;
    margin: 0 auto;
  }

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

  .ai-banner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

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

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

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

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

  .mobile-toggle {
    display: flex;
  }

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

  .portfolio-grid,
  .testimonials-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-box {
    padding: 48px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }
}
