/* ============================================
   Dreamy and vibrant — Theme Tokens
   ============================================ */
:root {
  --background: 280 40% 98%;
  --foreground: 280 50% 10%;
  --card: 0 0% 100%;
  --card-foreground: 280 50% 10%;
  --popover: 280 40% 99%;
  --popover-foreground: 280 50% 10%;
  --primary: 270 90% 65%;
  --primary-foreground: 0 0% 100%;
  --secondary: 268.8 67.57% 92.75%;
  --secondary-foreground: 320 60% 30%;
  --muted: 280 20% 94%;
  --muted-foreground: 280 15% 45%;
  --accent: 285.88 36.17% 90.78%;
  --accent-foreground: 291.54 100% 15.29%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;
  --border: 280 20% 90%;
  --input: 280 20% 90%;
  --ring: 270 90% 65%;
  --chart-1: 270 90% 65%;
  --chart-2: 320 80% 60%;
  --chart-3: 190 80% 50%;
  --chart-4: 240 80% 70%;
  --chart-5: 340 80% 65%;
  --radius: 1rem;

  --shadow-2xs: 0px 2px 4px 0px hsl(270 50% 80% / 0.1);
  --shadow-sm: 0px 4px 8px -2px hsl(270 50% 80% / 0.2), 0px 2px 4px -2px hsl(270 50% 80% / 0.1);
  --shadow-md: 0px 12px 20px -8px hsl(270 50% 70% / 0.25);
  --shadow-lg: 0px 20px 30px -10px hsl(270 50% 70% / 0.3);
  --shadow-xl: 0px 25px 50px -12px hsl(270 50% 70% / 0.4);

  --font-sans: 'Quicksand', 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html.dark {
  --background: 280 45% 4%;
  --foreground: 280 20% 98%;
  --card: 280 40% 7%;
  --card-foreground: 280 20% 98%;
  --popover: 280 40% 8%;
  --popover-foreground: 280 20% 98%;
  --primary: 270 90% 75%;
  --primary-foreground: 280 50% 10%;
  --secondary: 320 50% 15%;
  --secondary-foreground: 320 80% 85%;
  --muted: 280 30% 12%;
  --muted-foreground: 280 15% 70%;
  --accent: 279.13 60.53% 14.9%;
  --accent-foreground: 284 28.3% 89.61%;
  --destructive: 0 62% 30%;
  --destructive-foreground: 0 0% 98%;
  --border: 280 30% 15%;
  --input: 280 30% 15%;
  --ring: 270 90% 75%;
  --chart-1: 270 90% 75%;
  --chart-2: 320 80% 70%;
  --chart-3: 190 80% 65%;
  --chart-4: 240 80% 75%;
  --chart-5: 340 80% 70%;

  --shadow-2xs: 0px 2px 4px 0px hsl(0 0% 0% / 0.5);
  --shadow-sm: 0px 4px 8px -2px hsl(0 0% 0% / 0.55), 0px 2px 4px -2px hsl(0 0% 0% / 0.45);
  --shadow-md: 0px 12px 24px -8px hsl(270 100% 2% / 0.8);
  --shadow-lg: 0px 20px 30px -10px hsl(0 0% 0% / 0.7);
  --shadow-xl: 0px 25px 50px -12px hsl(0 0% 0% / 0.7);
}

html { transition: background-color 0.4s ease, color 0.4s ease; }
body { transition: background-color 0.4s ease, color 0.4s ease; }

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

html, body {
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
  min-height: 100vh;
  overflow-x: hidden;
  word-break: normal;
  overflow-wrap: normal;
}

body {
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

html.js-enabled.homepage-loading .hero,
html.js-enabled.homepage-loading .main,
html.js-enabled.homepage-loading .footer {
  opacity: 0;
  visibility: hidden;
}

/* ============================================
   Ambient glowing background
   ============================================ */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
.glow-1 {
  width: 520px; height: 520px;
  top: -140px; left: -120px;
  background: radial-gradient(circle, hsl(270 90% 70% / 0.9), transparent 65%);
}
.glow-2 {
  width: 480px; height: 480px;
  top: 20%; right: -120px;
  background: radial-gradient(circle, hsl(320 90% 75% / 0.85), transparent 65%);
  animation-delay: -6s;
}
.glow-3 {
  width: 460px; height: 460px;
  bottom: -140px; left: 30%;
  background: radial-gradient(circle, hsl(190 90% 75% / 0.75), transparent 65%);
  animation-delay: -12s;
}
html.dark .glow-1 { background: radial-gradient(circle, hsl(270 90% 55% / 0.7), transparent 65%); }
html.dark .glow-2 { background: radial-gradient(circle, hsl(320 85% 55% / 0.6), transparent 65%); }
html.dark .glow-3 { background: radial-gradient(circle, hsl(190 85% 55% / 0.5), transparent 65%); }
html.dark .glow { opacity: 0.45; }

/* ============================================
   Theme toggle button (top-right)
   ============================================ */
.theme-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border));
  color: hsl(var(--primary));
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.3s ease;
}
.theme-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-lg), 0 0 24px hsl(var(--primary) / 0.35);
  color: hsl(var(--primary-foreground));
  background: linear-gradient(135deg, hsl(270 90% 65%), hsl(320 85% 65%));
  border-color: transparent;
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
html.dark .theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
html.dark .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: clamp(2.75rem, 5vh, 3.75rem) 1.5rem 4rem;
  text-align: center;
  position: relative;
}
.hero-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: hsl(var(--card) / 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid hsl(var(--border));
  color: hsl(var(--primary));
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.05rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 0.85rem;
}
.title-gradient {
  background: linear-gradient(
    135deg,
    hsl(270 90% 65%) 0%,
    hsl(320 90% 65%) 50%,
    hsl(190 85% 55%) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 20px hsl(270 90% 65% / 0.25));
}

