/* Colors taken from the logo (same as the Keys2Keys app) */
:root {
  --navy-950: #040b1c;
  --cyan: #1ec8f0;
  --blue: #1e88e5;
  --orange: #ff6a2b;
  --silver: #e6ebf2;
  --gradient-logo: linear-gradient(90deg, var(--cyan), var(--blue) 50%, var(--orange));
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Exo 2', 'Inter', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--silver);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(30, 136, 229, 0.25) 0%, rgba(7, 19, 48, 0) 60%),
    linear-gradient(180deg, #071533 0%, var(--navy-950) 100%);
}

/* Soft cyan and orange glows in the corners */
.page::before,
.page::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}
.page::before { background: var(--cyan); top: -180px; left: -160px; }
.page::after { background: var(--orange); bottom: -220px; right: -180px; }

.inner { position: relative; max-width: 960px; width: 100%; }

/* Each part fades in one after another */
.logo, .badge, h1, .tagline, .features, footer {
  animation: fade-up 0.6s var(--ease) both;
}
.badge { animation-delay: 0.05s; }
h1 { animation-delay: 0.1s; }
.tagline { animation-delay: 0.15s; }
.features { animation-delay: 0.2s; }
footer { animation-delay: 0.25s; }

/* Logo cropped to the keys and name; its dark background blends into the page */
.logo {
  display: block;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center 52%;
  margin: 0 auto;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at center, #000 55%, transparent 100%);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(30, 200, 240, 0.35);
  border-radius: 999px;
  background: rgba(30, 200, 240, 0.08);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Pulsing orange dot in the badge */
.badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.8s ease-in-out infinite;
}

h1 {
  font-family: var(--font-brand);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.3rem, 7vw, 4.5rem);
  line-height: 1.1;
  margin: 1.25rem 0 1rem;
  padding: 0 0.1em;
  background: var(--gradient-logo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #c4cfdf;
  max-width: 620px;
  margin: 0 auto;
}
.tagline strong { color: #fff; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  text-align: left;
}

.feature {
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.feature h2 {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}
.feature h2 span { color: var(--orange); margin-right: 0.4rem; }

.feature p { font-size: 0.92rem; line-height: 1.55; color: #9fb0c8; }

footer {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #6f819c;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

/* Phones: stack the three boxes */
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .tagline { font-size: 1.05rem; }
}

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