/* ==========================================================================
   GENJUTSU AI GENERATOR — STYLESHEET
   Design System: Electric Indigo (#6366f1), Amethyst Violet (#8b5cf6), Cyber Cyan (#06b6d4)
   Theme: Abyssal Obsidian (#08090f / #0e101b / #141726)
   ========================================================================== */

:root {
  --bg-dark: #08090f;
  --bg-card: rgba(18, 21, 34, 0.75);
  --bg-card-hover: rgba(26, 30, 48, 0.85);
  --bg-card-solid: #121522;
  --bg-input: rgba(11, 13, 22, 0.8);
  
  /* Primary Accents: Electric Indigo & Violet */
  --accent-indigo: #6366f1;
  --accent-indigo-hover: #4f46e5;
  --accent-indigo-glow: rgba(99, 102, 241, 0.35);
  
  --accent-violet: #8b5cf6;
  --accent-violet-hover: #7c3aed;
  --accent-violet-glow: rgba(139, 92, 246, 0.3);

  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);

  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-accent: #a5b4fc;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --border-glass: rgba(255, 255, 255, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #151829 0%, #08090f 75%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Accessibility */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--accent-indigo);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

/* Containers */
.section-container, .footer-container, .hero-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.max-w-prose {
  max-width: 820px;
}
.max-w-4xl {
  max-width: 960px;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.text-center {
  text-align: center;
}
.text-sm {
  font-size: 0.875rem;
}
.text-dim {
  color: var(--text-dim);
}
.text-success {
  color: var(--emerald);
  font-weight: 600;
}
.w-full {
  width: 100%;
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  box-shadow: 0 4px 18px var(--accent-indigo-glow);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #818cf8 0%, #8b5cf6 100%);
  box-shadow: 0 6px 26px rgba(139, 92, 246, 0.45);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent-indigo);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-link:hover {
  color: var(--accent-violet);
}

.btn-glow {
  position: relative;
}
.btn-glow::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}
.btn-glow:hover::after {
  opacity: 0.6;
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
}
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
}

/* ==========================================================================
   HEADER (SPACIOUS, NO SQUEEZING)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s;
}

.header-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.logo-eye {
  display: flex;
  align-items: center;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.45));
}
.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.brand-ai {
  color: var(--accent-cyan);
  margin-left: 2px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-link {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta {
  padding: 0.48rem 1.15rem;
  font-size: 0.85rem;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.38rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #121522;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 150px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 110;
}
.lang-dropdown.open .lang-menu {
  display: flex;
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.lang-menu a:hover, .lang-menu a.active {
  background: rgba(99, 102, 241, 0.15);
  color: #fff;
}

/* Credits Badge */
.credits-badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  color: #c7d2fe;
  font-weight: 600;
}
.credits-badge .sparkle {
  color: #818cf8;
}

/* User Avatar */
.btn-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.mobile-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-drawer {
  display: none;
  background: #0d0f18;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
}
.mobile-drawer.open {
  display: block;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav-link {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
}
.mobile-nav-link:hover {
  color: #fff;
}
.mobile-cta-wrap {
  margin-top: 0.5rem;
}

/* ==========================================================================
   HERO SECTION & ALIGNMENT FIX (TOP ALIGNED)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 2.25rem 0 3.5rem;
  overflow: hidden;
}

.hero-bg-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.light-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.orb-indigo {
  top: -100px;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
}
.orb-violet {
  top: 25%;
  left: 5%;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
}

.hero-split-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: flex-start; /* Clean top alignment, removes awkward gap */
}

.hero-left {
  padding-top: 0.4rem;
  display: flex;
  flex-direction: column;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: var(--radius-pill);
  color: #a5b4fc;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.15rem;
}
.eyebrow-pill .spark-icon {
  color: #818cf8;
}

.hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.85rem;
  max-width: 540px;
}

.hero-stats-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.85rem;
  padding-bottom: 1.85rem;
  border-bottom: 1px solid var(--border-subtle);
}
.stat-box {
  display: flex;
  flex-direction: column;
}
.stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.trust-pill {
  font-size: 0.8rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   HERO GENERATOR WIDGET (Above the fold interactive studio)
   ========================================================================== */
.hero-generator-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.card-glow-accent {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--accent-indigo-glow), transparent 70%);
  pointer-events: none;
}

