@tailwind base;
@tailwind components;
@tailwind utilities;

/*
 * Instagram Downloader Pro - Complete UI Styles
 * Modern glassmorphism design with Instagram-inspired gradients
 * All colors use HSL format for consistency
 */



/* ========================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ======================================== */
@layer base {
  :root {
    /* Core Colors (HSL) */
    --background: 250 20% 98%;
    --foreground: 250 25% 10%;
    --card: 0 0% 100%;
    --card-foreground: 250 25% 10%;
    --muted: 250 15% 92%;
    --muted-foreground: 250 10% 45%;
    --border: 250 15% 88%;
    --input: 250 15% 88%;
    --ring: 330 80% 60%;

    /* Instagram Brand Colors */
    --primary: 330 80% 60%;
    --primary-foreground: 0 0% 100%;
    --secondary: 280 70% 50%;
    --secondary-foreground: 0 0% 100%;
    --accent: 35 95% 55%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;

    --popover: 0 0% 100%;
    --popover-foreground: 250 25% 10%;

    /* Instagram Gradient */
    --gradient-instagram: linear-gradient(
      135deg,
      hsl(330, 80%, 60%) 0%,
      hsl(280, 70%, 50%) 50%,
      hsl(35, 95%, 55%) 100%
    );

    --gradient-instagram-hover: linear-gradient(
      135deg,
      hsl(330, 85%, 55%) 0%,
      hsl(280, 75%, 45%) 50%,
      hsl(35, 100%, 50%) 100%
    );

    /* Glass Effect */
    --gradient-glass: linear-gradient(
      135deg,
      hsla(0, 0%, 100%, 0.8) 0%,
      hsla(0, 0%, 100%, 0.4) 100%
    );

    /* Footer Gradient */
    --gradient-footer: linear-gradient(
      135deg,
      hsl(250, 25%, 10%) 0%,
      hsl(260, 30%, 15%) 100%
    );

    /* Shadows */
    --shadow-glow: 0 0 40px hsla(330, 80%, 60%, 0.3);
    --shadow-card: 0 8px 32px hsla(250, 25%, 10%, 0.08);
    --shadow-button: 0 4px 20px hsla(330, 80%, 60%, 0.4);
    --shadow-soft: 0 10px 30px rgba(16, 24, 40, 0.08);
    --shadow-medium: 0 8px 30px -4px hsla(250, 25%, 10%, 0.12);
    --shadow-large: 0 20px 50px -10px hsla(250, 25%, 10%, 0.2);

    /* Spacing */
    --container-width: 1200px;
    --container-padding: 1rem;

    /* Border Radius */
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Sidebar (keeping for compatibility) */
    --sidebar-background: 0 0% 100%;
    --sidebar-foreground: 250 25% 10%;
    --sidebar-primary: 330 80% 60%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 250 15% 92%;
    --sidebar-accent-foreground: 250 25% 10%;
    --sidebar-border: 250 15% 88%;
    --sidebar-ring: 330 80% 60%;
  }

  .dark {
    --background: 250 25% 6%;
    --foreground: 210 40% 98%;
    --card: 250 25% 8%;
    --card-foreground: 210 40% 98%;
    --popover: 250 25% 8%;
    --popover-foreground: 210 40% 98%;
    --primary: 330 80% 60%;
    --primary-foreground: 0 0% 100%;
    --secondary: 280 70% 50%;
    --secondary-foreground: 210 40% 98%;
    --muted: 250 20% 17%;
    --muted-foreground: 250 15% 65%;
    --accent: 35 95% 55%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 63% 31%;
    --destructive-foreground: 210 40% 98%;
    --border: 250 20% 17%;
    --input: 250 20% 17%;
    --ring: 330 80% 60%;
  }
}

@layer base {
  * {
    @apply border-border;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    @apply bg-background text-foreground antialiased;
    font-family:
      "Poppins",
      "Inter",
      system-ui,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      sans-serif;
    line-height: 1.6;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: "Poppins", "Inter", sans-serif;
  }
}

