/* Codemint Technologies — SHARED premium design system.
   Dark near-black (#060a13) + mint (#3ddc97), Linear/Stripe-grade.
   Loaded on every page after css/style.css; index.html adds css/home.css after this. */

/* ============ Tokens ============ */
:root {
  --cm-bg: #060a13;
  --cm-bg2: #090e19;
  --cm-surface: rgba(255, 255, 255, 0.028);
  --cm-surface2: rgba(255, 255, 255, 0.05);
  --cm-line: rgba(255, 255, 255, 0.09);
  --cm-line-soft: rgba(255, 255, 255, 0.055);
  --cm-text: #eef2f8;
  --cm-muted: #93a1b9;
  --cm-faint: #5f6d88;
  --cm-mint: #3ddc97;
  --cm-mint-deep: #25b577;
  --cm-mint-ink: #04120b;
  --cm-mint-soft: rgba(61, 220, 151, 0.1);
  --cm-mint-glow: 0 10px 36px rgba(61, 220, 151, 0.32);
  --cm-display: "Sora", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --cm-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --cm-r: 18px;
}

/* ============ Base overrides (whole site is dark) ============ */
body {
  background: var(--cm-bg);
  color: var(--cm-text);
  font-size: 17px;
}
h1, h2, h3 { color: var(--cm-text); font-family: var(--cm-display); letter-spacing: -0.025em; }
a { color: var(--cm-mint); }
a:hover { color: var(--cm-mint); }

/* ============ Nav ============ */
.site-header {
  background: rgba(6, 10, 19, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cm-line-soft);
}
.brand { color: var(--cm-text); font-family: var(--cm-display); font-size: 1.12rem; letter-spacing: -0.01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--cm-mint) 0%, var(--cm-mint-deep) 100%);
  box-shadow: 0 4px 16px rgba(61, 220, 151, 0.4);
}
.brand-mark::after { border-color: var(--cm-mint-ink); border-top-color: transparent; border-left-color: transparent; }
.nav-links a { color: var(--cm-muted); font-weight: 500; font-size: 0.9rem; }
.nav-links a:hover { background: rgba(255, 255, 255, 0.06); color: var(--cm-text); }
.nav-toggle { border-color: var(--cm-line); color: var(--cm-text); }
@media (max-width: 760px) {
  .nav-links { background: var(--cm-bg2); border-bottom: 1px solid var(--cm-line); }
}

/* ============ Type ============ */
.cm-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--cm-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--cm-mint);
  margin-bottom: 20px;
}
.cm-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--cm-mint); opacity: 0.7; }
.cm-h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.2rem);
  line-height: 1.02; font-weight: 800; letter-spacing: -0.035em;
  margin: 0 0 24px; max-width: 16ch;
}
.cm-h1 .mint { color: var(--cm-mint); }
.cm-h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.08; font-weight: 800; letter-spacing: -0.03em;
  margin: 0 0 18px; max-width: 22ch;
}
.cm-lead { font-size: 1.16rem; color: var(--cm-muted); max-width: 640px; line-height: 1.7; }
.cm-center { text-align: center; }
.cm-center .cm-h2, .cm-center .cm-lead { margin-left: auto; margin-right: auto; }
.cm-center .cm-eyebrow::after { content: ""; width: 22px; height: 1px; background: var(--cm-mint); opacity: 0.7; }
.cm-section { padding: 110px 0; }
@media (max-width: 900px) { .cm-section { padding: 76px 0; } }

/* ============ Buttons ============ */
.cm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 13px;
  font-weight: 700; font-size: 1rem; font-family: var(--cm-display);
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.14s ease, box-shadow 0.2s ease, background 0.14s ease, border-color 0.14s ease;
}
.cm-btn:hover { transform: translateY(-2px); text-decoration: none !important; }
.cm-btn-primary { background: var(--cm-mint); color: var(--cm-mint-ink); box-shadow: 0 6px 24px rgba(61, 220, 151, 0.28); }
.cm-btn-primary:hover { background: #55e6a8; box-shadow: var(--cm-mint-glow); color: var(--cm-mint-ink); }
.cm-btn-ghost { background: transparent; color: var(--cm-text); border-color: var(--cm-line); }
.cm-btn-ghost:hover { border-color: rgba(61, 220, 151, 0.5); color: var(--cm-mint); background: var(--cm-mint-soft); }
.cm-btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.cm-center .cm-btn-row { justify-content: center; }

/* ============ Inner-page hero ============ */
.cm-page-hero {
  position: relative; overflow: hidden;
  padding: 130px 0 90px;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(61, 220, 151, 0.08), transparent 62%),
    var(--cm-bg);
  border-bottom: 1px solid var(--cm-line-soft);
}
.cm-page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 480px at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 480px at 50% 0%, #000 25%, transparent 78%);
}
.cm-page-hero .container { position: relative; }
.cm-page-hero .cm-h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
.cm-price-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--cm-mono); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--cm-mint); background: var(--cm-mint-soft);
  border: 1px solid rgba(61, 220, 151, 0.3);
  padding: 10px 20px; border-radius: 999px; margin-top: 26px;
}
.cm-hero-shot { max-width: 1020px; margin: 64px auto 0; padding: 0 24px; position: relative; }

