/* Reset & Base Variables */
:root {
  --sc-orange: #ff5500;
  --sc-orange-hover: #e64e00;
  --sc-orange-light: #fff2eb;
  --sc-orange-gradient: linear-gradient(135deg, #ff7a00 0%, #ff3300 100%);
  --dark-charcoal: #111111;
  --dark-grey: #333333;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-750: #3f3f46;
  --border-color: rgba(255, 85, 0, 0.18);
  --border-color-hover: rgba(255, 85, 0, 0.35);
  --shadow-sm: 0 4px 6px -1px rgba(255, 85, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 15px -3px rgba(255, 85, 0, 0.03), 0 4px 6px -2px rgba(255, 85, 0, 0.01);
  --shadow-lg: 0 20px 25px -5px rgba(255, 85, 0, 0.06), 0 10px 10px -5px rgba(255, 85, 0, 0.02);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-title: 'Space Grotesk', var(--font-sans);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: #f9f9fb;
  color: var(--dark-charcoal);
  min-height: 100%;
  overflow-x: hidden;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #ffffff;
}
::-webkit-scrollbar-thumb {
  background: var(--zinc-300);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--zinc-400);
}

::selection {
  background-color: rgba(255, 85, 0, 0.1);
  color: var(--sc-orange);
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.hidden {
  display: none !important;
}

.scroll-mt {
  scroll-margin-top: 5rem;
}

/* Background Grids & Spheres */
.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 85, 0, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 85, 0, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
  opacity: 0.8;
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  animation: float-slow 20s infinite ease-in-out;
}

.sphere-1 {
  top: -10%;
  left: 5%;
  width: 450px;
  height: 450px;
  background-color: rgba(255, 85, 0, 0.05);
  animation-delay: 0s;
}

.sphere-2 {
  top: 15%;
  right: 5%;
  width: 400px;
  height: 400px;
  background-color: rgba(255, 85, 0, 0.03);
  animation-delay: -5s;
}

@keyframes float-slow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(40px, -60px) scale(1.08);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.92);
  }
}

/* Header */
.main-header {
  position: relative;
  z-index: 20;
  width: 100%;
  background-color: transparent;
  padding-top: 1rem;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 0.6rem 1rem;
  box-shadow: var(--shadow-sm);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.logo-badge {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--sc-orange-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 85, 0, 0.2);
  transition: transform 0.3s ease;
}

.logo-link:hover .logo-badge {
  transform: rotate(12deg) scale(1.05);
}

.logo-icon {
  width: 1.4rem;
  height: 1.4rem;
  color: white;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--dark-charcoal);
  transition: color 0.2s ease;
}

.logo-link:hover .logo-text {
  color: var(--sc-orange);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-grow: 1;
  justify-content: center;
  padding: 0 1rem;
}

.nav-link {
  color: var(--zinc-600);
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--sc-orange);
  background-color: rgba(255, 85, 0, 0.04);
}

.nav-link.active {
  color: var(--sc-orange);
  background-color: var(--sc-orange-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.7rem;
  background-color: #fafafa;
  border: 1px solid var(--zinc-200);
  color: var(--zinc-600);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  border-color: var(--zinc-300);
  color: var(--sc-orange);
  background-color: #f5f5f5;
}

.lang-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.arrow-icon {
  width: 0.75rem;
  height: 0.75rem;
  margin-left: 0.1rem;
}

.extension-btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  background-color: var(--sc-orange);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(255, 85, 0, 0.15);
  transition: var(--transition);
}

.extension-btn:hover {
  background-color: var(--sc-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 85, 0, 0.25);
}

.extension-btn:active {
  transform: scale(0.96);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--zinc-600);
  padding: 0.35rem;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background-color: var(--zinc-100);
  color: var(--sc-orange);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 4.8rem;
  left: 1.5rem;
  right: 1.5rem;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transform-origin: top center;
  animation: slideDown 0.2s ease-out forwards;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  color: var(--dark-grey);
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  transition: var(--transition);
  white-space: nowrap;
}

.mobile-nav-link:hover {
  background-color: var(--sc-orange-light);
  color: var(--sc-orange);
}

.mobile-ext-link {
  background-color: var(--sc-orange-light);
  color: var(--sc-orange);
  text-align: center;
  margin-top: 0.5rem;
  border: 1px dashed rgba(255, 85, 0, 0.3);
}

