@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/inter-latin-800-normal.woff2") format("woff2");
}

:root {
  --bg: #090d16;
  --bg-soft: #101b2f;
  --surface: #121d30;
  --text: #e9f0ff;
  --text-soft: #b9c9e8;
  --primary: #2b7cff;
  --primary-2: #4bb5ff;
  --accent: #5dffcf;
  --border: rgba(255, 255, 255, 0.15);
  --shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, #102140 0%, var(--bg) 50%);
  line-height: 1.6;
}

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(9, 13, 22, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-left: auto;
}

.nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: flex-end;
}

.nav nav a {
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav nav a:hover {
  color: #fff;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(12, 20, 35, 0.75);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lang-switch a.active {
  color: #fff;
  background: rgba(43, 124, 255, 0.45);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(12, 20, 35, 0.9);
  color: #fff;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
}

.nav-logo img {
  height: 46px;
  width: auto;
  display: block;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  background-image: url("hero-cuas-infrastructure.png?v=2");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  position: relative;
  padding: 6rem 0 4rem;
  max-width: 720px;
  z-index: 3;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 2rem;
}

.hero p {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 65ch;
}

.cta-group {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.section {
  padding: 5rem 0;
}

.section-title {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem;
}

.card p,
.card li {
  color: var(--text-soft);
}

.section-highlight {
  background: linear-gradient(180deg, rgba(16, 27, 47, 0.8), rgba(9, 13, 22, 0.3));
}

.pill {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(93, 255, 207, 0.18);
  color: #caffee;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-dark {
  background: rgba(43, 124, 255, 0.2);
  color: #d6e6ff;
}

.product ul {
  margin: 0.6rem 0 0;
  padding-left: 1.15rem;
}

.product-image-card {
  width: 100%;
  max-width: 460px;
  margin-top: 0.95rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.product-image {
  display: block;
  width: 100%;
  margin: 0;
}

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

.gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0d1524;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-image-top-left {
  object-position: left top;
}

.gallery figcaption {
  padding: 0.85rem 0.95rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.section-newsletter {
  border-top: 1px solid var(--border);
}

.section-contact {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(16, 27, 47, 0.45), rgba(9, 13, 22, 0.2));
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.contact-form label {
  display: block;
  margin: 0.45rem 0 0.35rem;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.78rem 0.85rem;
  background: #0c1423;
  color: #fff;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 132px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(75, 181, 255, 0.15);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.85rem 0 0.95rem;
  color: var(--text-soft);
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  flex: 0 0 auto;
}

.honeypot-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.newsletter-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.newsletter-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.newsletter-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.input-group {
  display: flex;
  gap: 0.6rem;
}

.newsletter-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.78rem 0.85rem;
  background: #0c1423;
  color: #fff;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(75, 181, 255, 0.15);
}

.form-message {
  min-height: 1.35rem;
  font-size: 0.9rem;
  margin: 0.65rem 0 0;
}

.newsletter-note {
  margin: 0.6rem 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.privacy-note {
  margin: 0.8rem 0 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

.form-message.error {
  color: #ff9da7;
}

.form-message.success {
  color: #9fffc6;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0 2rem;
}

.footer-content {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: 0.92rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.legal-main {
  padding: 5rem 0;
}

.legal-card {
  max-width: 880px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
}

.legal-card h1 {
  margin-bottom: 1.2rem;
}

.legal-card h2 {
  margin: 1.6rem 0 0.7rem;
  font-size: 1.2rem;
}

.legal-card p {
  color: var(--text-soft);
}

.privacy-policy-text {
  margin: 0;
  color: var(--text-soft);
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .cards-3,
  .cards-2,
  .gallery,
  .contact-wrap,
  .newsletter-wrap {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, calc(100% - 1.4rem));
  }

  .section {
    padding: 3.2rem 0;
  }

  h1 {
    font-size: clamp(1.7rem, 9vw, 2.3rem);
  }

  h2 {
    font-size: clamp(1.35rem, 7vw, 1.9rem);
    margin-bottom: 1.35rem;
  }

  .hero {
    min-height: 68vh;
    background-position: 15% center;
  }

  .hero-content {
    padding: 4.4rem 0 2.6rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .nav {
    min-height: auto;
    padding: 0.45rem 0;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .nav-right {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-left {
    width: calc(100% - 52px);
    justify-content: flex-start;
  }

  .brand {
    font-size: 0.92rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .lang-switch {
    order: 2;
  }

  .nav nav {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.35rem;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(12, 20, 35, 0.95);
  }

  .nav nav a {
    font-size: 0.9rem;
    white-space: normal;
  }

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

  .nav-logo img {
    height: 36px;
  }

  .card {
    padding: 1.1rem;
  }

  .gallery img {
    height: 200px;
  }

  .input-group {
    flex-direction: column;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(1120px, calc(100% - 1rem));
  }

  .section {
    padding: 2.8rem 0;
  }

  .hero-content {
    padding: 4rem 0 2.2rem;
  }

  .card {
    padding: 1rem;
  }
}
