:root {
  --bg: #07090d;
  --surface: #10141c;
  --surface-2: #151a24;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f7fb;
  --muted: #b1bac9;
  --soft: #768196;
  --red: #ef233c;
  --red-strong: #c9182c;
  --red-soft: rgba(239, 35, 60, 0.14);
  --cyan: #43d9c9;
  --gold: #f6b352;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  --max-width: 1160px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(239, 35, 60, 0.1) 0, transparent 430px),
    linear-gradient(135deg, rgba(67, 217, 201, 0.06) 0, transparent 36%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

.material-symbols-rounded {
  font-size: 1.2em;
  line-height: 1;
  vertical-align: -0.18em;
}

.icon-whatsapp {
  display: inline-block;
  width: 1.12em;
  height: 1.12em;
  flex: 0 0 auto;
  background: currentColor;
  mask: url("https://cdnjs.cloudflare.com/ajax/libs/simple-icons/15.16.0/whatsapp.svg") center / contain no-repeat;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(22px, calc((100vw - var(--max-width)) / 2));
  background: rgba(7, 9, 13, 0.76);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 9, 13, 0.92);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(239, 35, 60, 0.52);
  background: var(--red-soft);
  color: #ffffff;
  border-radius: 8px;
}

.brand-mark .material-symbols-rounded {
  color: var(--red);
  font-size: 1.45rem;
}

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

.site-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.site-nav .nav-cta {
  margin-left: 8px;
  background: var(--red);
  color: #ffffff;
}

.site-nav .nav-cta:hover {
  background: var(--red-strong);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.section {
  width: min(var(--max-width), calc(100% - 44px));
  margin: 0 auto;
  padding: 104px 0;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: 52px;
  padding-top: calc(var(--header-height) + 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 690px;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.2rem, 4.8vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.28;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  margin: 0;
}

.hero-description {
  max-width: 650px;
  margin-top: 24px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(239, 35, 60, 0.24);
}

.button.primary:hover {
  background: var(--red-strong);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 44px 0 0;
}

.hero-metrics div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.hero-metrics dt {
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-metrics dd {
  margin: 5px 0 0;
  color: var(--text);
  font-weight: 800;
}

.hero-media {
  position: relative;
  isolation: isolate;
  max-width: 430px;
  justify-self: end;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1px solid rgba(239, 35, 60, 0.36);
  border-radius: 8px;
  background: rgba(239, 35, 60, 0.08);
}

.hero-media img,
.personal-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.media-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 36px);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.82);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.about,
.cases {
  width: 100%;
  max-width: none;
  padding-right: max(22px, calc((100vw - var(--max-width)) / 2));
  padding-left: max(22px, calc((100vw - var(--max-width)) / 2));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border-block: 1px solid rgba(255, 255, 255, 0.07);
}

.section-heading {
  display: grid;
  gap: 16px;
  margin-bottom: 44px;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  font-size: 1.02rem;
}

.section-heading a {
  color: var(--cyan);
  font-weight: 800;
  border-bottom: 1px solid rgba(67, 217, 201, 0.35);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.7fr);
  gap: 44px;
  align-items: start;
}

.about-text {
  display: grid;
  gap: 20px;
  max-width: 720px;
}

.about-text p {
  font-size: 1.08rem;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  position: relative;
  padding: 20px 20px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.44);
}

.timeline-item::before {
  content: "";
  position: absolute;
  inset: 20px auto 20px 0;
  width: 4px;
  border-radius: 0 8px 8px 0;
  background: var(--red);
}

.timeline-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-item strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.timeline-item p {
  margin-top: 6px;
  font-size: 0.94rem;
}

.tech-band {
  width: min(var(--max-width), calc(100% - 44px));
}

.ai-section {
  width: min(var(--max-width), calc(100% - 44px));
}

.tech-layout,
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tech-card,
.case-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.025));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tech-card:hover,
.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 35, 60, 0.42);
  background: linear-gradient(180deg, rgba(239, 35, 60, 0.1), rgba(255, 255, 255, 0.03));
}

.tech-card .material-symbols-rounded,
.case-card .material-symbols-rounded {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 1.45rem;
}

.tech-card p,
.case-card p {
  margin-top: 12px;
  font-size: 0.96rem;
}

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

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ai-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.025));
}

.ai-logo {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.ai-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: invert(1);
}

.ai-card p {
  margin-top: 10px;
}

.personal {
  display: grid;
  grid-template-columns: minmax(270px, 0.58fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.personal-media img {
  aspect-ratio: 1 / 1;
}

.personal-copy p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 22px;
  font-size: 1.07rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 42px max(22px, calc((100vw - var(--max-width)) / 2));
  border-top: 1px solid var(--line);
  background: #05070a;
}

.site-footer strong {
  color: var(--text);
  font-size: 1.1rem;
}

.site-footer p {
  max-width: 480px;
  margin-top: 8px;
}

address {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  font-style: normal;
}

address a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

address a:hover {
  border-color: rgba(239, 35, 60, 0.42);
  background: var(--red-soft);
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .about-grid,
  .personal {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 42px;
    min-height: auto;
  }

  .hero-media {
    max-width: 430px;
    justify-self: start;
  }

  .tech-layout,
  .case-grid,
  .ai-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    flex-direction: column;
  }

  address {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding-inline: 18px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 14px auto;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 10, 15, 0.97);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a,
  .site-nav .nav-cta {
    min-height: 48px;
    margin-left: 0;
    justify-content: flex-start;
  }

  .section {
    width: min(100% - 32px, var(--max-width));
    padding: 74px 0;
  }

  .about,
  .cases {
    width: 100%;
    padding-inline: 16px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 44px);
  }

  h1 {
    font-size: clamp(2rem, 10.5vw, 3.2rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.82rem, 9vw, 2.72rem);
  }

  .hero-description,
  .about-text p,
  .personal-copy p:not(.eyebrow) {
    font-size: 1rem;
  }

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

  .hero-actions,
  address {
    display: grid;
  }

  .button,
  address a {
    width: 100%;
  }

  .tech-layout,
  .case-grid,
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .tech-card,
  .case-card,
  .ai-card {
    min-height: 0;
  }

  .ai-card {
    grid-template-columns: 1fr;
  }

  .hero-media::before {
    inset: 12px -10px -12px 10px;
  }

  .media-label {
    position: static;
    margin-top: 12px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