/* Main Layout */
.main-content {
  position: relative;
  z-index: 10;
  flex-grow: 1;
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 10;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.75rem; /* 60px */
  font-weight: 800; /* Sleek Extra Bold instead of blocky Black */
  letter-spacing: -0.04em;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--dark-charcoal) 30%, #222222 55%, var(--sc-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.2rem;
  max-width: 800px;
}

.hero-subtitle {
  color: var(--zinc-500);
  font-size: 1.1rem;
  font-weight: 400; /* Regular weight for cleaner reading space */
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 2.2rem;
  letter-spacing: -0.01em;
}

/* Downloader Wrapper & Pill */
.downloader-wrapper {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 1.5rem auto;
}

.downloader-form {
  position: relative;
}

.input-container-pill {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 85, 0, 0.08);
  border-radius: 9999px;
  padding: 0.45rem 0.45rem 0.45rem 1.3rem;
  gap: 0.6rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.03), var(--shadow-sm);
  transition: var(--transition);
}

.input-container-pill:hover {
  border-color: rgba(255, 85, 0, 0.2);
}

.input-container-pill:focus-within {
  border-color: var(--sc-orange);
  background-color: white;
  box-shadow: 0 0 0 5px rgba(255, 85, 0, 0.12), 0 20px 40px -15px rgba(255, 85, 0, 0.05);
}

.input-left-decor {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.music-icon {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--zinc-400);
  transition: var(--transition);
}

.input-container-pill:focus-within .music-icon {
  color: var(--sc-orange);
  transform: scale(1.05);
}

.url-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-charcoal);
  padding: 0.6rem 0;
  min-width: 0;
}

.url-input::placeholder {
  color: var(--zinc-400);
  font-weight: 600;
}

.url-input:focus {
  outline: none;
}

.input-actions-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.paste-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background-color: rgba(255, 85, 0, 0.05);
  border: 1px solid rgba(255, 85, 0, 0.15);
  color: var(--sc-orange);
  font-family: var(--font-sans);
  font-size: 0.9375rem; /* 15px */
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.paste-btn:hover {
  background-color: rgba(255, 85, 0, 0.08);
  transform: scale(1.03);
}

.paste-btn:active {
  transform: scale(0.96);
}

.paste-icon {
  width: 0.85rem;
  height: 0.85rem;
}

.download-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--sc-orange-gradient);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.9375rem; /* 15px */
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  padding: 0.75rem 1.8rem;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.2);
  transition: var(--transition);
}

.download-submit-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 18px rgba(255, 85, 0, 0.3);
}

.download-submit-btn:active {
  transform: translateY(0) scale(0.97);
}

.download-submit-btn:disabled {
  background: var(--zinc-100);
  color: var(--zinc-400);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.download-icon {
  width: 1rem;
  height: 1rem;
}

/* Message / Error Banner */
.message-banner {
  background-color: #fff1f2;
  border: 1px solid #fee2e2;
  color: #ef4444;
  border-radius: 12px;
  padding: 0.75rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  margin-top: 1rem;
  animation: fadeIn 0.3s ease;
}

.message-banner.success {
  background-color: #ecfdf5;
  border-color: #d1fae5;
  color: #10b981;
}

/* Feature Badges */
.feature-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2rem;
  margin-top: 1.5rem;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--zinc-500);
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  letter-spacing: 0.10em;
}

.dot-green {
  width: 0.45rem;
  height: 0.45rem;
  background-color: #10b981;
  border-radius: 50%;
}

.dot-orange {
  width: 0.45rem;
  height: 0.45rem;
  background-color: var(--sc-orange);
  border-radius: 50%;
}

/* Results Display Box */
.result-container-wrapper {
  width: 100%;
  max-width: 680px;
  margin: 2.2rem auto 0 auto;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Skeleton Loading State */
.skeleton-loader {
  display: flex;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 1.2rem;
  gap: 1.2rem;
  box-shadow: var(--shadow-md);
}

.skeleton-art {
  width: 130px;
  height: 130px;
  border-radius: 16px;
  background: linear-gradient(90deg, #f3f3f3 25%, #ececec 50%, #f3f3f3 75%);
  background-size: 200% 100%;
  animation: loadingBg 1.5s infinite;
  flex-shrink: 0;
}

.skeleton-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f3f3f3 25%, #ececec 50%, #f3f3f3 75%);
  background-size: 200% 100%;
  animation: loadingBg 1.5s infinite;
}

.skeleton-title {
  width: 80%;
  height: 18px;
}

.skeleton-artist {
  width: 50%;
  height: 14px;
}

.skeleton-player {
  width: 95%;
  height: 30px;
  margin-top: 0.5rem;
}

/* Track Card Info */
.track-card {
  display: flex;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 1.2rem;
  gap: 1.2rem;
  text-align: left;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.05), var(--shadow-md);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
}