.hero-sub {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 920px;
  margin: 0 auto 1.35rem;
  line-height: 1.6;
}

@media (min-width: 960px) {
  .hero-sub {
    white-space: nowrap;
  }
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: calc(var(--radius) - 0.25rem);
  font-size: 0.925rem;
  font-weight: 600;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, hsl(270 90% 65%), hsl(320 85% 65%));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-md), 0 0 30px hsl(270 90% 65% / 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 40px hsl(270 90% 65% / 0.5);
}
.btn-ghost {
  background: hsl(var(--card) / 0.6);
  backdrop-filter: blur(10px);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  background: hsl(var(--accent));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: hsl(var(--card) / 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 0.25rem);
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
  justify-content: center;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: hsl(var(--primary));
  line-height: 1.1;
}
.stat-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.15rem;
}
.stat-divider {
  width: 1px;
  height: 28px;
  background: hsl(var(--border));
}

/* ============================================
   Hero Product Preview (placeholder-ready)
   ============================================ */
.hero-preview {
  margin-top: 2.2rem;
  width: min(1080px, calc(100vw - 2rem));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

@media (min-width: 1100px) {
  .hero-inner {
    grid-template-columns: minmax(0, max-content) minmax(0, max-content);
    grid-template-areas:
      "badge badge"
      "title title"
      "sub sub"
      "actions stats"
      "preview preview";
    justify-content: center;
    align-items: center;
    column-gap: 1rem;
  }
  .hero-badge { grid-area: badge; }
  .hero-title { grid-area: title; }
  .hero-sub { grid-area: sub; }
  .hero-cta {
    grid-area: actions;
    justify-self: end;
  }
  .hero-stats {
    grid-area: stats;
    justify-self: start;
    padding: 0.68rem 1.05rem;
    gap: 0.9rem;
    border-radius: 16px;
  }
  .stat-num { font-size: 1.05rem; }
  .stat-label { font-size: 0.68rem; }
  .stat-divider { height: 24px; }
  .hero-preview { grid-area: preview; }
}
.hero-preview::before {
  content: '';
  position: absolute;
  inset: -30px -10% 10%;
  background: radial-gradient(ellipse at center, hsl(270 90% 65% / 0.35), transparent 65%);
  filter: blur(40px);
  z-index: -1;
}
.preview-frame {
  background: hsl(275 78% 98% / 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid hsl(272 78% 84% / 0.62);
  border-radius: calc(var(--radius) + 0.5rem);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 60px hsl(270 90% 65% / 0.25);
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background:
    linear-gradient(135deg, hsl(276 92% 96% / 0.98) 0%, hsl(255 92% 98% / 0.96) 46%, hsl(190 90% 96% / 0.94) 100%);
  border-bottom: 1px solid hsl(268 82% 82% / 0.56);
  box-shadow:
    0 1px 0 hsl(0 0% 100% / 0.86) inset,
    0 10px 24px hsl(274 90% 72% / 0.08);
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red    { background: hsl(0 75% 65%); }
.dot-yellow { background: hsl(45 90% 65%); }
.dot-green  { background: hsl(140 60% 60%); }
.preview-url {
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: hsl(268 58% 54%);
  padding: 0.22rem 0.8rem;
  background: hsl(0 0% 100% / 0.94);
  border-radius: 9999px;
  border: 1px solid hsl(268 82% 80% / 0.7);
  box-shadow:
    0 1px 0 hsl(0 0% 100% / 0.9) inset,
    0 2px 8px hsl(270 80% 58% / 0.1);
}
html.dark .preview-frame {
  background: hsl(260 22% 9% / 0.9);
  border-color: hsl(270 18% 24% / 0.88);
}
html.dark .preview-bar {
  background: linear-gradient(180deg, hsl(260 18% 15% / 0.98), hsl(260 18% 11% / 0.98));
  border-bottom-color: hsl(270 18% 24% / 0.82);
  box-shadow: 0 1px 0 hsl(0 0% 100% / 0.06) inset;
}
html.dark .preview-url {
  color: hsl(270 14% 76%);
  background: hsl(260 18% 18% / 0.92);
  border-color: hsl(270 18% 28% / 0.9);
  box-shadow:
    0 1px 0 hsl(0 0% 100% / 0.07) inset,
    0 1px 4px hsl(0 0% 0% / 0.14);
}
/* Viewport: 16:9 by default, wider on desktop hero */
.preview-viewport {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  contain: paint;
  background:
    radial-gradient(circle at 20% 20%, hsl(270 80% 90% / 0.6), transparent 60%),
    radial-gradient(circle at 80% 80%, hsl(320 80% 90% / 0.6), transparent 60%),
    hsl(var(--muted) / 0.4);
}

@media (min-width: 1100px) {
  .preview-viewport {
    aspect-ratio: 2 / 1;
  }
}
html.dark .preview-viewport {
  background:
    radial-gradient(circle at 20% 20%, hsl(270 60% 20% / 0.7), transparent 60%),
    radial-gradient(circle at 80% 80%, hsl(320 60% 20% / 0.7), transparent 60%),
    hsl(var(--muted) / 0.5);
}

/* Track slides horizontally */
.preview-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.preview-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.preview-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Arrow buttons */
.preview-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--card) / 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid hsl(var(--border));
  color: hsl(var(--primary));
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
  opacity: 0;
  z-index: 2;
}
.hero-preview:hover .preview-arrow { opacity: 1; }
.preview-arrow:hover {
  background: linear-gradient(135deg, hsl(270 90% 65%), hsl(320 85% 65%));
  color: white;
  border-color: transparent;
  transform: translateY(-50%) scale(1.08);
}
.preview-prev { left: 1rem; }
.preview-next { right: 1rem; }

/* Tabs */
.preview-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.preview-tab {
  padding: 0.45rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--card) / 0.6);
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.preview-tab:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.4);
}
.preview-tab.active {
  color: white;
  background: linear-gradient(135deg, hsl(270 90% 65%), hsl(320 85% 65%));
  border-color: transparent;
  box-shadow: 0 4px 14px hsl(270 90% 65% / 0.4);
}

