/* SkillBridge Teaser — Soft, Warm, Playful
   Matches app brand. Pure CSS. Zero JavaScript. */

/* === Keyframes === */

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes logo-reveal {
  from { opacity: 0; transform: scale(0.85) translateY(20px); filter: blur(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

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

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(15px, -20px) rotate(5deg) scale(1.02); }
  50% { transform: translate(-10px, -35px) rotate(-3deg) scale(0.98); }
  75% { transform: translate(20px, -15px) rotate(4deg) scale(1.01); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-25px, 15px) rotate(-8deg); }
  66% { transform: translate(10px, -20px) rotate(5deg); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(20px, 25px) rotate(10deg) scale(1.05); }
}

@keyframes float-4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-20px, -10px) rotate(-6deg); }
  75% { transform: translate(15px, 20px) rotate(8deg); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

@keyframes soft-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 0.4; }
}

@keyframes draw-x {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes bounce-in {
  0% { opacity: 0; transform: scale(0.3) translateY(20px); }
  50% { transform: scale(1.08) translateY(-5px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}

/* === Reset === */

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

html { height: 100%; }

body {
  font-family: var(--ff-body);
  color: var(--text-dark);
  background: var(--lavender);
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(236, 72, 153, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(16, 185, 129, 0.04) 0%, transparent 40%);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* === Floating Shapes (decorative background) === */

.shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: var(--radius-xl);
}

/* Large mint blob — top right */
.shape--1 {
  width: clamp(120px, 20vw, 240px);
  height: clamp(120px, 20vw, 240px);
  background: var(--mint-soft);
  top: 8%;
  right: 8%;
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  animation: float-1 18s ease-in-out infinite;
  opacity: 0.7;
}

/* Medium coral blob — left */
.shape--2 {
  width: clamp(80px, 14vw, 180px);
  height: clamp(80px, 14vw, 180px);
  background: var(--coral-soft);
  top: 55%;
  left: 5%;
  border-radius: 40% 60% 50% 50% / 60% 40% 50% 50%;
  animation: float-2 22s ease-in-out infinite;
  opacity: 0.6;
}

/* Small purple blob — bottom right */
.shape--3 {
  width: clamp(60px, 10vw, 140px);
  height: clamp(60px, 10vw, 140px);
  background: var(--purple-soft);
  bottom: 12%;
  right: 15%;
  border-radius: 50% 40% 60% 50% / 40% 60% 40% 60%;
  animation: float-3 20s ease-in-out infinite;
  opacity: 0.65;
}

/* Pink blob — top left */
.shape--4 {
  width: clamp(70px, 12vw, 160px);
  height: clamp(70px, 12vw, 160px);
  background: var(--pink-soft);
  top: 25%;
  left: 12%;
  border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%;
  animation: float-4 24s ease-in-out infinite;
  opacity: 0.5;
}

/* Blue blob — bottom left */
.shape--5 {
  width: clamp(50px, 8vw, 120px);
  height: clamp(50px, 8vw, 120px);
  background: var(--blue-soft);
  bottom: 25%;
  left: 25%;
  border-radius: 45% 55% 55% 45% / 55% 45% 45% 55%;
  animation: float-1 26s ease-in-out infinite 3s;
  opacity: 0.5;
}

/* Lime dot — mid right */
.shape--6 {
  width: clamp(40px, 6vw, 80px);
  height: clamp(40px, 6vw, 80px);
  background: var(--lime-soft);
  top: 42%;
  right: 6%;
  border-radius: 50%;
  animation: float-2 16s ease-in-out infinite 5s;
  opacity: 0.6;
}

/* === Decorative Dots === */

.dots {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.dot:nth-child(1) { width: 8px; height: 8px; background: var(--purple); top: 18%; left: 30%; animation: dot-pulse 4s ease infinite 0s; }
.dot:nth-child(2) { width: 6px; height: 6px; background: var(--pink); top: 72%; right: 28%; animation: dot-pulse 5s ease infinite 1s; }
.dot:nth-child(3) { width: 10px; height: 10px; background: var(--mint); top: 38%; right: 20%; animation: dot-pulse 3.5s ease infinite 2s; }
.dot:nth-child(4) { width: 7px; height: 7px; background: var(--coral); bottom: 20%; left: 18%; animation: dot-pulse 4.5s ease infinite 0.5s; }
.dot:nth-child(5) { width: 5px; height: 5px; background: var(--blue); top: 60%; left: 40%; animation: dot-pulse 6s ease infinite 3s; }

/* === Page Layout === */

.page {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(20px, 4vw, 40px) clamp(24px, 5vw, 60px);
}

/* === Nav === */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  animation: rise 0.8s var(--ease-out-expo) 0.2s forwards;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__icon {
  width: 32px;
  height: 32px;
}

.nav__name {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.nav__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--white);
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
}

.nav__pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: dot-pulse 2s ease-in-out infinite;
}

/* === Hero === */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

/* Main card */
.hero__card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-card);
  padding: 30px;
  max-width: min(92%, 580px);
  width: 100%;
  position: relative;
  opacity: 0;
  animation: rise 1s var(--ease-out-expo) 0.4s forwards;
}