@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.gradient-text {
  background: var(--gradient-instagram);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-badge-primary {
  background: hsla(330, 80%, 60%, 0.1);
  color: hsl(330, 80%, 60%);
}

.section-badge-accent {
  background: hsla(35, 95%, 55%, 0.1);
  color: hsl(35, 95%, 55%);
}

.section-badge-secondary {
  background: hsla(280, 70%, 50%, 0.1);
  color: hsl(280, 70%, 50%);
}

/* ========================================
   ICONS
   ======================================== */
.icon {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-sm {
  width: 0.75rem;
  height: 0.75rem;
}

.icon-check {
  width: 1rem;
  height: 1rem;
  color: hsl(142, 71%, 45%);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out forwards;
}

.animate-gradient-shift {
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav-glass,
.nav-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsla(0, 0%, 100%, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid hsl(var(--border));
  transition: all var(--transition-base);
}

.nav-glass.scrolled {
  box-shadow: var(--shadow-soft);
}

.navbar {
  padding: 0.75rem 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.navbar-brand,
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: hsl(var(--foreground)) !important;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.navbar-brand:hover,
.nav-brand:hover {
  opacity: 0.85;
}

.brand-icon,
.nav-brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gradient-instagram);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  box-shadow: var(--shadow-button);
}

.brand-name {
  font-weight: 700;
  font-size: 1.125rem;
}

.brand-suffix {
  font-weight: 700;
  color: hsl(var(--primary));
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: hsl(var(--muted-foreground)) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: hsl(var(--foreground)) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-instagram);
  transition: all var(--transition-base);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: calc(100% - 2rem);
}

.btn-ig {
  background: var(--gradient-instagram);
  color: white !important;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-button);
}

.btn-ig:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Brand icon wrapper */
.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;

  background: linear-gradient(
    135deg,
    hsl(330, 80%, 60%) 0%,
    hsl(280, 70%, 50%) 50%,
    hsl(35, 95%, 55%) 100%
  );

  box-shadow: 0 8px 24px rgba(225, 48, 108, 0.35);
  margin-right: 0.2rem;
}

/* SVG inside */
.brand-svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero,
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  inset: 0;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-instagram);
  opacity: 0.12;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-blob-1 {
  top: 8rem;
  left: 10%;
  width: 18rem;
  height: 18rem;
  background: hsla(330, 80%, 60%, 0.2);
  filter: blur(100px);
}

.hero-blob-2 {
  top: 12rem;
  right: 10%;
  width: 24rem;
  height: 24rem;
  background: hsla(280, 70%, 50%, 0.15);
  filter: blur(120px);
}

.hero-blob-3 {
  bottom: 5rem;
  left: 30%;
  width: 16rem;
  height: 16rem;
  background: hsla(35, 95%, 55%, 0.2);
  filter: blur(80px);
}

.hero-content {
  position: relative;
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 7rem 0;
  }
}

.hero-text-wrapper {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.badge-ig,
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: hsla(0, 0%, 100%, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid hsla(250, 15%, 88%, 0.5);
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.trust-badge-icons {
  display: flex;
  margin-left: -0.25rem;
}

.trust-badge-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -0.25rem;
}

.trust-badge-icon svg {
  width: 0.75rem;
  height: 0.75rem;
  color: inherit;
}

.trust-badge-icon:nth-child(1) {
  color: hsl(330, 80%, 60%);
}
.trust-badge-icon:nth-child(2) {
  color: hsl(35, 95%, 55%);
}
.trust-badge-icon:nth-child(3) {
  color: hsl(280, 70%, 50%);
}

.trust-badge-text {
  font-weight: 500;
}

.hero h1,
.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: var(--gradient-instagram);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto 1.25rem;
  line-height: 1.85;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* ========================================
   DOWNLOAD CARD
   ======================================== */
.download-card {
  max-width: 48rem;
  margin: 0 auto;
  margin-bottom: 2.5rem;
  background: linear-gradient(
    135deg,
    hsla(0, 0%, 100%, 0.98) 0%,
    hsla(330, 30%, 98%, 0.95) 50%,
    hsla(280, 30%, 98%, 0.95) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  background-clip: padding-box;
  padding: 1.5rem;
  box-shadow:
    0 0 0 2px hsla(330, 80%, 60%, 0.15),
    0 8px 32px hsla(330, 80%, 60%, 0.12),
    0 20px 60px hsla(280, 70%, 50%, 0.1),
    0 0 80px hsla(330, 80%, 60%, 0.08);
  position: relative;
  z-index: 10;
  animation:
    card-entrance 0.8s ease-out,
    card-glow-pulse 4s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: var(--gradient-instagram);
  z-index: -1;
  opacity: 0.6;
  animation: border-glow 3s ease-in-out infinite alternate;
}

.download-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    hsla(0, 0%, 100%, 0.98) 0%,
    hsla(330, 30%, 98%, 0.95) 100%
  );
  z-index: -1;
}

