:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.1);
  --brand: #0f766e;
  --brand-2: #2563eb;
  --brand-3: #f97316;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --radius: 24px;
  --container: 1180px;
}

[data-theme="dark"] {
  --bg: #07111f;
  --surface: rgba(15, 23, 42, 0.7);
  --surface-strong: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.16);
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.45);
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.16), transparent 28%),
    linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 88%, #ffffff 12%));
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }
.section { padding: 5rem 0; }
.section-title { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; margin: 0 0 1rem; }
.section-copy { max-width: 720px; color: var(--muted); margin: 0 0 2rem; }
.eyebrow {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: currentColor;
}
.card, .glass {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}
.btn-secondary { border: 1px solid var(--line); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 0;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-color: var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand img {
  height: 2.9rem;
  width: auto;
}
.footer .brand img {
  height: 2.6rem;
}
.nav-links {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-weight: 600;
}
.nav-toggle { display: none; }
.theme-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 2.7rem;
  height: 2.7rem;
  background: transparent;
  color: var(--text);
}
.hero {
  padding: 5rem 0 4rem;
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1.15fr 0.85fr;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 1rem 0;
}
.hero p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 640px;
}
.hero-actions, .cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.stat {
  padding: 1.2rem;
}
.stat strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.05em;
}
.hero-panel {
  padding: 1.5rem;
}
.hero-panel-grid,
.grid-3,
.grid-2,
.products-grid,
.testimonial-grid,
.faq-grid,
.portfolio-grid,
.tech-grid,
.footer-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}
.hero-panel-grid { grid-template-columns: repeat(2, 1fr); }
.tile {
  padding: 1.25rem;
  min-height: 160px;
}
.tile h3, .service-card h3, .product-card h3, .portfolio-card h3 { margin-top: 0; }
.service-card, .product-card, .testimonial-card, .faq-item, .portfolio-card, .tech-card, .contact-card {
  padding: 1.5rem;
}
.grid-3, .products-grid, .testimonial-grid, .portfolio-grid, .tech-grid { grid-template-columns: repeat(3, 1fr); }
.grid-2, .contact-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
.service-list, .feature-list, .stack-list, .check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.service-list li, .feature-list li, .stack-list li, .check-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.service-list li:last-child, .feature-list li:last-child, .stack-list li:last-child, .check-list li:last-child { border-bottom: 0; }
.service-card:hover, .product-card:hover, .portfolio-card:hover, .testimonial-card:hover {
  transform: translateY(-4px);
}
.service-card, .product-card, .portfolio-card, .testimonial-card {
  transition: transform 0.25s ease;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}
.badge {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}
.product-card {
  position: relative;
  overflow: hidden;
}
.product-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent 68%);
}
.rating { color: #f59e0b; letter-spacing: 0.08em; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { color: var(--muted); margin-bottom: 0; }
form { display: grid; gap: 1rem; }
label { font-size: 0.95rem; font-weight: 600; }
input, textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
  color: var(--text);
}
textarea { min-height: 160px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.cta {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -35% auto auto 60%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.24), transparent 66%);
}
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
}
.footer small, .muted { color: var(--muted); }
.pill-nav {
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: var(--shadow);
  z-index: 25;
}
.page-hero { padding: 3.5rem 0 1rem; }
.breadcrumbs {
  display: flex;
  gap: 0.6rem;
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-2, .products-grid, .testimonial-grid, .portfolio-grid, .tech-grid, .contact-grid, .footer-grid, .kpi-strip {
    grid-template-columns: 1fr;
  }
  .hero-panel-grid, .form-grid, .stats { grid-template-columns: 1fr; }
  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0 0;
  }
  .nav-links.open { display: flex; }
}