/* Accent bar on top of card */
.hero__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--mint), var(--purple), var(--pink), var(--coral));
}

/* === Logo === */

.hero__logo {
  opacity: 0;
  animation: logo-reveal 1.2s var(--ease-out-expo) 0.7s forwards;
  margin-bottom: var(--space-lg);
}

.hero__logo img {
  width: clamp(100px, 22vw, 160px);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* === Mascot/Icon Row === */

.hero__icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--space-lg);
}

.hero__icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
}

.hero__icon-bubble:nth-child(1) {
  background: var(--mint-soft);
  animation: bounce-in 0.6s var(--ease-spring) 1s forwards;
}
.hero__icon-bubble:nth-child(2) {
  background: var(--purple-soft);
  animation: bounce-in 0.6s var(--ease-spring) 1.15s forwards;
}
.hero__icon-bubble:nth-child(3) {
  background: var(--pink-soft);
  animation: bounce-in 0.6s var(--ease-spring) 1.3s forwards;
}
.hero__icon-bubble:nth-child(4) {
  background: var(--coral-soft);
  animation: bounce-in 0.6s var(--ease-spring) 1.45s forwards;
}
.hero__icon-bubble:nth-child(5) {
  background: var(--blue-soft);
  animation: bounce-in 0.6s var(--ease-spring) 1.6s forwards;
}

/* === Typography === */

.hero__title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: rise 1s var(--ease-out-expo) 1.2s forwards;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero__sub {
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-medium);
  max-width: 36ch;
  margin: 0 auto var(--space-lg);
  font-weight: 400;
  opacity: 0;
  animation: rise 0.8s var(--ease-out-expo) 1.5s forwards;
}

/* === Divider === */

.hero__divider {
  width: 48px;
  height: 3px;
  border: none;
  background: linear-gradient(90deg, var(--mint), var(--purple));
  border-radius: 2px;
  margin: 0 auto var(--space-lg);
  transform-origin: center;
  transform: scaleX(0);
  animation: draw-x 0.6s var(--ease-out-expo) 1.7s forwards;
}

/* === Status Chips === */

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  animation: rise 0.8s var(--ease-out-expo) 1.9s forwards;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.chip--primary {
  background: var(--purple-soft);
  color: var(--purple);
}

.chip--mint {
  background: var(--mint-soft);
  color: var(--mint);
}

.chip--pink {
  background: var(--pink-soft);
  color: var(--pink);
}

.chip__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* === Feature Cards Row (below main card) === */

.features {
  display: flex;
  gap: 12px;
  margin-top: clamp(20px, 3vh, 36px);
  justify-content: center;
  flex-wrap: wrap;
  max-width: 580px;
  width: 100%;
}

.feature {
  flex: 1;
  min-width: 120px;
  max-width: 180px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2vw, 24px);
  text-align: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
}

.feature:nth-child(1) { animation: bounce-in 0.6s var(--ease-spring) 2.1s forwards; }
.feature:nth-child(2) { animation: bounce-in 0.6s var(--ease-spring) 2.25s forwards; }
.feature:nth-child(3) { animation: bounce-in 0.6s var(--ease-spring) 2.4s forwards; }

.feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.feature__icon--mint { background: var(--mint-soft); }
.feature__icon--purple { background: var(--purple-soft); }
.feature__icon--coral { background: var(--coral-soft); }

.feature__label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === Footer === */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--text-light);
  font-weight: 500;
  opacity: 0;
  animation: rise 0.8s var(--ease-out-expo) 2.6s forwards;
}

.footer__line {
  flex: 1;
  height: 1px;
  background: var(--lavender-deep);
  margin: 0 clamp(12px, 3vw, 32px);
}

/* === Responsive === */

@media (max-width: 480px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .footer__line { display: none; }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .feature { max-width: 200px; }

  .hero__icons { gap: 8px; }
  .hero__icon-bubble { width: 38px; height: 38px; font-size: 1.1rem; }
}

@media (min-width: 768px) {
  .hero__card {
    max-width: 600px;
  }
}

@media (min-width: 1440px) {
  .hero__card {
    max-width: 640px;
  }
}

/* === Accessibility === */

@media (prefers-reduced-motion: reduce) {
  .shape,
  .dot,
  body::after {
    animation: none !important;
  }

  .dot { display: none; }

  .nav,
  .hero__card,
  .hero__logo,
  .hero__icon-bubble,
  .hero__title,
  .hero__sub,
  .hero__divider,
  .hero__chips,
  .feature,
  .footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .nav__pill-dot {
    animation: none;
  }
}
