:root {
  --bg: #030812;
  --panel: rgba(5, 15, 28, 0.82);
  --line: rgba(36, 190, 255, 0.25);
  --text: #f4f8ff;
  --muted: #a9b6c8;
  --blue: #1597ff;
  --cyan: #22e0ff;
  --brand-font: "Segoe UI", Arial, sans-serif;
  --body-font: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
}

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

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  z-index: 1000;
  background: rgba(2, 8, 16, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1400px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 300px;
}

.brand img {
  width: 260px;
  height: 260px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  flex: 1;
}

.nav a {
  font-family: var(--brand-font);
  font-size: 20px;
  font-weight: 500;
  color: #b8c0cc;
  letter-spacing: 0.8px;
  transition: 0.25s;
}

.nav a:hover {
  color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 300px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 21, 36, 0.8);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  transition: 0.3s;
}

.lang-toggle:hover {
  border-color: var(--cyan);
  background: linear-gradient(135deg, #0078d4, #50e6ff);
  box-shadow: 0 0 18px rgba(80, 230, 255, 0.45);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 21, 36, 0.8);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 32px;
  border-radius: 999px;
  border: 1px solid rgba(34, 224, 255, 0.5);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  font-family: var(--brand-font);
  font-size: 13px;
  letter-spacing: 0.3px;
  box-shadow: 0 0 32px rgba(21, 151, 255, 0.35);
  transition: 0.25s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(34, 224, 255, 0.5);
}

.btn-small {
  padding: 18px 32px;
  font-size: 16px;
  font-weight: 600;
}

.btn.ghost {
  background: rgba(5, 15, 28, 0.65);
  box-shadow: none;
}

/* LAYOUT */

.container {
  width: min(1400px, calc(100% - 80px));
  margin: 0 auto;
}

/* HERO */

.hero {
  min-height: 100vh;
  position: relative;
  padding-top: 96px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 8, 18, 0.95), rgba(3, 8, 18, 0.45)),
    url("assets/background.png") center / cover no-repeat;
  opacity: 0.95;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 40%, rgba(34, 224, 255, 0.18), transparent 36%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.eyebrow {
  color: var(--cyan);
  font-family: var(--brand-font);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 3px;
  margin: 0 0 24px;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: var(--brand-font);
  font-weight: 400;
  color: #eef3fb;
}

h1 {
  font-size: 54px;
  line-height: 1.15;
  letter-spacing: -2px;
}

h2 {
  font-size: 54px;
  line-height: 1.15;
  letter-spacing: -2px;
}

h3 {
  font-family: var(--body-font);
  font-size: 20px;
  font-weight: 700;
}

.lead {
  max-width: 720px;
  font-size: 20px;
  line-height: 1.5;
  color: #eef6ff;
  margin: 30px 0 36px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 22px;
  background: rgba(5, 15, 28, 0.65);
  color: #dceeff;
  transition: 0.25s;
}

.trust-row span:hover {
  background: linear-gradient(135deg, #0078d4, #50e6ff);
  border-color: #50e6ff;
  color: white;
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 0 12px rgba(80, 230, 255, 0.55),
    0 0 28px rgba(0, 120, 212, 0.45),
    inset 0 0 18px rgba(80, 230, 255, 0.18);
}

/* HERO CARD */

.hero-card {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 26px;
  background: rgba(4, 13, 25, 0.74);
  box-shadow: 0 0 60px rgba(0, 140, 255, 0.18);
}

.hero-card img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
}

.stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.stats div {
  padding: 30px 18px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: none;
}

.stats strong,
.stats span {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: #ffffff;
}

.stats strong {
  margin-bottom: 6px;
}

.stats span {
  color: #d7e8f7;
}

/* SECTIONS */

.section {
  padding: 120px 0;
  background: linear-gradient(180deg, #030812, #06101d);
}

/* PORTFOLIO */

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

.card,
.process div {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 30px;
  background: linear-gradient(180deg, rgba(7, 23, 42, 0.92), rgba(3, 10, 20, 0.85));
  transition: 0.25s;
}

.card {
  min-height: 240px;
}

.card:hover,
.process div:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 224, 255, 0.65);
}

.card h3,
.process h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 22px;
}

.card p,
.process p,
.about p,
.contact p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.7;
  color: #ffffff;
  margin: 0;
}

/* PROCESS */

.process-section {
  background:
    radial-gradient(circle at center, rgba(21, 151, 255, 0.18), transparent 42%),
    #030812;
}

.process {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* ABOUT / CONTACT */

.about-grid,
.contact-grid {
  display: grid;
  gap: 80px;
  align-items: start;
}

.about-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-grid {
  grid-template-columns: 0.8fr 0.7fr;
}

.about-grid > p {
  margin-top: 55px;
}

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 650px;
  justify-self: end;
  width: 100%;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(4, 13, 25, 0.75);
  color: #ffffff;
  padding: 18px 20px;
  font-family: var(--body-font);
  font-size: 18px;
  font-weight: 400;
  outline: none;
}

