:root {
  --purple: #9013fe;
  --purple-deep: #7601dd;
  --blue: #37a0f4;
  --green: #0ff000;
  --ink: #1d2b36;
  --text: #333333;
  --muted: #738a94;
  --line: #e8e8e8;
  --gray: #f7f8fa;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.03), 0 0 2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.11), 0 5px 15px rgba(0, 0, 0, 0.08);
  --container: 1120px;
  --header: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

.hero-grid > *,
.story-grid > *,
.cards > *,
.stats-grid > *,
.hero-art,
.shot {
  min-width: 0;
}

a {
  color: var(--purple);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
}

.skip:focus {
  top: 12px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #eee;
  backdrop-filter: blur(10px);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: block;
  width: 148px;
  height: 35px;
  background: url("../img/kometia-2x.png") center / contain no-repeat;
  text-indent: -9999px;
  overflow: hidden;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 2px;
  background-image: linear-gradient(#9722fe, #9013fe 90%, #8e0efe);
  color: #fff;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
  text-shadow: 0 1px 1px #8904fe;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-outline {
  background: #fff;
  color: var(--purple);
  border: 1px solid var(--purple);
  text-shadow: none;
  box-shadow: none;
  border-radius: 2px;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--purple);
  color: #f8f8f8;
  transform: none;
  box-shadow: none;
}

.hero {
  padding: 72px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 24px 40px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--purple);
  font-family: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
.h1 {
  margin: 0;
  color: #333;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lede {
  max-width: 36rem;
  margin: 16px 0 0;
  color: #333;
  font-size: 1.25rem;
  line-height: 1.45;
}

.hero-actions {
  margin-top: 28px;
}

.hero-art {
  margin: 0;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 72px;
}

.card {
  padding: 22px 24px 20px;
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}

.card h2 {
  margin: 0;
  font-family: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card p {
  margin: 10px 0 0;
  color: #111;
  line-height: 1.45;
}

.tone-green { color: var(--green); }
.tone-purple { color: var(--purple); }
.tone-blue { color: var(--blue); }

.customers {
  padding: 64px 0 56px;
  background: var(--gray);
}

.customers h2 {
  margin: 0 0 36px;
  color: var(--ink);
  font-family: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 12px;
  align-items: center;
  justify-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-row img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.stats {
  position: relative;
  color: #fff;
  background: var(--purple);
  padding: 88px 0 78px;
  clip-path: polygon(0 42px, 100% 0, 100% calc(100% - 36px), 0 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  text-align: center;
}

.stats img {
  width: 112px;
  height: 112px;
}

.stats h2 {
  margin: 8px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 400;
}

.stats p {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 400;
}

.story {
  padding: 88px 0 72px;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
  gap: 36px 48px;
  align-items: center;
}

.story h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 400;
  line-height: 1.3;
}

.story .copy {
  margin: 0 0 8px;
  font-size: 1.125rem;
  line-height: 1.55;
}

.checks {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
}

.checks svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

.signoff {
  margin: 28px 0 0;
  font-style: italic;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 18px 30px rgba(29, 43, 54, 0.12));
}

.press {
  padding: 42px 0 28px;
  background: var(--gray);
}

.press h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.press-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.press-row img {
  display: block;
  width: auto;
  max-height: 34px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
}

.press-row .excelsior { max-width: 168px; }
.press-row .mundo { max-width: 48px; }
.press-row .puntual { max-width: 124px; }
.press-row .pulso { max-width: 132px; }
.press-row .unotv { max-width: 58px; }
.press-row .dinero { max-width: 108px; }

.contact {
  padding: 56px 0;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 400;
}

.contact p {
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 0 48px;
  color: var(--muted);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup img {
  width: 42px;
  height: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal {
  padding: 48px 0 80px;
}

.legal-card {
  max-width: 820px;
}

.text-center {
  text-align: center;
}

.legal h1 {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.legal h3 {
  margin: 2rem 0 0.75rem;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 500;
}

.legal p,
.legal li {
  color: #333;
  line-height: 1.7;
}

.legal p {
  margin: 0 0 1rem;
}

.legal a {
  color: var(--purple);
}

.not-found {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding: 72px 0;
  text-align: center;
}

.not-found p {
  margin: 12px 0 24px;
}

@media (max-width: 900px) {
  .hero-grid,
  .story-grid,
  .cards,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .site-header .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .hero {
    padding-top: 40px;
  }

  .hero-art {
    order: -1;
    max-width: 460px;
  }

  .logo-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-row,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats {
    clip-path: polygon(0 24px, 100% 0, 100% calc(100% - 24px), 0 100%);
    padding: 64px 0 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
