/* ============================================
   StickStock Landing Page — Design System
   ============================================ */

:root {
  /* Colors */
  --bg-primary: #060a14;
  --bg-secondary: #0d1224;
  --surface-glass: rgba(255, 255, 255, 0.04);
  --surface-glass-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f2f8;
  --text-secondary: rgba(240, 242, 248, 0.55);
  --text-muted: rgba(240, 242, 248, 0.3);
  --accent-blue: #3b82f6;
  --accent-hover: #2563eb;

  /* Spacing */
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 72px;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-cta: 0 8px 24px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-icon: 0 12px 40px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s var(--ease-out-expo);
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   Background Effects
   ============================================ */

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

.particle {
  position: absolute;
  font-size: 28px;
  opacity: 0;
  animation: float-up linear infinite;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.1));
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) rotate(0deg) scale(0.6);
    opacity: 0;
  }

  10% {
    opacity: 0.5;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-10vh) rotate(360deg) scale(1);
    opacity: 0;
  }
}

.glow-orb {
  display: none;
}

/* ============================================
   Landing Layout
   ============================================ */

.landing {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100dvh;
  padding: var(--space-lg) var(--space-md);
  padding-top: max(env(safe-area-inset-top, 20px), var(--space-xl));
  padding-bottom: max(env(safe-area-inset-bottom, 20px), var(--space-lg));
  gap: var(--space-md);
}

/* ============================================
   App Icon
   ============================================ */

.app-icon-wrapper {
  position: relative;
  margin-bottom: var(--space-xs);
  animation: icon-entrance 1s var(--ease-out-expo) both;
}

.app-icon {
  width: 100px;
  height: 100px;
  border-radius: 22.5%;
  box-shadow: var(--shadow-icon);
  position: relative;
  z-index: 1;
  transition: transform var(--transition-base);
}

.app-icon-wrapper:hover .app-icon {
  transform: scale(1.08) rotate(-2deg);
}

.app-icon-glow {
  display: none;
}

@keyframes icon-entrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse-glow {
  0% {
    opacity: 0.2;
    transform: scale(0.9);
  }

  100% {
    opacity: 0.4;
    transform: scale(1.1);
  }
}

/* ============================================
   Hero Text
   ============================================ */

.hero-title {
  font-size: clamp(1.75rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  animation: text-entrance 1s var(--ease-out-expo) 0.15s both;
}

.hero-title__line1 {
  display: block;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.hero-title__line2 {
  display: block;
}

.gradient-text {
  color: var(--accent-blue);
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 400px;
  animation: text-entrance 1s var(--ease-out-expo) 0.3s both;
}

@keyframes text-entrance {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Hero Image
   ============================================ */

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: var(--space-xs) 0;
  animation: image-entrance 1.2s var(--ease-out-expo) 0.4s both;
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
}

.hero-image-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  z-index: 2;
  pointer-events: none;
}

@keyframes image-entrance {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.92);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================
   CTA Button
   ============================================ */

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--accent-blue);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-cta);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
  z-index: 2;
  animation: cta-entrance 1s var(--ease-out-expo) 0.6s both;
  -webkit-tap-highlight-color: transparent;
}

.cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 12px 32px rgba(59, 130, 246, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.cta-button:active {
  transform: translateY(0) scale(0.98);
}

.cta-button__apple-icon {
  flex-shrink: 0;
}

.cta-button__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.cta-button__label {
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cta-button__store {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@keyframes cta-entrance {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* CTA Pulse Ring */
.cta-pulse {
  display: none;
}



/* ============================================
   CTA Footnote
   ============================================ */

.cta-footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  animation: text-entrance 1s var(--ease-out-expo) 0.75s both;
}

/* ============================================
   Social Proof
   ============================================ */

.social-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-sm);
  animation: text-entrance 1s var(--ease-out-expo) 0.9s both;
}

.social-proof__stars {
  font-size: 1.1rem;
  color: #facc15;
  letter-spacing: 2px;
}

.social-proof__text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   Feature Pills
   ============================================ */

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-sm);
  animation: text-entrance 1s var(--ease-out-expo) 1.05s both;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-md);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

.footer a:hover {
  color: var(--accent-blue);
}

/* ============================================
   Mobile Bottom Bar (sticky CTA for scrolling)
   ============================================ */

.mobile-bottom-bar {
  display: none;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 480px) {
  .app-icon {
    width: 80px;
    height: 80px;
  }

  .hero-image-wrapper {
    max-width: 280px;
  }

  .cta-button {
    padding: 14px 28px;
  }

  .glow-orb {
    width: 250px;
    height: 250px;
  }
}

@media (min-width: 768px) {
  .app-icon {
    width: 120px;
    height: 120px;
  }

  .hero-image-wrapper {
    max-width: 420px;
  }

  .landing {
    gap: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .hero-image-wrapper {
    max-width: 480px;
  }
}

/* ============================================
   Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .particle {
    display: none;
  }

  .glow-orb {
    animation: none;
  }
}