@media (max-width: 640px) {
  .preview-arrow { width: 34px; height: 34px; opacity: 1; }
  .preview-prev { left: 0.5rem; }
  .preview-next { right: 0.5rem; }
  .preview-tab { font-size: 0.75rem; padding: 0.35rem 0.85rem; }
}

/* Placeholder content (shared by hero preview & iPhone mockup) */
.placeholder-content {
  text-align: center;
  color: hsl(var(--muted-foreground));
  padding: 1.5rem;
}
.placeholder-content svg {
  margin: 0 auto 0.85rem;
  color: hsl(var(--primary));
  opacity: 0.65;
}
.placeholder-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}
.placeholder-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.75;
}
.placeholder-content-sm .placeholder-title { font-size: 0.9rem; }
.placeholder-content-sm .placeholder-hint { font-size: 0.625rem; }

/* ============================================
   Mobile showcase (strips + iPhone mockup)
   ============================================ */
.mobile-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 390px);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
  margin-top: 1.25rem;
}
.mobile-showcase.app-only {
  grid-template-columns: 1fr;
  justify-items: center;
}
.mobile-strips { flex: 1; min-width: 0; align-self: start; }

.app-gallery {
  width: min(100%, 390px);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  justify-items: center;
  align-items: start;
}
.app-gallery.multi {
  width: 100%;
  grid-template-columns: 1fr;
}
.app-carousel-viewport {
  width: 100%;
  overflow: hidden;
  contain: paint;
}
.app-carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.app-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  display: grid;
  justify-items: center;
  min-width: 0;
}
.app-carousel-arrow {
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--background) / 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border) / 0.72);
  color: hsl(var(--primary));
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  z-index: 3;
}
.app-gallery:hover .app-carousel-arrow,
.app-gallery:focus-within .app-carousel-arrow {
  opacity: 1;
  pointer-events: auto;
}
.app-carousel-arrow:hover,
.app-carousel-arrow:focus-visible {
  background: hsl(var(--card) / 0.94);
  border-color: hsl(var(--primary) / 0.35);
  color: hsl(var(--primary));
  transform: translateY(-50%) scale(1.06);
  outline: none;
}
.app-carousel-prev { left: 0.25rem; }
.app-carousel-next { right: 0.25rem; }
.app-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  min-height: 12px;
}
.app-carousel-dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 9999px;
  background: hsl(var(--muted-foreground) / 0.32);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.app-carousel-dot.active {
  width: 20px;
  background: linear-gradient(135deg, hsl(270 90% 65%), hsl(320 85% 65%));
}

