:root {
  --bg: #040507;
  --bg-soft: #0f1116;
  --text: #f2f2f0;
  --muted: #b3b3ad;
  --line: #262a34;
  --accent: #d5f252;
  --accent-soft: #c4ef36;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at 88% 0%, #131722 0%, transparent 48%),
    linear-gradient(180deg, #040507 0%, #06080d 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.017) 0px,
    rgba(255, 255, 255, 0.017) 1px,
    transparent 1px,
    transparent 10px
  );
  opacity: 0.25;
  z-index: -1;
}

.site-header,
.section,
.site-footer {
  width: min(var(--max-width), calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1.25rem 0;
  background: rgba(4, 5, 7, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.brand-name {
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.92rem;
}

.main-nav {
  display: inline-flex;
  gap: 1.35rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: var(--text);
}

.section {
  padding: 5.6rem 0;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 4.5rem;
  min-height: 70vh;
  display: grid;
  align-content: center;
  gap: 1.2rem;
  padding-left: 1.4rem;
  padding-right: 1.4rem;
  border-radius: 1.15rem;
}

.hero-bg-media {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(4, 5, 7, 0.98) 0%,
    rgba(4, 5, 7, 0.9) 34%,
    rgba(4, 5, 7, 0.52) 62%,
    rgba(4, 5, 7, 0.18) 100%
  );
}

.hero > *:not(.hero-bg-media) {
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  margin: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
.brand-name {
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1 {
  font-size: clamp(2rem, 7vw, 4.7rem);
  letter-spacing: -0.03em;
  line-height: 0.98;
  max-width: 15ch;
}

.lead {
  max-width: 65ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.25rem);
}

.mission {
  max-width: 58ch;
  padding-left: 0.95rem;
  border-left: 2px solid var(--accent-soft);
  color: #d8dcd2;
  font-size: clamp(0.97rem, 1.9vw, 1.1rem);
}

.hero-cta {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #111;
}

.btn-primary:hover {
  background: #e3fa7b;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.grid-two {
  display: grid;
  gap: 2.3rem;
  grid-template-columns: 1fr 1.6fr;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.05;
  max-width: 20ch;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(140deg, #0b0e14 0%, #090b11 100%);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
  min-height: 11rem;
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.card-with-image {
  padding: 0;
  overflow: hidden;
}

.card-media {
  width: 100%;
  height: 9.5rem;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  aspect-ratio: 3 / 2;
}

main > .section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

.card-with-image h3,
.card-with-image p {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.card-with-image h3 {
  margin-top: 0.2rem;
}

.card-with-image p {
  padding-bottom: 1.25rem;
}

.card h3 {
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.15rem;
}

.card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.about-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.about-grid p {
  padding: 1rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

.tag-section h2 {
  margin-top: 0.35rem;
}

.tag-groups {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tag-group {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(140deg, #0a0d13 0%, #080a10 100%);
}

.tag-group h3 {
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 13, 18, 0.95);
  color: #d6d8d2;
  font-size: 0.86rem;
  line-height: 1;
}

.tag-cloud-strong span {
  border-color: rgba(196, 239, 54, 0.45);
  color: #ecf3ca;
}

.metrics h2 {
  margin-bottom: 1.6rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metrics-grid article {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.metric-label {
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--accent-soft);
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.metrics-grid h3 {
  margin: 0.45rem 0 0.4rem;
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.metrics-grid p {
  color: var(--muted);
  font-size: 0.95rem;
}

.growth-system {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.6rem;
  align-items: center;
}

.growth-visual {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1rem;
  background: radial-gradient(circle at 58% 28%, rgba(196, 239, 54, 0.06), transparent 48%),
    linear-gradient(145deg, #080b11 0%, #06080d 100%);
}

.map-canvas {
  position: relative;
  margin-top: 0.6rem;
  min-height: 30rem;
}

.map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-lines path {
  fill: none;
  stroke: rgba(215, 222, 198, 0.45);
  stroke-width: 2.2;
}

.core-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(60vw, 22rem);
  height: min(60vw, 22rem);
  max-width: 22rem;
  max-height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 35%, rgba(205, 242, 67, 0.32) 0%, rgba(16, 20, 10, 0.05) 45%),
    linear-gradient(130deg, #2f3518 0%, #0f1510 36%, #091017 100%);
  border: 1px solid rgba(196, 239, 54, 0.26);
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: inset 0 -28px 60px rgba(0, 0, 0, 0.38);
}

.core-orb span {
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.15rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f2f4ee;
}

.core-orb em {
  display: block;
  margin-top: 0.2rem;
  font-style: italic;
  font-weight: 500;
  color: #d6e27f;
}

.node {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}

.node-icon {
  width: 4.1rem;
  height: 4.1rem;
  border-radius: 50%;
  border: 1px solid rgba(215, 222, 198, 0.32);
  background: rgba(8, 12, 16, 0.94);
  display: grid;
  place-items: center;
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.3rem;
  color: #f3f5ef;
}

.node-icon-dashed {
  border-style: dashed;
  border-color: rgba(196, 239, 54, 0.66);
  color: #d8f053;
}

.node p {
  margin: 0;
  color: #d7dacf;
  font-size: 0.93rem;
  text-align: center;
}

.node-start {
  left: 2%;
  top: 16%;
}

.node-strategy {
  left: 38%;
  bottom: 2%;
}

.node-instrumentation {
  right: 2%;
  bottom: 10%;
}

.node-iteration {
  right: 1%;
  top: 14%;
}

.growth-copy h2 {
  margin-bottom: 0.85rem;
}

.growth-copy p {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 1.03rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 3.2rem 0 4rem;
}

.site-footer h2 {
  font-size: clamp(1.3rem, 3.2vw, 2.2rem);
  max-width: 18ch;
}

@media (max-width: 980px) {
  .grid-two {
    grid-template-columns: 1fr;
  }

  .service-list,
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .tag-groups {
    grid-template-columns: 1fr;
  }

  .growth-system {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    gap: 1rem;
  }

  .service-list,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2.4rem;
    padding-left: 1rem;
    padding-right: 1rem;
    gap: 1rem;
  }

  .hero-bg-media {
    object-position: 66% center;
  }

  .hero-cta {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .hero-cta .btn {
    width: 100%;
    min-height: 3rem;
  }

  .lead,
  .mission {
    max-width: none;
  }

  .map-canvas {
    min-height: 26rem;
  }

  .core-orb {
    width: min(72vw, 20rem);
    height: min(72vw, 20rem);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .section,
  .site-footer {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero .lead,
.hero-cta,
.card,
.about-grid p,
.metrics-grid article {
  animation: reveal 600ms ease both;
}

.hero .lead {
  animation-delay: 120ms;
}

.hero-cta {
  animation-delay: 180ms;
}

.card:nth-child(2),
.about-grid p:nth-child(2),
.metrics-grid article:nth-child(2) {
  animation-delay: 90ms;
}

.card:nth-child(3),
.about-grid p:nth-child(3),
.metrics-grid article:nth-child(3) {
  animation-delay: 140ms;
}

.card:nth-child(4),
.metrics-grid article:nth-child(4) {
  animation-delay: 190ms;
}

.header-controls {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.company-ref {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9aa094;
  white-space: nowrap;
}

.site-footer .company-ref {
  margin-top: 0.75rem;
}

.social-links {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c7ccc1;
  text-decoration: none;
  font-size: 0.86rem;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.social-link svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.social-link:hover {
  border-color: rgba(196, 239, 54, 0.45);
  color: #ecf3ca;
  background: rgba(15, 19, 11, 0.55);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
  background: rgba(7, 9, 14, 0.8);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  padding: 0.36rem 0.62rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  background: var(--accent);
  color: #111;
}

@media (max-width: 740px) {
  .header-controls {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .company-ref {
    font-size: 0.7rem;
  }

  .social-link {
    font-size: 0.83rem;
  }

  .lang-switch {
    align-self: flex-start;
  }
}

@media (max-width: 520px) {
  .site-header,
  .section,
  .site-footer {
    width: min(var(--max-width), calc(100% - 1.25rem));
  }

  .section,
  .site-footer {
    padding-top: 3.2rem;
    padding-bottom: 2.5rem;
  }

  h1 {
    font-size: clamp(1.9rem, 12vw, 2.55rem);
    line-height: 1.02;
    max-width: 14ch;
  }

  h2 {
    font-size: clamp(1.35rem, 8.5vw, 1.8rem);
    line-height: 1.08;
  }

  .brand-name {
    font-size: 0.84rem;
  }

  .main-nav {
    gap: 0.85rem;
    padding-bottom: 0;
  }

  .main-nav a {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .card {
    min-height: 0;
  }

  .card-media {
    height: 8.4rem;
  }

  .card h3 {
    font-size: 1.08rem;
  }

  .card p,
  .metrics-grid p {
    font-size: 0.93rem;
  }

  .map-canvas {
    min-height: 23rem;
  }

  .node-icon {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.08rem;
  }

  .node p {
    font-size: 0.83rem;
  }

  .about-grid {
    margin-top: 1rem;
  }

  .about-grid p {
    padding: 0.8rem 0.9rem;
  }

  .tag-group {
    padding: 0.85rem;
  }

  .tag-cloud span {
    font-size: 0.82rem;
    min-height: 1.9rem;
  }

  .metrics h2 {
    margin-bottom: 1.2rem;
  }

  .site-footer .btn {
    width: 100%;
  }
}
