/* PromptFx GitHub Pages Stylesheet */

:root {
  --primary: #3a7bd5;
  --primary-dark: #2c5fa8;
  --primary-light: #5b9cf6;
  --secondary: #6c3fc5;
  --accent: #00c9a7;
  --dark: #1a1f2e;
  --dark-alt: #252b3b;
  --text: #e8eaf0;
  --text-muted: #9aa5bb;
  --text-dark: #1a1f2e;
  --card-bg: #252b3b;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --radius: 12px;
  --radius-sm: 6px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'JetBrains Mono', 'Fira Code', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── NAV ─────────────────────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 31, 46, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.nav-brand svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.07);
  text-decoration: none;
}

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 0.4rem 1rem !important;
}

.nav-cta:hover { background: var(--primary-dark) !important; }

/* ─── HERO ────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, #1a1f2e 0%, #1e2540 50%, #1a1f2e 100%);
  padding: 5rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(58,123,213,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: rgba(58,123,213,0.18);
  border: 1px solid rgba(58,123,213,0.4);
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  cursor: pointer;
  text-decoration: none !important;
  border: none;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(58,123,213,0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(58,123,213,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover { background: rgba(255,255,255,0.06); }

/* ─── SCREENSHOT ──────────────────────────────────────────────────────── */

.screenshot-wrapper {
  max-width: 900px;
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.07);
  position: relative;
}

.screenshot-chrome {
  background: #2a2d3a;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.chrome-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}

.chrome-dot:nth-child(1) { background: #ff5f57; }
.chrome-dot:nth-child(2) { background: #ffbd2e; }
.chrome-dot:nth-child(3) { background: #28c840; }

.chrome-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.screenshot-wrapper img {
  width: 100%;
  display: block;
}

/* ─── USER PATHS ─────────────────────────────────────────────────────── */

.section {
  padding: 4.5rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* User path cards */
.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.path-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none !important;
}

.path-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.path-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.path-icon.user   { background: rgba(58,123,213,0.15); }
.path-icon.tester { background: rgba(108,63,197,0.15); }
.path-icon.dev    { background: rgba(0,201,167,0.15); }

.path-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.path-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
}

.path-arrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.path-card.user-card   .path-arrow { color: var(--primary-light); }
.path-card.tester-card .path-arrow { color: #a78bfa; }
.path-card.dev-card    .path-arrow { color: var(--accent); }

/* ─── FEATURES ────────────────────────────────────────────────────────── */

.features-section {
  background: var(--dark-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  transition: background 0.2s;
}

.feature-item:hover { background: rgba(255,255,255,0.05); }

.feature-icon { font-size: 1.6rem; margin-bottom: 0.75rem; }

.feature-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── SECONDARY SCREENSHOTS ──────────────────────────────────────────── */

.gallery-section { padding: 4.5rem 2rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg);
}

.gallery-item img {
  width: 100%;
  display: block;
  border-bottom: 1px solid var(--border);
}

.gallery-caption {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gallery-caption strong { color: var(--text); }

/* ─── FOOTER ─────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--dark-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  list-style: none;
}

.footer-links a { color: var(--text-muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--text); }

/* ─── INNER PAGE HERO ─────────────────────────────────────────────────── */

.page-hero {
  padding: 4rem 2rem 2.5rem;
  background: linear-gradient(135deg, #1a1f2e 0%, #1e2540 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.page-hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ─── CONTENT ─────────────────────────────────────────────────────────── */

.content-section {
  padding: 3.5rem 2rem;
}

.content-inner {
  max-width: 820px;
  margin: 0 auto;
}

.content-inner h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.content-inner h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

.content-inner p { color: var(--text-muted); margin-bottom: 1rem; }
.content-inner p a { color: var(--primary-light); }
.content-inner p a:hover { text-decoration: underline; }

.content-inner ul, .content-inner ol {
  color: var(--text-muted);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-inner li { margin-bottom: 0.4rem; }

.content-inner code {
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.08);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
  color: var(--accent);
}

.content-inner pre {
  background: #141820;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.content-inner pre code {
  background: none;
  padding: 0;
  font-size: 0.88rem;
  color: #a8d8a8;
}

.note-box {
  background: rgba(58,123,213,0.1);
  border-left: 3px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.step-list {
  list-style: none;
  padding: 0;
  counter-reset: steps;
}

.step-list li {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
  color: var(--text-muted);
}

.step-list li::before {
  content: counter(steps);
  background: var(--primary);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 3.5rem 1rem 2rem; }
  .section { padding: 3rem 1rem; }
  .features-section { padding: 3rem 1rem; }
}