.iphone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.5rem;
  position: relative;
  min-width: 0;
}
.iphone-frame {
  width: clamp(212px, 23vw, 306px);
  aspect-ratio: 9 / 19.58;
  background:
    linear-gradient(145deg, hsl(264 24% 24%), hsl(260 18% 7%) 56%, hsl(276 18% 16%));
  border-radius: clamp(36px, 4.7vw, 52px);
  padding: clamp(2.75px, 0.34vw, 4px);
  position: relative;
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px hsl(280 20% 46% / 0.45) inset,
    0 0 0 2px hsl(260 18% 6% / 0.9),
    0 18px 38px hsl(260 25% 16% / 0.22);
}
.iphone-frame::before,
.iphone-frame::after {
  content: '';
  position: absolute;
  width: 1.5px;
  border-radius: 999px;
  background: linear-gradient(180deg, hsl(270 22% 42%), hsl(264 18% 15%));
  opacity: 0.85;
}
.iphone-frame::before {
  left: -2.5px;
  top: 18%;
  height: 13%;
  box-shadow: 0 58px 0 hsl(264 18% 18% / 0.9);
}
.iphone-frame::after {
  right: -2.5px;
  top: 25%;
  height: 15%;
}
.app-gallery.multi .iphone-frame {
  width: clamp(212px, 23vw, 306px);
}
html.dark .iphone-frame {
  background:
    linear-gradient(145deg, hsl(264 26% 27%), hsl(260 22% 6%) 58%, hsl(276 24% 15%));
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px hsl(280 30% 42% / 0.45) inset,
    0 0 0 2px hsl(260 20% 4% / 0.95),
    0 18px 38px hsl(260 60% 8% / 0.38);
}
.iphone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(38px, 7.8%, 46px);
  z-index: 4;
  color: hsl(230 18% 9%);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', var(--font-sans);
  pointer-events: none;
}
.iphone-status-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.iphone-status-time {
  fill: currentColor;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', var(--font-sans);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.iphone-island-body {
  fill: hsl(235 18% 3%);
  filter: drop-shadow(0 3px 7px hsl(0 0% 0% / 0.23));
}
.iphone-island-highlight {
  fill: hsl(0 0% 100% / 0.08);
  filter: blur(1.6px);
}
.iphone-island-camera {
  background:
    radial-gradient(circle at 38% 34%, hsl(214 64% 34%), hsl(229 32% 5%) 68%);
  fill: hsl(224 34% 8%);
  opacity: 0.78;
}
.iphone-status-signal,
.iphone-status-wifi,
.iphone-status-battery {
  fill: currentColor;
}
.iphone-battery-shell {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}
.iphone-battery-tip {
  fill: currentColor;
  opacity: 0.45;
}
.iphone-battery-fill {
  fill: currentColor;
}
.iphone-frame.has-app-image .iphone-screen {
  background: hsl(220 25% 97%);
}
html.dark .iphone-frame.has-app-image .iphone-screen {
  background: hsl(220 16% 10%);
}
html.dark .iphone-status-bar {
  color: hsl(0 0% 96%);
}
.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: clamp(33px, 4.45vw, 49px);
  background:
    radial-gradient(circle at 30% 30%, hsl(270 80% 85% / 0.8), transparent 60%),
    radial-gradient(circle at 70% 70%, hsl(320 80% 85% / 0.7), transparent 60%),
    hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.iphone-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(42px, 8.3%, 49px);
  z-index: 3;
  background: hsl(220 30% 98% / 0.985);
  box-shadow: 0 1px 0 hsl(220 18% 90% / 0.72);
  pointer-events: none;
}
html.dark .iphone-screen {
  background:
    radial-gradient(circle at 30% 30%, hsl(270 60% 25% / 0.8), transparent 60%),
    radial-gradient(circle at 70% 70%, hsl(320 60% 25% / 0.7), transparent 60%),
    hsl(var(--muted));
}
html.dark .iphone-screen::before {
  background: hsl(224 18% 8% / 0.965);
  box-shadow: 0 1px 0 hsl(224 12% 18% / 0.82);
}
.iphone-screen img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.app-caption {
  max-width: 220px;
  text-align: center;
}
.app-caption-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: hsl(var(--foreground));
}
.app-caption-sub {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
}

