/* PromptFrom — Professional Dark Theme v2 */

/* ===== CSS VARIABLES ===== */
:root {
  --bg: #09090b;
  --bg-elevated: #111113;
  --bg-surface: #0c0c0e;
  --border: #1f1f24;
  --border-hover: #2a2a30;
  --text: #d4d4d8;
  --text-muted: #71717a;
  --text-faint: #52525b;
  --text-dim: #3f3f46;
  --text-bright: #fafafa;
  --text-white: #e4e4e7;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-soft: #a5b4fc;
  --accent-bg: rgba(99, 102, 241, 0.1);
  --accent-border: rgba(99, 102, 241, 0.3);
  --accent-glow: rgba(99, 102, 241, 0.25);
  --purple: #8b5cf6;
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --pink: #ec4899;
  --blue: #3b82f6;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 24px var(--accent-glow);
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: 'Oxanium', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}
a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-soft); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: rgba(99,102,241,0.3); color: #fff; }

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 40%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section { padding: 5rem 0; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.65;
}
.main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  width: 100%;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.animate-in {
  animation: fadeInUp 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
  opacity: 0;
}
.animate-in:nth-child(2) { animation-delay: 0.08s; }
.animate-in:nth-child(3) { animation-delay: 0.16s; }
.animate-in:nth-child(4) { animation-delay: 0.24s; }
.animate-in:nth-child(5) { animation-delay: 0.32s; }
.animate-in:nth-child(6) { animation-delay: 0.4s; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(31,31,36,0.6);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1.5rem;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo:hover { text-decoration: none; color: #fff; }
.logo-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.nav { display: flex; align-items: center; gap: 0.2rem; }
.nav-link {
  color: #a1a1aa;
  font-size: 0.875rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-weight: 450;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); text-decoration: none; }
.btn-login {
  background: var(--accent-bg);
  color: var(--accent-light) !important;
  border: 1px solid var(--accent-border);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-left: 0.5rem;
  font-size: 0.85rem;
}
.btn-login:hover { background: rgba(99,102,241,0.2); border-color: rgba(99,102,241,0.5); }
.user-menu { display: flex; align-items: center; gap: 0.75rem; }
.user-name { color: var(--text); font-size: 0.875rem; font-weight: 500; }
.tier-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.tier-free { background: #27272a; color: var(--text-muted); }
.tier-pro { background: var(--accent-bg); color: var(--accent-light); }
.tier-business { background: rgba(245,158,11,0.15); color: #fbbf24; }
.nav-toggle { display: none; background: none; border: none; color: #a1a1aa; cursor: pointer; padding: 0.5rem; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav.open { display: flex; }
  .nav-link { width: 100%; padding: 0.6rem 0.85rem; }
  .btn-login { margin-left: 0; margin-top: 0.5rem; text-align: center; }
}

/* ===== HERO ===== */
.hero {
  padding: 5.5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.07) 0%, rgba(139,92,246,0.03) 40%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-bg);
  border: 1px solid rgba(99,102,241,0.18);
  color: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 6px rgba(34,197,94,0.5);
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(31,31,36,0.7);
}
.hero-stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text-bright); letter-spacing: -0.5px; }
.hero-stat-label { font-size: 0.78rem; color: var(--text-faint); margin-top: 0.2rem; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-glow);
  position: relative;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px var(--accent-glow), 0 8px 16px rgba(0,0,0,0.3);
  color: #fff;
  text-decoration: none;
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.07); border-color: var(--border-hover); color: #fff; text-decoration: none; }

/* ===== TRUSTED / SOCIAL PROOF ===== */
.trusted-section {
  padding: 2.75rem 0;
  border-top: 1px solid rgba(31,31,36,0.5);
  border-bottom: 1px solid rgba(31,31,36,0.5);
  background: var(--bg-surface);
}
.trusted-label {
  color: var(--text-faint);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
  letter-spacing: 0.01em;
}
.trusted-stats { display: flex; justify-content: center; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.trusted-stat { text-align: center; }
.trusted-stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text-bright); letter-spacing: -0.5px; }
.trusted-stat-label { font-size: 0.78rem; color: var(--text-faint); margin-top: 0.15rem; }
.trusted-stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ===== MODEL CARDS ===== */
.models-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 0.85rem; }
.model-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 0.85rem;
  text-align: center;
  transition: all var(--transition-slow);
  cursor: default;
}
a.model-card { text-decoration: none; color: inherit; cursor: pointer; }
a.model-card:hover { text-decoration: none; color: inherit; }
.model-card:hover {
  border-color: var(--model-color, var(--border-hover));
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 0 1px var(--model-color, transparent);
}
.model-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  transition: transform var(--transition);
}
.model-card:hover .model-icon { transform: scale(1.08); }
.model-card-name { font-size: 0.82rem; font-weight: 600; color: var(--text-white); margin-bottom: 0.2rem; }
.model-card-desc { font-size: 0.72rem; color: var(--text-faint); }

