@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Outfit:wght@700;800;900&display=swap');

:root {
  --color-orange: #FF5500;
  --color-pink: #FF1475;
  --color-purple: #7928CA;
  --color-dark: #0D0D12;
  --color-surface: #FBFBFC;
  --color-surface-card: #FFFFFF;
  --gradient-brand: linear-gradient(135deg, #FF5500 0%, #FF1475 50%, #7928CA 100%);
  --gradient-story: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.85) 100%);
}

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

img, svg, video {
  max-width: 100%;
  height: auto;
}

/* Core Layout Utilities */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.z-50 { z-index: 50; }
.z-30 { z-index: 30; }
.z-20 { z-index: 20; }
.z-10 { z-index: 10; }

.hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .md\:flex {
    display: none !important;
  }
}

@media (min-width: 640px) {
  .sm\:flex {
    display: flex !important;
  }
  .sm\:hidden {
    display: none !important;
  }
  .sm\:inline {
    display: inline !important;
  }
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex !important;
  }
  .md\:hidden {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .lg\:flex {
    display: flex !important;
  }
  .lg\:hidden {
    display: none !important;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-surface);
  color: #0D0D12;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

/* Typography */
.font-syne {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.025em;
}

.font-jakarta {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Authentic Story Reactions (Floating around phone) */
.story-reaction-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(13, 13, 18, 0.08);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
  border-radius: 18px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.story-reaction-card:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 20px 42px -10px rgba(0, 0, 0, 0.18);
}

/* Floating animation */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translateY(-8px) rotate(var(--rot, 0deg));
  }
}

.animate-float-1 {
  --rot: -2deg;
  animation: floatSlow 5s ease-in-out infinite;
}

.animate-float-2 {
  --rot: 3deg;
  animation: floatSlow 6s ease-in-out infinite 1s;
}

.animate-float-3 {
  --rot: -1.5deg;
  animation: floatSlow 5.5s ease-in-out infinite 2s;
}

/* Realistic Smartphone Device Frame */
.device-shell {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: #000000;
  border-radius: 46px;
  padding: 11px;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 25px 60px -15px rgba(13, 13, 18, 0.35),
    0 10px 24px -5px rgba(13, 13, 18, 0.15);
}

.device-screen {
  border-radius: 36px;
  overflow: hidden;
  background: #000000;
  position: relative;
}

/* Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000000;
  border-radius: 20px;
  z-index: 30;
}

/* Interactive Story Simulator Shell */
.ig-story-container {
  background: #111018;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.3);
  aspect-ratio: 9 / 18.5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Story Progress Bars */
.story-progress-bar {
  display: flex;
  gap: 4px;
  padding: 10px 12px 6px;
  z-index: 20;
}

.story-progress-segment {
  height: 2.5px;
  flex: 1;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 99px;
  overflow: hidden;
}

.story-progress-segment.active {
  background: #FFFFFF;
}

/* Story Header */
.story-header {
  padding: 4px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
}

/* Story Footer */
.story-footer {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 20;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.story-input-pill {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

/* Story Sticker Link */
.story-link-sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  color: #0D0D12;
  font-weight: 800;
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 99px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.02em;
}

/* 24h Timeline Step */
.timeline-card {
  background: #FFFFFF;
  border: 1px solid rgba(13, 13, 18, 0.07);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 640px) {
  .timeline-card {
    padding: 24px;
  }
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.08);
}

/* Categories Cards */
.category-card {
  background: #FFFFFF;
  border: 1px solid rgba(13, 13, 18, 0.07);
  border-radius: 22px;
  padding: 22px;
  transition: all 0.25s ease;
}

.category-card:hover {
  border-color: rgba(13, 13, 18, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.07);
}

/* FAQ Details */
details summary::-webkit-details-marker {
  display: none;
}

details summary {
  list-style: none;
}

details[open] summary svg.chevron {
  transform: rotate(180deg);
}

svg.chevron {
  transition: transform 0.2s ease;
}
