/* =========
   Bāzes stili
   ========= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #0f172a;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.18), #020617);
  min-height: 100vh;
  line-height: 1.6;
}

.page--inner {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 45%),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.2), #020617);
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

h1,
h2,
h3 {
  color: #f9fafb;
  letter-spacing: -0.03em;
}

p {
  color: #cbd5f5;
}

/* =========
   Galvene
   ========= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #e5e7eb;
}

.logo__mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.9rem;
  background: conic-gradient(
    from 160deg,
    #22d3ee,
    #6366f1,
    #ec4899,
    #22d3ee
  );
  display: grid;
  place-items: center;
  color: #0b1120;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow:
    0 10px 25px rgba(15, 23, 42, 0.6),
    0 0 0 1px rgba(15, 23, 42, 0.6);
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__name {
  font-weight: 600;
  font-size: 1.05rem;
}

.logo__tagline {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* =========
   Navigācija
   ========= */

.main-nav {
  position: relative;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav__list a {
  font-size: 0.9rem;
  color: #cbd5f5;
  position: relative;
  padding-block: 0.35rem;
}

.main-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #22d3ee, #6366f1);
  transition: width 0.2s ease-out;
}

.main-nav__list a:hover::after {
  width: 100%;
}

.main-nav__list a.is-active {
  color: #e5e7eb;
  font-weight: 500;
}

.main-nav__list a.is-active::after {
  width: 100%;
}

.main-nav__toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top, rgba(148, 163, 184, 0.5), transparent),
    rgba(15, 23, 42, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.main-nav__burger,
.main-nav__burger::before,
.main-nav__burger::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav__burger::before,
.main-nav__burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.main-nav__burger::before {
  top: -0.3rem;
}

.main-nav__burger::after {
  top: 0.3rem;
}

.main-nav__toggle[aria-expanded="true"] .main-nav__burger {
  transform: rotate(45deg);
}

.main-nav__toggle[aria-expanded="true"] .main-nav__burger::before {
  transform: rotate(-90deg) translateX(-0.3rem);
}

.main-nav__toggle[aria-expanded="true"] .main-nav__burger::after {
  opacity: 0;
}

/* =========
   Pogas
   ========= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s ease-out,
    color 0.15s ease-out,
    box-shadow 0.15s ease-out,
    transform 0.1s ease-out;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(120deg, #22c55e, #22d3ee, #6366f1);
  color: #020617;
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.8),
    0 0 0 1px rgba(15, 23, 42, 0.7);
}

.btn--primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.8);
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
}

.btn--ghost:hover {
  background: rgba(15, 23, 42, 0.95);
}

.btn--large {
  padding: 0.85rem 1.9rem;
}

.btn--block {
  width: 100%;
}

/* =========
   Sadaļas
   ========= */

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 3rem;
  align-items: center;
}

.hero__kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a5b4fc;
  margin: 0 0 0.6rem;
}

.hero__title {
  font-size: clamp(2.3rem, 3vw + 1rem, 3rem);
  margin: 0 0 1rem;
}

.hero__title span {
  background: linear-gradient(120deg, #22c55e, #22d3ee, #6366f1);
  -webkit-background-clip: text;
  color: transparent;
}

.hero__text {
  max-width: 32rem;
  margin: 0 0 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

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

.hero-metrics__item dt {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e5e7eb;
}

.hero-metrics__item dd {
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  color: #9ca3af;
}

.hero__visual {
  position: relative;
}

.hero-card {
  position: relative;
  padding: 1.6rem 1.7rem;
  border-radius: 1.3rem;
  background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.15), transparent),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  z-index: 1;
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.hero-card p {
  margin: 0;
  font-size: 0.9rem;
}

.hero-glass-grid {
  position: absolute;
  inset: -1.2rem -1.2rem auto auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  opacity: 0.9;
}

.hero-glass-grid__item {
  width: 5.1rem;
  aspect-ratio: 1 / 1;
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 20% 0%, rgba(148, 163, 184, 0.85), transparent),
    rgba(15, 23, 42, 0.94);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.9);
}

.hero-glass-grid__item--2 {
  background: radial-gradient(circle at 10% 0%, rgba(34, 197, 94, 0.9), transparent),
    rgba(15, 23, 42, 0.9);
}

.hero-glass-grid__item--3 {
  background: radial-gradient(circle at 0 20%, rgba(34, 211, 238, 0.9), transparent),
    rgba(15, 23, 42, 0.9);
}

.hero-glass-grid__item--4 {
  background: radial-gradient(circle at 80% 0, rgba(129, 140, 248, 0.9), transparent),
    rgba(15, 23, 42, 0.9);
}

.section {
  padding: 2.8rem 0;
}

.section--light {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 1));
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom: 1px solid rgba(30, 64, 175, 0.5);
}

.section--gradient {
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.2), transparent),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.25), #020617);
  border-top: 1px solid rgba(34, 211, 238, 0.4);
  border-bottom: 1px solid rgba(129, 140, 248, 0.5);
}

.section--cta {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.section__header {
  margin-bottom: 1.8rem;
}

.section__header h2 {
  margin: 0 0 0.4rem;
}

.section__header p {
  margin: 0;
}

.section__header--center {
  text-align: center;
}

.section__split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2.3rem;
  align-items: start;
}

.section__split--center {
  align-items: center;
}

.section__actions {
  display: flex;
  justify-content: flex-end;
}

/* =========
   Flīzes un kartes
   ========= */

