/* Softverno × Azerbaijan Fintech — geo page
   Tokens align with softverno.ru (emerald + slate + Inter) */

:root {
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --brand: #059669;
  --brand-bright: #10b981;
  --brand-soft: #ecfdf5;
  --brand-ink: #047857;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.5rem;
  --max: 72rem;
  --font: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ——— Nav ——— */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav.is-solid {
  background: rgba(255, 255, 255, 0.95);
}

.nav__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__logo img {
  height: 2.35rem;
  width: auto;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--brand-bright);
}

.nav__tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang {
  display: inline-flex;
  border: 1.5px solid var(--line);
  border-radius: 9999px;
  overflow: hidden;
}

.lang button {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  animation: hero-drift 28s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.35) 0%, rgba(2, 6, 23, 0.55) 42%, rgba(2, 6, 23, 0.88) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.55) 0%, rgba(2, 6, 23, 0.15) 55%, rgba(5, 150, 105, 0.12) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) 0 4.5rem;
}

.hero__brand {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

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

.hero__title {
  max-width: 18ch;
  font-size: clamp(1.65rem, 3.6vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.28s forwards;
}

.hero__lead {
  max-width: 38rem;
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(226, 232, 240, 0.92);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.4s forwards;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.52s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img {
    animation: none;
    transform: none;
  }

  .hero__brand,
  .hero__title,
  .hero__lead,
  .hero__cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ——— Sections ——— */
.section {
  padding: 5rem 0;
}

.section--soft {
  background: var(--surface-soft);
}

.section__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 22ch;
}

.section__title em {
  font-style: normal;
  color: var(--brand-bright);
}

.section__text {
  margin: 0;
  max-width: 40rem;
  color: var(--text);
  font-size: 1.05rem;
}

/* ——— Market strip ——— */
.market {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .market {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}

.market__visual {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border-radius: 0;
}

.market__visual img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
}

.market__caption {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.market__points {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.market__points li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.market__points strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.market__points span {
  color: var(--text);
  font-size: 0.95rem;
}

.market__num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ——— Products ——— */
.products {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.product {
  border-bottom: 1px solid var(--line);
}

.product__toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto 1.5rem;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.product__toggle:hover,
.product.is-open .product__toggle {
  color: var(--brand-ink);
}

.product__idx {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.04em;
}

.product__name {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product__meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.product__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.product.is-open .product__panel {
  grid-template-rows: 1fr;
}

.product__panel-inner {
  overflow: hidden;
}

.product__body {
  padding: 0 0 1.5rem 4rem;
  max-width: 46rem;
  color: var(--text);
}

.product__pitch {
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
}

.product__for {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.product__icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--muted);
  transition: transform 0.35s var(--ease), color 0.2s var(--ease);
}

.product.is-open .product__icon {
  transform: rotate(45deg);
  color: var(--brand);
}

@media (max-width: 900px) {
  .nav__tools .btn {
    display: none;
  }
}

@media (max-width: 640px) {
  .product__toggle {
    grid-template-columns: 2.25rem minmax(0, 1fr) 1.5rem;
    gap: 0.65rem;
  }

  .product__body {
    padding-left: 0;
  }

  .product__meta {
    display: none;
  }

  .hero__content {
    padding-bottom: 3rem;
  }
}


/* ——— Sectors (per-sector product lists like banklar) ——— */
.sectors__search {
  display: block;
  margin-top: 1.75rem;
  max-width: 28rem;
}

.sectors__search input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.sectors__search input:focus {
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.sectors-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.sectors-nav__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.sectors-nav__chip span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
}

.sectors-nav__chip:hover {
  border-color: var(--brand-bright);
  color: var(--brand-ink);
  background: var(--brand-soft);
}

#sectors-catalog {
  margin-top: 2rem;
}

.sector-block {
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.sector-block:first-child {
  border-top: 0;
  padding-top: 1rem;
}

.sector-block__head {
  max-width: 46rem;
}

.sector-block__title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.sector-block .products {
  margin-top: 1.75rem;
}

.sectors__empty {
  margin: 1.5rem 0 0;
  color: var(--muted);
}

/* ——— Process ——— */
.process {
  margin-top: 2.5rem;
  display: grid;
  gap: 0;
}

@media (min-width: 800px) {
  .process {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process__step {
  padding: 1.25rem 1.25rem 1.25rem 0;
  border-top: 2px solid var(--brand-bright);
}

.process__step strong {
  display: block;
  margin: 0.35rem 0 0.4rem;
  font-size: 1.05rem;
}

.process__step p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.process__n {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  text-transform: uppercase;
}

/* ——— CTA (legacy unused; contact section below) ——— */
.cta {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

/* ——— Contact form ——— */
.contact {
  background: var(--surface-soft);
  scroll-margin-top: calc(var(--nav-h) + 1rem);
  padding: 5rem 0;
}

#contact-form {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.contact__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact__inner {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
    gap: 3.5rem;
  }
}

.contact__intro .section__title {
  max-width: 16ch;
}

.contact__meta {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.85rem;
  color: var(--text);
  font-size: 0.95rem;
}

.contact__meta a {
  color: var(--brand);
}

.contact__meta a:hover {
  text-decoration: underline;
}

.contact__social {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.contact__social a {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.25rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact__social a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  text-decoration: none;
}

.contact__calc {
  display: inline-flex;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--brand-ink);
}

.contact__form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .contact__form {
    padding: 2rem;
  }
}

.contact__form-title {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.contact__field input,
.contact__field textarea {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border: 1.5px solid var(--line);
  border-radius: 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.contact__field textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact__field input:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.contact__hint {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.contact__agree {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.45;
}

.contact__agree input {
  margin-top: 0.2rem;
  accent-color: var(--brand);
}

.contact__agree a {
  color: var(--brand);
}

.contact__agree a:hover {
  text-decoration: underline;
}

.contact__status {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
}

.contact__status.is-ok {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.contact__status.is-err {
  background: #fef2f2;
  color: #991b1b;
}

.contact__form .btn-submit-gradient {
  margin-top: 0.25rem;
}

.contact__form .btn-submit-gradient i {
  margin-left: 0.25rem;
}

/* ——— Footer ——— */
.footer {
  background: #020617;
  color: #cbd5e1;
  padding: 2rem 0;
}

.footer__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer a:hover {
  color: var(--brand-bright);
}

/* Secondary buttons on dark surfaces (hero) */
.hero .btn-secondary {
  --btn-text: #e2e8f0;
  --btn-border: #64748b;
  --btn-border-hover: #34d399;
  --btn-brand: #34d399;
  --btn-brand-soft: rgba(16, 185, 129, 0.12);
  color: #e2e8f0 !important;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
