:root {
  --bg: #f5fbff;
  --paper: #ffffff;
  --ink: #172734;
  --muted: #647887;
  --soft: #e9f7ff;
  --line: #dbeaf2;
  --primary: #246a91;
  --primary-dark: #12384f;
  --accent: #88ddff;
  --footer: #0d1b24;
  --shadow: 0 24px 70px rgba(25, 65, 90, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, #dff5ff 0, transparent 34%),
    linear-gradient(180deg, #f8fdff 0%, #eef8fc 100%);
}

a {
  color: inherit;
}

.header {
  width: min(1160px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(219, 234, 242, 0.9);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 14px;
  z-index: 10;
  box-shadow: 0 12px 40px rgba(21, 57, 80, 0.08);
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
  color: var(--primary-dark);
  letter-spacing: -0.4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
}

.nav a:last-child {
  background: var(--primary-dark);
  color: #fff;
  padding: 11px 16px;
  border-radius: 999px;
}

.hero {
  width: min(1160px, calc(100% - 36px));
  margin: 58px auto 0;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 46px;
  align-items: center;
}

.badge,
.section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(136, 221, 255, 0.18);
  color: var(--primary);
  border: 1px solid rgba(136, 221, 255, 0.42);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  margin: 22px 0;
  color: var(--primary-dark);
  letter-spacing: -1.8px;
}

.hero p {
  max-width: 650px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 18px 34px rgba(36, 106, 145, 0.24);
}

.btn-secondary {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.trust-row {
  margin-top: 34px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trust-row strong {
  display: block;
  font-size: 14px;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.trust-row span {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  height: 560px;
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.8), rgba(211,243,255,0.7)),
    radial-gradient(circle at top, #ffffff 0, transparent 45%);
  border: 1px solid rgba(219, 234, 242, 0.95);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.soft-glow {
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(136, 221, 255, 0.45);
  filter: blur(40px);
  top: 54px;
  right: 40px;
}

.device {
  position: absolute;
  width: 230px;
  height: 360px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%);
  border-radius: 42px 42px 32px 32px;
  background: linear-gradient(155deg, #ffffff, #dceef7);
  border: 1px solid #c6dde8;
  box-shadow:
    inset -18px -22px 50px rgba(27, 86, 116, 0.12),
    0 38px 80px rgba(20, 64, 90, 0.25);
}

.device-top {
  position: absolute;
  width: 116px;
  height: 26px;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #12384f;
  border-radius: 999px;
}

.screen {
  position: absolute;
  width: 54px;
  height: 22px;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  background: #e8fbff;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(36, 106, 145, 0.1);
}

.vents {
  position: absolute;
  top: 132px;
  left: 42px;
  right: 42px;
  display: grid;
  gap: 14px;
}

.vents span {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #93c7de, #d7eef7);
}

.button {
  position: absolute;
  width: 24px;
  height: 24px;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(136, 221, 255, 0.95);
}

.breeze {
  position: absolute;
  height: 20px;
  width: 170px;
  border-top: 3px solid rgba(36, 106, 145, 0.18);
  border-radius: 50%;
  animation: breeze 3.2s ease-in-out infinite;
}

.breeze-one {
  left: 38px;
  top: 190px;
}

.breeze-two {
  right: 24px;
  top: 246px;
  animation-delay: 0.4s;
}

.breeze-three {
  left: 52px;
  top: 304px;
  animation-delay: 0.8s;
}

@keyframes breeze {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.45;
  }
  50% {
    transform: translateX(-18px);
    opacity: 1;
  }
}

.intro,
.country-heading {
  width: min(820px, calc(100% - 36px));
  margin: 58px auto 0;
  text-align: center;
}

.intro h2,
.country-heading h2 {
  font-family: "Playfair Display", serif;
  color: var(--primary-dark);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  margin: 16px 0;
  letter-spacing: -1px;
}

.intro p,
.country-heading p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  margin: 0;
}

.feature-grid {
  width: min(1040px, calc(100% - 36px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-grid article {
  background: rgba(255,255,255,0.74);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 18px 44px rgba(25, 65, 90, 0.07);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 18px;
}

.feature-grid h3 {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 18px;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.country-section {
  padding: 34px 0 76px;
}

.portal-grid {
  width: min(1060px, calc(100% - 36px));
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.country-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 16px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(25, 65, 90, 0.06);
  transition: 0.2s ease;
}

.country-card:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 106, 145, 0.35);
  box-shadow: 0 18px 44px rgba(25, 65, 90, 0.12);
}

.country-card strong {
  display: block;
  color: var(--primary-dark);
  font-size: 15px;
}

.country-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.flag-box {
  width: 44px;
  height: 30px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e7eef2;
  position: relative;
  flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.f-de { background: linear-gradient(#000 33.3%, #dd0000 33.3%, #dd0000 66.6%, #ffce00 66.6%); }
.f-at { background: linear-gradient(#ed2939 33.3%, #fff 33.3%, #fff 66.6%, #ed2939 66.6%); }
.f-fr { background: linear-gradient(90deg, #002395 33.3%, #fff 33.3%, #fff 66.6%, #ed2939 66.6%); }
.f-be { background: linear-gradient(90deg, #000 33.3%, #fdda24 33.3%, #fdda24 66.6%, #ef3340 66.6%); }
.f-nl { background: linear-gradient(#ae1c28 33.3%, #fff 33.3%, #fff 66.6%, #21468b 66.6%); }
.f-ie { background: linear-gradient(90deg, #169b62 33.3%, #fff 33.3%, #fff 66.6%, #ff883e 66.6%); }
.f-es { background: linear-gradient(#aa151b 25%, #f1bf00 25%, #f1bf00 75%, #aa151b 75%); }
.f-it { background: linear-gradient(90deg, #009246 33.3%, #fff 33.3%, #fff 66.6%, #ce2b37 66.6%); }

.f-ch {
  background: #e30a17;
}
.f-ch::before {
  content: "";
  position: absolute;
  background: #fff;
  width: 6px;
  height: 20px;
  left: 19px;
  top: 5px;
}
.f-ch::after {
  content: "";
  position: absolute;
  background: #fff;
  width: 20px;
  height: 6px;
  left: 12px;
  top: 12px;
}

.f-dk,
.f-se,
.f-fi {
  background: #c60c30;
}
.f-dk::before,
.f-se::before,
.f-fi::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 100%;
  left: 14px;
  background: #fff;
}
.f-dk::after,
.f-se::after,
.f-fi::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 6px;
  top: 12px;
  background: #fff;
}

.f-se {
  background: #006aa7;
}
.f-se::before,
.f-se::after {
  background: #fecc00;
}

.f-fi {
  background: #fff;
}
.f-fi::before,
.f-fi::after {
  background: #003580;
}

.footer {
  background: var(--footer);
  color: #b7c8d1;
  padding: 38px max(18px, calc((100% - 1060px) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
}

.footer strong {
  font-family: "Playfair Display", serif;
  color: #fff;
  font-size: 26px;
}

.footer p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a {
  color: #dceaf0;
  text-decoration: none;
  font-size: 12px;
}

.disclaimer {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  color: #91a8b4;
}

@media (max-width: 820px) {
  .header {
    border-radius: 26px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-top: 42px;
  }

  .hero-visual {
    height: 430px;
  }

  .device {
    transform: translate(-50%, -50%) scale(0.82);
  }

  .trust-row,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .nav a:first-child {
    display: none;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }
}