.track-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  box-shadow: 0 30px 60px -20px rgba(255, 85, 0, 0.1), var(--shadow-lg);
}

.card-left {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--zinc-100);
  flex-shrink: 0;
}

.track-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 3.2rem;
  height: 3.2rem;
  background-color: rgba(255, 85, 0, 0.95);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  transition: var(--transition);
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.card-left:hover .preview-play-btn,
.preview-play-btn.playing {
  opacity: 1;
  transform: scale(1);
}

.play-svg, .pause-svg {
  width: 1.4rem;
  height: 1.4rem;
}

.play-svg {
  margin-left: 0.15rem;
}

.card-right {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.track-genre-tag {
  display: inline-block;
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  background-color: var(--sc-orange-light);
  color: var(--sc-orange);
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 85, 0, 0.12);
  margin-bottom: 0.35rem;
}

.track-title-text {
  font-family: var(--font-title);
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  color: var(--dark-charcoal);
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.track-artist-text {
  color: var(--zinc-500);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.track-artist-text span {
  font-weight: 700;
  color: var(--dark-grey);
}

.track-stats-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--zinc-400);
  font-size: 0.75rem;
  font-weight: 700;
}

.track-plays {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.plays-icon {
  width: 0.85rem;
  height: 0.85rem;
  fill: currentColor;
}

.download-action-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.75rem;
  width: 100%;
}

.format-select-wrapper {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  background-color: #fafafa;
  border: 1px solid var(--zinc-200);
  border-radius: 12px;
  padding: 0.4rem 0.8rem;
  height: 42px;
}

.format-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--zinc-400);
  text-transform: uppercase;
}

.format-select {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-charcoal);
  cursor: pointer;
  outline: none;
}

.start-download-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 42px;
  background-color: var(--dark-charcoal);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.9375rem; /* 15px */
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
}

.start-download-btn:hover {
  background-color: var(--sc-orange);
  box-shadow: 0 4px 12px rgba(255, 85, 0, 0.2);
}

.start-download-btn:active {
  transform: scale(0.98);
}

.btn-download-icon {
  width: 1rem;
  height: 1rem;
}

.convert-next-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 42px;
  background-color: var(--zinc-100);
  border: 1px solid var(--zinc-200);
  color: var(--zinc-600);
  padding: 0 1.2rem;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.9375rem; /* 15px */
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
}

.convert-next-btn:hover {
  background-color: var(--sc-orange-light);
  border-color: rgba(255, 85, 0, 0.2);
  color: var(--sc-orange);
}

.convert-next-btn:active {
  transform: scale(0.98);
}

.btn-reset-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.playlist-reset-btn {
  margin-left: auto;
  flex-shrink: 0;
  width: auto;
}

/* Extraction / Processing Loader */
.extraction-progress-wrapper {
  margin-top: 0.8rem;
}

.progress-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.progress-status-text {
  color: var(--sc-orange);
}

.progress-percentage-text {
  color: var(--zinc-500);
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background-color: var(--zinc-100);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--sc-orange-gradient);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Playlist Card Info */
.playlist-card {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.05), var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
}

.playlist-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  box-shadow: 0 30px 60px -20px rgba(255, 85, 0, 0.1), var(--shadow-lg);
}

.playlist-header {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.playlist-artwork {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  background-color: var(--zinc-100);
}

.playlist-meta {
  flex-grow: 1;
  min-width: 0;
}

.playlist-tag {
  display: inline-block;
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  letter-spacing: 0.10em;
  background-color: var(--sc-orange-light);
  color: var(--sc-orange);
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 85, 0, 0.15);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.playlist-title-text {
  font-family: var(--font-title);
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  color: var(--dark-charcoal);
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-artist-text {
  color: var(--zinc-500);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.playlist-stats-row {
  display: flex;
  gap: 1rem;
  color: var(--zinc-400);
  font-size: 0.75rem;
  font-weight: 700;
}

.playlist-tracks-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 350px;
  overflow-y: auto;
  border-top: 1px solid var(--zinc-100);
  padding-top: 1rem;
}

.playlist-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background-color: #fafafa;
  border: 1px solid var(--zinc-200);
  border-radius: 12px;
  transition: var(--transition);
}

.playlist-track-item:hover {
  background-color: var(--sc-orange-light);
  border-color: rgba(255, 85, 0, 0.15);
}

.track-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex-grow: 1;
  padding-right: 1rem;
}