/* ============ Grids ============ */
.cm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 60px; }
@media (max-width: 960px) { .cm-grid-3 { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } }
.cm-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 60px; }
@media (max-width: 800px) { .cm-grid-2 { grid-template-columns: 1fr; } }
.cm-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 56px; }
@media (max-width: 900px) { .cm-2col { grid-template-columns: 1fr; gap: 40px; } }
.cm-2col h3 { font-size: 1.25rem; margin: 0 0 18px; letter-spacing: -0.02em; }

/* ============ Cards ============ */
.cm-card {
  background: var(--cm-surface); border: 1px solid var(--cm-line);
  border-radius: var(--cm-r); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.18s ease;
}
.cm-card:hover { transform: translateY(-5px); border-color: rgba(61, 220, 151, 0.35); box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45); }
.cm-card-shot { border-bottom: 1px solid var(--cm-line-soft); overflow: hidden; aspect-ratio: 16/9.5; background: #0b1220; }
.cm-card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform 0.5s ease; }
.cm-card:hover .cm-card-shot img { transform: scale(1.025); }
.cm-card-body { padding: 30px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.cm-card-body h3 { font-size: 1.28rem; margin: 0 0 8px; letter-spacing: -0.02em; }
.cm-price { font-family: var(--cm-mono); font-size: 0.82rem; color: var(--cm-mint); letter-spacing: 0.04em; margin-bottom: 14px; }
.cm-card-body p { color: var(--cm-muted); font-size: 0.97rem; line-height: 1.65; flex: 1; margin: 0 0 20px; }
.cm-go { font-weight: 700; font-size: 0.95rem; color: var(--cm-text); text-decoration: none !important; display: inline-flex; align-items: center; gap: 8px; }
.cm-go .arr { transition: transform 0.16s ease; color: var(--cm-mint); }
.cm-go:hover .arr { transform: translateX(4px); }
.cm-go:hover { color: var(--cm-mint); }

/* ============ Browser frame ============ */
.cm-browser {
  position: relative; border: 1px solid var(--cm-line); border-radius: 16px; overflow: hidden;
  background: var(--cm-bg2); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.cm-browser-bar {
  display: flex; align-items: center; gap: 8px; padding: 13px 18px;
  background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid var(--cm-line-soft);
}
.cm-bdot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.cm-burl {
  flex: 1; margin-left: 10px; font-family: var(--cm-mono); font-size: 0.74rem; color: var(--cm-faint);
  background: rgba(255,255,255,0.04); border: 1px solid var(--cm-line-soft);
  border-radius: 999px; padding: 5px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cm-browser img { display: block; width: 100%; height: auto; }
.cm-media-tag {
  position: absolute; top: 52px; left: 14px; z-index: 2;
  font-family: var(--cm-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(6, 10, 19, 0.85); color: var(--cm-mint);
  border: 1px solid rgba(61, 220, 151, 0.3);
  padding: 6px 12px; border-radius: 999px;
}

/* ============ Checklists ============ */
.cm-check { list-style: none; padding: 0; margin: 0; }
.cm-check li { position: relative; padding-left: 30px; margin-bottom: 14px; font-size: 0.97rem; color: var(--cm-muted); line-height: 1.65; }
.cm-check li strong { color: var(--cm-text); font-weight: 600; }
.cm-check li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--cm-mint); border-bottom: 2.5px solid var(--cm-mint);
  transform: rotate(-45deg);
}
.cm-check.cross li::before {
  content: ""; border: none; transform: none;
  width: 14px; height: 2px; top: 13px;
  background: var(--cm-faint);
}

/* ============ Boundary box (honest limitations) ============ */
.cm-boundary {
  margin-top: 56px; padding: 36px 38px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--cm-r);
}
.cm-boundary h3 { font-size: 1.1rem; margin: 0 0 18px; color: var(--cm-text); display: flex; align-items: center; gap: 10px; }
.cm-boundary h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cm-mint); flex: none; }

