﻿:root {
  --bg: #053943;
  --surface: #0a4a56;
  --surface-2: #0f5b68;
  --text: #ffffff;
  --muted: #a6a6a6;
  --accent: #31d6c6;
  --accent-2: #7ef3d1;
  --glass-1: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.12);
  --glass-3: rgba(255, 255, 255, 0.05);
  --border-1: rgba(255, 255, 255, 0.15);
  --border-2: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.2);
  --hero-gradient: radial-gradient(circle at 20% 20%, rgba(49, 214, 198, 0.18), transparent 50%),
    radial-gradient(circle at 80% 0%, rgba(126, 243, 209, 0.12), transparent 40%),
    linear-gradient(120deg, rgba(12, 71, 82, 0.85), rgba(5, 57, 67, 1));
}

[data-theme="light"] {
  --bg: #f3f8f8;
  --surface: #ffffff;
  --surface-2: #e8f1f1;
  --text: #062f36;
  --muted: #4d6b71;
  --glass-1: rgba(6, 47, 54, 0.06);
  --glass-2: rgba(6, 47, 54, 0.12);
  --glass-3: rgba(6, 47, 54, 0.04);
  --border-1: rgba(6, 47, 54, 0.15);
  --border-2: rgba(6, 47, 54, 0.08);
  --shadow: 0 20px 50px rgba(6, 47, 54, 0.18);
  --shadow-soft: 0 12px 30px rgba(6, 47, 54, 0.15);
  --hero-gradient: radial-gradient(circle at 20% 20%, rgba(49, 214, 198, 0.15), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(126, 243, 209, 0.1), transparent 45%),
    linear-gradient(120deg, rgba(236, 248, 248, 1), rgba(243, 248, 248, 1));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font-family: inherit;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-soft);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}

.nav__controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  height: 48px;
  overflow: visible;
}

.nav__logo {
  height: 48px;
  width: auto;
  transform: scale(1.45);
  transform-origin: left center;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

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

.nav__name {
  font-size: 1.1rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.nav__backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--glass-1);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--text);
  position: relative;
}

.theme-toggle__icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed var(--text);
  opacity: 0.35;
}

.theme-toggle.is-active {
  transform: rotate(20deg);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--glass-1);
  border: 1px solid var(--border-2);
  padding: 0.2rem;
  border-radius: 999px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

.lang-switch button.is-active {
  background: var(--accent);
  color: #042f36;
}

.nav__toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle span:first-child {
  top: 14px;
}

.nav__toggle span:last-child {
  bottom: 14px;
}

.nav__toggle.is-open span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle.is-open span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
  color: #042f36;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 16px 30px rgba(49, 214, 198, 0.25);
  min-height: 44px;
}

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

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-1);
  box-shadow: none;
}

.btn--ghost {
  padding: 0.7rem 1.4rem;
  background: var(--glass-1);
  color: var(--text);
  border: 1px solid var(--border-2);
}

.hero {
  position: relative;
  padding: 6rem 0 7rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  z-index: 0;
}

.hero__watermark {
  position: absolute;
  width: min(640px, 90vw);
  right: -120px;
  top: -40px;
  opacity: 0.08;
  filter: blur(1px);
  z-index: 1;
  pointer-events: none;
}

[data-theme="light"] .hero__watermark {
  opacity: 0.06;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 1.1;
  margin: 1rem 0 1.5rem;
}

.hero .accent {
  color: var(--accent-2);
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.hero__text > * {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}

.hero__text > *:nth-child(1) { animation-delay: 0.05s; }
.hero__text > *:nth-child(2) { animation-delay: 0.15s; }
.hero__text > *:nth-child(3) { animation-delay: 0.25s; }
.hero__text > *:nth-child(4) { animation-delay: 0.35s; }
.hero__text > *:nth-child(5) { animation-delay: 0.45s; }

.hero__stats {
  display: flex;
  gap: 2rem;
}

.hero__stats h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.8rem;
}

