/* ==========================================================================
   MEDIASUITE DESIGN SYSTEM — ULTRA-PREMIUM MODERN CREATOR AESTHETICS
   ========================================================================== */

:root {
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Pure Permanent Dark Studio Tokens (Cosmic Obsidian) */
  --bg: #090c15;
  --surface: #111625;
  --surface-raised: #161c2e;
  --surface-glass: rgba(17, 22, 37, 0.78);
  --ink: #f8fafc;
  --ink-secondary: #94a3b8;
  --muted: #64748b;
  --border: #1e263d;
  --border-focus: #818cf8;
  --border-glass: rgba(255, 255, 255, 0.08);

  /* Primary Electric Violet / Indigo Palette */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --grad-surface: linear-gradient(180deg, rgba(22, 28, 46, 0.9) 0%, rgba(17, 22, 37, 0.95) 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.28) 0%, rgba(147, 51, 234, 0.16) 35%, transparent 70%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 25px 60px -12px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 12px 35px -5px rgba(99, 102, 241, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

/* Accessible Skip to Content Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  z-index: 10000;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.dash-task:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button, input, textarea {
  font-family: inherit;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.section-pad {
  padding: 100px 0;
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  height: 80px;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-logo-svg {
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.brand:hover .brand-logo-svg {
  transform: scale(1.08) rotate(-4deg);
  filter: drop-shadow(0 0 14px rgba(99, 102, 241, 0.65));
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--grad-primary);
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 4px;
  align-content: center;
  justify-content: center;
  transform: rotate(-6deg);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(0deg) scale(1.06);
}

.brand-mark i {
  background: #ffffff;
  border-radius: 2px;
}
.brand-mark i:nth-child(2) { opacity: 0.7; }
.brand-mark i:nth-child(3) { opacity: 0.85; }

.brand-accent {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.theme-toggle {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ink-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: rotate(15deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}

.btn:active {
  transform: scale(0.97) !important;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 10px 25px -4px rgba(99, 102, 241, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.6);
}

.btn-nav {
  padding: 10px 20px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--ink);
}

.btn-nav:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.pill-btn:active,
.tool-tab:active {
  transform: scale(0.95);
}

.tool-card:active {
  transform: scale(0.98);
}

.modal-close-btn:active {
  transform: scale(0.9);
}

.floating-chip:active {
  transform: scale(0.96);
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

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

/* ==========================================================================
   HERO SECTION — HIGH-END GLASS STUDIO
   ========================================================================== */

.hero {
  position: relative;
  padding: 90px 0 80px;
  background: var(--grad-glow);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 600px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(44px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

.hero h1 span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Glass URL Form Bar */
.url-form {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-lg);
  padding: 8px 8px 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
  position: relative;
}

.url-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 15px 40px -5px rgba(99, 102, 241, 0.25);
}

.link-icon {
  font-size: 20px;
  color: var(--muted);
  transform: rotate(-35deg);
}

.url-form input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--ink);
}

.url-form input::placeholder {
  color: var(--muted);
}

