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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #09090b; /* zinc-950 */
  color: #fff;
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #27272a;
  background: rgba(24, 24, 27, 0.8);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
}

.logo {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #22d3ee; /* cyan-400 */
}

.tagline {
  font-size: 0.875rem;
  color: #a1a1aa;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 1.125rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a:hover {
  color: #22d3ee;
  transition: color 0.2s;
}

/* === Hero === */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(6, 182, 212, 0.2), rgba(147, 51, 234, 0.2));
  filter: blur(48px);
}

.hero-content {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 7rem 1.5rem;
  text-align: center;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.accent {
  color: #22d3ee;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #d4d4d8;
  max-width: 48rem;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* === Buttons === */
.btn-primary {
  background: #22d3ee;
  color: #000;
  font-weight: 700;
  padding: 1rem 2rem;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s;
}

.btn-primary:hover {
  transform: scale(1.05);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid #52525b;
  padding: 1rem 2rem;
  border-radius: 1rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: #27272a;
}

.full-width {
  width: 100%;
}

/* === Productes === */
.productes {
  max-width: 80rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

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

.producte-card {
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #27272a;
  background: #18181b;
  transition: transform 0.2s;
}

.producte-card:hover {
  transform: translateY(-4px);
}

.producte-card img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  display: block;
}

.producte-card .card-body {
  padding: 1.25rem;
}

.producte-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

/* === Serveis === */
.serveis {
  background: #18181b;
  padding: 5rem 1.5rem;
  border-top: 1px solid #27272a;
  border-bottom: 1px solid #27272a;
}

.serveis-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.servei-card {
  background: #09090b;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid #27272a;
}

.servei-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #22d3ee;
}

.servei-text {
  color: #a1a1aa;
}

/* === Section container === */
.section-container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-container.narrow {
  max-width: 48rem;
}

/* === Cards === */
.card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-gradient {
  background: linear-gradient(to right, rgba(6, 182, 212, 0.1), rgba(147, 51, 234, 0.1));
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #22d3ee;
  margin-bottom: 1.5rem;
  text-align: center;
}

.card-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

/* === Grid helpers === */
.atencio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  font-size: 1.125rem;
}

/* === Utilities === */
.muted { color: #a1a1aa; }
.text-center { text-align: center; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.text-large { font-size: 1.5rem; font-weight: 600; }
.flex-1 { flex: 1; }

/* === Form elements === */
.input {
  background: #09090b;
  border: 1px solid #3f3f46;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  color: #fff;
  font-size: 1rem;
  outline: none;
  width: 100%;
  font-family: inherit;
}

.input:focus {
  border-color: #22d3ee;
}

.select-inline {
  display: inline-block;
  width: auto;
  min-width: 14rem;
}

textarea.input {
  resize: vertical;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* === Chat === */
.chat-box {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 1rem;
  padding: 1.5rem;
  height: 16rem;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.chat-msg {
  margin-bottom: 0.5rem;
}

.chat-msg.ia {
  color: #71717a;
}

.chat-msg.user {
  color: #22d3ee;
}

.chat-input-row {
  display: flex;
  gap: 0.75rem;
}

/* === Footer === */
.footer {
  padding: 3rem 1.5rem;
  text-align: center;
  color: #a1a1aa;
}

.footer-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-copy {
  margin-top: 1rem;
  color: #52525b;
}

/* === Responsive === */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    gap: 0.75rem;
    font-size: 0.95rem;
  }

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

  .hero-content {
    padding: 4rem 1.5rem;
  }

  .productes-grid,
  .serveis-grid {
    grid-template-columns: 1fr;
  }

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