:root {
  color-scheme: light;
  --background: #eef2f5;
  --foreground: #16202a;
  --muted-foreground: #5c6f80;
  --card: rgba(252, 253, 255, 0.9);
  --card-strong: #ffffff;
  --border: rgba(33, 31, 29, 0.08);
  --ring: rgba(49, 82, 103, 0.24);
  --primary: #315267;
  --primary-foreground: #f5f8fb;
  --secondary: #dde6ed;
  --secondary-foreground: #233746;
  --accent: #315267;
  --accent-soft: rgba(49, 82, 103, 0.12);
  --shadow-lg: 0 40px 80px rgba(25, 25, 24, 0.16);
  --shadow-md: 0 16px 40px rgba(25, 25, 24, 0.09);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(49, 82, 103, 0.2), transparent 38%),
    radial-gradient(circle at bottom right, rgba(49, 82, 103, 0.14), transparent 34%),
    linear-gradient(180deg, #f7f9fb 0%, #e8eef3 100%);
  color: var(--foreground);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 12px;
}

.phone-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(243, 247, 251, 0.9) 100%);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
}

.ambient-one {
  top: -44px;
  right: -36px;
  width: 168px;
  height: 168px;
  background: rgba(49, 82, 103, 0.16);
}

.ambient-two {
  left: -56px;
  top: 260px;
  width: 196px;
  height: 196px;
  background: rgba(49, 82, 103, 0.12);
}

.topbar,
.hero-card,
.section-block,
.steps-card {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 12px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 9px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(35, 58, 73, 1) 0%, rgba(49, 82, 103, 0.96) 100%);
  box-shadow: 0 14px 30px rgba(49, 82, 103, 0.24);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.brand-copy strong {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.language-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.lang-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.lang-button:hover {
  transform: translateY(-1px);
}

.lang-button.is-active {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 24px rgba(49, 82, 103, 0.2);
}

.hero-card {
  margin: 6px 16px 18px;
  padding: 26px 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 30px;
  background:
    linear-gradient(160deg, rgba(18, 29, 37, 0.98), rgba(35, 58, 73, 0.96) 58%, rgba(49, 82, 103, 0.94) 100%);
  box-shadow: 0 24px 60px rgba(24, 41, 53, 0.28);
  color: #f7f9f7;
}

.hero-title,
.section-title,
.download-title,
.step-title {
  font-family: "Sora", sans-serif;
}

.hero-title {
  margin: 16px 0 12px;
  font-size: clamp(1.8rem, 7vw, 2.3rem);
  line-height: 1.1;
}

.section-block,
.steps-card {
  margin: 0 0 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.phone-shell > :last-child {
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.downloads-grid,
.steps-list,
.social-links {
  display: grid;
  gap: 14px;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(33, 31, 29, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.download-content {
  display: grid;
  gap: 10px;
}

.download-title {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.25;
}

.download-description {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.92rem;
  line-height: 1.55;
}

.download-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #315267 0%, #3d6783 55%, #315267 100%);
  background-size: 200% 200%;
  color: white;
  font-size: 0.95rem;
  font-weight: 800;
  isolation: isolate;
  will-change: transform, box-shadow, filter;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease,
    background-position 320ms ease,
    filter 220ms ease;
  box-shadow: 0 14px 32px rgba(49, 82, 103, 0.2);
}

.download-action::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 34%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 66%,
    transparent 100%
  );
  transform: translateX(-140%);
  transition: transform 620ms ease;
  z-index: 0;
}

.download-action::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(
      120deg,
      transparent 0%,
      transparent 35%,
      rgba(255, 255, 255, 0.12) 50%,
      transparent 65%,
      transparent 100%
    );
  background-size: 140% 140%, 220% 100%;
  background-position: 0% 0%, -180% 0%;
  opacity: 0.4;
  animation: download-button-idle 4.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.download-action > * {
  position: relative;
  z-index: 1;
}

.download-action:hover,
.download-action:focus-visible {
  transform: translateY(-3px);
  background-position: 100% 50%;
  box-shadow: 0 18px 36px rgba(49, 82, 103, 0.28);
  filter: saturate(1.05);
}

.download-action:hover::before,
.download-action:focus-visible::before {
  transform: translateX(140%);
}

.download-action:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 10px 20px rgba(49, 82, 103, 0.18);
  filter: saturate(0.98);
}

.download-action:focus-visible,
.social-link:focus-visible,
.lang-button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.8),
    0 0 0 6px var(--ring);
}

.steps-card {
  background:
    linear-gradient(180deg, rgba(248, 251, 253, 0.98), rgba(235, 241, 246, 0.94));
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(33, 31, 29, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--primary);
  color: white;
  font-size: 0.9rem;
  font-weight: 800;
}

.step-title {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.step-copy {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.55;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid rgba(33, 31, 29, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(49, 82, 103, 0.22);
  box-shadow: 0 16px 34px rgba(49, 82, 103, 0.12);
}

.social-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(49, 82, 103, 0.12), rgba(49, 82, 103, 0.18));
  color: var(--foreground);
}

.social-text {
  min-width: 0;
}

.social-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.social-copy {
  margin: 4px 0 0;
  color: var(--muted-foreground);
  font-size: 0.84rem;
  line-height: 1.4;
}

.social-arrow {
  color: var(--muted-foreground);
}

@keyframes download-button-idle {
  0%,
  100% {
    background-position: 0% 0%, -180% 0%;
    opacity: 0.28;
  }
  30% {
    background-position: 4% 6%, -180% 0%;
    opacity: 0.4;
  }
  58% {
    background-position: 10% 12%, 180% 0%;
    opacity: 0.52;
  }
  82% {
    background-position: 2% 4%, 180% 0%;
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-action {
    transition: box-shadow 180ms ease;
  }

  .download-action::before {
    transition: none;
  }

  .download-action::after {
    animation: none;
  }
}

@media (max-width: 430px) {
  .page-shell {
    padding: 0;
  }

  .phone-shell {
    min-height: 100vh;
    max-width: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
