@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #0d1116;
  --surface: #151b22;
  --line: #2b3540;
  --text: #edf1f2;
  --muted: #a6b2bb;
  --accent: #b8ff70;
  --warm: #f5c995;
  --hero-ink: #030c11;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a:hover {
  color: var(--accent);
}

.wrap {
  max-width: 1170px;
  margin: auto;
  padding: 0 30px;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #0d1116e8;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 75px;
  gap: 20px;
}

.brand {
  font-weight: 850;
  letter-spacing: -0.05em;
  font-size: 23px;
}

.brand span {
  color: var(--accent);
}

.navlinks {
  display: flex;
  gap: 26px;
  font-size: 13px;
  color: var(--muted);
}

.pill {
  border: 1px solid #66745e;
  border-radius: 30px;
  padding: 10px 17px;
  color: var(--accent);
  font-size: 13px;
}

.hero {
  padding: 115px 0 100px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 760px;
  background: #061015;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #061015;
  background-image: url("assets/systems_analytics_hero.jpeg?v=5");
  background-repeat: no-repeat;
  background-position: 78% center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 74% 44%, rgba(86, 255, 183, 0.08), transparent 34%),
    linear-gradient(
      90deg,
      rgba(3, 12, 17, 0.98) 0%,
      rgba(3, 12, 17, 0.94) 28%,
      rgba(3, 12, 17, 0.62) 46%,
      rgba(3, 12, 17, 0.18) 70%,
      rgba(3, 12, 17, 0.08) 100%
    );
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero .eyebrow,
.hero h1,
.hero .lead,
.hero .actions {
  max-width: 650px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.21em;
  font-weight: 750;
}

.hero h1 {
  font-size: clamp(49px, 7.2vw, 91px);
  line-height: 1.02;
  letter-spacing: -0.075em;
  margin: 22px 0 28px;
  max-width: 980px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  font-size: clamp(18px, 2vw, 23px);
  color: #c2ccd2;
  max-width: 760px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 35px;
}

