:root {
  --bg: #1b2942;
  --surface: #233455;
  --surface-2: #2c4068;
  --text: #f1f5ff;
  --muted: #c2cde2;
  --primary: #6ea3ff;
  --primary-strong: #4f8cff;
  --border: #3a517d;
  --ok: #5be0ad;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", Calibri, Tahoma, sans-serif;
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.1px;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(110, 163, 255, 0.28), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(91, 224, 173, 0.18), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(140, 110, 255, 0.22), transparent 60%),
    linear-gradient(135deg, #1d2c49 0%, #243a64 50%, #1f3358 100%);
  background-attachment: fixed;
  background-size: 200% 200%, 200% 200%, 200% 200%, 300% 300%;
  animation: bgShift 22s ease-in-out infinite;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("TransparentPrint.svg") center center / cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: -10%;
  background:
    radial-gradient(280px 280px at 20% 30%, rgba(110, 163, 255, 0.18), transparent 70%),
    radial-gradient(320px 320px at 80% 70%, rgba(91, 224, 173, 0.14), transparent 70%),
    radial-gradient(260px 260px at 60% 20%, rgba(180, 140, 255, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: floatBlobs 18s ease-in-out infinite;
  filter: blur(20px);
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: transparent;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 12px;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch a {
  padding: 7px 12px;
  font-size: 0.85rem;
}

.lang-switch a.active {
  background: var(--surface-2);
  color: var(--text);
}

.hero {
  padding: 88px 0 54px;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(110, 163, 255, 0.35), rgba(110, 163, 255, 0));
  pointer-events: none;
  animation: floatGlow 10s ease-in-out infinite;
  filter: blur(6px);
}

.hero::before {
  width: 260px;
  height: 260px;
  top: 18px;
  right: -70px;
}

.hero::after {
  width: 180px;
  height: 180px;
  bottom: -40px;
  left: -40px;
  animation-delay: -5s;
}

.hero .eyebrow {
  color: var(--ok);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.3rem);
  line-height: 1.15;
  max-width: 760px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 760px;
  margin-top: 18px;
}

.hero-dynamic {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(35, 52, 85, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text);
  position: relative;
  z-index: 1;
}

.hero-dynamic .pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 rgba(61, 213, 152, 0.45);
  animation: pulse 1.8s infinite;
}

.hero-dynamic strong {
  color: #ffffff;
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.hero-dynamic strong.is-updating {
  opacity: 0;
  transform: translateY(4px);
  filter: blur(1px);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(79, 140, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 24px rgba(79, 140, 255, 0.5);
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

.section {
  padding: 38px 0;
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3.3vw, 2rem);
}

.section-intro {
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: linear-gradient(180deg, rgba(35, 52, 85, 0.75) 0%, rgba(28, 43, 72, 0.75) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(110, 163, 255, 0.25);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.18);
  color: #c5d9ff;
  font-size: 0.78rem;
}

.cta {
  margin-top: 20px;
  padding: 24px;
  background: linear-gradient(135deg, #2a55a8 0%, #3a74e0 50%, #5b8df0 100%);
  background-size: 200% 200%;
  animation: bgShift 12s ease-in-out infinite;
  border-radius: var(--radius);
  border: 1px solid #6ea3ff;
  box-shadow: 0 12px 30px rgba(79, 140, 255, 0.25);
}

.cta h3 {
  margin-top: 0;
}

.cta p {
  color: #e7efff;
}

.contact-form {
  display: grid;
  gap: 10px;
}

label {
  font-size: 0.9rem;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(20, 30, 51, 0.55);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(20, 30, 51, 0.8);
  box-shadow: 0 0 0 3px rgba(110, 163, 255, 0.25);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 45px;
}

.footer-inner {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-contact {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 213, 152, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(61, 213, 152, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 213, 152, 0);
  }
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.75;
  }
  50% {
    transform: translateY(-12px);
    opacity: 1;
  }
}

@keyframes bgShift {
  0% {
    background-position: 0% 50%, 100% 50%, 50% 0%, 0% 0%;
  }
  50% {
    background-position: 100% 50%, 0% 50%, 50% 100%, 100% 100%;
  }
  100% {
    background-position: 0% 50%, 100% 50%, 50% 0%, 0% 0%;
  }
}

@keyframes floatBlobs {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(2%, -2%, 0) scale(1.05);
  }
  66% {
    transform: translate3d(-2%, 2%, 0) scale(0.97);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero p,
.hero .eyebrow,
.hero .actions,
.hero-dynamic,
.section h2,
.section-intro,
.card,
.cta {
  animation: fadeUp 0.7s ease both;
}

.hero p { animation-delay: 0.08s; }
.hero .actions { animation-delay: 0.16s; }
.hero-dynamic { animation-delay: 0.24s; }
.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.16s; }
.card:nth-child(4) { animation-delay: 0.24s; }
.card:nth-child(5) { animation-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 900px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: 52px;
    height: 52px;
  }
}
