:root {
  --kp-bg: #0c0a09;
  --kp-bg-elevated: #151210;
  --kp-surface: #1c1917;
  --kp-text: #fff6ec;
  --kp-muted: #a8a29e;
  --kp-accent: #ff8a00;
  --kp-accent-deep: #e06a00;
  --kp-wa: #128c7e;
  --kp-wa-hover: #0e7a6e;
  --kp-wa-active: #0b655b;
  --kp-border: rgba(255, 246, 236, 0.12);
  --kp-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shell-max: 28rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--kp-text);
  background: var(--kp-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 138, 0, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(18, 140, 126, 0.12), transparent 50%),
    linear-gradient(180deg, #14110f 0%, var(--kp-bg) 40%, #080706 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100%, var(--shell-max));
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2rem, 6vw, 3rem) 1.25rem 2rem;
  animation: rise-in 0.7s var(--ease) both;
}

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

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-bottom: 1.75rem;
}

.logo-ring {
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, var(--kp-accent), #ffb454 45%, rgba(255, 246, 236, 0.35));
  box-shadow:
    0 0 0 6px rgba(255, 138, 0, 0.12),
    0 16px 36px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.15rem;
  animation: logo-glow 3.2s ease-in-out infinite;
}

@keyframes logo-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 6px rgba(255, 138, 0, 0.12),
      0 16px 36px rgba(0, 0, 0, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(255, 138, 0, 0.2),
      0 18px 42px rgba(255, 138, 0, 0.18);
  }
}

.logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0a0a0a;
}

.wordmark {
  margin: 0;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: clamp(1.65rem, 6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.wordmark-ka {
  color: var(--kp-accent);
  letter-spacing: -0.04em;
  text-shadow: 0 0 18px rgba(255, 138, 0, 0.45);
}

.wordmark-punter {
  color: var(--kp-text);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.wordmark-bar {
  display: block;
  width: 8.5rem;
  height: 2.5px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--kp-accent) 0%,
    var(--kp-accent) 32%,
    rgba(255, 246, 236, 0.5) 32%,
    rgba(255, 246, 236, 0.5) 100%
  );
  box-shadow: 0 0 10px rgba(255, 138, 0, 0.35);
}

.tagline {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--kp-muted);
  letter-spacing: 0.01em;
}

.trust-line {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.65rem 0 0;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--kp-border);
  background: rgba(255, 246, 236, 0.04);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 246, 236, 0.72);
}

.trust-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.08);
  }
}

.actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem 0 1.35rem;
  border-top: 1px solid var(--kp-border);
  border-bottom: 1px solid var(--kp-border);
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 3.35rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(180deg, #16a085 0%, var(--kp-wa) 55%, #0f766e 100%);
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 8px 20px rgba(18, 140, 126, 0.28);
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.action-btn:hover {
  background: linear-gradient(180deg, #1ab394 0%, var(--kp-wa-hover) 55%, #0d6b63 100%);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 12px 28px rgba(18, 140, 126, 0.38);
}

.action-btn:active {
  transform: translateY(0);
  background: var(--kp-wa-active);
}

.action-btn:focus-visible {
  outline: 2px solid var(--kp-accent);
  outline-offset: 3px;
}

.action-icon {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.95;
}

.action-label {
  line-height: 1.25;
}

.app-cta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 1.35rem;
  gap: 0.35rem;
  animation: rise-in 0.85s var(--ease) 0.12s both;
}

.more-info {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--kp-muted);
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--kp-accent);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
}

.app-link:hover {
  color: #ffb454;
}

.app-link:focus-visible {
  outline: 2px solid var(--kp-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.external-icon {
  flex-shrink: 0;
}

.open-app {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 138, 0, 0.45);
  background: linear-gradient(180deg, rgba(255, 138, 0, 0.22), rgba(255, 138, 0, 0.08));
  color: var(--kp-text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 138, 0, 0.12);
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.open-app:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 138, 0, 0.75);
  background: linear-gradient(180deg, rgba(255, 138, 0, 0.32), rgba(255, 138, 0, 0.12));
}

.open-app:focus-visible {
  outline: 2px solid var(--kp-accent);
  outline-offset: 3px;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: auto;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  text-align: center;
  background: linear-gradient(90deg, #0f766e 0%, #14b8a6 40%, var(--kp-accent) 100%);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.25);
}

.site-footer p {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

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

@media (min-width: 640px) {
  .shell {
    padding-top: 3.5rem;
  }

  .action-btn {
    font-size: 0.82rem;
  }
}