.track-item-title {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--dark-charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-item-meta {
  font-size: 0.7rem;
  color: var(--zinc-500);
  font-weight: 600;
}

.track-item-download-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background-color: var(--dark-charcoal);
  color: white;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.track-item-download-btn:hover {
  background-color: var(--sc-orange);
  box-shadow: 0 2px 8px rgba(255, 85, 0, 0.15);
}

/* Extension Banner */
.extension-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 720px;
  margin: 3.5rem auto 0 auto;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.extension-banner:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-color-hover);
}

.extension-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.ext-logo-wrapper {
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  box-shadow: 0 2px 8px rgba(255, 85, 0, 0.03);
  flex-shrink: 0;
}

.chrome-store-icon {
  width: 100%;
  height: 100%;
}

.ext-text-box {
  display: flex;
  flex-direction: column;
}

.ext-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.1rem;
}

.ext-title {
  font-family: var(--font-title);
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  color: var(--dark-charcoal);
}

.official-tag {
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  background-color: var(--sc-orange-light);
  color: var(--sc-orange);
  border: 1px solid rgba(255, 85, 0, 0.15);
  padding: 0.1rem 0.35rem;
  border-radius: 9999px;
}

.ext-description {
  color: var(--zinc-500);
  font-size: 0.75rem;
  font-weight: 600;
}

.ext-install-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background-color: var(--sc-orange);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(255, 85, 0, 0.12);
  transition: var(--transition);
  white-space: nowrap;
}

.ext-install-link:hover {
  background-color: var(--sc-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255, 85, 0, 0.22);
}

.ext-install-link:active {
  transform: scale(0.96);
}

/* Metrics Divider */
.metrics-divider-section {
  background-color: transparent;
  padding: 2rem 0;
  border-top: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
  margin: 3.5rem 0;
}

.metrics-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  gap: 1.5rem;
  text-align: center;
}

.metric-number {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--dark-charcoal);
  line-height: 1.1;
}

.metric-label {
  color: var(--zinc-400);
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-top: 0.2rem;
}

.metrics-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--zinc-500);
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.pulse-indicator {
  width: 0.4rem;
  height: 0.4rem;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
}

/* Section Common Styles */
.section-header {
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.25rem; /* 36px */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--dark-charcoal);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--zinc-500);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

/* How to Use Section */
.how-to-use-section {
  padding: 1rem 0 3.5rem 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  position: relative;
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-color-hover);
  box-shadow: 0 20px 40px -15px rgba(255, 85, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.9);
}

.step-number {
  position: absolute;
  top: 0.5rem;
  right: 1.2rem;
  font-family: var(--font-title);
  font-size: 4.5rem; /* 72px */
  font-weight: 900;
  color: rgba(255, 85, 0, 0.03);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  transition: color 0.3s ease;
}

.step-card:hover .step-number {
  color: rgba(255, 85, 0, 0.06);
}

.step-icon-wrapper {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background-color: var(--sc-orange-light);
  color: var(--sc-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.step-card:hover .step-icon-wrapper {
  background-color: var(--sc-orange);
  color: white;
  transform: scale(1.05);
}

.step-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.step-title {
  font-family: var(--font-title);
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  color: var(--dark-charcoal);
  margin-bottom: 0.6rem;
}

.step-description {
  color: var(--zinc-500);
  font-size: 0.95rem; /* 15.2px */
  font-weight: 400;
  line-height: 1.65;
}

.step-card-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 85, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(250, 250, 250, 0.5);
  border-radius: 16px;
  padding: 0.6rem;
  border: 1px solid var(--zinc-100);
}

.app-mockup {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.app-logo {
  font-size: 0.8rem;
}

.app-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--zinc-500);
}

.mockup-action-btn {
  padding: 0.25rem 0.6rem;
  background-color: var(--sc-orange);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
}

.input-mockup {
  width: 100%;
  height: 28px;
  background-color: white;
  border: 1px solid rgba(255, 85, 0, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.03);
}