.download-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 0 0 3px hsla(330, 80%, 60%, 0.25),
    0 12px 40px hsla(330, 80%, 60%, 0.2),
    0 30px 80px hsla(280, 70%, 50%, 0.15),
    0 0 100px hsla(330, 80%, 60%, 0.12);
}

.download-card:hover::before {
  opacity: 0.8;
}

@keyframes card-entrance {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes card-glow-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 2px hsla(330, 80%, 60%, 0.15),
      0 8px 32px hsla(330, 80%, 60%, 0.12),
      0 20px 60px hsla(280, 70%, 50%, 0.1),
      0 0 80px hsla(330, 80%, 60%, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 3px hsla(330, 80%, 60%, 0.2),
      0 12px 40px hsla(330, 80%, 60%, 0.18),
      0 25px 70px hsla(280, 70%, 50%, 0.14),
      0 0 100px hsla(35, 95%, 55%, 0.1);
  }
}

@keyframes border-glow {
  0% {
    opacity: 0.5;
    filter: blur(0px);
  }
  100% {
    opacity: 0.8;
    filter: blur(2px);
  }
}

@media (min-width: 768px) {
  .download-card {
    padding: 2rem;
  }
}

.media-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.media-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid hsla(330, 80%, 60%, 0.15);
  background: hsl(var(--background));
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.media-btn:hover {
  border-color: hsla(330, 80%, 60%, 0.5);
  color: hsl(var(--primary));
  background: hsla(330, 80%, 60%, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px hsla(330, 80%, 60%, 0.15);
}

.media-btn.active {
  background: var(--gradient-instagram);
  background-size: 200% 200%;
  border-color: transparent;
  color: white;
  box-shadow:
    0 4px 20px hsla(330, 80%, 60%, 0.4),
    inset 0 1px 0 hsla(0, 0%, 100%, 0.2);
  animation: active-btn-glow 2s ease-in-out infinite alternate;
}

@keyframes active-btn-glow {
  0% {
    box-shadow:
      0 4px 20px hsla(330, 80%, 60%, 0.4),
      inset 0 1px 0 hsla(0, 0%, 100%, 0.2);
  }
  100% {
    box-shadow:
      0 6px 25px hsla(330, 80%, 60%, 0.5),
      0 0 40px hsla(280, 70%, 50%, 0.2),
      inset 0 1px 0 hsla(0, 0%, 100%, 0.3);
  }
}

.download-form .form-group,
.url-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .download-form .form-group,
  .url-form {
    flex-direction: row;
  }
}

.input-wrapper {
  position: relative;
  flex: 1 1 0%; /* ← IMPORTANT */
  min-width: 0;
  border-radius: var(--radius-md);
  transition: box-shadow 0.3s ease;
}

/* Glow only on wrapper */
.input-wrapper:focus-within {
  box-shadow:
    0 0 0 3px hsla(330, 80%, 60%, 0.2),
    0 8px 25px hsla(330, 80%, 60%, 0.2);
}

@keyframes border-pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.input-wrapper i,
.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



.form-input:focus,
.url-input:focus {
  outline: none;
  border-color: hsl(248, 80%, 60%);
  box-shadow: none;
}
.form-input::placeholder,
.url-input::placeholder {
  color: hsla(330, 20%, 60%, 0.7);
  font-weight: 400;
}