.generator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}
.generator-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #c7d2fe;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-indigo);
  box-shadow: 0 0 8px var(--accent-indigo);
  animation: pulse-ring 2s infinite ease-in-out;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.generator-runtime {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.gen-section {
  margin-bottom: 1.25rem;
}
.section-label-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.section-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.section-titles {
  display: flex;
  flex-direction: column;
}
.section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}
.section-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Dropzone */
.char-dropzone {
  border: 1.5px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  background: var(--bg-input);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 0.75rem;
}
.char-dropzone:hover, .char-dropzone.drag-over {
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.06);
}
.dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.dropzone-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.dropzone-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}
.dropzone-preview img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-glass);
}
.preview-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

/* Preset Characters Row (No ellipses, fully readable) */
.preset-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.preset-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.presets-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.preset-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.preset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.preset-btn.selected {
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.15);
  box-shadow: 0 0 12px var(--accent-indigo-glow);
}
.preset-thumb {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-bottom: 0.35rem;
}
.preset-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.preset-name {
  font-size: 0.74rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}
.preset-role {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Motion Selection */
.moves-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.move-card {
  display: flex;
  gap: 0.65rem;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  align-items: center;
}
.move-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.move-card.selected {
  border-color: var(--accent-violet);
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 12px var(--accent-violet-glow);
}
.move-thumb-wrap {
  position: relative;
  width: 48px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.move-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.move-play-icon {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.75);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #fff;
}
.move-info {
  display: flex;
  flex-direction: column;
}
.move-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #a78bfa;
}
.move-name {
  font-size: 0.825rem;
  color: #fff;
  margin: 1px 0;
}
.move-dur {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.gen-cta-row {
  margin-top: 1.25rem;
}
.btn-generate-trigger {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}
.gen-specs-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.5rem;
}

/* Generating Progress Screen */
.generator-progress {
  padding: 2rem 1rem;
  text-align: center;
}
.progress-spinner-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
}
.spin-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--accent-indigo);
  animation: spin 1s infinite linear;
}
.spin-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-indigo);
  font-size: 1.25rem;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

.progress-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}
.progress-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  border-radius: inherit;
  transition: width 0.3s ease;
}
.progress-percent {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}
.progress-shield-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 1.25rem;
}

/* Result Screen */
.generator-result {
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.badge-success {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.result-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.result-player-container {
  margin-bottom: 1.25rem;
}
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay-ctrls {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.btn-toggle-sound {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.compare-toggle-bar {
  pointer-events: auto;
  display: flex;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  padding: 3px;
  border: 1px solid var(--border-glass);
}
.tab-pill {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}
.tab-pill.active {
  background: var(--accent-indigo);
  color: #fff;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ==========================================================================
   SHOWCASE SECTION
   ========================================================================== */
.section {
  padding: 5rem 0;
  position: relative;
}
.section-header {
  margin-bottom: 3rem;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-indigo);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
}
.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0.75rem auto 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.showcase-video-box {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #000;
  overflow: hidden;
}
.showcase-video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.showcase-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  color: #c7d2fe;
  letter-spacing: 0.04em;
}

.showcase-view-controls {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 3px;
  border-radius: var(--radius-pill);
}
.view-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.view-btn.active {
  background: var(--accent-indigo);
  color: #fff;
}

.showcase-meta {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.showcase-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}
.showcase-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}
.showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}
.pair-avatars {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.char-chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-glass);
}
.arrow-join {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.motion-chip {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}
.btn-try-style {
  background: transparent;
  border: none;
  color: var(--text-accent);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-try-style:hover {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
}

/* ==========================================================================
   PILLARS (THREE MODES) SECTION
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.pillar-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-3px);
}
.pillar-icon {
  margin-bottom: 1.25rem;
}
.pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.pillar-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   HOW IT WORKS SECTION
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.step-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  margin-bottom: 0.75rem;
  letter-spacing: -0.05em;
}
.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   COMPARISON SECTION
   ========================================================================== */
.table-scroll-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
}
.comparison-table, .orders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.comparison-table th, .orders-table th {
  padding: 1.1rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}
.comparison-table th.th-highlight {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
  border-bottom-color: var(--accent-indigo);
}
.comparison-table td, .orders-table td {
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.comparison-table tr:last-child td, .orders-table tr:last-child td {
  border-bottom: none;
}
.comparison-table td.td-feature {
  color: #fff;
  font-weight: 600;
}
.comparison-table td.td-highlight {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.08);
  border-left: 1px solid rgba(99, 102, 241, 0.2);
  border-right: 1px solid rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass);
}
.price-card-popular {
  border-color: var(--accent-indigo);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.12) 0%, rgba(18, 21, 34, 0.85) 100%);
  box-shadow: 0 16px 40px var(--accent-indigo-glow);
}
.popular-ribbon {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--accent-indigo);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}
.pack-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.price-value-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.price-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
}
.price-unit {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.pack-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.75rem;
  flex: 1;
}

