/* ============================================================
   PromptStudio – Global Styles
   ============================================================ */

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

:root {
  --bg-base:    #05060f;
  --bg-card:    #0d0e1f;
  --bg-card2:   #12142b;
  --border:     rgba(120, 100, 255, 0.18);
  --border-h:   rgba(160, 130, 255, 0.4);
  --primary:    #7c3aed;
  --primary-h:  #6d28d9;
  --accent:     #38bdf8;
  --accent2:    #a78bfa;
  --gold:       #f59e0b;
  --text-1:     #f1f0ff;
  --text-2:     #a9a3c4;
  --text-3:     #5f587e;
  --grad-main:  linear-gradient(135deg, #a78bfa 0%, #38bdf8 100%);
  --grad-card:  linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(56,189,248,0.08) 100%);
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.6);
  --radius:     16px;
  --radius-sm:  10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-1);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 2rem;
  backdrop-filter: blur(20px);
  background: rgba(5,6,15,0.8);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(5,6,15,0.95); }
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 1.4rem; filter: drop-shadow(0 0 8px #a78bfa); }
.logo-text { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.5px; }
.logo-badge {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 1px;
  background: var(--grad-main); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  border: 1px solid rgba(167,139,250,0.4); border-radius: 4px;
  padding: 1px 5px;
}
.nav-links { display: flex; gap: 0.5rem; margin-left: auto; }
.nav-links a {
  padding: 6px 14px; border-radius: 8px;
  font-size: 0.875rem; color: var(--text-2);
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text-1); background: rgba(255,255,255,0.05); }
.nav-actions { display: flex; gap: 0.75rem; margin-left: auto; }

/* Buttons */
.btn {
  padding: 9px 20px; border-radius: 10px;
  font-size: 0.875rem; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.btn-ghost {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text-1); border-color: var(--border-h); background: rgba(255,255,255,0.04); }
.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  box-shadow: 0 0 20px rgba(124,58,237,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(124,58,237,0.5);
}
.btn-large { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
  padding: 100px 4rem 60px;
  max-width: 1280px; margin: 0 auto;
  position: relative;
}
.hero-bg {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.25;
  animation: drift 12s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: #7c3aed; top: -100px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: #0ea5e9; top: 40%; right: 0; animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; background: #a78bfa; bottom: 0; left: 35%; animation-delay: -8s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120,100,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,100,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.25);
  font-size: 0.8rem; color: var(--accent2);
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -1.5px; margin-bottom: 1.25rem;
}
.gradient-text {
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-2);
  line-height: 1.8; margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 3rem; }
