:root {
  --bg: #07090d;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f7f8fb;
  --muted: rgba(247, 248, 251, 0.68);
  --orange: #ff6a00;
  --cyan: #66f2d5;
  --lime: #c8ff5b;
  --blue: #74a7ff;
  --violet: #b394ff;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(118deg, rgba(255, 106, 0, 0.16), transparent 38%),
    linear-gradient(135deg, #07090d 0%, #10131b 48%, #080a10 100%);
  background-size: 42px 42px, 42px 42px, auto, auto;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(300deg, rgba(102, 242, 213, 0.08), transparent 36%);
  pointer-events: none;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(calc(100% - 32px), var(--max));
  min-height: 68px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 12, 18, 0.58);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px) saturate(1.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand img {
  width: 40px;
  height: 40px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(145deg, #ff7a16, #ff4d00);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.nav a:hover {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.hero {
  width: min(calc(100% - 40px), var(--max));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 128px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 64px;
  align-items: end;
}

.eyebrow,
.project-copy span,
.contact-card span {
  display: inline-flex;
  margin: 0 0 20px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(76px, 12vw, 148px);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.34;
}

.hero-panel {
  display: grid;
  gap: 12px;
}

.glass-tile,
.project-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 24px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px) saturate(1.25);
}

.glass-tile {
  min-height: 92px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.glass-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--panel-strong);
}

.glass-tile span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
}

.glass-tile strong {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1;
}

.glass-tile em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.products {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: grid;
  gap: 18px;
  padding: 0 0 84px;
}

.project-card {
  position: relative;
  scroll-margin-top: 108px;
  min-height: 560px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 4vw, 52px);
}

.project-card:nth-child(even) {
  grid-template-columns: minmax(360px, 1.06fr) minmax(0, 0.94fr);
}

.project-card:nth-child(even) .project-copy {
  order: 2;
}

.project-card:nth-child(even) .project-media {
  order: 1;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 36%),
    linear-gradient(300deg, rgba(255, 255, 255, 0.07), transparent 34%);
  pointer-events: none;
}

.project-copy,
.project-media {
  position: relative;
  z-index: 1;
}

.project-copy h2 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.project-copy p {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.project-link,
.project-soon {
  display: inline-flex;
  width: max-content;
  margin-top: 26px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-soon {
  color: var(--muted);
}

.project-media {
  display: grid;
  place-items: center;
  min-height: 390px;
}

.phone-media img {
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 34px 58px rgba(0, 0, 0, 0.42));
}

.time-phone-media {
  min-height: 500px;
}

.time-phone {
  position: relative;
  width: min(100%, 330px);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 36px;
  background: #111827;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.48);
  transform: rotate(2deg);
}

.time-phone::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  pointer-events: none;
}

.time-phone-speaker {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 50%;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: #2c3444;
  transform: translateX(-50%);
}

.time-screen {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 30px 16px 18px;
  border-radius: 28px;
  background: #f4f6f8;
  color: #20242a;
  text-align: left;
}

.time-screen-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -30px -16px 18px;
  padding: 28px 18px 16px;
  background: #ffffff;
  box-shadow: 0 16px 28px rgba(40, 47, 55, 0.08);
}

.time-kicker,
.time-day {
  color: #826fd6;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.time-date {
  margin-top: 3px;
  color: #20242a;
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
}

.time-screen-header strong {
  color: #826fd6;
  font-size: 22px;
  font-weight: 950;
  white-space: nowrap;
}

.time-now-line {
  position: absolute;
  z-index: 1;
  top: 273px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e33448;
}

.time-day {
  margin-bottom: 12px;
}

.time-day-next {
  margin-top: 22px;
}

.time-event {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 104px;
  margin-bottom: 14px;
  padding: 16px;
  overflow: hidden;
  border-radius: 22px;
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(19, 28, 36, 0.12);
}

.time-event::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(300deg, rgba(255, 255, 255, 0.1), transparent 42%);
  pointer-events: none;
}

.time-event i {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}

.time-event div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.time-event strong {
  display: block;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.15;
}

.time-event span {
  display: inline-flex;
  margin-top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.time-event-green {
  background: #31d83a;
}

.time-event-magenta {
  border: 3px solid #df3244;
  background: #dd37b2;
}

.time-event-violet {
  background: #5638e0;
}

.time-gap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  color: #5b5f66;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.time-gap span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9cdd2;
  flex: 0 0 auto;
}

.time-gap b {
  margin-left: auto;
  color: #20242a;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.wide-media {
  align-self: stretch;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
}

.wide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consencia-media img {
  width: min(100%, 430px);
  filter: drop-shadow(0 30px 58px rgba(102, 242, 213, 0.2));
}

.balance {
  background:
    linear-gradient(135deg, rgba(124, 82, 255, 0.22), transparent 44%),
    var(--panel);
}

.humagent {
  background:
    linear-gradient(135deg, rgba(200, 255, 91, 0.16), transparent 42%),
    var(--panel);
}

.time {
  background:
    linear-gradient(135deg, rgba(102, 242, 213, 0.18), transparent 44%),
    var(--panel);
}

.crowd {
  background:
    linear-gradient(135deg, rgba(116, 167, 255, 0.2), transparent 44%),
    var(--panel);
}

.consencia {
  background:
    linear-gradient(135deg, rgba(54, 195, 183, 0.24), transparent 44%),
    linear-gradient(300deg, rgba(255, 255, 255, 0.08), transparent 44%),
    var(--panel);
}

.humagent .project-copy span {
  color: var(--lime);
}

.time .project-copy span {
  color: var(--cyan);
}

.crowd .project-copy span {
  color: var(--blue);
}

.consencia .project-copy span {
  color: var(--cyan);
}

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

.contact-card {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
}

.contact-card span {
  margin: 0;
}

.contact-card a {
  font-size: clamp(26px, 4vw, 54px);
  font-weight: 950;
  line-height: 1;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .project-card,
  .project-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .project-card:nth-child(even) .project-copy,
  .project-card:nth-child(even) .project-media {
    order: initial;
  }

  .hero {
    align-items: end;
  }

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

  .glass-tile {
    grid-template-columns: 34px 1fr;
  }

  .glass-tile em {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  body {
    background-size: 30px 30px, 30px 30px, auto, auto;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 60px;
    border-radius: 16px;
  }

  .brand span {
    display: none;
  }

  .nav a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero,
  .products,
  .contact {
    width: calc(100% - 24px);
  }

  .hero {
    min-height: 92vh;
    padding: 104px 0 34px;
  }

  .hero-grid {
    gap: 28px;
  }

  h1 {
    font-size: clamp(66px, 23vw, 96px);
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .glass-tile {
    min-height: 72px;
    border-radius: 18px;
  }

  .products {
    padding-bottom: 46px;
  }

  .project-card {
    min-height: 0;
    gap: 22px;
    padding: 22px;
    border-radius: 20px;
  }

  .project-copy h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .project-copy p {
    font-size: 16px;
  }

  .project-media {
    min-height: 280px;
  }

  .phone-media img {
    max-height: 340px;
  }

  .time-phone-media {
    min-height: 380px;
  }

  .time-phone {
    width: min(100%, 300px);
    transform: none;
  }

  .time-screen {
    min-height: 500px;
  }

  .time-event {
    min-height: 94px;
    border-radius: 20px;
  }

  .wide-media {
    min-height: 230px;
    border-radius: 16px;
  }

  .contact-card {
    align-items: flex-start;
    flex-direction: column;
    min-height: 130px;
    border-radius: 20px;
  }
}