@media (max-width: 820px) {
  .mobile-showcase {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .app-gallery { order: -1; grid-template-columns: 1fr; }
  .app-gallery.multi { width: min(100%, 340px); }
  .app-carousel-arrow { display: none; }
}

/* ============================================
   Main / Sections
   ============================================ */
.main {
  width: 100%;
  flex: 1 0 auto;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}

.section { margin-bottom: 4rem; }
.section:last-child { margin-bottom: 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
  letter-spacing: 0;
}
.section-sub {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
}
.section-chip {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.6);
  backdrop-filter: blur(8px);
}
.chip-primary { color: hsl(270 90% 55%); border-color: hsl(270 90% 85%); background: hsl(270 80% 96%); }
.chip-pink    { color: hsl(320 80% 50%); border-color: hsl(320 80% 85%); background: hsl(320 80% 96%); }
.chip-cyan    { color: hsl(190 80% 40%); border-color: hsl(190 80% 80%); background: hsl(190 70% 95%); }
.chip-indigo  { color: hsl(240 70% 55%); border-color: hsl(240 70% 85%); background: hsl(240 70% 96%); }

/* ============================================
   Spotlight (Session Monitoring)
   ============================================ */
.spotlight {
  position: relative;
  padding: 3rem;
  border-radius: calc(var(--radius) + 0.5rem);
  background:
    radial-gradient(circle at 15% 20%, hsl(270 90% 92% / 0.9), transparent 55%),
    radial-gradient(circle at 85% 80%, hsl(320 90% 92% / 0.9), transparent 55%),
    hsl(var(--card) / 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, hsl(270 90% 65% / 0.04) 100%);
  pointer-events: none;
}