.mockup-text {
  font-size: 0.6rem;
  color: var(--zinc-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.mockup-action-badge {
  font-size: 0.6rem;
  font-weight: 850;
  color: var(--sc-orange);
  background-color: rgba(255, 85, 0, 0.06);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 85, 0, 0.1);
}

.extraction-status {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
}

.mockup-circle-download-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--dark-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Features Grid */
.features-section {
  padding: 3.5rem 0;
}

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

.feature-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffdfc 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 20px 40px -15px rgba(255, 85, 0, 0.08);
  transform: translateY(-6px);
}

.feat-icon-wrapper {
  width: 2.2rem;
  height: 2.2rem;
  background-color: var(--sc-orange-light);
  color: var(--sc-orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.feat-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.feat-title {
  font-family: var(--font-title);
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  color: var(--dark-charcoal);
  margin-bottom: 0.5rem;
}

.feat-description {
  color: var(--zinc-500);
  font-size: 0.95rem; /* 15.2px */
  font-weight: 400;
  line-height: 1.65;
}

/* Detailed Guide */
.guide-section {
  padding: 3.5rem 0;
}

.guide-article-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.guide-article-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffdfc 100%);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.guide-article-card h3 {
  font-family: var(--font-title);
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  color: var(--dark-charcoal);
  margin-bottom: 0.8rem;
}

.guide-article-card p {
  color: var(--zinc-600);
  font-size: 0.95rem; /* 15.2px */
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 0.8rem;
}

.guide-article-card p:last-child {
  margin-bottom: 0;
}

.guide-article-card ul {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.guide-article-card ul li {
  color: var(--zinc-600);
  font-size: 0.95rem; /* 15.2px */
  font-weight: 400;
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.65;
}

.guide-article-card ul li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.5rem;
  width: 0.35rem;
  height: 0.35rem;
  background-color: var(--sc-orange);
  border-radius: 50%;
}

/* FAQ Accordion Section */
.faq-section {
  padding: 3.5rem 0;
}

.accordion-wrapper {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.accordion-item:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 10px 20px -5px rgba(255, 85, 0, 0.02), var(--shadow-md);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  padding: 1.1rem 1.4rem;
  color: var(--dark-charcoal);
  font-family: var(--font-title);
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.accordion-header:hover {
  color: var(--sc-orange);
}

.accordion-icon {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--zinc-400);
  transition: transform 0.3s ease;
}

.accordion-item.active {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--border-color-hover);
  box-shadow: 0 15px 30px -10px rgba(255, 85, 0, 0.05), var(--shadow-md);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  color: var(--sc-orange);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content p {
  padding: 0 1.4rem 1.2rem 1.4rem;
  color: var(--zinc-500);
  font-size: 0.95rem; /* 15.2px */
  font-weight: 400;
  line-height: 1.65;
}

/* Footer Section */
.main-footer {
  background-color: transparent;
  padding: 4rem 0 2.5rem 0;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 10;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.brand-col {
  max-width: 320px;
}

.brand-tagline {
  color: var(--zinc-500);
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0;
}

.footer-title {
  color: var(--dark-charcoal);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

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

.footer-links a {
  color: var(--zinc-500);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--sc-orange);
}

.footer-divider {
  border: 0;
  height: 1px;
  background-color: var(--zinc-100);
  margin: 1.5rem 0;
}

.footer-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
}

.copyright-text {
  color: var(--zinc-650);
  font-size: 0.8125rem; /* 13px */
  font-weight: 500;
}

.disclaimer-text {
  color: var(--zinc-400);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.6;
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .brand-col {
    max-width: 100%;
    grid-column: span 2;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .brand-col {
    grid-column: span 1;
  }
}


/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: scaleY(0.9);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes loadingBg {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive Breakpoints */
@media (max-width: 1240px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .extension-btn {
    display: none;
  }
}

/* Optimize nav link spacing on medium desktop screens to prevent wrapping */
@media (min-width: 1241px) and (max-width: 1366px) {
  .nav-link {
    padding: 0.35rem 0.6rem;
    font-size: 0.825rem;
  }
  .desktop-nav {
    gap: 0.15rem;
  }
}


@media (max-width: 900px) {
  .hero-title {
    font-size: 3rem; /* 48px */
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

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

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

  .mobile-menu-btn {
    display: flex;
  }

  .extension-btn {
    display: none; /* Hide on mobile/tablet to save space */
  }

  .hero-title {
    font-size: 2.25rem; /* 36px */
  }

  .section-title {
    font-size: 1.5rem; /* 24px */
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .input-container-pill {
    flex-direction: column;
    border-radius: 24px;
    padding: 1rem;
    gap: 0.8rem;
  }

  .input-left-decor {
    display: none;
  }

  .url-input {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--zinc-200);
    padding-bottom: 0.6rem;
  }

  .input-actions-wrapper {
    width: 100%;
    justify-content: center;
  }

  .download-submit-btn {
    width: 100%;
    padding: 0.8rem 0;
    border-radius: 16px;
  }

  .track-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card-right {
    width: 100%;
  }

  .track-title-text {
    text-align: center;
  }

  .track-stats-row {
    justify-content: center;
  }

  .download-action-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }

  .format-select-wrapper {
    width: 100%;
    height: auto;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
  }

  .start-download-btn {
    width: 100%;
  }

  .convert-next-btn {
    width: 100%;
  }

  .playlist-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1rem;
  }

  .playlist-reset-btn {
    margin-left: 0;
    width: 100%;
  }

  .extension-banner {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }

  .extension-content {
    flex-direction: column;
    text-align: center;
  }

  .ext-title-row {
    justify-content: center;
  }

  .ext-install-link {
    width: 100%;
    justify-content: center;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .footer-top-row {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem; /* 36px */
  }

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

  .metric-number {
    font-size: 1.5rem;
  }

  .format-select-wrapper {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
    height: auto;
    align-items: center;
  }

  .format-select {
    width: 100%;
    text-align: center;
    text-align-last: center;
  }
}

/* Legal Pages Styling */
.legal-section {
  padding: 5rem 0;
  min-height: 70vh;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.last-updated {
  font-size: 0.85rem;
  color: var(--zinc-500);
  margin-bottom: 2.5rem;
  font-weight: 500;
  display: inline-block;
  background-color: var(--zinc-100);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.legal-content {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark-charcoal);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--zinc-100);
  padding-bottom: 0.4rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--zinc-600);
  margin-bottom: 1.2rem;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul, .legal-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-content li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--zinc-600);
}

.legal-content a {
  color: var(--sc-orange);
  text-decoration: none;
  font-weight: 600;
}

.legal-content a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .legal-section {
    padding: 3rem 0;
  }
  .legal-content {
    padding: 1.5rem;
    border-radius: 20px;
  }
}

