:root {
  --bg: #000000;
  --bg-elevated: #121212;
  --card: #1e1e1e;
  --border: #333333;
  --text: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #76c92d;
  --accent-dark: #5a9e22;
  --accent-muted: rgba(118, 201, 45, 0.15);
  --light-bg: #f4f6f8;
  --light-text: #121412;
  --light-muted: #4b5563;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 1.75rem 0 0;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 80% at 80% 10%, rgba(180, 255, 90, 0.35), transparent 55%),
    linear-gradient(160deg, #083d12 0%, #0d8a28 42%, #76c92d 100%);
  overflow: hidden;
}

.hero__bar {
  position: absolute;
  top: 0.15rem;
  right: 0.85rem;
  left: 0.85rem;
  z-index: 6;
}

.hero__bar-inner {
  display: flex;
  justify-content: flex-end;
  min-height: 2.5rem;
  align-items: center;
  width: 100%;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 1.3rem;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 550;
}

.nav__links a:hover {
  color: #fff;
  text-decoration: none;
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 4.25rem;
}

.hero__logo {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.eyebrow {
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero h1 {
  margin-bottom: 0.9rem;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero__subtitle {
  max-width: 36rem;
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.hero__role {
  max-width: 36rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero__preview {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-bottom: -2.35rem;
}

.hero__phone {
  width: min(62%, 228px);
  height: auto;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.4));
}

.hero__wave {
  position: relative;
  z-index: 2;
  line-height: 0;
  margin-top: -0.5rem;
  margin-bottom: -1px;
  pointer-events: none;
}

.hero__wave svg {
  display: block;
  width: 100%;
  height: 72px;
}

.hero__wave path {
  fill: var(--bg);
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: 1.5rem;
  }

  .hero__copy {
    flex-direction: row;
    gap: 2rem;
    padding-top: 4.5rem;
  }

  .hero__logo {
    width: 150px;
    height: 150px;
    border-radius: 34px;
    flex-shrink: 0;
  }

  .hero__copy-main {
    padding-top: 0.6rem;
  }

  .hero__preview {
    margin-bottom: -8.75rem;
    padding-top: 2.25rem;
    padding-bottom: 2rem;
  }

  .hero__phone {
    width: min(100%, 320px);
  }

  .hero__wave svg {
    height: 136px;
  }
}

/* ---------- Facts ---------- */
.facts {
  padding: 1rem 0 2.25rem;
}

@media (min-width: 900px) {
  .facts {
    padding-top: 0;
  }
}

.facts__grid {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (min-width: 700px) {
  .facts__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.facts dt {
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.facts dd {
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section {
  padding: 4.25rem 0;
  scroll-margin-top: 1rem;
}

.section--alt {
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.9), #000);
  border-top: 1px solid rgba(51, 51, 51, 0.65);
  border-bottom: 1px solid rgba(51, 51, 51, 0.35);
}

.section--light {
  background: var(--light-bg);
  color: var(--light-text);
}

.section__head {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section__head h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section__head p {
  color: var(--text-secondary);
}

.section--light .section__head p {
  color: var(--light-muted);
}

/* Screens */
.shot-wide {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.shot-wide img {
  width: min(100%, 440px);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

.shot-wide figcaption,
.shots figcaption {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.shot-wide figcaption strong {
  color: var(--text);
}

@media (min-width: 800px) {
  .shot-wide {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .shot-wide--widget {
    margin-top: 3rem;
    margin-bottom: 0;
  }

  .shot-wide--widget img {
    order: 2;
  }

  .shot-wide--widget figcaption {
    order: 1;
  }
}

.shots {
  display: grid;
  gap: 2rem;
  max-width: 940px;
  margin: 0 auto;
}

.shots figure {
  text-align: center;
}

.shots img {
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto 0.9rem;
  border-radius: 1.35rem;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.45));
}

@media (min-width: 800px) {
  .shots {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .shots img {
    width: 100%;
  }
}

/* Problem */
.two-col {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
  }
}

.two-col h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.problem-list {
  display: grid;
  gap: 0.9rem;
}

.problem-list li {
  padding: 1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.problem-list strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text);
}

/* Loop */
.loop {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  counter-reset: none;
}

@media (min-width: 640px) {
  .loop {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .loop {
    grid-template-columns: repeat(6, 1fr);
  }
}

.loop li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.loop__n {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-bottom: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: #0b1605;
  font-weight: 800;
  font-size: 0.9rem;
}

.loop small {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Scope */
.scope {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .scope {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scope article {
  padding: 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.scope h3 {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.scope li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
}

.scope li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Features */
.features {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.features article {
  padding: 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.features h3 {
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

.features p {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* Architecture */
.arch {
  display: grid;
  gap: 0;
  max-width: 940px;
  margin-inline: auto;
}

.arch__row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .arch__row--clients {
    grid-template-columns: repeat(2, 1fr);
  }

  .arch__row--api {
    grid-template-columns: 1.8fr 1fr;
  }

  .arch__row--data {
    grid-template-columns: repeat(4, 1fr);
  }
}

.arch__box {
  padding: 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.arch__box h3 {
  margin-bottom: 0.4rem;
  font-size: 1.02rem;
}

.arch__box h3:last-child {
  margin-bottom: 0;
  text-align: center;
}

.arch__box--core .modules {
  margin-bottom: 0;
}

.arch__box p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.arch__box--core {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(118, 201, 45, 0.12), var(--card));
}

.arch__box--jobs p + p {
  margin-top: 0.25rem;
}

.modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.modules li {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.arch__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.arch__link::before,
.arch__link::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--border);
}

.arch__link span::before {
  content: "↓ ";
  color: var(--accent);
}

/* Challenges */
.challenges {
  display: grid;
  gap: 1.25rem;
  max-width: 940px;
  margin-inline: auto;
}

.challenges article {
  padding: 1.5rem 1.5rem 1.4rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.05);
}

.challenges__n {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.challenges h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.challenges p {
  color: var(--light-muted);
}

.challenges p + p {
  margin-top: 0.6rem;
}

.challenges strong {
  color: var(--light-text);
}

/* Numbers */
.band {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  background: linear-gradient(180deg, #0f9a32, #76c92d);
  color: #fff;
  text-align: center;
}

.band__dots {
  position: absolute;
  top: 1.5rem;
  left: 6%;
  width: 110px;
  height: 110px;
  background-image: radial-gradient(#0b2a10 1.6px, transparent 1.7px);
  background-size: 14px 14px;
  opacity: 0.35;
}

@media (max-width: 899px) {
  .band__dots {
    display: none;
  }
}

.band h2 {
  position: relative;
  margin-bottom: 2rem;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em;
}

.stats {
  position: relative;
  display: grid;
  gap: 1.5rem 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 800px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .stats {
    grid-template-columns: repeat(5, 1fr);
  }
}

.stats strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.stats span {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
}

/* Stack */
.stack {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .stack {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stack > div {
  padding: 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stack h3 {
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-size: 1.05rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tags li {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Footer */
.footer {
  padding: 2.25rem 0 2.75rem;
  border-top: 1px solid var(--border);
  background: #000;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer a {
  color: var(--text-secondary);
}

.footer a:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