.hero__stats p {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero__visual {
  position: relative;
  min-height: 420px;
}

.hero__card {
  background: var(--glass-3);
  border: 1px solid var(--glass-2);
  border-radius: 24px;
  padding: 1.5rem;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: background 0.4s ease, border 0.4s ease, box-shadow 0.4s ease;
}

.card__top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pill {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(49, 214, 198, 0.2);
  color: var(--accent-2);
  font-weight: 600;
}

.card__map {
  height: 180px;
  border-radius: 16px;
  background: linear-gradient(130deg, rgba(49, 214, 198, 0.2), var(--glass-3));
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.pulse {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-2);
  top: 60%;
  left: 30%;
  box-shadow: 0 0 20px rgba(126, 243, 209, 0.6);
  animation: pulse 2.8s infinite;
}

.route {
  position: absolute;
  width: 220px;
  height: 2px;
  background: color-mix(in srgb, var(--text) 55%, transparent);
  top: 40%;
  left: 20%;
  transform: rotate(-12deg);
}

.card__meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.card__meta h4 {
  color: var(--text);
}

.hero__badge {
  position: absolute;
  bottom: 20px;
  right: 10px;
  background: var(--glass-1);
  border: 1px solid var(--glass-2);
  padding: 1rem 1.4rem;
  border-radius: 20px;
  backdrop-filter: blur(14px);
}

.hero__badge strong {
  display: block;
  font-family: "Syne", sans-serif;
}

.float-icon {
  position: absolute;
  width: 110px;
  height: 110px;
  top: -20px;
  right: 20%;
  opacity: 0.6;
  color: var(--accent-2);
  transition: transform 0.3s ease;
}

.float-icon svg {
  width: 100%;
  height: 100%;
}

.float-icon:last-child {
  width: 90px;
  height: 90px;
  top: auto;
  bottom: 40px;
  left: -10px;
  color: var(--text);
  opacity: 0.45;
}

.section {
  padding: 6rem 0;
}

.section__head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section__head h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.2;
}

.section__lead {
  color: var(--muted);
  max-width: 420px;
}

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

.gallery {
  grid-template-columns: 1fr;
}

.gallery__card {
  background: var(--glass-3);
  border: 1px solid var(--border-2);
  border-radius: 24px;
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
  overflow: hidden;
  transition: background 0.4s ease, border 0.4s ease;
}

.gallery__card img {
  border-radius: 18px;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}

.gallery__card figcaption {
  color: var(--muted);
  font-weight: 600;
}

.cards {
  grid-template-columns: 1fr;
}

.card {
  background: var(--glass-3);
  border: 1px solid var(--border-2);
  border-radius: 22px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border 0.3s ease, background 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(126, 243, 209, 0.4);
}

.card h3 {
  font-family: "Syne", sans-serif;
  margin: 1.5rem 0 0.8rem;
}

.card p {
  color: var(--muted);
}

.card a {
  display: inline-flex;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--accent-2);
}

.svg-holder {
  width: 96px;
  height: 96px;
  color: var(--text);
  transition: transform 0.3s ease;
}

.icon-muted {
  color: var(--muted);
}

.card:hover .svg-holder svg {
  transform: scale(1.03) rotate(-2deg);
}