.play-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.15); margin-right: 4px; font-size: 0.7rem;
}
.hero-stats {
  display: flex; align-items: center; gap: 2rem;
}
.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 1.8rem; font-weight: 800; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.75rem; color: var(--text-3); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Editor Mockup */
.hero-visual { position: relative; }
.editor-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(124,58,237,0.15);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
.editor-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.editor-dots { display: flex; gap: 6px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28ca41; }
.editor-title { font-size: 0.78rem; color: var(--text-3); flex: 1; text-align: center; font-family: 'JetBrains Mono', monospace; }
.editor-tag {
  font-size: 0.65rem; padding: 2px 8px; border-radius: 4px;
  background: rgba(167,139,250,0.15); color: var(--accent2);
  font-weight: 600;
}
.editor-body { padding: 16px; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; }
.editor-line { display: flex; gap: 14px; padding: 2px 0; }
.editor-line.active { background: rgba(167,139,250,0.08); border-radius: 4px; padding-left: 4px; }
.line-num { color: var(--text-3); min-width: 16px; user-select: none; }
.kw { color: #64748b; }
.str { color: #94a3b8; }
.var { color: #a78bfa; font-weight: 500; }
.fn { color: #38bdf8; }
.cursor {
  display: inline-block; width: 2px; height: 14px;
  background: #a78bfa; vertical-align: middle; margin-left: 2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.editor-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.02);
}
.score-bar { display: flex; align-items: center; gap: 8px; flex: 1; }
.score-label { font-size: 0.72rem; color: var(--text-3); white-space: nowrap; }
.score-track { flex: 1; height: 5px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.score-fill { height: 100%; background: var(--grad-main); border-radius: 3px; transition: width 1s ease; }
.score-val { font-size: 0.72rem; color: var(--accent2); font-weight: 600; }
.run-btn {
  padding: 7px 16px; border-radius: 8px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff; font-size: 0.78rem; font-weight: 600; font-family: inherit;
  transition: all 0.2s;
}
.run-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 12px rgba(124,58,237,0.4); }

/* ============================================================
   SECTIONS COMMON
   ============================================================ */
section { padding: 100px 4rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-badge {
  display: inline-block; margin-bottom: 1rem;
  padding: 5px 16px; border-radius: 100px;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.25);
  font-size: 0.78rem; color: var(--accent2); font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800; line-height: 1.2;
  letter-spacing: -1px; margin-bottom: 1rem;
}
.section-sub { font-size: 1.05rem; color: var(--text-2); max-width: 560px; margin: 0 auto; }

/* ============================================================
   FEATURES
   ============================================================ */
.features { max-width: 1280px; margin: 0 auto; padding: 100px 2rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-card);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(124,58,237,0.1);
}
.feature-card:hover::before { opacity: 1; }
.card-featured {
  border-color: rgba(245,158,11,0.3);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245,158,11,0.05) 100%);
}
.card-featured:hover { border-color: rgba(245,158,11,0.6); box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(245,158,11,0.1); }
.feat-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.7; margin-bottom: 1rem; }
.feature-card code { font-family: 'JetBrains Mono', monospace; font-size: 0.85em; color: var(--accent2); background: rgba(167,139,250,0.1); padding: 1px 5px; border-radius: 3px; }
.feat-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 0.72rem; padding: 3px 10px; border-radius: 100px; background: rgba(255,255,255,0.05); color: var(--text-2); }
.tag-gold { background: rgba(245,158,11,0.15); color: var(--gold); }

/* ============================================================
   STUDIO
   ============================================================ */
.studio { background: rgba(13,14,31,0.6); padding: 100px 4rem; }
.studio-container {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.studio-sidebar {
  border-right: 1px solid var(--border);
  padding: 1.25rem;
  background: rgba(255,255,255,0.02);
}
.sidebar-title {
  font-size: 0.75rem; font-weight: 700;
  color: var(--text-3); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 1rem;
}
.prompt-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 1rem; }
.prompt-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  cursor: pointer; transition: all 0.2s;
}
.prompt-item:hover { background: rgba(255,255,255,0.05); }
.prompt-item.active { background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.3); }
.item-icon { font-size: 1.1rem; }
.item-info { display: flex; flex-direction: column; }
.item-name { font-size: 0.82rem; font-weight: 500; }
.item-score { font-size: 0.7rem; color: var(--text-3); }
.new-prompt-btn {
  width: 100%; padding: 10px;
  border: 1px dashed var(--border-h); border-radius: 10px;
  background: transparent; color: var(--text-2);
  font-size: 0.82rem; cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.new-prompt-btn:hover { background: rgba(124,58,237,0.1); color: var(--accent2); }

.studio-main { display: flex; flex-direction: column; }
.studio-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.toolbar-left { display: flex; align-items: center; gap: 8px; }
.toolbar-label { font-weight: 600; font-size: 0.95rem; }
.version-badge { font-size: 0.65rem; padding: 2px 8px; border-radius: 4px; background: rgba(167,139,250,0.15); color: var(--accent2); font-weight: 600; }
.toolbar-right { display: flex; gap: 0.5rem; }
.tool-btn {
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-2);
  font-size: 0.82rem; cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.tool-btn:hover { border-color: var(--border-h); color: var(--text-1); background: rgba(255,255,255,0.04); }
.tool-btn-primary {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-color: transparent; color: #fff;
}
.tool-btn-primary:hover { box-shadow: 0 2px 12px rgba(124,58,237,0.4); transform: translateY(-1px); }
.model-select {
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card2); color: var(--text-2);
  font-size: 0.82rem; cursor: pointer;
  font-family: inherit; outline: none;
  transition: all 0.2s;
}
.model-select:hover { border-color: var(--border-h); color: var(--text-1); }
.model-select option { background: var(--bg-card2); }

