/* Socialmesh Landing Page Styles */
/* ================================ */

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* App-matched dark theme */
  --bg-primary: #1F2633;
  --bg-secondary: #29303D;
  --bg-card: #29303D;
  --bg-card-hover: #343D4D;
  --border-color: #414A5A;

  /* Brand colors from app */
  --accent-magenta: #E91E8C;
  --accent-purple: #8B5CF6;
  --accent-blue: #4F6AF6;
  --accent: #E91E8C;
  --accent-glow: rgba(233, 30, 140, 0.4);
  --accent-secondary: #8B5CF6;

  /* Status colors */
  --success: #4ADE80;
  --warning: #FBBF24;
  --error: #EF4444;

  /* Text colors matching app */
  --text-primary: #FFFFFF;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;

  /* Brand gradients */
  --gradient-brand: linear-gradient(135deg, #E91E8C 0%, #8B5CF6 50%, #4F6AF6 100%);
  --gradient-brand-horizontal: linear-gradient(90deg, #E91E8C 0%, #8B5CF6 100%);
  --gradient-glow: radial-gradient(circle, rgba(233, 30, 140, 0.3) 0%, transparent 70%);

  /* Apple-style timing functions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'JetBrains Mono', 'Inter', -apple-system, BlinkMacSystemFont, monospace;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================================ */
/* Apple-style Scroll Animations    */
/* ================================ */

/* Fade up animation for elements entering viewport */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children animation */
.reveal-stagger>* {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-stagger.active>*:nth-child(1) {
  transition-delay: 0s;
}

.reveal-stagger.active>*:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal-stagger.active>*:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal-stagger.active>*:nth-child(4) {
  transition-delay: 0.3s;
}

.reveal-stagger.active>*:nth-child(5) {
  transition-delay: 0.4s;
}

.reveal-stagger.active>*:nth-child(6) {
  transition-delay: 0.5s;
}

.reveal-stagger.active>*:nth-child(7) {
  transition-delay: 0.6s;
}

.reveal-stagger.active>*:nth-child(8) {
  transition-delay: 0.7s;
}

.reveal-stagger.active>* {
  opacity: 1;
  transform: translateY(0);
}

/* Scale in animation */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Blur in effect */
.reveal-blur {
  opacity: 0;
  filter: blur(20px);
  transform: translateY(30px);
  transition: opacity 1.2s var(--ease-out-expo), filter 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}

.reveal-blur.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Animated mesh background */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-primary);
}

.mesh-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 20%, rgba(233, 30, 140, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 60% 30%, rgba(79, 106, 246, 0.1) 0%, transparent 35%);
  animation: meshFloat 25s ease-in-out infinite;
}

.mesh-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(233, 30, 140, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 40%);
  animation: meshPulse 8s ease-in-out infinite alternate;
}

@keyframes meshFloat {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(3%, 2%) rotate(2deg);
  }

  50% {
    transform: translate(1%, -2%) rotate(-1deg);
  }

  75% {
    transform: translate(-2%, 1%) rotate(1deg);
  }
}