/* Contact Form Styling */
.contact-form-wrapper {
  margin-top: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--zinc-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input, .form-textarea {
  background-color: var(--zinc-100);
  border: 1px solid var(--zinc-200);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: var(--dark-charcoal);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  outline: none;
  transition: var(--transition);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-input:focus, .form-textarea:focus {
  background-color: #ffffff;
  border-color: var(--sc-orange);
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.1);
}

.form-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--sc-orange-gradient);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.9375rem; /* 15px */
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.2);
  transition: var(--transition);
  margin-top: 0.5rem;
}

.form-submit-btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 6px 18px rgba(255, 85, 0, 0.3);
}

.form-submit-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Contact Success Card */
.contact-success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  background-color: #ffffff;
  border: 1px solid var(--zinc-200);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  margin-top: 1.5rem;
}

.contact-success-card.hidden {
  display: none !important;
}

.success-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.02) 100%);
  color: #10b981;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  animation: pulseScale 2s infinite;
}

.success-icon-wrapper svg {
  width: 40px;
  height: 40px;
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark-charcoal);
  margin-bottom: 0.8rem;
}

.success-message {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--zinc-600);
  max-width: 480px;
  margin-bottom: 2rem;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: var(--zinc-100);
  color: var(--zinc-800);
  border: 1px solid var(--zinc-200);
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.back-btn:hover {
  background-color: var(--zinc-200);
  color: var(--dark-charcoal);
  transform: translateY(-1px);
}