textarea {
  min-height: 120px;
}

input::placeholder,
textarea::placeholder {
  color: #8fa2b7;
}

input:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(34, 224, 255, 0.18);
}

.contact-form .btn {
  padding: 14px 24px;
  font-size: 13px;
}

/* FOOTER */

footer {
  padding: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  background: #02060c;
  color: var(--muted);
  text-align: center;
}

footer div {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

footer a {
  margin: 0;
}

/* LEGAL PAGES */

.legal-page {
  min-height: 100vh;
  padding-top: 140px;
  align-items: flex-start;
}

.legal-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding-bottom: 120px;
}

.legal-content h2 {
  margin-bottom: 40px;
}

.legal-content h3 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: 26px;
  color: #ffffff;
}

.legal-content p,
.legal-content li {
  font-size: 18px;
  line-height: 1.8;
  color: #d7e8f7;
}

/* REFERENCES PAGE */

.references-page {
  min-height: auto;
  padding-top: 150px;
  padding-bottom: 120px;
  align-items: flex-start;
  overflow: visible;
}

.references-page .hero-bg {
  opacity: 0.78;
}

.references-content {
  position: relative;
  z-index: 2;
}

.references-hero-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 30px;
  align-items: stretch;
  margin-bottom: 28px;
}

.references-hero-copy,
.references-proof-panel,
.reference-note,
.reference-card,
.reference-cta {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 23, 42, 0.9), rgba(3, 10, 20, 0.82));
  box-shadow:
    0 0 55px rgba(0, 140, 255, 0.16),
    inset 0 0 24px rgba(34, 224, 255, 0.035);
  backdrop-filter: blur(18px);
}

.references-hero-copy {
  border-radius: 34px;
  padding: 46px;
}

.references-hero-copy h1 {
  max-width: 680px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.14;
  letter-spacing: -1px;
}

.references-lead,
.references-text {
  max-width: 680px;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.5;
  color: #eef6ff;
  font-weight: 400;
  margin: 18px 0 0;
}

.reference-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.reference-pill-row span {
  border: 1px solid rgba(34, 224, 255, 0.3);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(5, 15, 28, 0.72);
  color: #dceeff;
  font-size: 15px;
  transition: 0.25s;
}

.reference-pill-row span:hover {
  color: white;
  border-color: var(--cyan);
  background: linear-gradient(135deg, #0078d4, #50e6ff);
  transform: translateY(-3px);
}

.references-proof-panel {
  border-radius: 34px;
  padding: 34px;
}

.references-proof-panel h2 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.references-proof-panel p {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: #d7e8f7;
}

.references-metrics {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.reference-metric {
  border: 1px solid rgba(34, 224, 255, 0.22);
  border-radius: 22px;
  padding: 22px 18px;
  background: rgba(4, 13, 25, 0.72);
}

.reference-metric strong {
  display: block;
  font-size: 34px;
  color: #ffffff;
  margin-bottom: 10px;
}

.reference-metric span {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  color: #b9cada;
}

.reference-note {
  border-radius: 28px;
  padding: 24px 28px;
  margin-bottom: 26px;
}

.reference-note strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 20px;
}

.reference-note p {
  margin: 0;
  color: #d7e8f7;
  font-size: 17px;
  line-height: 1.7;
}

.reference-filter-bar {
  position: sticky;
  top: 112px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 -6px 48px;
  padding: 14px 6px;
  background: rgba(3, 8, 18, 0.78);
  border-bottom: 1px solid rgba(34, 224, 255, 0.12);
  backdrop-filter: blur(18px);
}

.reference-filter {
  min-height: 46px;
  border: 1px solid rgba(34, 224, 255, 0.28);
  border-radius: 999px;
  padding: 11px 18px;
  background: rgba(5, 15, 28, 0.8);
  color: #d7e8f7;
  font-family: var(--brand-font);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.25s;
}

.reference-filter:hover,
.reference-filter.is-active {
  color: white;
  border-color: var(--cyan);
  background: linear-gradient(135deg, #0078d4, #50e6ff);
  transform: translateY(-2px);
}

.reference-section-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
  margin-bottom: 34px;
}

.reference-section-head h2 {
  font-size: clamp(36px, 4vw, 54px);
}

.reference-section-head p {
  max-width: 520px;
  margin: 0;
  color: #d7e8f7;
  font-size: 18px;
  line-height: 1.7;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.reference-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  border-radius: 30px;
  padding: 30px;
  overflow: hidden;
  transition: 0.25s;
}

.reference-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 224, 255, 0.62);
}

