:root {
  --ink: #11231b;
  --green: #b8df5c;
  --green-dark: #709b1d;
  --mint: #e8f5c8;
  --paper: #f7f8f2;
  --white: #ffffff;
  --muted: #5e6b64;
  --line: #dbe2d9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 75px;
}

body {
  margin: 0;

  background: var(--paper);
  color: var(--ink);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 17px;
  line-height: 1.55;
}

a {
  color: inherit;
}


/* GALVENĀ NAVIGĀCIJA */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  padding: 14px max(5vw, 24px);

  background: rgba(247, 248, 242, 0.92);
  border-bottom: 1px solid var(--line);

  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;

  text-decoration: none;
}

.brand img {
  display: block;

  width: 190px;
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  font-size: 0.93rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-cta {
  padding: 10px 15px;

  background: var(--ink);
  color: var(--white);

  border: 1px solid var(--ink);
  border-radius: 7px;

  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.nav-cta:hover {
  background: #244737;
  color: var(--white);
}

/* PIRMAIS EKRĀNS */

.hero {
  min-height: 68vh;

  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: start;
  gap: 7vw;

  padding: 95px max(7vw, 28px) 60px;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  max-width: 900px;
  margin: 0 0 26px;

  font-size: clamp(3rem, 6.2vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.hero h1 span {
  color: var(--green-dark);
}

.lead {
  max-width: 700px;
  margin: 0;

  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.lead.hero-intro {
  max-width: 950px;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.hero-intro strong {
  color: var(--ink);
  font-weight: 950;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 34px;
}


/* MAZIE SADAĻU VIRSRAKSTI */

.eyebrow {
  margin-top: 0;

  color: #527018;

  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}


/* POGAS */

.button {
  min-height: 50px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 22px;

  border: 0;
  border-radius: 7px;

  font: inherit;
  font-weight: 750;
  text-decoration: none;

  cursor: pointer;

  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--ink);
  color: var(--white);
}

.primary:hover {
  background: #244737;
}

.secondary {
  background: transparent;
  border: 1px solid var(--ink);
}

.secondary:hover {
  background: var(--ink);
  color: var(--white);
}


/* AUGŠĒJĀ INFORMĀCIJAS KARTĪTE */

.signal-card {
  width: 100%;
  max-width: 500px;
  justify-self: end;

  padding: 28px;

  background: var(--ink);
  color: var(--white);

  border-radius: 18px;
  box-shadow: 18px 18px 0 var(--green);
}

.card-label {
  margin: 0 0 14px;

  color: var(--green);
  font-weight: 750;
}

.metric {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 14px;

  padding: 20px 0;

  border-top: 1px solid #355044;
}

.metric-dot {
  width: 10px;
  height: 10px;

  background: var(--green);
  border-radius: 50%;

  box-shadow: 0 0 0 5px rgba(184, 223, 92, 0.12);
}

.metric>span:last-child {
  line-height: 1.3;
}


/* KOPĪGĀS SADAĻAS */

.section {
  padding: 90px max(7vw, 28px);
  border-top: 1px solid var(--line);
}

h2 {
  max-width: 800px;
  margin: 10px 0 40px;

  font-size: clamp(2.15rem, 4vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}


/* RISINĀJUMU KARTĪTES */

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-three article {
  min-height: 180px;
  padding: 28px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.grid-three h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.grid-three p {
  margin: 0;
  color: var(--muted);
  font-size: inherit;
  line-height: 1.55;
}

#sakartojam h2 {
  max-width: 900px;
  margin: 10px 0 42px;
}

/* SADARBĪBAS MODELIS */

.process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;

  background: var(--mint);
}

.process ol {
  margin: 0;
  padding: 0;

  list-style: none;
}

.process li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;

  padding: 23px 0;

  border-bottom: 1px solid #cadba0;
}

.process li:first-child {
  padding-top: 0;
}

.process li>span {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  background: var(--ink);
  color: var(--green);

  border-radius: 50%;
  font-weight: 800;
}

.process h3 {
  margin: 0 0 5px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.process p {
  margin: 0;
  color: var(--muted);
}


/* KONTAKTI UN PIETEIKUMA FORMA */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;

  padding: 95px max(7vw, 28px);

  background: var(--ink);
  color: var(--white);
}

.contact h2 {
  margin-bottom: 22px;
}

.contact>div>p:not(.eyebrow) {
  max-width: 600px;
  color: #bdc9c2;
}

.contact>div>a {
  display: inline-block;
  margin-top: 14px;

  color: var(--green);

  font-size: 1.2rem;
  font-weight: 750;
}

.contact form {
  display: grid;
  gap: 16px;

  padding: 28px;

  background: #172d23;

  border: 1px solid #355044;
  border-radius: 14px;
}

.contact label {
  display: grid;
  gap: 7px;

  font-size: 0.9rem;
  font-weight: 650;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 13px 14px;

  background: #0f2119;
  color: var(--white);

  border: 1px solid #4a6257;
  border-radius: 6px;

  font: inherit;
}

.contact textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.55;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: #9baba2;
  opacity: 1;
}

.contact .button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.contact input:focus,
.contact textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.contact .primary {
  background: var(--green);
  color: var(--ink);
}

.contact .primary:hover {
  background: #c8ec72;
}

.form-note {
  margin: 0;

  color: #9baba2;
  font-size: 0.82rem;
}


/* LAPAS APAKŠDAĻA */

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;

  padding: 25px max(7vw, 28px);

  background: #09150f;
  color: #aebbb4;

  font-size: 0.85rem;
}


/* PLANŠETES UN MAZĀKI DATORU EKRĀNI */

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 5vw;
  }

  .hero h1 {
    font-size: clamp(3rem, 6vw, 5.2rem);
  }

  nav {
    gap: 18px;
  }
}


/* TELEFONU SKATS */

@media (max-width: 780px) {
  section {
    scroll-margin-top: 70px;
  }

  .nav {
    padding: 12px 20px;
  }

  .brand img {
    width: 160px;
  }

  nav>a:not(.nav-cta) {
    display: none;
  }

  .hero,
  .process,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 55px;

    padding-top: 60px;
    padding-bottom: 80px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 5rem);
    letter-spacing: -0.055em;
  }

  .signal-card {
    max-width: none;
    justify-self: stretch;

    box-shadow: 9px 9px 0 var(--green);
  }

  .grid-three {
    grid-template-columns: 1fr;
  }

  .grid-three article {
    min-height: 190px;
  }

  .grid-three h3 {
    margin-top: 20px;
  }

  .section,
  .contact {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  footer {
    flex-direction: column;
    gap: 12px;
  }
}


/* MAZI TELEFONI */

@media (max-width: 480px) {
  .nav {
    padding: 12px 16px;
  }

  .brand img {
    width: 135px;
  }

  .nav-cta {
    padding: 9px 11px;
    font-size: 0.78rem;
  }

  .hero {
    padding: 48px 20px 70px;
  }

  .hero h1 {
    margin-bottom: 22px;

    font-size: clamp(2.8rem, 15vw, 4.2rem);
    line-height: 0.96;
  }

  .lead {
    font-size: 1.05rem;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .actions .button {
    width: 100%;
  }

  .signal-card {
    padding: 22px;
  }

  .section,
  .contact {
    padding-right: 20px;
    padding-left: 20px;
  }

  .contact form {
    padding: 20px;
  }
}


/* SAMAZINĀTAS ANIMĀCIJAS */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}