:root {
  /* Brand Colors (from mobile app palette) */
  --primary-color: #003366;
  --primary-dark: #002447;
  --accent-color: #e67e22;
  --accent-dark: #d46816;
  --text-light: #ffffff;
  --text-dark: #0f1f2e;
  --text-muted: #4c5a6a;

  /* Backgrounds & Surfaces */
  --bg-cream: #f5eedc;
  --bg-surface: #fafafa;
  --bg-muted: #f7f7f7;
  --stroke: rgba(0, 51, 102, 0.12);
  --card-shadow: 0 18px 36px rgba(0, 40, 80, 0.18);

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 80px 20px;
}

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

body {
  font-family: 'Work Sans', 'Segoe UI', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 51, 102, 0.18), transparent 55%),
    radial-gradient(circle at 88% 0%, rgba(230, 126, 34, 0.16), transparent 50%);
}

body::after {
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 51, 102, 0.12), transparent 60%),
    radial-gradient(circle at 85% 70%, rgba(230, 126, 34, 0.12), transparent 55%);
}

#app {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  background-image: linear-gradient(120deg, var(--primary-color), var(--accent-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  text-align: center;
}

p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Utilities */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  color: var(--text-light);
  box-shadow: 0 12px 24px rgba(230, 126, 34, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(230, 126, 34, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: rgba(0, 51, 102, 0.24);
  box-shadow: none;
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 51, 102, 0.4);
  box-shadow: 0 10px 20px rgba(0, 40, 80, 0.12);
}

.section {
  padding: var(--section-padding);
}

#app > .section {
  opacity: 0;
  transform: translateY(18px);
  animation: section-reveal 0.8s ease forwards;
}

#app > .section:nth-child(2) {
  animation-delay: 0.1s;
}

#app > .section:nth-child(3) {
  animation-delay: 0.2s;
}

#app > .section:nth-child(4) {
  animation-delay: 0.3s;
}

#app > .section:nth-child(5) {
  animation-delay: 0.4s;
}

#app > .section:nth-child(6) {
  animation-delay: 0.5s;
}

@keyframes section-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Soft Card */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 51, 102, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 46px rgba(0, 40, 80, 0.18);
  border-color: rgba(0, 51, 102, 0.2);
}

.hero-image-container {
  position: relative;
  z-index: 1;
}

.hero-image-container::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, rgba(230, 126, 34, 0.35), transparent 70%);
  opacity: 0.7;
  filter: blur(40px);
  z-index: -1;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

/* Carousel */
.carousel {
  position: relative;
  margin-top: 16px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 8px 18px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 min(360px, 80vw);
  scroll-snap-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 51, 102, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 40, 80, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 14px 26px rgba(0, 40, 80, 0.18);
}

.carousel-btn.prev {
  left: -10px;
}

.carousel-btn.next {
  right: -10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 51, 102, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  width: 26px;
  background: var(--accent-color);
}

.screenshot-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 40, 80, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--bg-surface);
}

.screenshot-card:hover {
  transform: scale(1.02);
  box-shadow: 0 18px 30px rgba(0, 40, 80, 0.2);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Feature Icons */
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 51, 102, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-image-container {
    order: -1;
    margin-bottom: 40px;
  }

  .carousel-btn {
    display: none;
  }
}