.button {
  display: inline-block;
  padding: 15px 22px;
  border-radius: 7px;
  background: var(--accent);
  color: #111b0b;
  font-weight: 750;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.button:hover {
  color: #111b0b;
  filter: brightness(1.05);
}

.button.secondary {
  background: transparent;
  border: 1px solid #54616b;
  color: var(--text);
}

.button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hero .stats {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 64px;
  padding: 0;
  border: 1px solid rgba(184, 255, 112, 0.18);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(5, 14, 19, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  max-width: 100%;
}

.hero .stat {
  min-height: 142px;
  padding: 27px 28px;
  background: linear-gradient(180deg, rgba(12, 25, 30, 0.8), rgba(5, 14, 19, 0.92));
}

.hero .stat + .stat {
  border-left: 1px solid rgba(184, 255, 112, 0.13);
}

.hero .stat strong {
  display: block;
  font-size: 34px;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
  color: #f3f6f5;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero .stat span {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #b9c5ca;
  max-width: 210px;
  margin-top: 7px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.hero .stat:last-child strong {
  color: var(--accent);
}

.section {
  padding: 94px 0;
  border-top: 1px solid var(--line);
}

h2 {
  font-size: clamp(35px, 4.5vw, 59px);
  letter-spacing: -0.06em;
  line-height: 1.1;
  margin: 14px 0 26px;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 10px 0;
}

.intro {
  max-width: 790px;
  color: var(--muted);
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 27px;
  border-radius: 12px;
}

.card .num {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.card p,
.project p,
.person p {
  color: var(--muted);
  margin-bottom: 0;
}

.band {
  background: #b8ff70;
  color: #10190d;
  padding: 32px;
  border-radius: 12px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.band b {
  font-size: 24px;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.band span {
  max-width: 570px;
  font-size: 14px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.project {
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.tag {
  display: inline-block;
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 800;
}

.project small {
  display: block;
  color: #8997a3;
  margin-top: 5px;
}

.project h3 {
  font-size: 25px;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 35px;
}

.person {
  padding: 28px 30px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.person-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 8px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  border: 1px solid rgba(184, 255, 112, 0.22);
  background: #0a1015;
  display: block;
}

.person .role {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.person h3 {
  font-size: 28px;
  margin: 6px 0 4px;
}

.person-head p {
  margin: 0;
}

.person ul {
  columns: 2;
  column-gap: 36px;
  padding-left: 20px;
  color: #c3cdd4;
  margin: 18px 0 0;
}

.person li {
  break-inside: avoid;
  margin: 10px 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 35px;
}

.step {
  border-top: 3px solid var(--accent);
  padding: 17px 8px 8px 0;
}

.step strong {
  display: block;
  font-size: 17px;
}

.step p {
  color: var(--muted);
  font-size: 13px;
}

.quote {
  font-size: clamp(23px, 3vw, 38px);
  letter-spacing: -0.045em;
  line-height: 1.3;
  max-width: 980px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  margin-top: 36px;
  align-items: start;
}

.contact-copy p {
  color: var(--muted);
  max-width: 480px;
}

.contact-form {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 28px;
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa8b1;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #34404a;
  background: #0d1318;
  color: var(--text);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(184, 255, 112, 0.55);
  box-shadow: 0 0 0 3px rgba(184, 255, 112, 0.12);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-status {
  min-height: 1.4em;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.form-status.ok {
  color: var(--accent);
}

.form-status.err {
  color: #ff9b8a;
}

.footer {
  padding: 65px 0 35px;
  border-top: 1px solid var(--line);
}

.footgrid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-links a {
  color: var(--muted);
}

.company-id {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #9aa8b1;
  font-size: 13px;
  line-height: 1.55;
}

.company-id strong {
  color: var(--text);
  font-weight: 650;
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.consent input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal {
  padding: 90px 0 70px;
}

.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.06em;
  line-height: 1.08;
  margin: 14px 0 20px;
}

.legal-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.legal h2 {
  font-size: 22px;
  margin: 42px 0 12px;
}

.legal p,
.legal li {
  color: #c3cdd4;
  max-width: 820px;
}

.legal ul {
  padding-left: 20px;
}

.legal li {
  margin: 8px 0;
}

.legal code {
  font-size: 0.95em;
  color: var(--accent);
}

.small {
  font-size: 12px;
  color: #84919b;
}

.note {
  font-size: 12px;
  color: #9ba9b2;
  border-left: 2px solid #647b50;
  padding-left: 14px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 90px 0 70px;
  }

  .hero::before {
    background-position: 66% top;
    background-size: cover;
    opacity: 0.55;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(3, 12, 17, 0.55) 0%,
      rgba(3, 12, 17, 0.78) 48%,
      rgba(3, 12, 17, 0.96) 100%
    );
  }

  .hero .eyebrow,
  .hero h1,
  .hero .lead,
  .hero .actions {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(45px, 12vw, 68px);
  }

  .hero .stats {
    margin-top: 240px;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero .stat:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(184, 255, 112, 0.13);
  }

  .hero .stat:nth-child(4) {
    border-top: 1px solid rgba(184, 255, 112, 0.13);
  }

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

@media (max-width: 800px) {
  .person ul {
    columns: 1;
  }

  .navlinks {
    display: none;
  }

  .grid,
  .projects {
    grid-template-columns: 1fr 1fr;
  }

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

  .band {
    display: block;
  }
}

@media (max-width: 620px) {
  .hero::before {
    background-size: cover;
    background-position: 64% top;
  }

  .hero .stats {
    margin-top: 190px;
  }
}

@media (max-width: 550px) {
  .person-head {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
  }

  .avatar {
    width: 72px;
    height: 72px;
  }

  .person h3 {
    font-size: 24px;
  }

  .wrap {
    padding: 0 20px;
  }

  .hero .stats,
  .grid,
  .projects,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero .stat {
    min-height: auto;
  }

  .hero .stat + .stat {
    border-left: 0;
    border-top: 1px solid rgba(184, 255, 112, 0.13);
  }

  .hero h1 {
    font-size: 49px;
  }

  .section {
    padding: 65px 0;
  }
}