@keyframes meshPulse {
  0% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

/* Grid pattern overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(233, 30, 140, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 30, 140, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(42, 42, 58, 0.5);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px var(--accent-glow);
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% {
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.3);
  }

  100% {
    box-shadow: 0 4px 30px rgba(233, 30, 140, 0.5);
  }
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  display: flex;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn .btn-icon,
.btn svg.btn-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px var(--accent-glow);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: rgba(233, 30, 140, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(233, 30, 140, 0.3);
}

.btn-secondary:hover {
  background: rgba(233, 30, 140, 0.15);
  border-color: var(--accent-magenta);
  box-shadow: 0 0 25px rgba(233, 30, 140, 0.2);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 14px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(233, 30, 140, 0.1);
  border: 1px solid rgba(233, 30, 140, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-magenta);
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(233, 30, 140, 0.15);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px var(--success);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.3);
    box-shadow: 0 0 20px var(--success);
  }
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg,
      #E91E8C 0%,
      #8B5CF6 25%,
      #4F6AF6 50%,
      #8B5CF6 75%,
      #E91E8C 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(233, 30, 140, 0.4));
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
}

.stat {
  text-align: left;
  position: relative;
}

.stat::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-screenshot {
  position: relative;
  max-width: 320px;
}

.hero-screenshot img {
  width: 100%;
  height: auto;
  border-radius: 32px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 60px rgba(233, 30, 140, 0.15),
    0 0 120px rgba(139, 92, 246, 0.1);
  animation: phoneGlow 4s ease-in-out infinite alternate;
}

@keyframes phoneGlow {
  0% {
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 0 60px rgba(233, 30, 140, 0.15), 0 0 120px rgba(139, 92, 246, 0.1);
  }

  100% {
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 0 80px rgba(233, 30, 140, 0.2), 0 0 150px rgba(139, 92, 246, 0.15);
  }
}

.floating-element {
  position: absolute;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(233, 30, 140, 0.1);
  animation: float 6s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.floating-element-1 {
  top: 60px;
  left: -80px;
  animation-delay: 0s;
  border-color: rgba(74, 222, 128, 0.3);
}

.floating-element-2 {
  bottom: 100px;
  right: -100px;
  animation-delay: 2s;
  border-color: rgba(139, 92, 246, 0.3);
}

.floating-element-3 {
  top: 200px;
  right: -60px;
  animation-delay: 4s;
  border-color: rgba(233, 30, 140, 0.3);
}

/* Premium Feature Floating Elements */
.floating-element-themes {
  top: 30px;
  right: -40px;
  animation-delay: 0s;
  border-color: rgba(139, 92, 246, 0.4);
}

.floating-element-ringtones {
  bottom: 40px;
  left: -50px;
  animation-delay: 1s;
  border-color: rgba(233, 30, 140, 0.4);
}

.floating-element-widgets {
  top: 50px;
  right: -45px;
  animation-delay: 2s;
  border-color: rgba(74, 222, 128, 0.4);
}

.floating-element-automation {
  top: -30px;
  right: -40px;
  animation-delay: 1.5s;
  border-color: rgba(251, 191, 36, 0.4);
}

.floating-element-ifttt {
  bottom: 50px;
  right: -50px;
  animation-delay: 2.5s;
  border-color: rgba(79, 106, 246, 0.4);
}

.floating-element-shortcuts {
  top: 60px;
  left: -80px;
  animation-delay: 3s;
  border-color: rgba(255, 45, 85, 0.4);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.floating-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
}

.floating-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.floating-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.floating-value {
  font-size: 15px;
  font-weight: 600;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section Styles */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(233, 30, 140, 0.1);
  border: 1px solid rgba(233, 30, 140, 0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-magenta);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(233, 30, 140, 0.15);
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-title .gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* General gradient text utility */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Features Section */
#features {
  background: var(--bg-secondary);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Mouse-follow glow effect */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(233, 30, 140, 0.1),
      transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(233, 30, 140, 0.5);
  transform: translateY(-8px);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(233, 30, 140, 0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-brand);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(233, 30, 140, 0.3);
  transition: all 0.3s;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(233, 30, 140, 0.4);
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Premium Section */
#premium {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

#premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(233, 30, 140, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.premium-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.premium-intro .section-tag {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--accent-purple);
}

.premium-intro p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 20px;
}

.premium-features {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.premium-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.premium-feature.reverse {
  direction: rtl;
}

.premium-feature.reverse>* {
  direction: ltr;
}

.premium-feature-content {
  max-width: 500px;
}

/* Apple-style image hover effect */
.premium-feature-visual img {
  transition: transform 0.8s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
}

.premium-feature:hover .premium-feature-visual img {
  transform: scale(1.03) translateY(-8px);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 80px rgba(139, 92, 246, 0.25);
}

.premium-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.premium-feature-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.premium-feature-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.premium-feature-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.premium-feature-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.premium-feature-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.premium-feature-benefits li svg {
  width: 20px;
  height: 20px;
  fill: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.premium-feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.premium-feature-visual img {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 50px rgba(139, 92, 246, 0.15);
}

.premium-feature-visual.dual {
  gap: 20px;
}

.premium-feature-visual.dual img {
  max-width: 200px;
}

/* Use Cases */
.use-case-highlight {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
  border: 1px solid var(--border-color);
}

.use-case-highlight h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.use-case-highlight p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

/* Screenshots Section */
#screenshots {
  background: var(--bg-primary);
}

.screenshots-category {
  margin-bottom: 80px;
}

.screenshots-category:last-child {
  margin-bottom: 0;
}

.screenshots-category h3 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 40px;
  color: var(--text-primary);
  text-align: center;
}

