:root {
  --deep-slate: #1f2a44;
  --muted-teal: #2f7f7a;
  --soft-sage: #a7c4be;
  --warm-grey: #f2f4f6;
  --graphite: #3a3f45;
  --ink-soft: #566079;
  --white: #ffffff;
  --line: #d7dce2;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--graphite);
  background: transparent;
  line-height: 1.55;
}

body.cookie-visible {
  padding-bottom: 96px;
}

h1,
h2,
h3 {
  font-family: "Manrope", "Inter", sans-serif;
  letter-spacing: 0.01em;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(4px);
}

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

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

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

.brand-text {
  line-height: 1.1;
}

.brand-text strong {
  display: block;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.52rem;
  color: var(--deep-slate);
  letter-spacing: 0.02em;
}

.brand-text span {
  font-family: "IBM Plex Sans", "Inter", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--muted-teal);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--deep-slate);
  min-height: 38px;
  padding: 0 0.75rem;
  border-radius: 2px;
  font-size: 0.82rem;
}

.site-nav a {
  font-size: 0.92rem;
  color: var(--deep-slate);
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 1px;
  background: var(--muted-teal);
  transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.language-switcher {
  display: flex;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.language-switcher a {
  color: #697385;
  border: 1px solid transparent;
  padding: 0.28rem 0.42rem;
  border-radius: 2px;
}

.language-switcher a.active {
  color: var(--deep-slate);
  border-color: var(--line);
  background: var(--warm-grey);
}

.hero {
  background: transparent;
  color: var(--white);
  padding: 6.5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

.hero-copy {
  max-width: 760px;
  position: relative;
  z-index: 3;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.global-bg-video {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background: var(--deep-slate) url("/assets/img/starling-murmuration-poster.webp") center / cover no-repeat;
}

.global-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.global-bg-media {
  opacity: 0.38;
  filter: saturate(0.86) contrast(1.05);
}

.global-bg-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 50, 0.16);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 42, 68, 0.36);
  z-index: 1;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.14;
  font-weight: 600;
}

.hero p {
  margin: 1.35rem 0 0;
  max-width: 760px;
  font-size: 1.1rem;
  color: #dce3ee;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border-radius: 3px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--muted-teal);
  color: var(--white);
}

.btn-primary:hover {
  background: #2a6f6b;
}

.btn-ghost {
  border-color: #8aa2cb;
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}

.dna-lines {
  position: absolute;
  right: -120px;
  top: -40px;
  width: 56%;
  min-width: 420px;
  height: 100%;
  opacity: 0.26;
  z-index: 2;
}

.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 244, 246, 0.72);
}

.section-alt {
  background: rgba(233, 238, 241, 0.62);
}

h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  line-height: 1.2;
  font-weight: 600;
  color: var(--deep-slate);
}

.section-intro {
  margin-top: 1rem;
  max-width: 820px;
  color: var(--ink-soft);
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.step-diagram {
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.visual-panel {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.7rem;
}

.visual-panel img {
  width: 100%;
}

.step-diagram ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.step-diagram li {
  padding: 1rem 0.8rem;
  border-right: 1px solid var(--line);
  font-size: 0.88rem;
  min-height: 128px;
}

.step-diagram li:last-child {
  border-right: 0;
}

.step-diagram strong {
  display: block;
  color: var(--deep-slate);
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tech-points {
  margin-top: 1.25rem;
  padding-left: 1rem;
  color: #4f596c;
}

.tech-points li {
  margin: 0.5rem 0;
}

.product-grid {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.9rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem;
  color: var(--deep-slate);
  font-weight: 500;
}

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

summary::after {
  content: "+";
  float: right;
  color: #6a7486;
}

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

.detail-body {
  border-top: 1px solid var(--line);
  padding: 0.2rem 1rem 1rem;
  color: var(--ink-soft);
}

.detail-body ul {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
}

.disclaimer {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.portfolio-icons {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  background: #fcfdfd;
  padding: 0.8rem;
}

.portfolio-icons img {
  width: 100%;
}

.country-cards {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.country-cards .btn {
  border: 1px solid var(--line);
  color: var(--deep-slate);
  background: var(--white);
}

.country-cards .btn:hover {
  border-color: var(--muted-teal);
  color: var(--muted-teal);
}

.extensions {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.extension-card {
  border: 1px solid var(--line);
  padding: 1rem;
  background: #f9fcfb;
}

.extension-card h3 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--deep-slate);
}

.extension-card p {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: #5b6576;
}

.country-hero {
  background: var(--deep-slate);
  color: var(--white);
  padding: 5.3rem 0 4.4rem;
}

.country-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.2;
}

.country-hero p {
  margin: 1rem 0 0;
  color: #d7dfeb;
  max-width: 760px;
}

.info-list {
  margin: 1rem 0 0;
  padding-left: 1rem;
}

.info-list li {
  margin: 0.5rem 0;
}

.site-footer {
  background: rgba(251, 252, 253, 0.74);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-brand img {
  width: 42px;
}

.footer-copy {
  font-size: 0.92rem;
  color: #5c6474;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(16, 28, 49, 0.12);
  z-index: 40;
  padding: 1rem;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.cookie-row p {
  margin: 0;
  max-width: none;
  flex: 1 1 auto;
  min-width: 0;
  color: #556072;
  font-size: 0.88rem;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.cookie-actions button {
  min-height: 38px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--deep-slate);
  padding: 0 0.8rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.cookie-actions button.accept {
  background: var(--deep-slate);
  color: var(--white);
  border-color: var(--deep-slate);
}

@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .step-diagram ol {
    grid-template-columns: 1fr;
  }

  .step-diagram li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 0;
  }

  .step-diagram li:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 780px) {
  .nav-row {
    display: block;
    padding: 0.7rem 0;
    min-height: 0;
  }

  .hero {
    padding-top: 5rem;
  }

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

  .dna-lines {
    min-width: 300px;
    right: -160px;
  }

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

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

  .header-main {
    width: 100%;
  }

  .brand {
    flex: 1;
  }

  .brand img {
    width: 98px;
  }

  .brand-text strong {
    font-size: 1.3rem;
  }

  .brand-text span {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-links {
    display: none;
    margin-top: 0.9rem;
    width: 100%;
  }

  .header-links.open {
    display: block;
  }

  .site-nav {
    display: grid;
    gap: 0.2rem;
  }

  .site-nav a {
    padding: 0.34rem 0;
  }

  .site-nav a::after {
    bottom: 0.1rem;
  }

  .language-switcher {
    margin-top: 0.6rem;
  }

  .cookie-banner {
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.6rem;
    padding: 0.7rem;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .cookie-actions button {
    flex: 1;
    min-height: 36px;
  }

  .cookie-row p {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  body.cookie-visible {
    padding-bottom: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-bg-media {
    display: none;
  }
}
