/* ===================================================================
   JINSHI Tweaks Website — Design System & Global Styles
   Matches App Theme: Dark, Glassmorphism, Neon Accents
   =================================================================== */

:root {
  /* Core Palette (Extracted from App) */
  --bg-base: #0a0a0f;
  --bg-surface: #12121a;
  --bg-elevated: #1a1a26;
  --bg-hover: #222233;
  --bg-active: #2a2a3d;

  /* Accents */
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-glow: rgba(108, 92, 231, 0.4);
  --accent-gradient: linear-gradient(135deg, #6c5ce7, #a29bfe);

  /* Status Colors */
  --green: #00e676;
  --green-glow: rgba(0, 230, 118, 0.2);
  --green-gradient: linear-gradient(135deg, #00e676, #69f0ae);
  --red: #ff5252;
  --red-glow: rgba(255, 82, 82, 0.2);
  --yellow: #ffd740;

  /* Text */
  --text-primary: #eaeaef;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  --text-inverse: #ffffff;

  /* Borders & Shadows */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px var(--accent-glow);

  /* Spacing & Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.3s var(--ease-out);
  --transition-spring: 0.4s var(--ease-spring);
}

/* ── Reset & Base ──────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  /* Ensures header doesn't overlap anchored section */
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle Grid Background Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Utilities ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-accent {
  color: var(--accent-light);
}

.text-green {
  color: var(--green);
}

.text-red {
  color: var(--red);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-dark-contrast {
  color: #0a0a0f !important;
  text-shadow: none !important;
}

.text-white {
  color: #ffffff !important;
}

.app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bg-surface {
  background-color: var(--bg-surface);
}

.bg-surface-gradient {
  background: linear-gradient(to bottom, var(--bg-base), var(--bg-surface), var(--bg-base));
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 1rem;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 18px 42px;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-inverse);
  box-shadow: 0 4px 15px var(--accent-glow);
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #a29bfe, #6c5ce7);
  z-index: -1;
  transition: opacity var(--transition-normal);
  opacity: 0;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-light);
}

.btn-outline:hover {
  background: rgba(108, 92, 231, 0.1);
  color: white;
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.glow-pulse {
  animation: glowPulse 3s infinite;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(108, 92, 231, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
  }
}

/* ── Navigation ────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease;
}

nav.scrolled {
  background-color: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo-icon {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 5px rgba(108, 92, 231, 0.5));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a:not(.btn):hover {
  color: var(--text-primary);
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* ── Hero Section ──────────────────────────────────────────────────── */
#hero {
  position: relative;
  padding-top: calc(var(--header-height) + 20px);
  padding-bottom: 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.12) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
  transition: transform 0.1s linear;
  /* For parallax */
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
}

.pulse-animation {
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(0, 230, 118, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
  }
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 90%;
}

.hero-btns {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.trust-badges {
  display: flex;
  gap: 30px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero Visual/Mockup */
.hero-visual {
  flex: 1;
  position: relative;
  z-index: 2;
}

.app-window-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 100px rgba(108, 92, 231, 0.1);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s var(--ease-out);
}

.app-window-mockup:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0) scale(1.02);
}

.float-animation {
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {

  0%,
  100% {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(0);
  }

  50% {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-15px);
  }
}

.window-header {
  height: 40px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding-left: 16px;
}

.window-controls span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  background-color: var(--border);
}

.window-controls span:nth-child(1) {
  background-color: var(--red);
}

.window-controls span:nth-child(2) {
  background-color: var(--yellow);
}

.window-controls span:nth-child(3) {
  background-color: var(--green);
}

.window-content {
  height: calc(100% - 40px);
  background: #0f0f13;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.screenshot-placeholder-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
}

.screenshot-placeholder-large i {
  font-size: 3rem;
  opacity: 0.3;
}

