@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

:root {
  --bg-dark: #001e3c;
  --bg-light: #003a6b;
  --accent-mid: #3399ff;
  --accent-light: #66d9ff;
  --white: #e0f7ff;
  --input-bg: rgba(224,247,255,0.2);
  --gutter: 1rem;
  --radius: 1rem;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 0.2s;
  --medium: 0.5s;
  --screen-aspect: 360/780;
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-dark) center/cover no-repeat;
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
}

.content {
  display: none !important;
}

.screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  padding: var(--gutter);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.card {
  width: 100%;
  background: linear-gradient(180deg, rgba(0,30,60,0.9), rgba(0,58,107,0.8));
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.emoji {
  font-size: 2.5rem;
  animation: bounce 2.5s infinite var(--ease);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}

.title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-light);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7), 0 0 8px var(--accent-mid);
  text-align: center;
}

.subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
  line-height: 1.3;
  text-align: center;
}

.subtitle .fire {
  animation: flicker 1.8s infinite var(--ease);
  display: inline-block;
  transform-origin: center bottom;
}
@keyframes flicker {
  0%, 18%, 20%, 60%, 62%, 100% { opacity: 1; transform: scale(1); }
  19%, 61% { opacity: 0.4; transform: scale(0.9); }
}

.highlight {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-light);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
  margin-top: 0.5rem;
}

.input-group {
  width: 100%;
  margin-bottom: var(--gutter);
}

input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: calc(var(--radius)/2);
  background: var(--input-bg);
  color: var(--white);
  font-size: 1rem;
  transition: box-shadow var(--medium) var(--ease), transform var(--fast) var(--ease);
}
input[type="text"]:focus {
  outline: none;
  box-shadow: 0 0 12px var(--accent-mid);
  transform: translateY(-2px);
}
.shake {
  animation: shake 0.5s var(--ease);
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-6px); }
  40%,80% { transform: translateX(6px); }
}

.btn {
  width: 100%;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--white);
  border: none;
  border-radius: calc(var(--radius)/2);
  background: linear-gradient(90deg, var(--accent-mid), var(--accent-light));
  background-size: 200% 200%;
  animation: gradient 4s var(--ease) infinite;
  transition: transform var(--fast) var(--ease);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
@keyframes gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.btn:hover {
  transform: scale(1.03) translateY(-1px);
}
.btn .icon {
  margin-left: 0.5rem;
  width: 1.25em;
  height: 1.25em;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.carousel-section {
  width: 100%;
  margin-top: var(--gutter);
}
.carousel-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

.carousel {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 0.5rem;
  transition: transform var(--fast) var(--ease);
  cursor: grab;
  touch-action: pan-x;
  user-select: none;
  animation: scrollCarousel 20s linear infinite;
}
.carousel-track:active {
  cursor: grabbing;
  animation-play-state: paused;
}
@keyframes scrollCarousel {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.carousel-item {
  flex: 0 0 calc((100% - (4 * 0.5rem)) / 5);
  position: relative;
}

.skeleton {
  position: absolute;
  inset: 0;
  background: rgba(224,247,255,0.1);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.4; }
}

.carousel-item img {
  width: 100%;
  border-radius: calc(var(--radius)/1.3);
  object-fit: cover;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}
.dot {
  width: 0.6rem; height: 0.6rem;
  background: rgba(224,247,255,0.5);
  border: none; border-radius: 50%;
  transition: background var(--fast) var(--ease);
}
.dot.active {
  background: var(--accent-light);
}

.testimonials-section {
  width: 100%;
  background: rgba(0,36,72,0.85);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: var(--gutter);
}

.testimonials-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-light);
  text-align: center;
  margin-bottom: 1rem;
}

.testimonials-carousel {
  position: relative;
  height: 4.5rem;
  overflow: hidden;
}

.testimonial-item {
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  opacity: 0;
  transform: translateY(20px);
  background: rgba(224,247,255,0.05);
  padding: 0.75rem 1rem;
  border-radius: calc(var(--radius)/2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: top var(--fast) var(--ease), opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.2;
}

.testimonial-item.active {
  top: 0;
  opacity: 1;
  transform: translateY(0);
}

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

.logo img {
  width: 80px;
  height: auto;
  display: block;
  margin: 0 auto;
}