.tiles {
  display: grid;
  gap: 1.4rem;
}

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

.tiles--stretch {
  grid-auto-rows: 1fr;
}

.tile {
  padding: 1.4rem 1.5rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.2), transparent),
    rgba(15, 23, 42, 0.96);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.9);
}

.tile h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.tile p {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
}

.tile__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: #9ca3af;
}

.tile__list li + li {
  margin-top: 0.2rem;
}

.tile--service {
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.15), transparent),
    rgba(15, 23, 42, 0.97);
}

.tile--sector {
  background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent),
    rgba(15, 23, 42, 0.97);
}

.card {
  padding: 1.4rem 1.5rem;
  border-radius: 1.2rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.card--shadow {
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.9);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.checklist li::before {
  content: "✓";
  font-size: 0.85rem;
  color: #4ade80;
  margin-top: 0.1rem;
}

.checklist li + li {
  margin-top: 0.3rem;
}

.stats-card {
  padding: 1.4rem 1.5rem;
  border-radius: 1.2rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.9);
}

.stats-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.stats-card__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 0.8rem 0 0;
}

.stats-card__grid dt {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e5e7eb;
}

.stats-card__grid dd {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* =========
   Soļi
   ========= */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.steps__item {
  padding: 1.2rem 1.25rem;
  border-radius: 1.2rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.9);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: flex-start;
}

.steps__number {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: radial-gradient(circle at top, #22c55e, #22d3ee);
  color: #020617;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.steps__item h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.steps__item p {
  margin: 0;
  font-size: 0.85rem;
}

/* =========
   Iekšlapas
   ========= */

.page-hero {
  padding: 2.6rem 0 1.8rem;
}

.page-hero__kicker {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a5b4fc;
  margin: 0 0 0.5rem;
}

.page-hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.4rem);
}

.page-hero__text {
  max-width: 34rem;
  margin: 0;
}

/* =========
   Komanda
   ========= */

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

.team-card {
  padding: 1.3rem 1.4rem;
  border-radius: 1.3rem;
  background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.22), transparent),
    rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(96, 165, 250, 0.6);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
}

.team-card__avatar {
  width: 100%;
  aspect-ratio: 3 / 1;
  border-radius: 1rem;
  background: linear-gradient(120deg, #22c55e, #22d3ee, #6366f1, #ec4899);
  background-size: 180% 180%;
  animation: gradientShift 12s ease infinite;
  opacity: 0.9;
}

.team-card__body h2 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
}

.team-card__role {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  color: #a5b4fc;
}

.team-card__meta {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: #9ca3af;
}

.team-card__meta li + li {
  margin-top: 0.2rem;
}

/* =========
   Kontakti
   ========= */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 3fr);
  gap: 2rem;
}

.contact-card {
  padding: 1.5rem 1.6rem;
  border-radius: 1.3rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent),
    rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.95);
}

.contact-card h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.contact-card__item {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.contact-card__item span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
}

.contact-card__item a {
  color: #e5e7eb;
}

.contact-form {
  padding: 1.5rem 1.6rem;
  border-radius: 1.3rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.95);
}

.contact-form h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

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

.form-field {
  margin-top: 0.8rem;
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  color: #e5e7eb;
  margin-bottom: 0.25rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  padding: 0.45rem 0.65rem;
  font: inherit;
  font-size: 0.86rem;
  color: #e5e7eb;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.4);
  background: rgba(15, 23, 42, 0.98);
}

.form-field--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #cbd5f5;
}

.form-field--checkbox input {
  width: auto;
  margin-top: 0.15rem;
}

.form-note {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.map-placeholder {
  margin-top: 1.3rem;
  border-radius: 1.3rem;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: repeating-linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.9) 6px,
      rgba(15, 23, 42, 1) 6px,
      rgba(15, 23, 42, 1) 12px
    );
  padding: 3rem 1rem;
  display: grid;
  place-items: center;
}

.map-placeholder span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
}

/* =========
   Kājene
   ========= */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617);
  margin-top: 1.5rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 1.5rem;
  padding: 1.8rem 0 1.4rem;
}

.site-footer__brand {
  margin: 0 0 0.3rem;
  font-weight: 600;
  color: #e5e7eb;
}

.site-footer__col h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

.site-footer__col p,
.site-footer__col ul {
  margin: 0;
  font-size: 0.82rem;
  color: #9ca3af;
}

.site-footer__col ul {
  list-style: none;
  padding: 0;
}

.site-footer__col li + li {
  margin-top: 0.15rem;
}

.site-footer__col a {
  color: #cbd5f5;
}

.site-footer__bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  background: #020617;
}

.site-footer__bottom-inner {
  padding: 0.8rem 0 1rem;
  font-size: 0.78rem;
  color: #6b7280;
}

/* =========
   Animācijas
   ========= */

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* =========
   Responsivitāte
   ========= */

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr);
  }

  .hero__visual {
    margin-top: 1rem;
  }

  .section__split,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-card__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tiles--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 768px) {
  .main-nav__toggle {
    display: flex;
  }

  .main-nav__list {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    flex-direction: column;
    align-items: flex-start;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 1rem;
    padding: 0.6rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
    min-width: 13rem;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

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

  .hero {
    padding-top: 2.4rem;
  }

  .section {
    padding: 2.2rem 0;
  }

  .tiles--three {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

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

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 2rem, 540px);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .section__split {
    gap: 1.6rem;
  }
}

