/* =============================================================
   CleanPrompt AI — Public Landing Page
   Theme: Professional Dark · Indigo / Violet (matches admin dashboard)
   ============================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:            #0b0d16;
  --bg-card:       #111424;
  --bg-soft:       #0d0f1e;
  --border:        #1c2038;
  --border-2:      #252a40;
  --text:          #e8eaf6;
  --text-2:        #a8adc7;
  --text-muted:    #5e6491;
  --primary:       #6366f1;
  --primary-light: #818cf8;
  --primary-glow:  rgba(99,102,241,0.18);
  --accent:        #a855f7;
  --accent-glow:   rgba(168,85,247,0.14);
  --success:       #10b981;
  --font: 'Inter', system-ui, sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --shadow-md: 0 4px 24px rgba(0,0,0,0.55);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.7);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ── CONTAINER ─────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-logo { font-size: 1.3rem; line-height: 1; }
.nav-name { color: var(--text); }
.nav-ai   { color: var(--primary-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 7px 16px;
  background: var(--primary-glow);
  border: 1px solid rgba(99,102,241,0.35);
  border-radius: var(--r-sm);
  color: var(--primary-light) !important;
  font-weight: 600;
  transition: background 140ms var(--ease), border-color 140ms var(--ease);
}

.nav-cta:hover {
  background: rgba(99,102,241,0.28);
  border-color: rgba(99,102,241,0.5);
}

/* ── BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 100ms var(--ease), box-shadow 160ms var(--ease), background 140ms var(--ease);
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 0 24px rgba(99,102,241,0.35);
}

.btn-primary:hover {
  box-shadow: 0 0 36px rgba(99,102,241,0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
}

.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--primary);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1rem;
}

/* ── HERO ──────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.5;
}

.hero-glow-1 {
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.25) 0%, transparent 70%);
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-glow-2 {
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(168,85,247,0.18) 0%, transparent 70%);
  bottom: 0;
  right: 10%;
}

.badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--primary-glow);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── FEATURES ──────────────────────────────────────── */
.features {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.65;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease);
}

.feature-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  transform: translateY(-2px);
}

.feature-card--accent {
  border-color: rgba(99,102,241,0.3);
  background: linear-gradient(135deg, rgba(99,102,241,0.07) 0%, var(--bg-card) 60%);
}

.feature-card--accent:hover {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 8px 40px rgba(99,102,241,0.15);
}

.feature-icon {
  font-size: 1.7rem;
  margin-bottom: 14px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── HOW IT WORKS ──────────────────────────────────── */
.how {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 56px;
  max-width: 720px;
}

.step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-glow);
  border: 1px solid rgba(99,102,241,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-light);
  letter-spacing: 0.04em;
}

.step-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-body p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.65;
}

.step-connector {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(99,102,241,0.3), rgba(99,102,241,0.05));
  margin-left: 23px;
}

/* ── ADMIN CTA ─────────────────────────────────────── */
.admin-cta {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--r-2xl);
  padding: 72px 40px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.cta-card h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-card p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto 36px;
}

.cta-note {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── FOOTER ────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--text-2); }

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 80px 0 70px; }
  .features, .how, .admin-cta { padding: 70px 0; }
  .nav-links a:not(.nav-cta) { display: none; }
  .cta-card { padding: 48px 24px; }
  .step { gap: 20px; }
}