.screenshot-placeholder-large span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.floating-stat {
  position: absolute;
  background: rgba(18, 18, 26, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.stat-fps {
  top: 20%;
  right: -20px;
  animation: float 5s ease-in-out infinite;
}

.stat-latency {
  bottom: 20%;
  left: -20px;
  animation: float 7s ease-in-out infinite reverse;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 800;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* ── Features Section ──────────────────────────────────────────────── */
.section {
  padding: 100px 0;
  position: relative;
}

#pricing {
  padding-top: 40px;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-spring);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform var(--transition-fast);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.icon-glow-accent {
  color: var(--accent-light);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.2);
}

.icon-glow-green {
  color: var(--green);
  box-shadow: 0 0 20px var(--green-glow);
}

.icon-glow-red {
  color: var(--red);
  box-shadow: 0 0 20px var(--red-glow);
}

.icon-glow-yellow {
  color: var(--yellow);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-screenshot-placeholder {
  margin-top: 20px;
  height: 120px;
  background: var(--bg-base);
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Comparison Section ────────────────────────────────────────────── */
.comparison-layout {
  display: flex;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.comparison-text {
  flex: 1;
}

.comparison-visual {
  flex: 1;
}

.stat-row {
  margin-bottom: 24px;
}

.stat-item {
  margin-bottom: 16px;
}

.stat-item h4 {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.stat-bar-container {
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-bar-bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  /* Adjust for visual */
  background: rgba(255, 255, 255, 0.05);
}

.stat-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--accent-gradient);
  transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0;
  /* JS animates this */
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
}

.w-100 {
  width: 100% !important;
}

.w-20 {
  width: 20% !important;
}

.bg-green-gradient {
  background: var(--green-gradient);
  box-shadow: 0 0 20px var(--green-glow);
}

.bg-accent-gradient {
  background: var(--accent-gradient);
}

.stat-number {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.pulse-text {
  animation: textPulse 2s infinite;
}

@keyframes textPulse {

  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 10px var(--green-glow);
  }

  50% {
    opacity: 0.8;
    text-shadow: 0 0 2px var(--green-glow);
  }
}

.game-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.game-preview {
  height: 340px;
  background: radial-gradient(circle at center, #2a2a3d, #12121a);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pseudo Game HUD */
.fps-counter {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--green);
  padding: 6px 12px;
  font-family: monospace;
  font-weight: bold;
  font-size: 1.4rem;
  border-left: 3px solid var(--green);
  backdrop-filter: blur(4px);
}

.ping-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 12px;
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
}

.screenshot-overlay-label {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.game-info {
  padding: 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

/* ── Gallery Section (New) ─────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.gallery-item {
  aspect-ratio: 16/9;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
  z-index: 2;
  border-color: var(--accent);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
}

.gallery-placeholder i {
  font-size: 2rem;
  opacity: 0.5;
}

/* ── Pricing Section ───────────────────────────────────────────────── */
.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.pricing-card {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.recommended {
  border-color: var(--accent);
  background: linear-gradient(to bottom, rgba(108, 92, 231, 0.08), var(--bg-surface));
  box-shadow: 0 0 40px rgba(108, 92, 231, 0.1);
}

.pricing-card.recommended:hover {
  box-shadow: 0 0 60px rgba(108, 92, 231, 0.2);
}

.recommended-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
}

.card-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.app-icon-placeholder {
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 8px 20px var(--accent-glow);
}

.price {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 16px 0;
  color: var(--text-primary);
  letter-spacing: -2px;
}

.period {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0;
}

.feature-list {
  flex: 1;
  margin-bottom: 32px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.feature-list li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-150%) rotate(45deg);
  }

  100% {
    transform: translateX(150%) rotate(45deg);
  }
}

/* ── Footer ────────────────────────────────────────────────────────── */
footer {
  background: var(--bg-surface);
  padding: 80px 0 30px;
  border-top: 1px solid var(--border);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Animation Classes ─────────────────────────────────────────────── */
/* Fade In Up */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in {
  opacity: 0;
  transition: opacity 1s ease-out;
}

/* ── Premium Animations (AAA Polish) ───────────────────────────────── */
:root {
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Global Smooth Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-premium);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Title Breathing */
.hero-title {
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {

  0%,
  100% {
    text-shadow: 0 0 30px rgba(108, 92, 231, 0.3);
    transform: scale(1);
  }

  50% {
    text-shadow: 0 0 50px rgba(108, 92, 231, 0.6);
    transform: scale(1.01);
  }
}

/* Feature/Pricing Card Hover */
.feature-card,
.pricing-card {
  transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium), border-color 0.4s ease;
}

.feature-card:hover,
.pricing-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 5;
}

/* Button Ripple & Glow */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-premium);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Stagger Delays */
.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

.delay-500 {
  transition-delay: 500ms;
}

/* Parallax Background */
.parallax-bg {
  transform: translateZ(-1px) scale(2);
}

/* Stagger Item (restored) */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-premium);
}

.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Flip In */
.flip-in {
  opacity: 0;
  transform: perspective(1000px) rotateX(10deg);
  transition: all 0.8s ease-out;
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .trust-badges {
    justify-content: center;
  }

  .app-window-mockup {
    transform: none;
    margin-top: 50px;
  }

  .comparison-layout {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  /* Mobile Menu Implementation handled in JS */
  .mobile-menu-btn {
    display: flex;
  }

  /* Mobile Menu Container */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.3s ease-out;
    align-items: flex-start;
  }

  .nav-links.active a {
    width: 100%;
    padding: 10px 0;
    font-size: 1.1rem;
  }

  .nav-links.active .btn {
    width: 100%;
    margin-top: 10px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  /* Fix Mobile Alignment */
  .hero-content {
    width: 100%;
    text-align: center;
    padding: 0;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .badge-pill {
    margin-left: auto;
    margin-right: auto;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col {
    margin-bottom: 30px;
  }

  .logo {
    justify-content: center;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Page Specific Styles ──────────────────────────────────────────── */
.page-header {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  background: radial-gradient(circle at center top, rgba(108, 92, 231, 0.15), transparent 70%);
  text-align: center;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  padding: 60px 0;
  min-height: 50vh;
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-secondary);
}

.content-container h2 {
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.content-container h3 {
  color: var(--text-primary);
  margin-top: 30px;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.content-container p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.content-container ul,
.content-container ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.content-container li {
  margin-bottom: 8px;
  list-style: disc;
}

/* Tables */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison-table th,
.comparison-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--bg-elevated);
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table td {
  color: var(--text-secondary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* FAQ Styles */
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  transition: var(--transition-normal);
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-question {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.faq-answer {
  color: var(--text-secondary);
  line-height: 1.6;
}