@keyframes pulseScale {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Interlinking Section */
.interlinking-section {
  padding: 3.5rem 0;
  background-color: rgba(250, 250, 250, 0.5);
  border-top: 1px solid var(--zinc-100);
}

.interlinking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.interlink-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  color: var(--dark-charcoal);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.interlink-card:hover {
  border-color: var(--border-color-hover);
  color: var(--sc-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Header Nav Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--zinc-600);
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.nav-dropdown-btn:hover {
  color: var(--sc-orange);
  background-color: rgba(255, 85, 0, 0.04);
}

.dropdown-chevron {
  width: 0.8rem;
  height: 0.8rem;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0.5rem);
  background-color: #ffffff;
  min-width: 220px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  padding: 0.5rem;
  animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.nav-dropdown-content a {
  color: var(--zinc-600);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  display: block;
  text-align: left;
  transition: var(--transition);
}

.nav-dropdown-content a:hover,
.nav-dropdown-content a.active {
  background-color: var(--sc-orange-light);
  color: var(--sc-orange);
}

/* Mobile Nav Divider */
.mobile-nav-divider {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--zinc-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.8rem 1.0rem 0.2rem 1.0rem;
  border-top: 1px solid var(--zinc-100);
  margin-top: 0.4rem;
}

.mobile-nav-divider:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0.4rem;
}

.nav-dropdown-btn.active {
  color: var(--sc-orange);
  background-color: var(--sc-orange-light);
}

.mobile-nav-link.active {
  background-color: var(--sc-orange-light);
  color: var(--sc-orange);
}

/* ==========================================================================
   Blog & Typography CSS Styles (Technical SEO & Layout)
   ========================================================================== */

/* 1200x628 Aspect Ratio Wrapper */
.blog-image-wrapper {
  aspect-ratio: 1200 / 628;
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  background-color: #18181b;
}

.blog-image-wrapper img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.blog-card:hover .blog-image-wrapper img {
  transform: scale(1.03);
}

/* Blog Layout Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-hover);
  box-shadow: 0 20px 40px -15px rgba(255, 85, 0, 0.08);
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1rem 0.5rem 0.5rem 0.5rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--zinc-500);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.blog-card-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-charcoal);
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--sc-orange);
}

.blog-card-excerpt {
  color: var(--zinc-500);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.blog-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sc-orange);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-card-link svg {
  transition: transform 0.2s ease;
}

.blog-card:hover .blog-card-link svg {
  transform: translateX(3px);
}

/* Prose Typography system (Wordpress HTML rendering) */
.prose {
  color: var(--dark-charcoal);
  font-family: var(--font-sans);
  line-height: 1.7;
  font-size: 1.05rem;
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--font-title);
  color: var(--dark-charcoal);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.75rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.prose h3 { font-size: 1.4rem; }
.prose h4 { font-size: 1.2rem; }

.prose a {
  color: var(--sc-orange);
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  color: #e04b00;
}

.prose strong, .prose b {
  font-weight: 700;
  color: var(--dark-charcoal);
}

.prose ul, .prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  border-left: 4px solid var(--sc-orange);
  background-color: rgba(255, 85, 0, 0.03);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--zinc-700);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.prose th, .prose td {
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  text-align: left;
}

.prose th {
  background-color: rgba(255, 85, 0, 0.02);
  font-weight: 600;
  color: var(--dark-charcoal);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.prose figure {
  margin: 1.5rem 0;
}

.prose figcaption {
  font-size: 0.8rem;
  color: var(--zinc-500);
  text-align: center;
  margin-top: 0.5rem;
}

/* Override WordPress Gutenberg light/white text classes and inline styles to dark charcoal */
.prose .has-white-color,
.prose .has-light-gray-color,
.prose .has-very-light-gray-color,
.prose .has-gray-color,
.prose [style*="color:#fff"],
.prose [style*="color: #fff"],
.prose [style*="color:#FFF"],
.prose [style*="color: #FFF"],
.prose [style*="color:white"],
.prose [style*="color: white"],
.prose [style*="color:rgb(255,255,255)"],
.prose [style*="color: rgb(255, 255, 255)"] {
  color: var(--dark-charcoal) !important;
}


/* Prose Invert (Dark Mode overrides if container is dark) */
.prose-invert {
  color: #e4e4e7;
}

.prose-invert h1, .prose-invert h2, .prose-invert h3, .prose-invert h4, .prose-invert strong, .prose-invert b {
  color: #ffffff;
}

.prose-invert blockquote {
  background-color: rgba(255, 85, 0, 0.05);
  color: #d4d4d8;
}

.prose-invert th {
  background-color: rgba(255, 85, 0, 0.05);
  color: #ffffff;
}

.prose-invert td, .prose-invert th {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Blog Single Page Layout styles */
.blog-post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.blog-post-header {
  margin-bottom: 2.5rem;
}

.blog-post-category {
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  color: var(--sc-orange);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.blog-post-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--dark-charcoal);
  margin-bottom: 1.25rem;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--zinc-500);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}