.studio-panels {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; flex: 1;
  min-height: 400px;
}
.panel { display: flex; flex-direction: column; }
.panel-left { border-right: 1px solid var(--border); }
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem;
  font-size: 0.82rem; color: var(--text-2);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.panel-actions, .panel-tabs { display: flex; gap: 6px; }
.micro-btn, .tab-btn {
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-3);
  font-size: 0.75rem; cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.micro-btn:hover { color: var(--text-1); border-color: var(--border-h); }
.tab-btn.active { background: rgba(124,58,237,0.2); color: var(--accent2); border-color: rgba(124,58,237,0.4); }

.prompt-editor {
  flex: 1; padding: 1.25rem;
  background: transparent; border: none; outline: none;
  color: var(--text-1); font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem; line-height: 1.8; resize: none;
  min-height: 300px;
}
.prompt-editor::placeholder { color: var(--text-3); }

.variable-bar {
  padding: 8px 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; gap: 6px; flex-wrap: wrap;
  min-height: 40px; align-items: center;
}
.var-chip {
  padding: 3px 10px; border-radius: 100px;
  background: rgba(167,139,250,0.15); color: var(--accent2);
  font-size: 0.72rem; font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.output-area, .analysis-area {
  flex: 1; padding: 1.25rem;
  overflow-y: auto; font-size: 0.88rem; line-height: 1.8;
  color: var(--text-1);
}
.output-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; text-align: center; color: var(--text-3);
  gap: 0.5rem;
}
.placeholder-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.placeholder-sub { font-size: 0.78rem; }
.hidden { display: none !important; }

.typing-text { position: relative; }
.typing-text::after { content: '|'; animation: blink 0.8s step-end infinite; color: var(--accent2); }