.form-btn,
.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  border: none;
  background: var(--gradient-instagram);
  background-size: 200% 200%;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 4px 20px hsla(330, 80%, 60%, 0.4),
    0 8px 40px hsla(280, 70%, 50%, 0.2),
    inset 0 1px 0 hsla(0, 0%, 100%, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  animation: button-shimmer 3s ease-in-out infinite;
}

.form-btn::before,
.btn-download::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    hsla(0, 0%, 100%, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.form-btn:hover::before,
.btn-download:hover::before {
  left: 100%;
}

.form-btn:hover,
.btn-download:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.form-btn:active,
.btn-download:active {
  transform: translateY(-1px) scale(1.02);
}
@keyframes button-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.helper-text,
.download-helper-text {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));

  text-align: center;
  text-align: center;
  padding: 0.75rem 1rem;
  background: linear-gradient(
    90deg,
    hsla(330, 80%, 60%, 0.05),
    hsla(280, 70%, 50%, 0.05),
    hsla(35, 95%, 55%, 0.05)
  );
  border-radius: var(--radius-md);
  border: 1px dashed hsla(330, 80%, 60%, 0.2);
}

.download-result {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius-md);
}
/* ========================================
   QUICK FEATURES
   ======================================== */
.quick-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .quick-features {
    gap: 1.5rem;
  }
}

.quick-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.quick-feature-icon {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary));
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 5rem 0;
}

.section-light,
.section-muted {
  background: hsla(var(--muted) / 0.3);
}

.section-header {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
  padding: 3rem 0;
  border-top: 1px solid hsla(var(--border) / 0.5);
  border-bottom: 1px solid hsla(var(--border) / 0.5);
  background: hsla(var(--muted) / 0.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: hsla(330, 80%, 60%, 0.1);
  margin-bottom: 0.75rem;
}

.stat-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-instagram);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 1.875rem;
  }
}

.stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ========================================
   FEATURES
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-item,
.feature-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
}

.feature-item:hover,
.feature-card:hover {
  transform: scale(1.02) translateY(-4px);
}

.feature-card-default {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
}

.feature-card-default:hover {
  border-color: hsla(330, 80%, 60%, 0.3);
  box-shadow: var(--shadow-card);
}

.feature-card-gradient {
  background: var(--gradient-instagram);
  color: white;
  box-shadow: var(--shadow-button);
}

.feature-icon,
.feature-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--gradient-instagram);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-button);
  transition: transform var(--transition-base);
}

.feature-item:hover .feature-icon,
.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1);
}

.feature-icon-wrapper-gradient {
  background: hsla(0, 0%, 100%, 0.2);
}

.feature-item h6,
.feature-title {
  font-weight: 600;
  font-size: 1rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.feature-card-default .feature-title {
  color: hsl(var(--foreground));
}

.feature-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

/* ========================================
   STEP CARDS (How It Works)
   ======================================== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.step-card {
  position: relative;
  text-align: center;
  background: hsl(var(--card));
  border: 1px solid hsla(var(--border) / 0.5);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-soft);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: hsla(330, 80%, 60%, 0.3);
}

.step-card-inner {
  background: hsl(var(--card));
  border-radius: var(--radius-lg);
  border: 1px solid hsla(var(--border) / 0.5);
  padding: 1.5rem;
  transition: all var(--transition-base);
}

.step-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: hsl(var(--primary));
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
}

.step-icon,
.step-icon-wrapper {
  width: 4rem;
  height: 4rem;
  background: var(--gradient-instagram);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-button);
  transition: transform var(--transition-base);
}

.step-card:hover .step-icon,
.step-card:hover .step-icon-wrapper {
  transform: scale(1.1);
}

.step-card h5,
.step-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.step-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.step-connector {
  display: none;
  position: absolute;
  top: 50%;
  right: -1.5rem;
  transform: translateY(-50%);
  color: hsla(330, 80%, 60%, 0.3);
}

@media (min-width: 768px) {
  .step-connector {
    display: block;
  }
}
.step-image {
  margin-bottom: 1.25rem;
}

.step-image img {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
}

.step-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-6px);
}

/* ========================================
   CONTENT TYPES SECTION (FINAL)
   ======================================== */

.content-types-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .content-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .content-types-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.content-type-card {
  display: flex;
  align-items: flex-start; /* 🔑 TEXT ALIGNMENT FIX */
  gap: 1rem;
  padding: 1.25rem;
  background: hsl(var(--card));
  border-radius: var(--radius-lg);
  border: 1px solid hsla(var(--border) / 0.5);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
  text-align: left; /* 🔑 PREVENTS CENTER INHERITANCE */
}

.content-type-card:hover {
  border-color: hsla(330, 80%, 60%, 0.35);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.content-type-icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--gradient-instagram);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem; /* 🔑 VISUAL BASELINE FIX */
}