.guarantee-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  max-width: 820px;
  margin: 0 auto;
}
.guarantee-icon {
  font-size: 1.8rem;
}
.guarantee-title {
  color: #fff;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.2rem;
}
.guarantee-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item[open] {
  border-color: rgba(99, 102, 241, 0.3);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-icon {
  font-size: 1.25rem;
  color: var(--accent-indigo);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* ==========================================================================
   CTA BANNER SECTION
   ========================================================================== */
.cta-inner-card {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.2) 0%, rgba(18, 21, 34, 0.9) 70%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.cta-badge {
  font-size: 0.775rem;
  font-weight: 700;
  color: #a5b4fc;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  display: inline-block;
}
.cta-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.85rem;
}
.cta-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: #090a10;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.brand-col .footer-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 1rem 0 1.25rem;
  max-width: 320px;
}
.credit-guarantee-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-links a:hover {
  color: #fff;
}

.footer-locales {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
  font-size: 0.825rem;
}
.locales-label {
  color: var(--text-dim);
  font-weight: 600;
}
.locales-list {
  color: var(--text-muted);
}
.locales-list a {
  margin: 0 0.35rem;
}
.locales-list a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.credit-protection-note {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ==========================================================================
   MODALS (Auth & Payment)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeIn 0.2s ease;
}
.modal-card {
  position: relative;
  background: #121522;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
}
.modal-close:hover {
  color: #fff;
}
.modal-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #a5b4fc;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  display: block;
}
.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}
.modal-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.btn-oauth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-oauth-google:hover {
  background: rgba(255, 255, 255, 0.12);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: var(--text-dim);
  font-size: 0.75rem;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}
.auth-divider span {
  padding: 0 0.75rem;
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-group input {
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.925rem;
  outline: none;
  transition: var(--transition);
}
.form-group input:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 10px var(--accent-indigo-glow);
}

.auth-footer-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Payment Modal Specific */
.checkout-summary {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
}
.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}
.summary-line:last-child {
  margin-bottom: 0;
}
.summary-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}
.guarantee-line {
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.payment-security-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.75rem;
}

/* ==========================================================================
   DASHBOARD & ARTICLES
   ========================================================================== */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2.5rem;
}
.dashboard-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}
.dashboard-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}
.dashboard-balance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.balance-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
}
.balance-count {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.balance-count .count-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}
.balance-count .count-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dashboard-block {
  margin-bottom: 3.5rem;
}
.block-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
}

.empty-videos-state {
  background: var(--bg-card);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
}
.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.empty-title {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.35rem;
}
.empty-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Articles */
.article-container {
  padding: 3rem 1.25rem 5rem;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: #fff;
}
.article-title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.article-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.article-meta-bar {
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2.5rem;
}
.article-section {
  margin-bottom: 2.25rem;
}
.article-subheading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.article-paragraph {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.7;
}
.article-cta-box {
  background: var(--bg-card);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-top: 3.5rem;
}
.article-cta-box h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.article-cta-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* SEO & GEO Component Styles */
.quick-answer-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.qa-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.qa-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #f1f5f9;
  font-weight: 500;
}

.article-block-wrap {
  margin: 3rem 0;
}

/* Comparison Table on Article */
.article-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.article-table th {
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: rgba(99, 102, 241, 0.12);
  border-bottom: 1px solid var(--border-glass);
}
.article-table td {
  padding: 0.9rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.article-table td.cell-highlight {
  color: #fff;
  font-weight: 700;
}
.article-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Prompt Templates Grid */
.templates-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}
.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
}
.template-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
}
.template-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.template-style {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.btn-copy-template {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}
.btn-copy-template:hover {
  background: var(--accent-indigo);
  color: #fff;
}
.template-code {
  background: #05060a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 0.6rem;
  word-break: break-word;
}
.template-tip {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Article FAQ Accordion */
.article-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.article-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.article-faq-item[open] {
  border-color: rgba(99, 102, 241, 0.35);
}
.article-faq-item .faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.article-faq-item .faq-summary::-webkit-details-marker {
  display: none;
}
.article-faq-item .faq-answer {
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: #121522;
  border: 1px solid var(--accent-indigo);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-lead {
    max-width: 100%;
  }
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .pillars-grid, .steps-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .dashboard-balance-card {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
}