.quality-strip {
  display: flex; align-items: center; gap: 2rem;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.quality-item { display: flex; align-items: center; gap: 8px; flex: 1; }
.quality-label { font-size: 0.72rem; color: var(--text-3); white-space: nowrap; }
.mini-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.mini-fill { height: 100%; background: var(--grad-main); border-radius: 2px; transition: width 0.8s cubic-bezier(.4,0,.2,1); }
.quality-score { font-size: 0.72rem; color: var(--accent2); font-weight: 700; min-width: 26px; }

.analysis-item {
  padding: 12px; margin-bottom: 10px;
  border-radius: 10px; font-size: 0.85rem;
}
.analysis-item.good { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); }
.analysis-item.warn { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); }
.analysis-item.bad { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); }
.analysis-item .ai-tag { font-weight: 700; margin-right: 6px; }
.analysis-item.good .ai-tag { color: #22c55e; }
.analysis-item.warn .ai-tag { color: #f59e0b; }
.analysis-item.bad .ai-tag { color: #ef4444; }

/* ============================================================
   TEMPLATES
   ============================================================ */
.templates { max-width: 1280px; margin: 0 auto; padding: 100px 2rem; }
.template-filters { display: flex; gap: 8px; justify-content: center; margin-bottom: 2.5rem; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 18px; border-radius: 100px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-2); font-size: 0.85rem; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.filter-btn:hover { border-color: var(--border-h); color: var(--text-1); }
.filter-btn.active {
  background: rgba(124,58,237,0.2); color: var(--accent2);
  border-color: rgba(124,58,237,0.4);
}
.templates-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; cursor: pointer; transition: all 0.3s;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.template-card:hover {
  border-color: var(--border-h); transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.tmpl-emoji { font-size: 2rem; }
.tmpl-name { font-weight: 700; font-size: 0.95rem; }
.tmpl-desc { font-size: 0.82rem; color: var(--text-2); flex: 1; }
.tmpl-meta { display: flex; align-items: center; justify-content: space-between; }
.tmpl-category { font-size: 0.7rem; padding: 3px 9px; border-radius: 100px; background: rgba(255,255,255,0.05); color: var(--text-3); }
.tmpl-score { font-size: 0.75rem; color: var(--gold); }
.tmpl-btn {
  width: 100%; padding: 8px; border-radius: 8px; border: none;
  background: rgba(124,58,237,0.15); color: var(--accent2);
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.tmpl-btn:hover { background: rgba(124,58,237,0.3); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { max-width: 1280px; margin: 0 auto; padding: 100px 2rem; }
.pricing-toggle {
  display: flex; align-items: center; gap: 12px;
  justify-content: center; margin-bottom: 3rem;
  font-size: 0.9rem; color: var(--text-2);
}
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(255,255,255,0.1); border-radius: 12px;
  transition: 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: #7c3aed; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.discount-tag {
  padding: 3px 10px; border-radius: 100px;
  background: rgba(34,197,94,0.15); color: #22c55e;
  font-size: 0.75rem; font-weight: 700;
}
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem;
  transition: all 0.3s; position: relative;
}
.price-card-pro {
  background: linear-gradient(160deg, rgba(124,58,237,0.2) 0%, var(--bg-card) 60%);
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 0 40px rgba(124,58,237,0.15);
}
.plan-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; border-radius: 100px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.plan-name { font-size: 0.85rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.plan-price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 0.5rem; }
.price-symbol { font-size: 1.2rem; font-weight: 700; color: var(--text-2); }
.price-num { font-size: 3rem; font-weight: 800; letter-spacing: -2px; }
.price-period { font-size: 0.85rem; color: var(--text-3); }
.plan-desc { font-size: 0.85rem; color: var(--text-3); margin-bottom: 1.5rem; }
.plan-features { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.plan-features li { font-size: 0.88rem; color: var(--text-2); }
.plan-features li:first-child { color: var(--text-1); }
.plan-btn {
  width: 100%; padding: 12px; border-radius: 12px;
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.plan-btn-primary {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border: none; color: #fff;
}
.plan-btn-primary:hover { box-shadow: 0 4px 20px rgba(124,58,237,0.4); transform: translateY(-1px); }
.plan-btn-outline {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-2);
}
.plan-btn-outline:hover { border-color: var(--border-h); color: var(--text-1); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 4rem;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 4rem;
  flex-wrap: wrap; margin-bottom: 3rem;
}
.footer-tagline { font-size: 0.85rem; color: var(--text-3); margin-top: 0.75rem; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; color: var(--text-1); text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { font-size: 0.85rem; color: var(--text-3); transition: color 0.2s; }
.footer-col a:hover { color: var(--text-1); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  border-top: 1px solid var(--border); padding-top: 2rem;
  font-size: 0.82rem; color: var(--text-3); text-align: center;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.modal {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 20px; padding: 2.5rem; max-width: 560px; width: 100%;
  position: relative; box-shadow: var(--shadow-lg);
  animation: modal-in 0.25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modal-in { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.05); border: none;
  color: var(--text-3); width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer; font-size: 0.9rem; transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text-1); }
.modal-content h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.modal-content p { color: var(--text-2); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.modal-content .btn { width: 100%; justify-content: center; text-align: center; }

/* TOAST */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3000; background: var(--bg-card2);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 24px; font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s ease;
}
@keyframes toast-in { from { transform: translateX(-50%) translateY(20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }

/* ============================================================
   RESPONSIVE (basic)
   ============================================================ */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .templates-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  section { padding: 60px 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .templates-grid { grid-template-columns: 1fr; }
  .studio-container { grid-template-columns: 1fr; }
  .studio-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .studio-panels { grid-template-columns: 1fr; }
  .panel-left { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-stats { flex-direction: column; align-items: flex-start; }
  .nav-links { display: none; }
}