.spotlight-head { margin-bottom: 2.25rem; position: relative; }
.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, hsl(270 90% 65%), hsl(320 85% 65%));
  color: hsl(var(--primary-foreground));
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 16px hsl(270 90% 65% / 0.3);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem 2rem;
  position: relative;
}
.spot-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.spot-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(270 90% 75%), hsl(320 85% 75%));
  color: white;
  box-shadow: 0 6px 18px hsl(270 90% 65% / 0.35);
}
.spot-title {
  font-weight: 700;
  font-size: 0.975rem;
  margin-bottom: 0.25rem;
  color: hsl(var(--foreground));
}
.spot-desc {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}

/* ============================================
   User Management Grid
   ============================================ */
.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.user-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: hsl(var(--card) / 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.user-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: hsl(270 70% 85%);
}
.user-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.icon-primary { background: linear-gradient(135deg, hsl(270 90% 70%), hsl(270 85% 60%)); box-shadow: 0 6px 16px hsl(270 90% 65% / 0.3); }
.icon-pink    { background: linear-gradient(135deg, hsl(320 85% 70%), hsl(340 80% 65%)); box-shadow: 0 6px 16px hsl(320 85% 65% / 0.3); }
.icon-cyan    { background: linear-gradient(135deg, hsl(190 80% 60%), hsl(210 80% 60%)); box-shadow: 0 6px 16px hsl(190 80% 55% / 0.3); }
.icon-indigo  { background: linear-gradient(135deg, hsl(240 80% 70%), hsl(260 80% 70%)); box-shadow: 0 6px 16px hsl(240 80% 65% / 0.3); }
.icon-rose    { background: linear-gradient(135deg, hsl(340 85% 70%), hsl(360 80% 70%)); box-shadow: 0 6px 16px hsl(340 85% 65% / 0.3); }

.user-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: hsl(var(--foreground));
}
.user-desc {
  font-size: 0.825rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}

/* ============================================
   Strip List (Store / Mobile)
   ============================================ */