/* ===== HOW IT WORKS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; position: relative; }
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 18%;
  right: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.step-card { text-align: center; position: relative; }
.step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(168,85,247,0.12));
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--accent-soft);
  transition: all var(--transition-slow);
}
.step-card:hover .step-number {
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(168,85,247,0.2));
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(99,102,241,0.15);
}
.step-title { font-size: 1.05rem; font-weight: 600; color: var(--text-bright); margin-bottom: 0.5rem; }
.step-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.15rem; }
.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: all var(--transition-slow);
  text-align: left;
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform var(--transition);
}
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-title { font-size: 1rem; font-weight: 600; color: var(--text-bright); margin-bottom: 0.4rem; }
.feature-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.15rem; text-align: left; }
.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 1rem; }
.testimonial-text {
  color: #b4b4bb;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.testimonial-name { color: var(--text-white); font-size: 0.85rem; font-weight: 600; }
.testimonial-role { color: var(--text-faint); font-size: 0.75rem; }

/* ===== USE CASES ===== */
.use-cases-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.15rem; text-align: left; }
.use-case-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: all var(--transition-slow);
}
.use-case-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.use-case-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(99,102,241,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.use-case-title { font-size: 1.05rem; font-weight: 600; color: var(--text-bright); margin-bottom: 0.4rem; }
.use-case-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ===== UPLOAD ===== */
.upload-section { max-width: 680px; margin: 0 auto 2rem; }
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-slow);
  background: rgba(17,17,19,0.5);
  position: relative;
  overflow: hidden;
}
.upload-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(99,102,241,0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}
.upload-zone:hover::before,
.upload-zone.drag-over::before { opacity: 1; }
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(99,102,241,0.03);
  box-shadow: 0 0 30px rgba(99,102,241,0.06);
}
.upload-icon { color: var(--text-dim); margin-bottom: 1.25rem; transition: all var(--transition-slow); }
.upload-zone:hover .upload-icon { color: var(--accent); transform: translateY(-2px); }
.upload-label { color: var(--text); font-size: 1.05rem; margin-bottom: 0.5rem; }
.upload-label .link { color: var(--accent-light); cursor: pointer; font-weight: 500; }
.upload-hint { color: var(--text-faint); font-size: 0.85rem; }