.reference-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.reference-category,
.reference-impact {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.reference-category {
  border: 1px solid rgba(34, 224, 255, 0.3);
  background: rgba(34, 224, 255, 0.09);
  color: #7deeff;
}

.reference-impact {
  border: 1px solid rgba(21, 151, 255, 0.32);
  background: rgba(21, 151, 255, 0.12);
  color: #ffffff;
}

.reference-card h3 {
  margin-bottom: 16px;
  font-size: 26px;
  line-height: 1.18;
  color: #ffffff;
}

.reference-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #d7e8f7;
}

.reference-card ul {
  margin: 20px 0 22px;
  padding-left: 19px;
}

.reference-card li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.55;
  color: #b9cada;
}

.reference-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.reference-tags span {
  border: 1px solid rgba(34, 224, 255, 0.18);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(4, 13, 25, 0.7);
  color: #b9cada;
  font-size: 13px;
}

.reference-details {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(34, 224, 255, 0.18);
}

.reference-details summary {
  color: var(--cyan);
  cursor: pointer;
  font-family: var(--brand-font);
  font-size: 16px;
  font-weight: 500;
  list-style: none;
}

.reference-details summary::-webkit-details-marker {
  display: none;
}

.reference-details summary::after {
  content: " +";
}

.reference-details[open] summary::after {
  content: " –";
}

.reference-details div {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.reference-details p {
  font-size: 15px;
  line-height: 1.65;
  color: #b9cada;
}

.reference-details strong {
  color: #ffffff;
  font-weight: 600;
}

.reference-card.is-hidden {
  display: none;
}

.reference-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  border-radius: 34px;
  padding: 38px;
  margin-top: 34px;
}

.reference-cta h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 52px);
}

.reference-cta p:not(.eyebrow) {
  max-width: 800px;
  margin: 0;
  color: #d7e8f7;
  font-size: 18px;
  line-height: 1.7;
}

.reference-cta-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

/* TABLET */

@media (max-width: 1200px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .references-hero-layout,
  .reference-cta {
    grid-template-columns: 1fr;
  }

  .cards,
  .process,
  .reference-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    max-width: 100%;
    justify-self: stretch;
  }
}

/* MOBILE */

@media (max-width: 768px) {
  .site-header {
    height: 82px;
  }

  .header-inner {
    position: relative;
    width: calc(100% - 24px);
    gap: 8px;
  }

  .brand {
    flex: 1;
    flex-basis: auto;
    order: 1;
  }

  .brand img {
    width: 88px;
    height: auto;
  }

  .header-actions {
    order: 2;
    flex: 0 0 auto;
    gap: 8px;
  }

  .lang-toggle {
    width: 54px;
    height: 48px;
    font-size: 15px;
  }

  .btn-small {
    display: inline-flex;
    padding: 14px 18px;
    font-size: 14px;
  }

  .menu-toggle {
    order: 3;
    display: inline-flex;
    width: 52px;
    height: 52px;
    font-size: 28px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    background: rgba(2, 8, 16, 0.98);
    border: 1px solid var(--line);
    border-radius: 0 0 24px 24px;
    backdrop-filter: blur(18px);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 16px 18px;
    font-size: 18px;
    border-bottom: 1px solid rgba(36, 190, 255, 0.14);
  }

  .nav a:hover {
    background: rgba(34, 224, 255, 0.08);
    color: var(--cyan);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .container {
    width: calc(100% - 28px);
    max-width: 100%;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-top: 120px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-copy,
  .hero-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .eyebrow {
    font-size: 18px;
    letter-spacing: 2px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -1px;
  }

  h2 {
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -1px;
  }

  .lead {
    font-size: 18px;
    line-height: 1.55;
  }

  .trust-row {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .trust-row span {
    width: 100%;
    text-align: center;
    font-size: 15px;
  }

  .hero-card {
    padding: 18px;
  }

  .stats,
  .cards,
  .process,
  .reference-grid,
  .references-metrics {
    grid-template-columns: 1fr;
  }

  .stats div {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .stats div:last-child {
    border-bottom: none;
  }

  .section {
    padding: 90px 0;
  }

  .card,
  .process div {
    width: 100%;
    min-height: auto;
    padding: 28px;
  }

  .card h3,
  .process h3 {
    font-size: 22px;
  }

  .card p,
  .process p,
  .about p,
  .contact p {
    font-size: 18px;
    line-height: 1.65;
  }

  .about-grid,
  .contact-grid {
    gap: 34px;
  }

  .about-grid > p {
    margin-top: 0;
  }

  .legal-page,
  .references-page {
    padding-top: 112px;
  }

  .legal-content h2 {
    font-size: 34px;
  }

  .reference-filter-bar {
    position: static;
    margin-bottom: 34px;
  }

  .reference-section-head {
    display: block;
  }

  .reference-section-head p {
    margin-top: 16px;
  }

  .reference-card {
    min-height: auto;
  }

  .reference-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .reference-cta-actions,
  .reference-cta-actions .btn {
    width: 100%;
  }

  footer {
    flex-direction: column;
    gap: 14px;
    padding: 30px 22px;
  }
}