/* === CSS CUSTOM PROPERTIES === */
:root {
  --color-purple: #6C5CE7;
  --color-purple-dark: #5849c4;
  --color-magenta: #BC3E91;
  --color-near-black: #111317;
  --color-muted: #5A5F6B;
  --color-bg: #ffffff;
  --color-hero-from: #E8E6F8;
  --color-hero-to: #D4D0F0;
  --color-white: #ffffff;
  --color-bg-subtle: #FAFAFA;
  --color-border: #E2E4E9;
  --color-placeholder: #A8ACB5;
  --color-card-dark-1: #1a1a2e;
  --color-card-dark-2: #2d2d4a;
  --color-card-dark-3: #3a3a5c;
  --shadow-purple-sm: rgba(108, 92, 231, 0.3);
  --shadow-purple-md: rgba(108, 92, 231, 0.35);
  --shadow-purple-lg: rgba(108, 92, 231, 0.45);
  --shadow-purple-focus: rgba(108, 92, 231, 0.12);
  --color-overlay-dark: rgba(0, 0, 0, 0.65);
  --color-border-subtle: rgba(0, 0, 0, 0.06);
  --color-shadow-subtle: rgba(0, 0, 0, 0.07);
  --color-white-75: rgba(255, 255, 255, 0.75);
  --color-white-80: rgba(255, 255, 255, 0.80);
  --color-white-90: rgba(255, 255, 255, 0.90);
  --hero-cloud-1: rgba(255, 255, 255, 0.6);
  --hero-cloud-2: rgba(255, 255, 255, 0.5);
  --hero-cloud-3: rgba(255, 255, 255, 0.4);
  --font-heading: 'Hanken Grotesk', sans-serif;
  --font-body: 'Hanken Grotesk', sans-serif;
  --radius-pill: 9999px;
  --radius-card: 20px;
  --radius-input: 8px;
  --max-width: 1200px;
  --section-pad-x: 1.25rem;
  --section-pad-y: 4rem;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
body { font-family: var(--font-body); color: var(--color-near-black); background: var(--color-bg); line-height: 1.6; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--color-purple);
  color: var(--color-white);
  box-shadow: 0 4px 14px var(--shadow-purple-md);
}
.btn-primary:hover { background: var(--color-purple-dark); transform: translateY(-1px); box-shadow: 0 6px 20px var(--shadow-purple-lg); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px var(--shadow-purple-sm); }
.btn-full { width: 100%; justify-content: center; }

/* === HEADER === */
header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--section-pad-x);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-subtle);
}
.wordmark { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; color: var(--color-near-black); letter-spacing: -0.01em; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-icon { height: 32px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 1rem; color: var(--color-near-black); letter-spacing: 0.02em; }
.brand-tagline { font-family: var(--font-body); font-weight: 600; font-size: 0.6rem; color: var(--color-muted); letter-spacing: 0.12em; }

/* === HERO === */
.hero {
  position: relative;
  text-align: center;
  padding: 5rem var(--section-pad-x);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('assets/background.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: -1;
}
.hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 20ch;
  margin: 0 auto 1.25rem;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.7s ease 0.1s forwards;
}
.hero p {
  font-size: 1rem;
  color: #fff;
  max-width: 42ch;
  margin: 0 auto 2rem;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.7s ease 0.3s forwards;
}
.hero-cta {
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.7s ease 0.5s forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* === INNOVATION === */
.innovation { padding: var(--section-pad-y) var(--section-pad-x); max-width: var(--max-width); margin: 0 auto; }
.eyebrow { font-size: 0.875rem; color: var(--color-muted); margin-bottom: 0.75rem; }
.innovation h2 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.15; letter-spacing: -0.02em; }
.innovation h2 em { font-style: italic; }
.innovation-body { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.innovation-body p { color: var(--color-muted); font-size: 0.9375rem; }

/* === CARDS === */
.cards { padding: var(--section-pad-y) var(--section-pad-x); max-width: var(--max-width); margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.card { border-radius: var(--radius-card); overflow: hidden; padding: 2rem; }
.card-wide {
  background-image: url('assets/image/exhibition%20audience%20inteligence%20background%20banner.webp');
  background-size: cover;
  background-position: center;
  position: relative; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end;
}
.card-wide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--color-overlay-dark) 100%);
}
.card-wide .card-label, .card-wide h3, .card-wide p { position: relative; z-index: 1; }
.card-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: var(--color-white-75); margin-bottom: auto; text-transform: uppercase; }
.card-wide h3 { font-family: var(--font-heading); font-weight: 800; font-size: 1.375rem; color: var(--color-white); margin-top: 3rem; margin-bottom: 0.5rem; }
.card-wide p { font-size: 0.875rem; color: var(--color-white-80); }
.card-purple { background: var(--color-purple); display: flex; flex-direction: column; gap: 1.5rem; }
.card-purple .card-label { color: var(--color-white-80); }
.card-purple p { color: var(--color-white-90); font-size: 0.9375rem; line-height: 1.6; }

/* === SOLUTION === */
.solution { padding: var(--section-pad-y) var(--section-pad-x); text-align: center; max-width: var(--max-width); margin: 0 auto; }
.solution h2 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.solution > p { color: var(--color-muted); max-width: 44ch; margin: 0 auto 3rem; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
.feature-item { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.feature-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--color-magenta);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-caption { font-size: 0.9rem; font-weight: 600; color: var(--color-near-black); max-width: 14ch; }

/* === CONTACT === */
.contact { padding: var(--section-pad-y) var(--section-pad-x); text-align: center; background: var(--color-bg-subtle); }
.contact h2 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.contact > p { color: var(--color-muted); max-width: 44ch; margin: 0 auto 2.5rem; }
.form-card { background: var(--color-white); border-radius: var(--radius-card); padding: 2rem; max-width: 680px; margin: 0 auto; text-align: left; box-shadow: 0 2px 24px var(--color-shadow-subtle); }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1.25rem; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--color-near-black); }
.form-group input, .form-group textarea {
  padding: 0.6875rem 0.875rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-input);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-near-black);
  background: var(--color-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px var(--shadow-purple-focus);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--color-placeholder); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-footnote { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--color-muted); margin-top: 1rem; justify-content: center; }
#form-success { padding: 1.5rem; text-align: center; font-weight: 600; color: var(--color-purple); font-size: 1.125rem; }

/* === SCROLL REVEAL === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* === ANCHOR OFFSET === */
#contact { scroll-margin-top: 80px; }

/* === DESKTOP === */
@media (min-width: 900px) {
  :root { --section-pad-x: 3rem; }
  header { padding: 1.125rem 3rem; }

  .innovation { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .innovation-body { margin-top: 0; }

  .cards { flex-direction: row; }
  .card-wide { flex: 3; }
  .card-purple { flex: 1; }

  .features-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .feature-caption { max-width: 16ch; }
}

@media (min-width: 1200px) {
  :root { --section-pad-x: 4rem; }
  header { padding: 1.25rem 4rem; }
}