.preview-zone { text-align: center; }
.preview-zone img { max-height: 400px; border-radius: var(--radius); margin: 0 auto 1rem; box-shadow: var(--shadow-lg); }
.btn-reset {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: #a1a1aa;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.btn-reset:hover { border-color: var(--border-hover); color: var(--text); }

.quota-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0.7rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.btn-upgrade {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff !important;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-upgrade:hover { box-shadow: 0 0 16px var(--accent-glow); text-decoration: none; }

/* ===== LOGIN GATE ===== */
.login-gate {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem 2.5rem;
  text-align: center;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.login-gate::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.login-gate-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.75rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.12));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-gate-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
}
.login-gate-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 460px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.login-gate-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.login-gate-buttons .btn-primary {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}
.login-gate-buttons .btn-secondary {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}
.login-gate-note {
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ===== LOADING ===== */
.loading { text-align: center; padding: 3rem 0; color: #a1a1aa; }
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

/* ===== RESULTS ===== */
.results { max-width: 680px; margin: 0 auto; }
.results-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.style-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag {
  background: var(--accent-bg);
  color: var(--accent-soft);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.color-palette { display: flex; gap: 4px; }
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
  transition: transform var(--transition);
}
.swatch:hover { transform: scale(1.25); }
.quota-remaining, .processing-time { margin-left: auto; color: var(--text-faint); font-size: 0.8rem; }

/* Prompt cards */
.prompt-cards { display: flex; flex-direction: column; gap: 1rem; }
.prompt-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all var(--transition-slow);
}
.prompt-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-sm); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.model-badge { font-size: 0.78rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: var(--radius-xs); }
.btn-copy {
  background: #1a1a1f;
  border: 1px solid var(--border);
  color: #a1a1aa;
  padding: 0.4rem 0.85rem;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition);
}
.btn-copy:hover { background: #27272a; border-color: var(--border-hover); color: var(--text-white); }
.btn-copy.small { margin-top: 0.5rem; font-size: 0.75rem; padding: 0.3rem 0.65rem; }
.prompt-text {
  background: var(--bg-surface);
  border: 1px solid #1a1a1f;
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}
.neg-label { font-size: 0.72rem; color: var(--text-faint); margin: 0.85rem 0 0.35rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.prompt-text.neg { border-color: rgba(239,68,68,0.12); }

/* Affiliate row */
.affiliate-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
  margin-top: 1rem;
}
.affiliate-label { color: var(--text-faint); font-size: 0.85rem; }
.aff-link {
  background: #1a1a1f;
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 7px;
  font-size: 0.8rem;
  color: #a1a1aa;
  font-weight: 500;
  transition: all var(--transition);
}
.aff-link:hover { background: #27272a; color: var(--text); text-decoration: none; }

/* ===== ERROR ===== */
.error-msg {
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.18);
  color: #fca5a5;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  text-align: center;
  font-size: 0.9rem;
}
.error-msg a { color: var(--accent-light); font-weight: 500; }

/* ===== AUTH ===== */
.auth-wrapper {
  min-height: calc(100vh - 64px - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.auth-container { width: 100%; max-width: 420px; }
.auth-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.auth-card h1 { color: var(--text-bright); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.4rem; }
.auth-card .auth-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.75rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { color: #a1a1aa; font-size: 0.8rem; font-weight: 500; }
.form-group input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-white);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: all var(--transition);
}
.form-group input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.form-group input::placeholder { color: var(--text-dim); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.5rem; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600; border: none; cursor: pointer; transition: all var(--transition); }
.btn-primary-solid { background: linear-gradient(135deg, var(--accent), var(--purple)); color: #fff; width: 100%; }
.btn-primary-solid:hover { box-shadow: var(--shadow-glow); transform: translateY(-1px); }
.btn-google { background: #fff; color: #1f1f2e; width: 100%; font-weight: 600; border: 1px solid #e4e4e7; }
.btn-google:hover { background: #f4f4f5; text-decoration: none; color: #1f1f2e; box-shadow: var(--shadow-sm); }
.divider { display: flex; align-items: center; gap: 1rem; color: var(--text-dim); font-size: 0.8rem; margin: 0.5rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-alt { margin-top: 1.5rem; color: var(--text-faint); font-size: 0.9rem; text-align: center; }

/* ===== PRICING ===== */
.pricing-header { text-align: center; padding: 4rem 0 1rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; max-width: 1000px; margin: 0 auto; align-items: start; }
.plan-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-slow);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-card.featured {
  border-color: rgba(99,102,241,0.35);
  background: linear-gradient(180deg, rgba(99,102,241,0.04) 0%, var(--bg-elevated) 100%);
  position: relative;
  box-shadow: 0 0 40px rgba(99,102,241,0.06);
}
.plan-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.plan-name { color: #a1a1aa; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.plan-price { color: var(--text-bright); font-size: 3rem; font-weight: 800; margin-bottom: 0.25rem; letter-spacing: -2px; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-faint); letter-spacing: 0; }
.plan-desc { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); line-height: 1.5; }
.plan-features { list-style: none; margin-bottom: 1.75rem; }
.plan-features li {
  color: #a1a1aa;
  font-size: 0.88rem;
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.plan-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: rgba(34,197,94,0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/12px no-repeat;
  border-radius: 50%;
  flex-shrink: 0;
}
.btn-plan {
  display: block;
  width: 100%;
  padding: 0.7rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.btn-plan-primary {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  box-shadow: 0 0 20px rgba(99,102,241,0.2);
}
.btn-plan-primary:hover { box-shadow: 0 0 30px var(--accent-glow); transform: translateY(-1px); text-decoration: none; color: #fff; }
.btn-plan-outline { border: 1px solid var(--border); color: #a1a1aa; background: transparent; }
.btn-plan-outline:hover { border-color: var(--border-hover); color: var(--text); text-decoration: none; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; max-width: 900px; margin: 0 auto; }
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
  transition: all var(--transition-slow);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-q { color: var(--text-bright); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; }
.faq-a { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

/* ===== DASHBOARD ===== */
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.dashboard-header h1 { color: var(--text-bright); font-size: 1.5rem; font-weight: 700; }
.history-grid { display: flex; flex-direction: column; gap: 0.65rem; }
.history-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all var(--transition);
}
.history-item:hover { border-color: var(--border-hover); background: rgba(17,17,19,0.8); transform: translateX(4px); }
.history-thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #1a1a1f; }
.history-meta { flex: 1; min-width: 0; }
.history-subject { color: var(--text-white); font-size: 0.93rem; font-weight: 500; margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-date { color: var(--text-faint); font-size: 0.8rem; }
.history-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.5rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.pagination a, .pagination span { padding: 0.45rem 0.85rem; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 500; }
.pagination a { background: var(--bg-elevated); border: 1px solid var(--border); color: #a1a1aa; transition: all var(--transition); }
.pagination a:hover { border-color: var(--border-hover); color: var(--text); text-decoration: none; }
.pagination .current-page { color: var(--text-faint); }
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state-icon { width: 64px; height: 64px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; color: var(--text-dim); }
.empty-state h3 { color: #a1a1aa; font-size: 1.1rem; margin-bottom: 0.4rem; }
.empty-state p { color: var(--text-faint); font-size: 0.9rem; }

/* ===== API DOCS ===== */
.api-key-box { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.api-key-label { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.api-key-value { font-family: 'JetBrains Mono', monospace; background: var(--bg); padding: 0.4rem 0.85rem; border-radius: var(--radius-xs); color: var(--accent-light); font-size: 0.85rem; border: 1px solid var(--border); }
.endpoint-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; margin-bottom: 1rem; }
.endpoint-method { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0.55rem; border-radius: 5px; margin-right: 0.5rem; }
.method-post { background: rgba(34,197,94,0.1); color: var(--green); }
.method-get { background: rgba(59,130,246,0.1); color: var(--blue); }
.endpoint-path { font-family: 'JetBrains Mono', monospace; color: var(--text-white); font-size: 0.9rem; }
.endpoint-desc { color: var(--text-muted); font-size: 0.85rem; margin: 0.75rem 0 1rem; }

/* ===== BREADCRUMBS ===== */
.breadcrumb-bar { padding: 0.85rem 0; border-bottom: 1px solid rgba(31,31,36,0.5); }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; }
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: #a1a1aa; }
.breadcrumb-sep { color: #27272a; }
.breadcrumb-current { color: #a1a1aa; }

/* ===== LEGAL PAGES ===== */
.legal-page { padding: 2.5rem 0 5rem; }
.legal-container { max-width: 780px; margin: 0 auto; }
.legal-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.legal-header h1 { color: var(--text-bright); font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.legal-updated { color: var(--text-faint); font-size: 0.85rem; }
.legal-content { color: #a1a1aa; font-size: 0.95rem; line-height: 1.75; }
.legal-section { margin-bottom: 2.5rem; }
.legal-section h2 { color: var(--text-bright); font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
.legal-section h3 { color: var(--text); font-size: 1.05rem; font-weight: 600; margin: 1.25rem 0 0.5rem; }
.legal-section p { margin-bottom: 0.85rem; }
.legal-section ul { margin: 0.75rem 0 1rem; padding-left: 1.5rem; }
.legal-section li { margin-bottom: 0.4rem; }
.legal-section a { color: var(--accent-light); }
.legal-hero { text-align: center; padding: 3rem 0 2.5rem; }

/* ===== ABOUT PAGE ===== */
.about-hero { text-align: center; padding: 5rem 0 3rem; }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.about-text { color: #a1a1aa; font-size: 0.95rem; line-height: 1.75; margin-bottom: 1rem; }
.about-stats-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px; padding: 1.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.about-stat { text-align: center; }
.about-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text-bright); }
.about-stat-label { font-size: 0.8rem; color: var(--text-faint); margin-top: 0.15rem; }
.about-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.about-stats-grid .about-stat { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1rem; transition: all var(--transition-slow); }
.about-stats-grid .about-stat:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.about-story { max-width: 700px; }
.about-story p { color: #a1a1aa; font-size: 0.95rem; line-height: 1.75; margin-bottom: 1rem; }
.values-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.15rem; text-align: left; }
.value-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px; padding: 1.75rem; transition: all var(--transition-slow); }
.value-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.value-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(99,102,241,0.06); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.value-title { color: var(--text-bright); font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.value-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

/* ===== CONTACT PAGE ===== */
.contact-page { padding: 3rem 0 5rem; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-intro { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 2rem; }
.contact-methods { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.5rem; }
.contact-method { display: flex; align-items: center; gap: 0.85rem; }
.contact-method-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(99,102,241,0.06); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-method-label { color: var(--text-faint); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-method-value { color: var(--accent-light); font-size: 0.9rem; }
.contact-faq-hint { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; font-size: 0.85rem; color: var(--text-muted); }
.contact-faq-hint a { color: var(--accent-light); }
.contact-form-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md); }
.contact-form-title { color: var(--text-bright); font-size: 1.2rem; font-weight: 600; margin-bottom: 1.25rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form select,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-white);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all var(--transition);
}
.contact-form select { cursor: pointer; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.contact-success { text-align: center; padding: 2rem 0; }
.contact-success-icon { margin-bottom: 1.25rem; }
.contact-success h2 { color: var(--text-bright); font-size: 1.3rem; margin-bottom: 0.5rem; }
.contact-success p { color: var(--text-muted); font-size: 0.95rem; }
.contact-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-info-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }

/* ===== DASHBOARD RESULTS ===== */
.dash-result-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: border-color var(--transition);
}
.dash-result-card:hover { border-color: var(--border-hover); }
.dash-result-card.expanded { border-color: rgba(99,102,241,0.2); }
.dash-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  transition: background var(--transition);
}
.dash-result-header:hover { background: rgba(255,255,255,0.02); }
.dash-result-left {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  flex: 1;
  min-width: 0;
}
.dash-result-toggle {
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform var(--transition-slow);
}
.dash-result-card.expanded .dash-result-toggle { transform: rotate(180deg); }
.dash-result-card.expanded .chevron-icon { color: var(--accent-light); }
.dash-result-body {
  display: none;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}
.dash-result-card.expanded .dash-result-body { display: block; }
.dash-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.dash-meta-tag {
  background: rgba(99,102,241,0.06);
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
}

/* ===== BLOG ===== */
.blog-header { text-align: center; margin-bottom: 2.5rem; }
.blog-categories { display: flex; justify-content: center; gap: 0.4rem; flex-wrap: wrap; }
.blog-cat-link {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.blog-cat-link:hover { border-color: var(--border-hover); color: var(--text); text-decoration: none; }
.blog-cat-link.active { background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent-light); }
.blog-card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-light);
  background: var(--accent-bg);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}
.blog-read-time { font-size: 0.75rem; color: var(--text-dim); }
.blog-card-meta { display: flex; gap: 0.4rem; font-size: 0.78rem; color: var(--text-faint); margin-top: 0.75rem; align-items: center; }

/* Featured post */
.blog-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  margin-bottom: 2rem;
  transition: all var(--transition-slow);
}
.blog-featured:hover { border-color: rgba(99,102,241,0.3); box-shadow: var(--shadow-md); text-decoration: none; color: inherit; transform: translateY(-2px); }
.blog-featured-img { min-height: 300px; overflow: hidden; background: #0c0c0e; }
.blog-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-featured:hover .blog-featured-img img { transform: scale(1.03); }
.blog-featured-img-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0c0c0e, #111118); }
.blog-featured-body { padding: 2rem 2.25rem; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.blog-featured-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}
.blog-featured:hover .blog-featured-title { color: var(--accent-soft); }
.blog-featured-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Blog list */
.blog-list { display: flex; flex-direction: column; gap: 0; }
.blog-list-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.blog-list-item:first-child { border-top: 1px solid var(--border); }
.blog-list-item:hover { text-decoration: none; color: inherit; padding-left: 0.5rem; }
.blog-list-content { flex: 1; min-width: 0; }
.blog-list-top { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.5rem; }
.blog-list-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.35;
  margin-bottom: 0.35rem;
  transition: color var(--transition);
}
.blog-list-item:hover .blog-list-title { color: var(--accent-soft); }
.blog-list-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-list-thumb {
  width: 140px;
  height: 96px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  background-color: #111113;
  flex-shrink: 0;
  transition: all var(--transition-slow);
}
.blog-list-item:hover .blog-list-thumb { border-radius: var(--radius); transform: scale(1.03); }
.blog-list-thumb-empty { display: flex; align-items: center; justify-content: center; }

/* Blog grid */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.blog-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition-slow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; color: inherit; }
.blog-card:hover .blog-card-title { color: var(--accent-soft); }
.blog-card:hover .blog-card-img { filter: brightness(1.05); }
.blog-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #0c0c0e;
  transition: filter var(--transition-slow);
}
.blog-card-img-empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0c0c0e, #111118); }
.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.65rem; }
.blog-card-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.4rem;
  line-height: 1.4;
  transition: color var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-excerpt {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

/* Blog article */
.blog-article-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}
.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 2rem;
}
.blog-article-cover {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  max-height: 420px;
  object-fit: cover;
}
.blog-article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.blog-article-content h2 { color: var(--text-bright); font-size: 1.5rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.blog-article-content h3 { color: var(--text-bright); font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.blog-article-content p { margin-bottom: 1.25rem; }
.blog-article-content ul, .blog-article-content ol { margin: 0.75rem 0 1.25rem; padding-left: 1.5rem; }
.blog-article-content li { margin-bottom: 0.35rem; }
.blog-article-content a { color: var(--accent-light); text-decoration: underline; }
.blog-article-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 1.5rem 0; }
.blog-article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  background: rgba(99,102,241,0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}
.blog-article-content pre {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
}
.blog-article-content code {
  background: rgba(99,102,241,0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--accent-soft);
}
.blog-article-content pre code { background: none; padding: 0; color: var(--text); }
.blog-article-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-img { height: 200px; }
  .blog-article-title { font-size: 1.5rem; }
  .blog-article-content { font-size: 0.95rem; }
}

/* ===== CTA ===== */
.cta-section {
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { font-size: 2rem; font-weight: 700; color: var(--text-bright); margin-bottom: 0.75rem; }
.cta-section p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }

/* ===== AD SLOT ===== */
.ad-slot { margin: 2.5rem auto; text-align: center; max-width: 680px; }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid rgba(31,31,36,0.7); padding: 3.5rem 1.5rem 2rem; margin-top: auto; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand-desc { color: var(--text-faint); font-size: 0.85rem; margin-top: 0.75rem; line-height: 1.6; }
.footer-col-title { color: #a1a1aa; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { color: var(--text-faint); font-size: 0.85rem; transition: color var(--transition); }
.footer-links a:hover { color: #a1a1aa; text-decoration: none; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid rgba(31,31,36,0.5); font-size: 0.8rem; color: var(--text-dim); }
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a { color: var(--text-dim); font-size: 0.8rem; transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--text-muted); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .models-grid { grid-template-columns: repeat(3,1fr); }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .use-cases-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .values-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats-grid { grid-template-columns: repeat(2,1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero h1 { font-size: 2.25rem; letter-spacing: -1px; }
  .hero-sub { font-size: 1rem; margin-bottom: 2rem; }
  .hero-stats { gap: 2rem; }
  .hero-stat-value { font-size: 1.35rem; }
  .section { padding: 3.5rem 0; }
  .section-title { font-size: 1.65rem; }
  .section-desc { font-size: 0.95rem; margin-bottom: 2rem; }
  .steps-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps-grid::before { display: none; }
  .models-grid { grid-template-columns: repeat(3,1fr); }
  .features-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .faq-grid { grid-template-columns: 1fr; }
  .upload-zone { padding: 2.5rem 1.25rem; }
  .trusted-stats { gap: 1.5rem; }
  .trusted-stat-divider { display: none; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .legal-header h1 { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .dashboard-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; letter-spacing: -0.5px; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .models-grid { grid-template-columns: repeat(2,1fr); }
  .auth-card { padding: 1.5rem; }
  .contact-form-card { padding: 1.25rem; }
  .about-stats-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 1.5rem; }
}