/* ============ Demo callout ============ */
.cm-demo-callout {
  margin-top: 56px; padding: 38px 40px;
  background: linear-gradient(180deg, rgba(61,220,151,0.07), rgba(61,220,151,0.02));
  border: 1px solid rgba(61, 220, 151, 0.28);
  border-radius: var(--cm-r);
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.cm-demo-callout p { margin: 0; flex: 1; min-width: 260px; color: var(--cm-muted); font-size: 1.02rem; line-height: 1.65; }
.cm-demo-callout p strong { color: var(--cm-text); }
.cm-demo-callout .cm-btn { flex: none; }

/* ============ Forms ============ */
.cm-form-card {
  max-width: 680px; margin: 0 auto;
  background: var(--cm-surface); border: 1px solid var(--cm-line);
  border-radius: var(--cm-r); padding: 44px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}
@media (max-width: 640px) { .cm-form-card { padding: 30px 24px; } }
.cm-field { margin-bottom: 20px; }
.cm-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--cm-text); font-family: var(--cm-display); }
.cm-field input, .cm-field select, .cm-field textarea {
  width: 100%; padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--cm-line);
  border-radius: 12px; color: var(--cm-text);
  font: inherit; font-size: 0.98rem;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.cm-field input:focus, .cm-field select:focus, .cm-field textarea:focus {
  outline: none; border-color: var(--cm-mint);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.18);
  background: rgba(255, 255, 255, 0.06);
}
.cm-field select option { background: var(--cm-bg2); color: var(--cm-text); }
.cm-field textarea { min-height: 130px; resize: vertical; }
.cm-field input::placeholder, .cm-field textarea::placeholder { color: var(--cm-faint); }
.cm-form-note { font-size: 0.86rem; color: var(--cm-faint); margin-top: 18px; text-align: center; line-height: 1.6; }
.cm-contact-boxes { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 680px; margin: 26px auto 0; }
.cm-contact-box {
  border: 1px solid var(--cm-line); border-radius: var(--cm-r);
  padding: 26px 28px; background: var(--cm-surface);
  display: flex; align-items: center; gap: 18px;
}
.cm-contact-box .cm-ic {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  background: var(--cm-mint-soft); border: 1px solid rgba(61, 220, 151, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--cm-mint); font-size: 1.25rem; font-weight: 700; font-family: var(--cm-display);
}
.cm-contact-box h3 { margin: 0 0 4px; font-size: 1rem; }
.cm-contact-box p { margin: 0; color: var(--cm-muted); font-size: 0.94rem; }

/* ============ FAQ ============ */
.cm-faq { max-width: 780px; margin: 56px auto 0; text-align: left; }
.cm-faq details { border: 1px solid var(--cm-line); border-radius: 14px; margin-bottom: 12px; background: var(--cm-surface); transition: border-color 0.16s ease; }
.cm-faq details[open] { border-color: rgba(61, 220, 151, 0.3); }
.cm-faq summary { padding: 20px 24px; font-weight: 600; cursor: pointer; color: var(--cm-text); font-family: var(--cm-display); font-size: 1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cm-faq summary::-webkit-details-marker { display: none; }
.cm-faq summary::after { content: "+"; font-family: var(--cm-mono); color: var(--cm-mint); font-size: 1.25rem; flex: none; transition: transform 0.2s ease; }
.cm-faq details[open] summary::after { transform: rotate(45deg); }
.cm-faq details p { padding: 0 24px 22px; margin: 0; color: var(--cm-muted); font-size: 0.96rem; line-height: 1.7; }

/* ============ Showcase (work.html) ============ */
.cm-showcase {
  max-width: 980px; margin: 0 auto 30px;
  background: var(--cm-surface); border: 1px solid var(--cm-line);
  border-radius: 22px; overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.22s ease;
}
.cm-showcase:hover { border-color: rgba(61, 220, 151, 0.3); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.cm-showcase .cm-browser { border: none; border-radius: 0; box-shadow: none; }
.cm-showcase-body { padding: 36px 40px 40px; }
@media (max-width: 640px) { .cm-showcase-body { padding: 26px 24px 28px; } }
.cm-showcase-body h3 { font-size: 1.45rem; margin: 0 0 8px; letter-spacing: -0.02em; }
.cm-showcase-body .cm-price { margin-bottom: 16px; }
.cm-showcase-body > p { color: var(--cm-muted); font-size: 1rem; line-height: 1.7; margin: 0 0 20px; }
.cm-showcase-body > p strong { color: var(--cm-text); }
.cm-showcase-feats { margin: 0 0 26px; }
.cm-showcase-feats li { margin-bottom: 10px; }
.cm-showcase-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ============ Final CTA ============ */
.cm-final {
  position: relative; overflow: hidden; text-align: center;
  border-top: 1px solid var(--cm-line-soft);
  background: radial-gradient(720px 380px at 50% 110%, rgba(61, 220, 151, 0.1), transparent 65%), var(--cm-bg);
  padding: 130px 0;
}
.cm-final .container { text-align: center; }
.cm-final .cm-eyebrow::after { content: ""; width: 22px; height: 1px; background: var(--cm-mint); opacity: 0.7; }
.cm-final .cm-h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-left: auto; margin-right: auto; }
.cm-final .cm-lead { text-align: center; margin-left: auto; margin-right: auto; }
.cm-final .cm-btn-row { justify-content: center; }

/* ============ Footer ============ */
.site-footer { background: #04070e; border-top: 1px solid var(--cm-line-soft); color: var(--cm-faint); padding: 64px 0 30px; }
.footer-brand { color: var(--cm-text); font-family: var(--cm-display); }
.site-footer h4 { color: var(--cm-text); font-family: var(--cm-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.site-footer a { color: var(--cm-faint); }
.site-footer a:hover { color: var(--cm-mint); }
.site-footer p { color: var(--cm-faint); }
.footer-bottom { border-top: 1px solid var(--cm-line-soft); color: var(--cm-faint); }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.cm-d1.in { transition-delay: 0.08s; } .cm-d2.in { transition-delay: 0.16s; } .cm-d3.in { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
