/* ═══════════════════════════════════════════
   CurateLM — Shared Design System
   Light mode · Cloudflare Pages ready
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Outfit:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Palette — Dark mode */
  --bg:        #0d0d12;
  --bg2:       #13131a;
  --bg3:       #18181f;
  --bg4:       #22222c;
  --ink:       #eeedf0;
  --ink2:      #c8c7cc;
  --muted:     #7a7a8a;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.13);
  --accent:    #5b8ef7;
  --accent-h:  #4070e8;
  --green:     #34c48a;
  --amber:     #f0a830;
  --red:       #f06060;

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Outfit', system-ui, sans-serif;
  --mono:  'JetBrains Mono', monospace;

  /* Spacing & shape */
  --max:   1080px;
  --r:     8px;
  --r-lg:  14px;
  --nav-h: 80px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(24,22,15,0.06);
  --shadow-md: 0 4px 20px rgba(24,22,15,0.08);
  --shadow-lg: 0 12px 48px rgba(24,22,15,0.10);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font-family: var(--sans);
  font-size: 14px;
}

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(13,13,18,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img,
.nav-logo svg {
  height: 54px;
  width: auto;
  display: block;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex; gap: 28px;
  list-style: none; align-items: center;
}
.nav-links a {
  font-size: 14.5px; font-weight: 400;
  color: var(--muted); letter-spacing: 0.01em;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active {
  font-weight: 500;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 1px;
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-signin {
  font-size: 13px; color: var(--muted);
  padding: 7px 16px; border-radius: var(--r);
  border: 1px solid var(--border2);
  transition: all 0.15s; background: transparent;
  cursor: pointer; font-weight: 400;
}
.nav-signin:hover { color: var(--ink); border-color: var(--border2); }
.nav-cta {
  font-size: 13px; font-weight: 500;
  background: var(--ink); color: var(--bg);
  padding: 8px 20px; border-radius: var(--r);
  border: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  display: inline-block;
}
.nav-cta:hover { opacity: 0.82; transform: translateY(-1px); }
.hamburger {
  display: none; background: none;
  border: none; cursor: pointer; padding: 4px;
  flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: 0.3s;
}

/* ── LAYOUT ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.section-wrap { padding: 96px 0; }
.section-wrap-sm { padding: 64px 0; }

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px; display: block;
}
.h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 500; line-height: 1.07;
  letter-spacing: -0.8px; color: var(--ink);
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500; line-height: 1.1;
  letter-spacing: -0.5px; color: var(--ink);
  margin-bottom: 16px;
}
.h3 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.2px; color: var(--ink);
  margin-bottom: 10px;
}
.lead {
  font-size: 19px; color: var(--muted);
  line-height: 1.75; max-width: 520px;
}
.body-text {
  font-size: 16px; color: var(--muted); line-height: 1.85;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--r);
  font-size: 14px; font-weight: 500; font-family: var(--sans);
  cursor: pointer; transition: all 0.18s; border: none;
  text-decoration: none;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: 0.82; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1px solid var(--border2);
}
.btn-outline:hover { background: var(--bg3); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(29,78,216,0.25); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ── CARDS ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-icon {
  width: 42px; height: 42px;
  background: rgba(29,78,216,0.07);
  border: 1px solid rgba(29,78,216,0.14);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 19px; height: 19px; }

/* ── TAGS ── */
.tag {
  display: inline-block;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.03em;
  padding: 3px 9px; border-radius: 5px;
}
.tag-green { background: rgba(13,122,92,0.07); color: var(--green); border: 1px solid rgba(13,122,92,0.18); }
.tag-blue  { background: rgba(29,78,216,0.07); color: var(--accent); border: 1px solid rgba(29,78,216,0.18); }
.tag-gray  { background: var(--bg3); color: var(--muted); border: 1px solid var(--border); }

/* ── FORMS ── */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-label {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.form-input, .form-select, .form-textarea {
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--ink); font-family: var(--sans);
  font-weight: 300; font-size: 14px;
  padding: 11px 14px; border-radius: var(--r);
  outline: none; width: 100%;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.09);
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(238,237,240,0.18); }
.form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2378746a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── DIVIDERS ── */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px;
  color: var(--green); letter-spacing: 0.03em;
  background: rgba(13,122,92,0.06);
  border: 1px solid rgba(13,122,92,0.2);
  padding: 5px 13px; border-radius: 99px;
}
.badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:0.4;transform:scale(0.75)}
}

/* ── FOOTER ── */
.footer {
  background: #080810;
  padding: 56px 40px 36px;
}
.footer-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand { }
.footer-logo {
  font-family: var(--serif); font-size: 22px;
  font-weight: 600; color: rgba(238,237,240,0.9);
  margin-bottom: 12px; display: block;
}
.footer-logo span { color: #6b9bf7; }
.footer-desc {
  font-size: 13px; color: rgba(238,237,240,0.35);
  line-height: 1.75; max-width: 260px; margin-bottom: 20px;
}
.footer-col-title {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(238,237,240,0.3); margin-bottom: 16px;
}
.footer-links-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links-list a {
  font-size: 14px; color: rgba(238,237,240,0.4);
  transition: color 0.15s;
}
.footer-links-list a:hover { color: rgba(238,237,240,0.8); }
.footer-bottom {
  max-width: var(--max); margin: 0 auto;
  border-top: 1px solid rgba(238,237,240,0.06);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: rgba(238,237,240,0.25); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(238,237,240,0.3); transition: color 0.15s; }
.footer-legal a:hover { color: rgba(238,237,240,0.65); }

/* ── PAGE HERO (inner pages) ── */
.page-hero { background: var(--bg2) !important; /* dark */ 
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 72px 40px 64px;
  text-align: center;
}
.page-hero .h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 16px; }
.page-hero .lead { margin: 0 auto; }