.screenshots-category h3.premium-label {
  color: var(--accent-magenta);
}

.screenshots-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.screenshot-card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  width: calc(25% - 23px);
  max-width: 280px;
}

@media (max-width: 1024px) {
  .screenshot-card {
    width: calc(50% - 15px);
    max-width: none;
  }
}

@media (max-width: 640px) {
  .screenshot-card {
    width: 100%;
    max-width: 320px;
  }
}

.screenshot-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 80px rgba(233, 30, 140, 0.2);
  border-color: var(--accent);
}

.screenshot-card:hover img {
  transform: scale(1.05);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

/* Screenshot image with subtle fade at bottom */
.screenshot-card .screenshot-img-wrapper {
  position: relative;
  overflow: hidden;
}

.screenshot-card .screenshot-img-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(41, 48, 61, 0.4) 60%,
      var(--bg-card) 100%);
  pointer-events: none;
}

.screenshot-card .screenshot-img-wrapper img {
  box-shadow: none;
}

.screenshot-content {
  padding: 24px;
  text-align: left;
}

.screenshot-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.screenshot-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Comparison Section */
#comparison {
  background: var(--bg-secondary);
}

.comparison-table {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.comparison-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.comparison-header-cell {
  padding: 20px 24px;
  font-weight: 600;
  text-align: center;
}

.comparison-header-cell:first-child {
  text-align: left;
}

.comparison-header-cell.highlight {
  background: rgba(79, 106, 246, 0.1);
  color: var(--accent);
}

.comparison-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-bottom: 1px solid var(--border-color);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-cell {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.comparison-cell:first-child {
  justify-content: flex-start;
  color: var(--text-secondary);
}

.comparison-cell.highlight {
  background: rgba(79, 106, 246, 0.05);
}

.check-icon {
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.check-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--success);
}

.x-icon {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.x-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
}

.partial-icon {
  color: var(--warning);
  font-size: 14px;
}

/* Tech Stack Section */
#tech {
  background: var(--bg-primary);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tech-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.tech-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.tech-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--accent-magenta);
}

.tech-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.tech-description {
  font-size: 13px;
  color: var(--text-muted);
}

/* Pre-release Section */
#prerelease {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

#prerelease::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(233, 30, 140, 0.15) 0%, rgba(139, 92, 246, 0.08) 40%, transparent 70%);
  animation: prereleaseGlow 8s ease-in-out infinite alternate;
}

@keyframes prereleaseGlow {
  0% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
}

.prerelease-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.prerelease-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--warning);
  margin-bottom: 24px;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.2);
}

.prerelease-badge svg {
  width: 18px;
  height: 18px;
  fill: var(--warning);
}

.prerelease-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prerelease-description {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 24px;
}

.email-input {
  flex: 1;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
  font-family: inherit;
}

.email-input::placeholder {
  color: var(--text-muted);
}

.email-input:focus {
  border-color: var(--accent-magenta);
  box-shadow: 0 0 20px rgba(233, 30, 140, 0.2);
}

.privacy-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-brand);
  opacity: 0.5;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-magenta);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s;
}

.footer-social a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-social a:hover {
  background: var(--gradient-brand);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(233, 30, 140, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .premium-feature {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .premium-feature.reverse {
    direction: ltr;
  }

  .premium-feature-visual {
    order: -1;
  }

  .premium-feature-content {
    max-width: 100%;
    text-align: center;
  }

  .premium-feature-benefits {
    align-items: center;
  }

  .screenshots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Hide floating elements on premium features at smaller screens */
  .floating-element-themes,
  .floating-element-ringtones,
  .floating-element-widgets,
  .floating-element-automation,
  .floating-element-ifttt {
    display: none;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 36px;
  }

  .section-title {
    font-size: 28px;
  }

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

  .premium-feature-title {
    font-size: 24px;
  }

  .comparison-header,
  .comparison-row {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .comparison-cell {
    padding: 12px;
    font-size: 12px;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .email-form {
    flex-direction: column;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }
}