/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero gradient background (matching banner style) */
.hero-bg {
  background:
    radial-gradient(ellipse at top right, rgba(58, 146, 232, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(15, 93, 176, 0.25) 0%, transparent 55%),
    linear-gradient(135deg, #0a448a 0%, #0f5db0 50%, #1976d2 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px, 60px 60px;
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background:
    repeating-linear-gradient(
      -25deg,
      transparent 0px,
      transparent 18px,
      rgba(255, 255, 255, 0.06) 18px,
      rgba(255, 255, 255, 0.06) 20px
    );
  pointer-events: none;
}

/* Yellow highlight (banner style) */
.text-highlight {
  color: #ffd83a;
  font-weight: 900;
}

.text-stroke-yellow {
  -webkit-text-stroke: 1px #ffd83a;
  color: #ffd83a;
}

/* Section reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header shadow on scroll */
#site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Form focus styles */
input:focus,
textarea:focus {
  outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Banner-style ribbon shape */
.ribbon-banner {
  background: linear-gradient(135deg, #0a448a, #0f5db0);
  position: relative;
}

/* Highlight underline (yellow marker style) */
.marker-yellow {
  background: linear-gradient(transparent 60%, rgba(255, 216, 58, 0.6) 60%);
  padding: 0 2px;
}

/* ===== Phone mockup container with star burst background ===== */
.phone-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Star burst (sparkle) shape behind the phone */
.phone-star {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.20) 40%, rgba(255, 255, 255, 0) 72%);
  /* 16-point star polygon */
  clip-path: polygon(
    50% 0%, 56% 18%, 70% 6%, 68% 24%, 85% 18%, 76% 33%,
    94% 35%, 80% 45%, 100% 50%, 80% 55%, 94% 65%, 76% 67%,
    85% 82%, 68% 76%, 70% 94%, 56% 82%, 50% 100%, 44% 82%,
    30% 94%, 32% 76%, 15% 82%, 24% 67%, 6% 65%, 20% 55%,
    0% 50%, 20% 45%, 6% 35%, 24% 33%, 15% 18%, 32% 24%,
    30% 6%, 44% 18%
  );
  pointer-events: none;
  z-index: 1;
  animation: star-rotate 60s linear infinite;
}

.phone-star.phone-star--outer {
  width: 210%;
  background: radial-gradient(circle at center, rgba(255, 216, 58, 0.38) 0%, rgba(255, 216, 58, 0.18) 45%, rgba(255, 216, 58, 0) 72%);
  animation: star-rotate-rev 90s linear infinite;
}

@media (min-width: 1024px) {
  .phone-star {
    width: 190%;
  }
  .phone-star.phone-star--outer {
    width: 230%;
  }
}

@keyframes star-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes star-rotate-rev {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Phone image: bigger and more prominent */
.phone-image {
  position: relative;
  z-index: 5;
  width: 320px;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5));
}

@media (min-width: 1024px) {
  .phone-image {
    width: 420px;
  }
}

/* Yellow badge - anchored to the phone (not the column) */
.phone-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 20;
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  background: #ffd83a;
  color: #0a3a72;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(12deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1024px) {
  .phone-badge {
    width: 120px;
    height: 120px;
    font-size: 15px;
    top: -16px;
    right: -16px;
  }
}