.content-type-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}

.content-type-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35; /* 🔑 FONT RHYTHM */
  margin: 0 0 0.25rem 0; /* 🔑 COLLAPSE FIX */
  color: hsl(var(--foreground));
}

.content-type-description {
  margin: 0; /* 🔑 COLLAPSE FIX */
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

/* ========================================
   SEO ARTICLE CARD
   ======================================== */
.seo-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-soft);
}

.seo-card h1 {
  color: hsl(var(--foreground));
  font-size: 1.75rem;
  font-weight: 700;
}

.seo-card h2 {
  color: hsl(var(--foreground));
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2rem;
}

.seo-card h3 {
  color: hsl(var(--foreground));
  font-size: 1.15rem;
  font-weight: 600;
}

.seo-card p,
.seo-card li {
  color: hsl(var(--muted-foreground));
  line-height: 1.8;
}

.seo-card ul,
.seo-card ol {
  padding-left: 1.5rem;
}

.seo-card li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .seo-card {
    padding: 1.5rem;
  }
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-card,
.faq-item {
  background: hsl(var(--card)) !important;
  border: 1px solid hsla(var(--border) / 0.5) !important;
  border-radius: var(--radius-md) !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: none !important;
}

.faq-card .card-header {
  background: transparent;
  border: none;
  padding: 0;
}

.faq-card .btn-link,
.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  color: hsl(var(--foreground));
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  transition: background-color var(--transition-fast);
}

.faq-card .btn-link:hover,
.faq-trigger:hover {
  color: hsl(var(--primary));
  background: hsla(var(--muted) / 0.5);
}

.faq-card .btn-link::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform var(--transition-base);
}

.faq-card .btn-link[aria-expanded="true"]::after {
  content: "−";
}

.faq-card .card-body,
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

.faq-question {
  font-weight: 600;
  padding-right: 1rem;
}

.faq-chevron {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-chevron-open {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
}

.faq-answer.open {
  display: block;
  animation: fade-in 0.3s ease-out;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--gradient-instagram);
  padding: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cta-card {
    padding: 3rem;
  }
}

.cta-blob-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: hsla(0, 0%, 100%, 0.1);
  border-radius: 50%;
  filter: blur(48px);
}

.cta-blob-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 12rem;
  height: 12rem;
  background: hsla(0, 0%, 100%, 0.1);
  border-radius: 50%;
  filter: blur(32px);
}

.cta-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cta-content {
    flex-direction: row;
  }
}

.cta-icon-wrapper {
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius-lg);
  background: hsla(0, 0%, 100%, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: white;
}

.cta-text {
  flex: 1;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-text {
    text-align: left;
  }
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 1.875rem;
  }
}

.cta-description {
  color: hsla(0, 0%, 100%, 0.8);
}

.cta-button {
  flex-shrink: 0;
  padding: 1rem 2rem;
  background: white;
  color: hsl(var(--primary));
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
  box-shadow: var(--shadow-soft);
}

.cta-button:hover {
  background: hsla(0, 0%, 100%, 0.9);
}

/* ========================================
   AD CONTAINER
   ======================================== */
.ad-container {
  padding: 1.5rem 1rem;
  background: hsl(var(--background));
  display: flex;
  justify-content: center;
  align-items: center;
}