/* ── SUCCESS / ERROR STATES ── */
.alert {
  padding: 14px 18px; border-radius: var(--r);
  font-size: 14px; line-height: 1.5;
  display: none;
}
.alert-success {
  background: rgba(13,122,92,0.07);
  border: 1px solid rgba(13,122,92,0.2);
  color: var(--green);
}
.alert-error {
  background: rgba(185,28,28,0.06);
  border: 1px solid rgba(185,28,28,0.18);
  color: var(--red);
}

/* ── FADE IN ANIMATION ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp 0.55s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 20px 40px;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.trust-label {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); flex-shrink: 0;
}
.trust-logos { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }
.trust-logo {
  font-family: var(--serif); font-size: 15px; font-weight: 500;
  color: rgba(238,237,240,0.18); letter-spacing: -0.1px;
  transition: color 0.2s;
}
.trust-logo:hover { color: var(--muted); }

/* ── STATS ROW ── */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.stat-box { background: var(--bg3); padding: 32px 24px; text-align: center; }
.stat-num {
  font-family: var(--serif); font-size: 40px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.8px; display: block; margin-bottom: 5px;
}
.stat-num span { color: var(--accent); }
.stat-lbl { font-size: 13px; color: var(--muted); }

/* ── PRICING CARDS ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 16px;
}
.price-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 36px 30px; position: relative;
}
.price-card.featured {
  background: #1a1a2a; border-color: #2a2a3a;
}
.price-badge {
  position: absolute; top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 500; font-family: var(--sans);
  padding: 4px 14px; border-radius: 99px; white-space: nowrap;
}
.price-tier {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 10px; display: block;
}
.price-card.featured .price-tier { color: rgba(238,237,240,0.45); }
.price-amount {
  font-family: var(--serif); font-size: 38px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.6px; margin-bottom: 6px;
}
.price-card.featured .price-amount { color: #eeedf0; }
.price-amount small { font-size: 16px; color: var(--muted); font-family: var(--sans); font-weight: 300; }
.price-card.featured .price-amount small { color: rgba(238,237,240,0.4); }
.price-desc { font-size: 13px; color: var(--muted); margin-bottom: 26px; line-height: 1.6; }
.price-card.featured .price-desc { color: rgba(238,237,240,0.45); }
.price-features { list-style: none; margin-bottom: 30px; }
.price-features li {
  font-size: 15px; font-weight: 300; color: var(--muted);
  padding: 8px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.price-card.featured .price-features li { color: rgba(238,237,240,0.5); border-bottom-color: rgba(238,237,240,0.07); }
.price-features li:last-child { border-bottom: none; }
.price-features li::before {
  content: ''; width: 5px; height: 5px;
  background: var(--green); border-radius: 50%; flex-shrink: 0;
}
.price-card.featured .price-features li::before { background: #7fd4b8; }

/* ── MOBILE ── */
@media (max-width: 860px) {
  .nav { padding: 0 20px; }
  .nav-links, .nav-signin { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(13,13,18,0.97);
    padding: 20px; border-bottom: 1px solid var(--border);
    gap: 16px; align-items: flex-start;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open .nav-signin { display: block; }
  .container { padding: 0 20px; }
  .section-wrap { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer { padding: 40px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trust-bar { padding: 16px 20px; }
  .page-hero { background: var(--bg2) !important; /* dark */  padding: 52px 20px 44px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ═══ DARK MODE OVERRIDES — force all stubborn light colors ═══ */
.about-section,
.contact-section,
.page-hero,
.stats-section,
.value-card,
.about-visual,
.service-visual,
.fmt-item,
.code-visual {
  background: var(--bg2) !important;
  color: var(--ink) !important;
}

.about-visual,
.code-visual {
  background: #080810 !important;
  color: rgba(238,237,240,0.5) !important;
}

/* Fix any inline white backgrounds from seo.js bioCard */
[style*="background:#f2efe8"],
[style*="background: #f2efe8"] {
  background: #13131a !important;
}
[style*="color:#18160f"],
[style*="color: #18160f"] {
  color: #eeedf0 !important;
}
[style*="color:#78746a"],
[style*="color: #78746a"] {
  color: #7a7a8a !important;
}
[style*="color:#1d4ed8"],
[style*="color: #1d4ed8"] {
  color: #5b8ef7 !important;
}

/* Services bottom CTA dark */
section[style*="background: var(--ink)"],
section[style*="background:var(--ink)"] {
  background: #080810 !important;
}