.url-note {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 24px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.upload-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.upload-label {
  font-weight: 600;
}

.upload-btn {
  background: var(--surface-raised);
  border: 1px dashed var(--primary);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.upload-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-style: solid;
  transform: translateY(-2px);
}

.source-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.source-row span {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ==========================================================================
   FUTURISTIC HERO ART & GLASS WORKBENCH
   ========================================================================== */

.hero-art {
  height: 480px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.glow-one {
  width: 420px;
  height: 420px;
  top: -100px;
  right: -50px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
}

.glow-two {
  width: 380px;
  height: 380px;
  bottom: -80px;
  left: 20px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
}

/* Glass Console Window */
.media-window {
  width: 380px;
  background: var(--surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 35px 80px -15px rgba(15, 23, 42, 0.28);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  z-index: 3;
  transform: perspective(1000px) rotateY(-6deg) rotateX(4deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-window:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f43f5e;
}
.window-dots i:nth-child(2) { background: #f59e0b; }
.window-dots i:nth-child(3) { background: #10b981; }

.media-preview {
  height: 210px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}

/* Visual Waveform Effect inside hero preview */
.waveform-bars {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 70px;
}

.wave-bar {
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #a855f7, #6366f1);
  animation: waveAnim 1.4s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2n) { animation-delay: 0.2s; height: 80%; }
.wave-bar:nth-child(3n) { animation-delay: 0.4s; height: 50%; }
.wave-bar:nth-child(4n) { animation-delay: 0.6s; height: 90%; }
.wave-bar:nth-child(5n) { animation-delay: 0.1s; height: 35%; }

@keyframes waveAnim {
  0% { transform: scaleY(0.3); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; }
}

.play-button {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 4;
}

.play-button:hover {
  transform: scale(1.12);
  background: #ffffff;
  color: var(--primary-hover);
}

.preview-time {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 10px;
  font-family: var(--font-mono);
}

.media-controls {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.timeline {
  flex: 1;
  height: 6px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.timeline i {
  display: block;
  width: 48%;
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
}

/* Floating Glass Badges */
.floating-chip {
  position: absolute;
  z-index: 5;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.16);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 34px auto;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  animation: floatAnim 4s ease-in-out infinite alternate;
}

.floating-chip small {
  grid-column: 2;
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}

.chip-icon {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.chip-icon.purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.chip-icon.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.chip-icon.orange { background: rgba(249, 115, 22, 0.15); color: #f97316; }

.chip-convert { top: 25px; left: 10px; }
.chip-compress { right: -15px; top: 180px; animation-delay: 1.2s; }
.chip-resize { bottom: 35px; left: 0px; animation-delay: 2.1s; }

@keyframes floatAnim {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* Format Badges */
.format-badge {
  position: absolute;
  z-index: 5;
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.format-symbol {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.badge-mp4 { right: 20px; top: 40px; }
.badge-mp4 .format-symbol { background: rgba(99, 102, 241, 0.15); color: #6366f1; }

.badge-mp3 { left: 45px; bottom: 90px; }
.badge-mp3 .format-symbol { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.badge-jpg { right: 20px; bottom: 45px; }
.badge-jpg .format-symbol { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.art-spark {
  position: absolute;
  color: var(--primary);
  font-size: 24px;
  animation: pulseDot 2.5s infinite;
}
.spark-one { top: 60px; right: 80px; }
.spark-two { bottom: 65px; right: 70px; font-size: 18px; }

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */

.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
}

.trust-item:not(:last-child) {
  border-right: 1px solid var(--border);
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.trust-icon.shield { background: rgba(99, 102, 241, 0.1); color: var(--primary); }
.trust-icon.bolt { background: rgba(245, 158, 11, 0.1); color: var(--accent-amber); }
.trust-icon.check { background: rgba(16, 185, 129, 0.1); color: var(--accent-emerald); }
.trust-icon.device { background: rgba(6, 182, 212, 0.1); color: var(--accent-cyan); }

.trust-item b {
  font-size: 13px;
  display: block;
}

.trust-item small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

/* ==========================================================================
   TOOLS SECTION & INTERACTIVE CARDS
   ========================================================================== */

.tools-section {
  background: var(--bg);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}

.section-kicker {
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-heading h2, .center-heading h2, .why-copy h2 {
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.15;
  margin-bottom: 8px;
}

.section-heading h2 span, .center-heading h2 span, .why-copy h2 span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-heading p, .center-heading p {
  color: var(--ink-secondary);
  font-size: 15px;
}

.text-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-link:hover {
  gap: 10px;
}

/* Filter Toolbar */
.tool-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.tool-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tool-tab.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.tool-tab span {
  font-size: 11px;
  opacity: 0.8;
  margin-left: 4px;
}

.tool-search {
  width: 260px;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.tool-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.tool-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13px;
  color: var(--ink);
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 18px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-glow);
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.15);
}

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

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(-4deg);
}

.icon-purple { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.icon-pink { background: rgba(236, 72, 153, 0.12); color: #ec4899; }
.icon-blue { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.icon-orange { background: rgba(249, 115, 22, 0.12); color: #f97316; }
.icon-green { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.icon-cyan { background: rgba(6, 182, 212, 0.12); color: #06b6d4; }
.icon-yellow { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.icon-violet { background: rgba(168, 85, 247, 0.12); color: #a855f7; }

.tool-card-body {
  flex: 1;
  min-width: 0;
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tool-card h3 {
  font-size: 16px;
  font-weight: 700;
}

.tool-arrow {
  color: var(--muted);
  font-size: 16px;
  transition: transform 0.25s ease, color 0.25s ease;
}

.tool-card:hover .tool-arrow {
  color: var(--primary);
  transform: translate(3px, -3px);
}

.tool-card p {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tool-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tool-tags span {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.tools-footnote {
  font-size: 12px;
  color: var(--muted);
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Flutter-grade Rich Empty State */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  background: linear-gradient(180deg, rgba(22, 28, 46, 0.7) 0%, rgba(17, 22, 37, 0.9) 100%);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  margin: 24px 0;
  animation: fadeIn 0.3s ease;
}

.empty-state-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.85;
}

.empty-state h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--ink);
}

.empty-state p {
  font-size: 13px;
  color: var(--ink-secondary);
  max-width: 380px;
  margin: 0 auto 18px;
}

.empty-reset-btn {
  padding: 8px 18px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid var(--border-glass);
}

.empty-reset-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.info-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

/* ==========================================================================
   ADSENSE COMPLIANT BANNER SLOTS
   ========================================================================== */

.ad-slot-wrap {
  width: 100%;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-slot {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.ad-badge {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 4px;
}

.ad-placeholder-text {
  font-size: 12px;
  color: var(--ink-secondary);
  font-weight: 600;
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.how-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.center-heading {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: center;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

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

.step-visual {
  height: 120px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.upload-cloud, .download-file {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--primary);
}

.setting-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: 14px;
  padding: 14px;
  text-align: left;
  width: 140px;
}

.gear {
  font-size: 32px;
  color: var(--accent-cyan);
}

.step-number {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-family: var(--font-mono);
}

.step-card h3 {
  font-size: 17px;
  margin: 8px 0;
}

.step-card p {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.step-connector {
  font-size: 24px;
  color: var(--muted);
  text-align: center;
  opacity: 0.5;
}

/* ==========================================================================
   WHY SECTION (WORKBENCH DEMO)
   ========================================================================== */

.why-section {
  background: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.why-lead {
  font-size: 16px;
  color: var(--ink-secondary);
  margin-bottom: 30px;
  line-height: 1.7;
}

.benefit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 34px;
}

.benefit {
  display: flex;
  gap: 12px;
}

.benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.b-purple { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.b-blue { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.b-green { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.b-orange { background: rgba(249, 115, 22, 0.12); color: #f97316; }

.benefit b {
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}

.benefit p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Why Visual Dashboard */
.why-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-card {
  width: 360px;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 22px;
  position: relative;
  z-index: 2;
  transform: rotate(2deg);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  font-size: 12px;
}

.dashboard-header div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.dash-welcome {
  padding: 16px 0 10px;
}

.dash-welcome small {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 800;
}

.dash-welcome h3 {
  font-size: 20px;
  margin: 4px 0 2px;
}

.dash-welcome p {
  font-size: 12px;
  color: var(--muted);
}

.dash-task {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dash-task:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.dash-task-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.dash-task b {
  font-size: 12px;
  display: block;
}

.dash-task small {
  font-size: 10px;
  color: var(--muted);
}

.dash-chevron {
  margin-left: auto;
  color: var(--muted);
}

.dash-progress {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 14px;
}

.dash-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.dash-progress b {
  color: var(--accent-emerald);
}

.progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 6px;
  margin: 8px 0;
  overflow: hidden;
}

.progress-track i {
  display: block;
  width: 75%;
  height: 100%;
  background: var(--grad-primary);
}

.dash-progress small {
  font-size: 10px;
  color: var(--muted);
}

.privacy-float, .quality-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  font-size: 11px;
}

.privacy-float {
  top: 40px;
  left: -20px;
  transform: rotate(-6deg);
}

.quality-float {
  bottom: 40px;
  right: -20px;
  transform: rotate(6deg);
}

.privacy-float span {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.quality-star {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  display: grid;
  place-items: center;
}

/* ==========================================================================
   FAQ SECTION (SEO & ADSENSE DEPTH)
   ========================================================================== */

.faq-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-grid {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: var(--primary-glow);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.faq-question span:last-child {
  font-size: 22px;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-question span:last-child {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 22px;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
  padding: 80px 0;
  background: var(--bg);
}

.cta-inner {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px -10px rgba(99, 102, 241, 0.45);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-mini {
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

.cta-content h2 {
  font-size: clamp(30px, 3.5vw, 42px);
  color: #ffffff;
  margin-bottom: 14px;
}

.cta-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}

.btn-white {
  background: #ffffff;
  color: var(--primary-hover);
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 800;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-file {
  position: absolute;
  width: 44px;
  height: 52px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
}
.f1 { left: 10%; top: 40px; transform: rotate(-12deg); }
.f2 { right: 12%; top: 45px; transform: rotate(15deg); }
.f3 { right: 8%; bottom: 35px; transform: rotate(-10deg); }

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */

.site-footer {
  background: #080b14;
  color: #e2e8f0;
  padding: 80px 0 0;
  border-top: 1px solid #1a2238;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand {
  color: #ffffff;
}

.footer-brand-col p {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.7;
  margin: 18px 0;
  max-width: 260px;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #13192b;
  border: 1px solid #1f2a48;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 14px;
}

.socials a:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.footer-col h4, .footer-news h4 {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: #94a3b8;
  font-size: 13px;
  margin: 12px 0;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-news p {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 14px;
}

.footer-news form {
  display: flex;
  background: #13192b;
  border: 1px solid #1f2a48;
  border-radius: var(--radius-md);
  padding: 4px;
}

.footer-news input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 10px;
  color: #ffffff;
  font-size: 12px;
}

.footer-news input::placeholder {
  color: #64748b;
}

.footer-news button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.footer-news small {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid #151c30;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
}

/* ==========================================================================
   INTERACTIVE TOOL STUDIO MODAL (PREMIUM GLASS)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 20, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.studio-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: min(900px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.active .studio-modal {
  transform: translateY(0) scale(1);
}

.studio-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-raised);
}

.studio-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.studio-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.studio-title-wrap h3 {
  font-size: 18px;
  margin-bottom: 2px;
}

.studio-title-wrap p {
  font-size: 12px;
  color: var(--muted);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 15px;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #f43f5e;
  border-color: #f43f5e;
  color: #ffffff;
}

.studio-body {
  padding: 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Dropzone */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 34px 20px;
  text-align: center;
  background: var(--bg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.drop-icon-cloud {
  font-size: 40px;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 8px;
}

.drop-zone h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.drop-zone p {
  font-size: 12px;
  color: var(--muted);
}

.drop-formats {
  display: inline-flex;
  gap: 6px;
  margin-top: 12px;
}

.drop-formats span {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Studio Grid */
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.studio-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.studio-panel h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 800;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}

.control-label small {
  color: var(--primary);
  font-weight: 800;
  font-family: var(--font-mono);
}

.range-slider {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 6px;
  outline: none;
  -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.format-pills, .preset-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.studio-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
}

.studio-input:focus {
  border-color: var(--primary);
}

.media-preview-container {
  border-radius: var(--radius-sm);
  background: #090c15;
  min-height: 190px;
  max-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-media-element {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}

/* Result Box */
.result-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.result-meta b {
  font-size: 14px;
  display: block;
}

.result-meta span {
  font-size: 12px;
  color: var(--ink-secondary);
}

.savings-tag {
  background: var(--accent-emerald);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
}

/* Progress Wrap */
.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}

.progress-bar-bg {
  height: 8px;
  background: var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-primary);
  transition: width 0.25s ease;
}

/* Metadata Table */
.metadata-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.metadata-table th, .metadata-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.metadata-table th {
  color: var(--muted);
  width: 40%;
}

.metadata-table td {
  font-weight: 700;
}

/* Subtitle Area */
.subtitle-textarea {
  width: 100%;
  height: 130px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  outline: none;
  resize: vertical;
}

/* ==========================================================================
   POLICY & LEGAL MODAL
   ========================================================================== */

.policy-body {
  padding: 30px;
  overflow-y: auto;
  max-height: 70vh;
  line-height: 1.75;
}

.policy-body h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--primary);
}

.policy-body h4 {
  font-size: 15px;
  margin: 22px 0 6px;
}

.policy-body p, .policy-body li {
  font-size: 13px;
  color: var(--ink-secondary);
}

.policy-body ul {
  padding-left: 20px;
  margin: 10px 0;
}

.contact-form-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-full {
  grid-column: span 2;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: rgba(17, 22, 37, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.35);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */

@media (max-width: 1050px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-art {
    margin: 20px auto 0;
  }
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
  }
  .trust-item:nth-child(2) {
    border-right: none;
  }
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-brand-col {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 70px;
  }
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .mobile-menu-btn:hover {
    border-color: var(--primary);
  }
  .mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  }
  .mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .main-nav {
    display: flex;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(17, 22, 37, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 24px 20px;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .tool-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .tool-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tool-tabs::-webkit-scrollbar {
    display: none;
  }
  .tool-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .tool-search {
    width: 100%;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  /* Mobile Bottom Sheet Modal */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .studio-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
    border-bottom: none;
    transform: translateY(100%);
  }
  .modal-overlay.active .studio-modal {
    transform: translateY(0);
  }
  .studio-header {
    padding: 16px 20px;
  }
  .studio-body {
    padding: 18px 16px;
    gap: 16px;
  }
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .step-connector {
    display: none;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .media-window {
    width: 100%;
    max-width: 340px;
  }
  .floating-chip {
    display: none;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-brand-col {
    grid-column: span 1;
  }
}

/* ==========================================================================
   TUTORIALS & BLOG SYSTEM STYLES — SEMANTIC & CONVERSION-OPTIMIZED
   ========================================================================== */

.tutorials-section {
  padding: 100px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.tutorial-card-modern {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
}

.tutorial-card-modern:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2);
}

.tutorial-banner {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #13192c 0%, #1e1b4b 100%);
  border-bottom: 1px solid var(--border);
}

.tutorial-banner-icon {
  font-size: 54px;
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
  transition: transform 0.35s ease;
}

.tutorial-card-modern:hover .tutorial-banner-icon {
  transform: scale(1.15) rotate(-5deg);
}

.tutorial-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tutorial-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 11px;
}

.badge-tag {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.read-time {
  color: var(--muted);
  font-weight: 600;
}

.tutorial-card-body h3 {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--ink);
  transition: color 0.2s ease;
}

.tutorial-card-modern:hover .tutorial-card-body h3 {
  color: var(--primary);
}

.tutorial-card-body p {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.tutorial-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-size: 12px;
  font-weight: 700;
}

.read-link {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.launch-pill-btn {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.launch-pill-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==========================================================================
   ARTICLE PAGE STYLES (1000-WORD SEMANTIC GUIDES)
   ========================================================================== */

.article-page {
  padding: 40px 0 100px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 30px;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.article-hero {
  max-width: 860px;
  margin: 0 auto 40px;
}

.article-hero h1 {
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.15;
  margin-bottom: 18px;
}

.article-lead {
  font-size: 18px;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 13px;
}

/* Article Featured Visual Banner */
.article-featured-banner {
  max-width: 860px;
  margin: 0 auto 50px;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #0e1324 0%, #171d36 50%, #201a40 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  box-shadow: var(--shadow-xl);
}

.banner-graphic {
  font-size: 72px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 35px rgba(99, 102, 241, 0.6));
}

.banner-title-overlay {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-display);
}

.banner-chips {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* Article Layout Grid (Content + Table of Contents Sidebar) */
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 50px;
  max-width: 1140px;
  margin: 0 auto;
  align-items: start;
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #cbd5e1;
}

.article-content h2 {
  font-size: 26px;
  margin: 45px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: #ffffff;
}

.article-content h3 {
  font-size: 20px;
  margin: 30px 0 14px;
  color: #e2e8f0;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.article-content li {
  margin-bottom: 10px;
}

/* Callout Box & Pro Tip */
.callout-box {
  background: rgba(99, 102, 241, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 30px 0;
}

.callout-box b {
  color: var(--primary);
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.pro-tip {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--accent-emerald);
}

.pro-tip b {
  color: var(--accent-emerald);
}

/* Technical Comparison Table */
.comparison-table-wrap {
  overflow-x: auto;
  margin: 30px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th, .comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.comparison-table th {
  background: var(--surface-raised);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Embedded Interactive Tool Launcher Widget */
.tool-launcher-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 15px 40px -10px rgba(99, 102, 241, 0.25);
}

.launcher-copy h4 {
  font-size: 20px;
  margin-bottom: 6px;
  color: #ffffff;
}

.launcher-copy p {
  font-size: 14px;
  color: var(--ink-secondary);
  margin-bottom: 0;
}

.btn-launcher {
  background: var(--grad-primary);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
  white-space: nowrap;
}

.btn-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.6);
}

/* Table of Contents & Article Sticky Sidebar */
.toc-sidebar,
.article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card,
.toc-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h4,
.toc-sidebar h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 14px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.toc-list a {
  color: var(--muted);
  display: block;
  line-height: 1.4;
  text-decoration: none;
  transition: all 0.2s ease;
}

.toc-list a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.related-tools-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.related-tool-link:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateX(3px);
}

.related-tool-link span {
  color: var(--primary);
  font-size: 14px;
}

.toc-tool-ad {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

@media (max-width: 950px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
  .toc-sidebar,
  .article-sidebar {
    display: none;
  }
  .tool-launcher-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   ACCESSIBILITY & USER PREFERENCE STYLES (WCAG 2.2 AA)
   ========================================================================== */

/* High-contrast keyboard focus indicators */
:focus-visible {
  outline: 2px solid var(--border-focus) !important;
  outline-offset: 3px !important;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   COOKIE & PRIVACY CONSENT BANNER
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 860px;
  margin: 0 auto;
  z-index: 9999;
  background: rgba(17, 22, 37, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 260px;
}

.cookie-text p {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin: 0;
}

.cookie-text a {
  color: var(--border-focus);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 16px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 14px 16px;
  }
  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}


