/* ============================================================
   PromptCron Marketing Site — style.css
   ============================================================ */

/* === VARIABLES === */
:root {
  --bg-0: #060a14;
  --bg-1: #0d1117;
  --bg-2: #11151e;
  --bg-3: #181d2a;
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(22, 163, 74, 0.3);
  --text-1: #eef2ff;
  --text-2: #8892a4;
  --text-3: #5a6275;
  --accent: #16a34a;
  --accent-hover: #15803d;
  --accent-light: #4ade80;
  --accent-glow: rgba(22, 163, 74, 0.15);
  --accent-gradient: linear-gradient(135deg, #16a34a 0%, #059669 100%);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --transition: 0.2s ease;
  --container: 1200px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-1);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === LAYOUT === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-dark {
  background: var(--bg-0);
}

.section-mid {
  background: var(--bg-2);
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--text-1);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
  line-height: 1.75;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(22, 163, 74, 0.55);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

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

.btn-outline:hover {
  background: var(--accent-glow);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius);
}

.btn-block {
  width: 100%;
}

/* === NAVIGATION === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* === HERO === */
.hero {
  background: var(--bg-0);
  padding: 88px 0 72px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-60%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(ellipse at center, rgba(22, 163, 74, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.25);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 30%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.hero-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-3);
}

.hero-image-wrap {
  position: relative;
  margin-top: 56px;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(22, 163, 74, 0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-image-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border);
  display: block;
}

/* === HOW IT WORKS === */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step-card {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px 32px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}

.step-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 28px;
  width: 28px;
  height: 28px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.5);
}

.step-icon {
  width: 52px;
  height: 52px;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(0.7) sepia(1) saturate(3) hue-rotate(230deg) brightness(1.4);
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-1);
}

.step-card p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
}

.step-connector {
  display: flex;
  align-items: center;
  padding: 0 16px;
  padding-top: 70px;
  flex-shrink: 0;
}

.step-connector svg {
  color: var(--accent);
  opacity: 0.4;
  width: 24px;
  height: 24px;
}

/* === USE CASES === */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.use-case-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
}

.use-case-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.use-case-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.use-case-icon-wrap img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(0.7) sepia(1) saturate(3) hue-rotate(230deg) brightness(1.4);
}

.use-case-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-1);
}

.use-case-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* === AUDIENCE GRID === */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.audience-card {
  display: flex;
  gap: 14px;
  padding: 22px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
}

.audience-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.audience-emoji {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}

.audience-card strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-1);
  display: block;
  margin-bottom: 6px;
}

.audience-card p {
  font-size: 0.83rem;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
}

/* === LLM PROVIDERS === */
.providers-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: -24px;
  margin-bottom: 0;
}

.provider-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}

.provider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  opacity: 0.7;
}

/* === PRICING === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: border-color var(--transition);
}

.pricing-card:hover {
  border-color: var(--border-accent);
}

.pricing-card-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg,
    rgba(22, 163, 74, 0.12) 0%,
    var(--bg-3) 50%
  );
  box-shadow: 0 0 0 1px var(--accent), 0 12px 48px rgba(22, 163, 74, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.pricing-header {
  margin-bottom: 24px;
}

.pricing-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-3);
  font-weight: 400;
}

.pricing-desc {
  font-size: 0.83rem;
  color: var(--text-3);
  line-height: 1.5;
  min-height: 38px;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-2);
}

.feat-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* === CTA SECTION === */
.cta-section {
  background: var(--bg-0);
  border-top: 1px solid rgba(22, 163, 74, 0.15);
  border-bottom: 1px solid rgba(22, 163, 74, 0.15);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(22, 163, 74, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  position: relative;
}

.cta-inner h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--text-1);
}

.cta-inner p {
  font-size: 1.1rem;
  color: var(--text-2);
  margin: 0 auto 36px;
  max-width: 460px;
  line-height: 1.7;
}

/* === FOOTER === */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-audience {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-audience-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.footer-audience-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-audience-links a {
  font-size: 0.83rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-audience-links a:hover {
  color: var(--accent-light);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-desc {
    max-width: 100%;
  }

  .steps {
    flex-direction: column;
    gap: 40px;
  }

  .step-connector {
    display: none;
  }

  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* === FOOTER LINKS === */
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
}

/* === LEGAL PAGES === */
.legal {
  padding: 80px 0 120px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-1);
}

.legal-date {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 40px;
  display: block;
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 12px;
  color: var(--text-1);
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 8px;
  color: var(--text-1);
}

.legal-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text-1);
}

.legal-content p {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  color: var(--text-2);
  padding-left: 24px;
  margin-bottom: 16px;
  line-height: 1.75;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--text-1);
}

.legal-content strong {
  color: var(--text-1);
  font-weight: 600;
}

.legal-content em {
  color: var(--text-2);
}

.legal-toc {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.legal-toc ol {
  margin-bottom: 0;
  padding-left: 20px;
}

.legal-toc li {
  margin-bottom: 6px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.legal-content th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-3);
  color: var(--text-1);
  font-weight: 600;
  border: 1px solid var(--border);
}

.legal-content td {
  padding: 10px 12px;
  color: var(--text-2);
  border: 1px solid var(--border);
  vertical-align: top;
}

/* ============================================================
   AUDIENCE DETAIL PAGES
   ============================================================ */

.audience-page-hero {
  background: var(--bg-0);
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.audience-page-hero::before {
  content: '';
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-60%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(ellipse at center, rgba(22, 163, 74, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.audience-page-hero .container {
  position: relative;
  max-width: 760px;
}

/* === PHOTO PLACEHOLDER === */
.photo-placeholder {
  background: var(--bg-3);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  margin: 0;
  overflow: hidden;
}

.photo-placeholder-inner {
  aspect-ratio: 16 / 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
}

.photo-placeholder-icon {
  width: 48px;
  height: 48px;
  color: var(--text-3);
  opacity: 0.4;
  flex-shrink: 0;
}

.photo-placeholder-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  opacity: 0.5;
  margin-bottom: 6px;
}

.photo-placeholder figcaption {
  font-size: 0.83rem;
  color: var(--text-3);
  text-align: center;
  font-style: italic;
  max-width: 580px;
  line-height: 1.65;
}

/* === FEATURE DETAIL GRID === */
.features-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-detail-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.feature-detail-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-detail-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 10px;
  opacity: 0.75;
}

.feature-detail-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
}

.feature-detail-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.72;
}

/* === BACK BREADCRUMB === */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  color: var(--text-3);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color var(--transition);
}

.breadcrumb:hover {
  color: var(--accent-light);
}

.breadcrumb svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 700px) {
  .features-detail-grid {
    grid-template-columns: 1fr;
  }

  .photo-placeholder-inner {
    aspect-ratio: auto;
    min-height: 180px;
  }
}
