/* Codemint Technologies — clean modern B2B SaaS agency site. No frameworks, no build step. */

:root {
  --navy: #0b1e3b;
  --navy-soft: #13294d;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff4ff;
  --green: #0e9f6e;
  --ink: #16233a;
  --muted: #5b6b85;
  --line: #e4e9f2;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 30, 59, 0.08);
  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  font-weight: 700; font-size: 1rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, .28); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.center .btn-row { justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--navy); text-decoration: none !important; white-space: nowrap; flex: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--blue) 0%, #1e3a8a 100%);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 9px;
  border: 3px solid #fff; border-top-color: transparent; border-left-color: transparent;
  border-radius: 3px; transform: rotate(-45deg);
}
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .92rem; padding: 9px 10px; border-radius: 8px; text-decoration: none !important; white-space: nowrap; }
.nav-links a:hover { background: var(--blue-soft); color: var(--blue-dark); }
.nav-cta { margin-left: 8px; flex: none; }
.nav-cta a { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 1.2rem; cursor: pointer; color: var(--navy); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; background: linear-gradient(180deg, var(--blue-soft) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero p.sub { font-size: 1.18rem; color: var(--muted); max-width: 560px; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
.hero-card h3 { margin-top: 0; font-size: 1.05rem; }
.demo-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.demo-row:first-of-type { border-top: none; }
.demo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 4px rgba(14,159,110,.15); }
.demo-row small { display: block; color: var(--muted); }
.hero-note { margin-top: 18px; font-size: .85rem; color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card .price { font-weight: 800; color: var(--navy); font-size: 1.05rem; margin: 4px 0 12px; }
.card p.desc { color: var(--muted); font-size: .97rem; flex: 1; }
.card .go { margin-top: 18px; font-weight: 700; }
.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 16px; color: var(--blue);
}
.icon-badge svg { width: 24px; height: 24px; display: block; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; counter-reset: step; }
.step { position: relative; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Checklists ---------- */
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; font-size: .98rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(14,159,110,.12); color: var(--green);
  font-weight: 800; font-size: .8rem; display: inline-flex;
  align-items: center; justify-content: center;
}
.checklist.cross li::before { content: "–"; background: rgba(91,107,133,.12); color: var(--muted); }

/* ---------- Trust band ---------- */
.trust-band { background: var(--navy); color: #dbe4f3; border-radius: var(--radius); padding: 48px; }
.trust-band h2 { color: #fff; }
.trust-band .grid-3 { margin-top: 28px; }
.trust-item h3 { color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.trust-item p { color: #a9b8d4; font-size: .94rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 32px auto 0; text-align: left; }
.faq details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; background: #fff; }
.faq summary { padding: 18px 22px; font-weight: 700; cursor: pointer; color: var(--navy); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; max-width: 680px; margin: 32px auto 0; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: .98rem; background: #fbfcfe;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.contact-alt { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 680px; margin: 28px auto 0; }
.contact-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg-alt); }
.contact-box h3 { margin-top: 0; font-size: 1rem; }
.contact-box p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--blue-soft) 0%, #fff 100%); padding: 52px 0 40px; }
.page-hero .price-tag { display: inline-block; background: var(--navy); color: #fff; font-weight: 700; padding: 8px 18px; border-radius: 999px; font-size: .95rem; margin-top: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 8px; }
.boundary { background: #fff8f0; border: 1px solid #f3ddba; border-radius: var(--radius); padding: 30px; margin-top: 40px; }
.boundary h3 { color: #92600a; }
.demo-callout { background: var(--blue-soft); border: 1px solid #c9d9fb; border-radius: var(--radius); padding: 26px 30px; margin-top: 40px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.demo-callout p { margin: 0; flex: 1; min-width: 240px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9b8d4; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: .93rem; }
.site-footer a { color: #a9b8d4; }
.site-footer a:hover { color: #fff; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 10px; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Premium theme ---------- */
:root {
  --font-display: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --glow-blue: 0 10px 34px rgba(37, 99, 235, .42);
}
h1, h2 { font-family: var(--font-display); letter-spacing: -0.02em; }

/* Dark premium hero (homepage) */
.hero-premium {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(37, 99, 235, .38), transparent 60%),
    radial-gradient(760px 420px at 88% 12%, rgba(14, 159, 110, .20), transparent 60%),
    linear-gradient(180deg, #0c2247 0%, #0a1830 100%);
  color: #dbe4f3; padding: 104px 0 96px;
}
.hero-premium::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px 420px at 50% 0%, #000 30%, transparent 75%);
}
.hero-premium .container { position: relative; }
.hero-premium .eyebrow {
  background: rgba(37, 99, 235, .16); border: 1px solid rgba(96, 140, 250, .45);
  color: #bcd0fb; padding: 8px 16px; border-radius: 999px; letter-spacing: .14em;
}
.hero-premium h1 { color: #fff; font-size: clamp(2.5rem, 5.2vw, 3.9rem); line-height: 1.08; font-weight: 800; }
.hero-premium h1 .grad {
  background: linear-gradient(92deg, #7aa5ff 0%, #34d399 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-premium p.sub { color: #a9b8d4; }
.hero-premium .hero-note { color: #8fa0bf; }
.hero-premium .btn-ghost { color: #e6edf7; border-color: rgba(255,255,255,.28); }
.hero-premium .btn-ghost:hover { border-color: #7aa5ff; color: #fff; background: rgba(122,165,255,.08); }
.hero-premium .btn-primary { box-shadow: var(--glow-blue); }
.glass-card {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  padding: 28px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.glass-card h3 { color: #fff; margin-top: 0; font-size: 1.05rem; font-family: var(--font-display); }
.glass-card .demo-row { border-top-color: rgba(255,255,255,.1); color: #dbe4f3; }
.glass-card .demo-row small { color: #8fa0bf; }
.glass-card .demo-dot { box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); background: #34d399; }
.glass-card .hero-note { margin-bottom: 0; }

/* Trust strip under hero */
.trust-strip { background: #0a1830; border-top: 1px solid rgba(255,255,255,.08); }
.trust-strip .container {
  display: flex; flex-wrap: wrap; gap: 10px 36px; justify-content: center;
  padding-top: 20px; padding-bottom: 20px;
}
.trust-strip span { color: #8fa0bf; font-size: .9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 9px; }
.trust-strip svg { width: 16px; height: 16px; color: #34d399; flex: none; }

/* Card hover lift + button polish */
.card { transition: transform .16s ease, box-shadow .16s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(11, 30, 59, .12); }
.btn-primary { transition: transform .12s ease, box-shadow .16s ease, background .12s ease; }
.btn-primary:hover { box-shadow: var(--glow-blue); }
@media (max-width: 900px) { .hero-premium { padding: 72px 0 64px; } }

/* Landing page live previews */
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.lp-card h3 { margin: 18px 0 6px; font-size: 1.12rem; }
.lp-card .desc { margin: 0 0 10px; }
.browser-frame {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #fff; box-shadow: 0 18px 44px rgba(11, 30, 59, .10);
  transition: transform .16s ease, box-shadow .16s ease;
}
.browser-frame:hover { transform: translateY(-3px); box-shadow: 0 24px 56px rgba(11, 30, 59, .14); }
.browser-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  background: #eef1f6; border-bottom: 1px solid var(--line);
}
.bdot { width: 11px; height: 11px; border-radius: 50%; background: #c6cdd8; }
.bdot:nth-child(1) { background: #f26d6d; } .bdot:nth-child(2) { background: #f5bf4f; } .bdot:nth-child(3) { background: #5fd08a; }
.burl {
  flex: 1; margin-left: 8px; font-size: .78rem; color: #66707f; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-frame iframe { display: block; width: 100%; height: 430px; border: 0; background: #fff; }
@media (max-width: 1000px) {
  .lp-grid { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
  .browser-frame iframe { height: 380px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-2, .contact-alt { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 52px 0; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .brand { font-size: 1.05rem; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 6px; }
  .nav-cta { margin: 8px 0 0; }
  .nav { position: relative; }
  .trust-band { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Showcase (work.html) ---- */
.showcase { margin: 0 auto 28px; max-width: 960px; padding: 28px; }
.media-slot { position: relative; aspect-ratio: 16/9; background: var(--navy); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 22px; }
.media-slot span { color: #94a3b8; font-weight: 600; font-size: .95rem; padding: 0 16px; text-align: center; }
.media-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.media-tag { position: absolute; top: 12px; left: 12px; background: rgba(11,30,59,.85); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.shot { aspect-ratio: 16/10; background: var(--bg-alt); border: 1px dashed #cbd5e1; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: .85rem; color: var(--muted); text-align: center; padding: 8px; }
.check-list { list-style: none; padding: 0; margin: 14px 0; }
.check-list li { padding: 6px 0 6px 28px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--blue); font-weight: 700; }
@media (max-width: 760px) { .shot-row { grid-template-columns: 1fr; } .showcase { padding: 20px; } }