.strip-list {
  background: hsl(var(--card) / 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  transition: background 0.2s ease;
}
.strip-item:hover {
  background: hsl(var(--accent) / 0.4);
}
.strip-item + .strip-item {
  border-top: 1px solid hsl(var(--border));
}
.strip-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.strip-body { flex: 1; min-width: 0; }
.strip-title {
  font-weight: 700;
  font-size: 0.925rem;
  margin-bottom: 0.2rem;
  color: hsl(var(--foreground));
}
.strip-desc {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}
.strip-tag {
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: hsl(var(--secondary-foreground));
  background: hsl(var(--secondary));
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .strip-tag { display: none; }
  .strip-item { padding: 1rem; }
}

.section > .strip-list + .strip-list,
.section > .pill-grid + .strip-list {
  margin-top: 1rem;
}

/* ============================================
   Notification Pills
   ============================================ */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  background: hsl(var(--card) / 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.pill-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.pill-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}
.pill-sub {
  font-size: 0.725rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.1rem;
}

/* ============================================
   Tech Grid (Deployment)
   ============================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}
.tech {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  background: hsl(var(--card) / 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.tech:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: hsl(270 70% 85%);
}
.tech-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--muted));
  color: hsl(var(--primary));
}
.tech-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: hsl(var(--foreground));
}
.tech-sub {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.1rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item {
  background: hsl(var(--card) / 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: hsl(270 70% 85%);
}
.faq-item.open {
  box-shadow: var(--shadow-md);
  border-color: hsl(270 80% 80%);
  background: hsl(var(--card) / 0.92);
}
.faq-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 0.925rem;
  color: hsl(var(--foreground));
}
.faq-arrow {
  color: hsl(var(--primary));
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.16s ease;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.65;
}
.faq-answer {
  min-height: 0;
  overflow: hidden;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
}
.faq-content p { margin: 0; }
.faq-content p + p { margin-top: 0.55rem; }
.faq-item.open .faq-content {
  grid-template-rows: 1fr;
  opacity: 1;
}

@media (max-width: 959px) {
  .hero-sub { max-width: 640px; white-space: normal; }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid hsl(var(--border));
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  background: hsl(var(--card) / 0.4);
  backdrop-filter: blur(8px);
}
.footer-text {
  margin: 1rem 0 0;
  font-size: 0.82rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 0;
}
.footer-links a {
  color: hsl(var(--foreground));
  font-weight: 600;
  opacity: 0.82;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.footer-link,
.footer-note {
  --footer-accent: hsl(var(--primary));
  --footer-accent-soft: hsl(var(--primary) / 0.14);
  --footer-accent-line: hsl(var(--primary) / 0.28);
}
.footer-tone-pink {
  --footer-accent: hsl(var(--chart-2));
  --footer-accent-soft: hsl(var(--chart-2) / 0.14);
  --footer-accent-line: hsl(var(--chart-2) / 0.28);
}
.footer-tone-cyan {
  --footer-accent: hsl(var(--chart-3));
  --footer-accent-soft: hsl(var(--chart-3) / 0.14);
  --footer-accent-line: hsl(var(--chart-3) / 0.28);
}
.footer-tone-indigo {
  --footer-accent: hsl(var(--chart-4));
  --footer-accent-soft: hsl(var(--chart-4) / 0.14);
  --footer-accent-line: hsl(var(--chart-4) / 0.28);
}
.footer-tone-rose {
  --footer-accent: hsl(var(--chart-5));
  --footer-accent-soft: hsl(var(--chart-5) / 0.14);
  --footer-accent-line: hsl(var(--chart-5) / 0.28);
}
.footer-links a.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2rem;
  line-height: 1.15;
  white-space: nowrap;
}
.footer-label,
.footer-note-copy {
  min-width: 0;
  display: inline-block;
}
.footer-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--footer-accent);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-icon svg {
  width: 0.88rem;
  height: 0.88rem;
  display: block;
  stroke-width: 2;
}
.footer-icon.footer-icon-image,
.footer-icon-style-line .footer-icon.footer-icon-image,
.footer-icon-style-soft .footer-icon.footer-icon-image,
.footer-icon-style-solid .footer-icon.footer-icon-image {
  width: 1.125rem;
  height: 1.125rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
}
.footer-icon.footer-icon-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.footer-icon-style-line .footer-icon {
  background: transparent;
  border: 1px solid transparent;
}
.footer-icon-style-soft .footer-icon {
  background: var(--footer-accent-soft);
  border: 1px solid var(--footer-accent-line);
}
.footer-icon-style-solid .footer-icon {
  background: var(--footer-accent);
  color: white;
  box-shadow: 0 0.55rem 1.2rem -0.75rem var(--footer-accent);
}
.footer-link:hover .footer-icon {
  transform: translateY(-1px);
}
.footer-layout-break {
  flex-basis: 100%;
  justify-content: center;
}
.footer-links a:hover {
  color: var(--footer-accent, hsl(var(--primary)));
  opacity: 1;
}
.footer-notes {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  max-width: min(900px, 100%);
  margin: 0.9rem auto 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground) / 0.86);
}
.footer-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  line-height: 1.35;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .footer-links a.footer-link,
  .footer-note {
    white-space: normal;
  }
}
.footer-formal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.9rem;
  font-size: 0.76rem;
  color: hsl(var(--muted-foreground) / 0.78);
}
.footer > :first-child { margin-top: 0; }
.footer-formal a { color: inherit; }
.footer-formal a:hover { color: hsl(var(--primary)); }
.heart {
  color: hsl(var(--chart-5));
  display: inline-block;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, hsl(270 80% 80%), hsl(320 80% 80%));
  border-radius: 10px;
  border: 2px solid hsl(var(--background));
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, hsl(270 80% 70%), hsl(320 80% 70%));
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .hero { padding: 4rem 1rem 3rem; }
  .spotlight { padding: 2rem 1.5rem; }
  .section-head { align-items: flex-start; }
  .hero-stats { padding: 0.85rem 1.25rem; gap: 1rem; }
}