.ad-container > div {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 2rem 0;
  background: var(--gradient-footer);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand-section {
  max-width: 24rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand-icon,
.footer .brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--gradient-instagram);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.footer strong {
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
}

.footer-description {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: hsla(0, 0%, 100%, 0.05);
  border-radius: var(--radius-md);
}

.security-badge-icon {
  width: 2rem;
  height: 2rem;
  color: hsl(142, 71%, 45%);
}

.security-badge-title {
  font-size: 0.875rem;
  font-weight: 500;
}

.security-badge-subtitle {
  font-size: 0.75rem;
  color: hsla(0, 0%, 100%, 0.6);
}

.footer-title {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  color: white;
}

.footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a,
.footer-link {
  color: hsla(0, 0%, 100%, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links a:hover,
.footer-link:hover {
  color: white;
  transform: translateX(3px);
}

.footer-text {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.6);
}

.security-box {
  background: hsla(0, 0%, 100%, 0.05);
  border: 1px solid hsla(0, 0%, 100%, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.security-icon {
  width: 45px;
  height: 45px;
  background: var(--gradient-instagram);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.security-box .text {
  font-size: 0.9rem;
  color: hsla(0, 0%, 100%, 0.8);
  line-height: 1.5;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-meta {
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  gap: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-meta div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsla(0, 0%, 100%, 0.6);
  font-size: 0.875rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.6);
  text-align: center;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-legal-link {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.6);
  transition: color var(--transition-fast);
}

.footer-legal-link:hover {
  color: white;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .hero,
  .hero-section {
    padding: 7rem 0 4rem;
    min-height: auto;
  }

  .download-card {
    padding: 1.5rem;
  }

  .form-btn,
  .btn-download {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 3.5rem 0;
  }

  .footer {
    padding: 3rem 0 1.5rem;
  }

  .security-box {
    flex-direction: column;
    text-align: center;
  }

  .footer-meta {
    justify-content: center !important;
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: white;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-card);
  }

  .nav-item {
    margin: 0.25rem 0;
  }

  .btn-ig {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* ========================================
    AD PLACEHOLDER STYLES (AdSense Compliant)
    ======================================== */

/* Keyframe Animations */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes pulse-subtle {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes gradient-rotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Base placeholder styles */
.ad-placeholder {
  background: hsl(var(--muted));
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ad-placeholder-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ad-label {
  font-size: 1.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

/* Skeleton Loader Variant */
.ad-placeholder-skeleton {
  background: linear-gradient(
    90deg,
    hsl(var(--muted)) 0%,
    hsla(var(--muted-foreground) / 0.1) 50%,
    hsl(var(--muted)) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
  border: 1px solid hsl(var(--border));
}

/* Pattern Variant - Subtle Dots */
.ad-placeholder-pattern {
  background-color: hsl(var(--muted));
  background-image: radial-gradient(
    hsla(var(--muted-foreground) / 0.15) 1px,
    transparent 1px
  );
  background-size: 16px 16px;
  border: 1px solid hsl(var(--border));
}

/* Gradient Border Variant */
.ad-placeholder-gradient {
  background: hsl(var(--card));
  border: none;
  position: relative;
}

.ad-placeholder-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--gradient-instagram);
  background-size: 200% 200%;
  animation: gradient-rotate 4s ease infinite;

  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
}

/* Minimal Variant */
.ad-placeholder-minimal {
  background: hsla(var(--muted) / 0.5);
  border: 1px solid hsla(var(--border) / 0.5);
  animation: pulse-subtle 3s ease-in-out infinite;
}

/* Auto-hide placeholder when ad loads */
.ad-placeholder:has(iframe),
.ad-placeholder:has(ins),
.ad-placeholder:has(img) {
  background: transparent !important;
  border: none !important;
  animation: none !important;
}

.ad-placeholder:has(iframe) .ad-placeholder-content,
.ad-placeholder:has(ins) .ad-placeholder-content,
.ad-placeholder:has(img) .ad-placeholder-content {
  display: none;
}
