:root {
  --color-accent: #0055a4;
  --color-accent-hover: #004488;
  --color-ink: #303334;
  --color-muted-foreground: #5c6366;
  --color-border: #d8d8d8;
  --color-border-subtle: #e8e8e8;
  --color-muted: #ececec;
  --color-surface: #ffffff;
  --color-bg: #f5f8fb;
  --radius: 15px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --shadow: 0 18px 50px rgba(48, 51, 52, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--color-ink);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 1.5rem;
  position: relative;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(0, 85, 164, 0.12), transparent 60%),
    radial-gradient(ellipse 55% 45% at 90% 85%, rgba(0, 85, 164, 0.08), transparent 55%),
    linear-gradient(165deg, #f7fafc 0%, #eef4f9 45%, #f5f8fb 100%);
}

.shell {
  width: min(720px, 100%);
  text-align: center;
  animation: rise 0.7s ease-out both;
}

.eyebrow {
  margin: 0 0 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  animation: fade 0.8s ease-out 0.1s both;
}

.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2rem);
  flex-wrap: wrap;
  margin-bottom: 3.25rem;
}

.logo-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(180px, 38vw, 240px);
  height: clamp(120px, 26vw, 152px);
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(48, 51, 52, 0.06);
  animation: fade 0.8s ease-out both;
}

.logo-block img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.logo-block--old {
  animation-delay: 0.15s;
}

.logo-block--old img {
  opacity: 0.85;
  filter: grayscale(0.1);
}

.logo-block--new {
  animation-delay: 0.45s;
}

.arrow {
  color: var(--color-accent);
  width: clamp(40px, 10vw, 64px);
  flex-shrink: 0;
  animation: slide-arrow 0.9s ease-out 0.3s both;
}

.arrow svg {
  width: 100%;
  height: auto;
  display: block;
}

h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  animation: rise 0.7s ease-out 0.25s both;
}

.lead {
  margin: 0 auto 2rem;
  max-width: 36rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--color-muted-foreground);
  animation: rise 0.7s ease-out 0.35s both;
}

.lead strong {
  color: var(--color-ink);
  font-weight: 600;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 28px rgba(0, 85, 164, 0.28);
  animation: rise 0.7s ease-out 0.45s both;
}

.cta svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.2s ease;
}

.cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 85, 164, 0.34);
}

.cta:hover svg {
  transform: translateX(3px);
}

.cta:focus-visible {
  outline: 3px solid rgba(0, 85, 164, 0.35);
  outline-offset: 3px;
}

.footer {
  margin-top: clamp(3rem, 8vh, 5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  animation: fade 0.8s ease-out 0.55s both;
}

.footer-link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--color-muted-foreground);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-sep {
  color: var(--color-border);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(48, 51, 52, 0.45);
  animation: fade 0.2s ease-out;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(85vh, 760px);
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: modal-in 0.25s ease-out;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.modal__header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.modal__close {
  appearance: none;
  border: 0;
  background: var(--color-muted);
  color: var(--color-ink);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.modal__close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.modal__close:hover {
  background: var(--color-border);
}

.modal__body {
  padding: 1.25rem 1.35rem 1.75rem;
  overflow-y: auto;
  text-align: left;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-ink);
}

.modal__body p {
  margin: 0 0 1rem;
}

.modal__body ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.modal__body a {
  color: var(--color-accent);
}

.modal__note {
  font-size: 0.8125rem;
  color: var(--color-muted-foreground);
  background: #f0f5fa;
  border-left: 3px solid var(--color-accent);
  padding: 0.65rem 0.85rem;
  border-radius: 0 8px 8px 0;
}

body.modal-open {
  overflow: hidden;
}

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

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-arrow {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .logos {
    flex-direction: column;
    gap: 1rem;
  }

  .arrow {
    transform: rotate(90deg);
  }

  .arrow {
    animation-name: slide-arrow-down;
  }
}

@keyframes slide-arrow-down {
  from {
    opacity: 0;
    transform: rotate(90deg) translateX(-10px);
  }
  to {
    opacity: 1;
    transform: rotate(90deg) translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
