:root {
  --brand-teal: #0f6885;
  --brand-teal-dark: #0d5c75;
  --brand-teal-darker: #09485c;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.88);
  --card: rgba(255, 255, 255, 0.1);
  --card-hover: rgba(255, 255, 255, 0.18);
  --card-border: rgba(255, 255, 255, 0.14);
  --shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  --radius: 18px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--brand-teal-darker);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

.page {
  width: 100%;
  min-height: 100vh;
  background: var(--brand-teal);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 90px;
}

.hero {
  position: relative;
  height: 42vh;
  min-height: 320px;
  max-height: 460px;
  overflow: hidden;
  background: #183742;
}

.carousel {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease, transform 6s ease;
  will-change: opacity, transform;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 60%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(15, 104, 133, 0.4) 100%);
  z-index: 1;
}

.hero-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 26px) 22px clamp(108px, 14vh, 132px);
}

.logo-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 470px;
  text-align: center;
}

.hero-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.98);
  font-weight: 600;
  font-size: clamp(0.58rem, 2.6vw, 0.95rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  padding: 0 2px;
  max-width: 100%;
  white-space: nowrap;
  text-wrap: nowrap;
}

.logo-box {
  min-height: 148px;
  display: grid;
  place-items: center;
}

.logo-box img {
  max-width: 100%;
  max-height: 148px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
  animation: fadeInDown 0.8s ease-out;
}

.logo-placeholder {
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
}

.hero-cut {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  width: 100%;
  line-height: 0;
  pointer-events: none;
}

.hero-cut svg {
  display: block;
  width: 100%;
  height: auto;
}

.lang-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 50;
  font-size: 0.85rem;
}

.lang-trigger {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lang-trigger:hover,
.lang-trigger.active {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-trigger svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.lang-trigger.active svg {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: rgba(15, 104, 133, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 110px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-opt {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.lang-opt:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.lang-opt.selected {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 700;
}

.content {
  position: relative;
  padding: 10px 18px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 50vh;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 2px;
  margin-bottom: 4px;
  flex-wrap: wrap;
  animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.socials a {
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.16s ease, filter 0.16s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

.socials a:hover {
  transform: translateY(-4px) scale(1.05);
}
.socials a:active {
  transform: scale(1.08);
}

.socials a.is-loading {
  transform: scale(1.08);
  opacity: 0.85;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22));
}

.socials img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 4px;
}
.section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding-left: 4px;
  opacity: 0.9;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 10px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
  touch-action: manipulation;
  position: relative;
  opacity: 0;
  animation: slideUp 0.5s ease-out forwards;
}

.link-card:hover,
.link-card:focus-visible {
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  outline: none;
}

.link-card:active {
  transform: scale(0.98);
}
.link-card.is-loading {
  opacity: 0.92;
}

.thumb {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.thumb.fallback {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
}

.card-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.link-card:hover .card-arrow {
  background: rgba(255, 255, 255, 0.2);
}

.card-arrow svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  color: #fff;
}

.share-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-teal);
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 40;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.share-fab:hover {
  transform: scale(1.1);
}
.share-fab:active {
  transform: scale(0.9);
}

.share-fab svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 100;
  white-space: nowrap;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  animation: fadeIn 0.8s ease-out 0.8s backwards;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-link-btn,
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  border-bottom: 1px solid transparent;
  transition: all 0.15s ease;
}

.footer-link-btn:hover,
.footer-links a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0,  0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  width: min(100%, 480px);
  background: linear-gradient(135deg, #0f6885, #09485c);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 20px;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.open .modal-panel {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 560px) {
  .wrap {
    max-width: 560px;
  }
  .content {
    padding-inline: 26px;
  }
  .share-fab {
    right: calc(50% - 280px + 24px);
  }
}

