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

:root {
  --pine-core: #1F6F50;
  --pine-light: #2A8F68;
  --pine-subtle: #E8F5EE;
  --night-trunk: #1B1B1B;
  --linen-pulp: #F4EAD5;
  --linen-light: #FAF6EE;
  --bark: #3D3D3D;
  --stone: #6B6B6B;
  --mist: #F7F7F7;
  --white: #FFFFFF;
  --amber: #D4830A;
  --amber-subtle: #FDF5E6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --max-width: 1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--night-trunk);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--pine-core); color: var(--white); }
.btn-primary:hover { background: var(--pine-light); }

.btn-large { padding: 14px 32px; font-size: 17px; border-radius: 10px; }

.btn-outline {
  background: transparent;
  color: var(--pine-core);
  border: 2px solid var(--pine-core);
}

.btn-outline:hover { background: var(--pine-subtle); }

.btn-white { background: var(--white); color: var(--pine-core); }
.btn-white:hover { background: var(--linen-light); }

/* ── Header (shared across landing + prompt-library) ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--night-trunk);
}

.logo img { width: 32px; height: 32px; }

/* ── Header Links (prompt-library style) ── */
.header-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--stone);
  transition: color 0.2s;
}

.header-links a:hover { color: var(--night-trunk); }
.header-links a.btn-primary { color: var(--white); }
.header-links a.btn-primary:hover { color: var(--white); }

/* ── Nav (landing page style) ── */
.nav { display: flex; align-items: center; gap: 32px; }

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--stone);
  transition: color 0.2s;
}

.nav a:hover { color: var(--night-trunk); }
.nav a.btn-primary { color: var(--white); }
.nav a.btn-primary:hover { color: var(--white); }

.hamburger {
  display: none;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  cursor: pointer;
  padding: 6px;
  color: var(--night-trunk);
}

.hamburger:active { background: var(--mist); }

.hamburger svg { display: block; }

/* ── Mobile Nav Overlay ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 16px 24px 24px;
  z-index: 99;
  box-shadow: var(--shadow-md);
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--bark);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.mobile-nav .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  margin-top: 12px;
  padding: 14px 22px;
}

.mobile-nav a.btn-primary { color: var(--white); }

/* ── Section Shared ── */
.section { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 18px;
  color: var(--stone);
  max-width: 580px;
  margin: 0 auto;
}

.label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pine-core);
  margin-bottom: 12px;
}

/* ── Image Placeholders ── */
.img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone);
  font-size: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}

.img-placeholder-inner {
  text-align: center;
  padding: 32px;
}

.img-placeholder-inner svg { margin: 0 auto 8px; opacity: 0.25; }
.img-placeholder-inner span { opacity: 0.5; }

/* ── Final CTA ── */
.final-cta {
  padding: 80px 0;
  background: var(--night-trunk);
  color: var(--white);
  text-align: center;
}

.final-cta h2 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.final-cta p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* ── Footer ── */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: var(--white);
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}

.footer-logo img { width: 24px; height: 24px; }

.footer-tagline {
  font-size: 14px;
  color: var(--stone);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--stone);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--night-trunk); }

.footer-copy {
  font-size: 13px;
  color: var(--stone);
}

/* ── Responsive (shared breakpoints) ── */
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: block; }

  .section { padding: 56px 0; }
  .section-header h2 { font-size: 30px; }

  .final-cta h2 { font-size: 30px; }
  .final-cta { padding: 56px 0; }

  .footer .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-left { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .btn-large { padding: 12px 24px; font-size: 16px; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