.svg-holder svg {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.svg-fill * {
  fill: currentColor !important;
  stroke: none !important;
}

.svg-stroke * {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.2;
}

.path-draw svg * {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2.2s ease;
}

.path-draw.is-visible svg * {
  stroke-dashoffset: 0;
}

.section--split {
  background: linear-gradient(180deg, color-mix(in srgb, var(--text) 6%, transparent), transparent 50%);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  align-items: center;
}

.split__list {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.split__list h4 {
  font-family: "Syne", sans-serif;
  margin-bottom: 0.4rem;
}

.split__visual {
  position: relative;
  display: grid;
  gap: 2rem;
}

.map-card {
  background: var(--glass-1);
  border-radius: 24px;
  padding: 1.8rem;
  border: 1px solid var(--glass-2);
  box-shadow: var(--shadow);
  transition: background 0.4s ease, border 0.4s ease, box-shadow 0.4s ease;
}

.map-card__head,
.map-card__footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.map-grid {
  height: 200px;
  margin: 1.5rem 0;
  background: linear-gradient(130deg, rgba(49, 214, 198, 0.15), var(--glass-3));
  border-radius: 18px;
  position: relative;
}

.node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 3s infinite;
}

.node:nth-child(1) { top: 20%; left: 25%; }
.node:nth-child(2) { top: 40%; left: 55%; animation-delay: 0.4s; }
.node:nth-child(3) { top: 70%; left: 35%; animation-delay: 0.8s; }
.node:nth-child(4) { top: 60%; left: 75%; animation-delay: 1.2s; }
.node:nth-child(5) { top: 30%; left: 70%; animation-delay: 1.6s; }
.node:nth-child(6) { top: 55%; left: 20%; animation-delay: 2s; }

.tech {
  grid-template-columns: 1fr;
}

.tech__card {
  padding: 2rem;
  background: var(--glass-3);
  border-radius: 22px;
  border: 1px solid var(--border-2);
  transition: background 0.4s ease, border 0.4s ease;
}

.tech__icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.section--panel {
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.testimonials {
  grid-template-columns: 1fr;
}

.quote {
  padding: 2rem;
  border-radius: 22px;
  background: var(--glass-3);
  border: 1px solid var(--border-2);
  transition: background 0.4s ease, border 0.4s ease;
}

.quote p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.quote span {
  color: var(--muted);
}

.cta {
  position: relative;
}

.cta__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: start;
}

.cta__form {
  background: var(--glass-3);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid var(--border-2);
  backdrop-filter: blur(16px);
  transition: background 0.4s ease, border 0.4s ease;
}

.form__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.cta input,
.cta textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-1);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  color: var(--text);
}

.cta textarea {
  margin: 1rem 0 1.5rem;
  resize: vertical;
}

.site-footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--border-2);
  position: relative;
  z-index: 1;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: center;
}

.footer__links {
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
}

.dev-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--glass-1);
  border: 1px solid var(--border-2);
  justify-self: start;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

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

.dev-brand strong {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  color: transparent;
}

.footer__bottom {
  display: grid;
  gap: 1rem;
  place-items: center;
  text-align: center;
  margin-top: 2rem;
}

.footer__bottom .dev-brand img {
  max-width: 52px;
}

.footer__bottom .dev-brand {
  justify-self: center;
}

.footer__note {
  color: var(--muted);
}

@media (min-width: 768px) {
  .cards,
  .tech,
  .testimonials,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1024px) {
  .cards,
  .tech,
  .testimonials,
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__text > * {
    opacity: 1;
    animation: none;
  }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    inset: 72px 16px auto;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    border: 1px solid var(--border-2);
    border-radius: 20px;
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

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

  .nav__links a {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .nav__links .btn {
    width: 100%;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .hero__stats {
    flex-direction: column;
    align-items: flex-start;
  }

  .section__head {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 5rem;
  }

  .hero__content {
    grid-template-columns: 1fr;
  }

  .hero__text {
    order: 1;
  }

  .hero__visual {
    order: 2;
  }

  .hero__actions .btn {
    width: 100%;
  }

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

  .hero__badge {
    position: static;
    margin-top: 1.5rem;
  }

  .float-icon {
    display: none;
  }

  .btn {
    width: 100%;
  }

  .footer__content {
    text-align: center;
    justify-items: center;
  }

  .footer__links {
    justify-items: center;
  }

  .site-footer {
    padding-bottom: 5rem;
  }

  .footer__bottom {
    gap: 1.2rem;
  }

  .footer__bottom .dev-brand {
    width: 100%;
    justify-content: center;
  }

  .dev-brand {
    max-width: 320px;
  }
}

@media (max-width: 420px) {
  .nav__name {
    display: none;
  }
}
