/* MemorySmith Computing — campaign site styles
   Self-hosted: plain CSS, no build step, no external dependencies.
   Swap the brand colours in :root to match your brand kit.
   Fonts are loaded non-render-blocking via <link> in each page's <head> (not @import). */

:root {
  --navy: #11183a;
  --navy-2: #1c2a63;
  --slate: #3a4466;
  --accent: #4f46e5;        /* indigo — primary CTA / links */
  --accent-dark: #4338ca;
  --accent-2: #7c3aed;      /* violet — gradient partner */
  --accent-soft: #eef0ff;
  --ink: #171a2b;
  --body: #454d6b;
  --muted: #5e6580;
  --line: #e6e8f3;
  --bg: #ffffff;
  --bg-alt: #f5f6fc;
  --ok: #1f9d6b;
  --radius: 16px;
  --maxw: 1080px;
  --font: 'Inter', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background-color: var(--bg);
  /* subtle dot texture shows through transparent sections */
  background-image: radial-gradient(rgba(47,109,246,.05) 1px, transparent 1.4px);
  background-size: 24px 24px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.3px; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #5b86ff);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: .95rem;
}
.brand-logo { height: 40px; width: auto; display: block; }
@media (max-width: 440px){ .brand-logo { height: 32px; } }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--slate); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav .nav-cta {
  background: var(--accent); color: #fff; padding: 9px 16px; border-radius: 10px;
}
.nav .nav-cta:hover { background: var(--accent-dark); color:#fff; }
.nav-links { display: flex; gap: 22px; align-items:center; }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 700;
  padding: 14px 26px; border-radius: 12px; font-size: 1.05rem;
  border: 0; cursor: pointer; transition: background .15s ease, transform .05s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); }
.btn.secondary:hover { background: var(--accent-soft); }
.btn.big { padding: 16px 32px; font-size: 1.15rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    url('images/circuit.svg') right -30px top -10px / 560px auto no-repeat,
    radial-gradient(900px 440px at 84% -20%, #e3e0ff 0%, transparent 55%),
    radial-gradient(760px 520px at -6% 0%, #eceaff 0%, transparent 52%),
    linear-gradient(180deg, var(--bg-alt), #fff);
  padding: 92px 0 72px;
  border-bottom: 1px solid var(--line);
}
/* decorative blurred colour blobs */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(72px); z-index: 0; pointer-events: none;
}
.hero::before { width: 400px; height: 400px; top: -100px; right: -70px;
  background: radial-gradient(circle, rgba(99,102,241,.45), transparent 70%); }
.hero::after { width: 340px; height: 340px; bottom: -140px; left: -90px;
  background: radial-gradient(circle, rgba(124,58,237,.34), transparent 70%); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); }
.hero .eyebrow {
  display: inline-block; background: var(--accent-soft); color: var(--accent-dark);
  font-weight: 700; font-size: .8rem; letter-spacing: .4px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero p.lead { font-size: 1.25rem; color: var(--slate); max-width: 680px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: center; }
.hero .cta-note { color: var(--muted); font-size: .95rem; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--slate); font-size: 1.1rem; }

/* problem/fix callout */
.callout {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--muted);
  border-radius: var(--radius); padding: 24px 26px; color: var(--slate);
}
.callout.fix { border-left-color: var(--ok); }

/* feature list */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 720px){ .features { grid-template-columns: 1fr 1fr; gap: 18px 28px; } }
.features li {
  position: relative; padding-left: 34px; color: var(--body);
}
.features li strong { color: var(--ink); }
.features li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800;
}

/* product cards (home) */
.cards { display: grid; gap: 22px; }
@media (min-width: 620px){ .cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: 0 14px 40px rgba(20,35,59,.10); transform: translateY(-3px); border-color: #d4def0; }
.card .icon { font-size: 1.8rem; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate); font-size: .98rem; flex: 1; }
.card .card-link { font-weight: 700; margin-top: 14px; }

/* why / proof strip */
.proof { display: grid; gap: 18px; }
@media (min-width: 720px){ .proof { grid-template-columns: repeat(4,1fr); } }
.proof .item { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.proof .item h3 { font-size: 1rem; margin-bottom: 4px; }
.proof .item p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(640px 320px at 88% -40%, rgba(122,167,255,.40), transparent 60%),
    radial-gradient(520px 300px at 0% 130%, rgba(120,90,220,.35), transparent 60%),
    linear-gradient(135deg, var(--navy), #223a63);
  color: #fff; border-radius: 0;
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9d6ec; }
.cta-band .contact {
  display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center;
  margin-top: 22px; font-size: 1.15rem; font-weight: 600;
}
.cta-band .contact a { color: #fff; }
.cta-band .contact .chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.1); padding: 12px 18px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
}
.cta-band .pref { color: #a9bbda; font-size: .98rem; margin-top: 14px; font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1b2e; color: #9fb0cc; padding: 48px 0 28px; font-size: .92rem; }
.site-footer a { color: #cdd9ee; }
.site-footer a:hover { color: #fff; }
.site-footer .foot-brand { /* text kept for screen readers; shown as the white logo */
  display:block; font-size:0; line-height:0; margin-bottom:16px; }
.site-footer .foot-brand::before {
  content:""; display:block; width:180px; max-width:62vw; height:42px;
  background:url('images/logo.webp') left center / contain no-repeat;
  filter:brightness(0) invert(1); }
.foot-cols { display: grid; gap: 28px; }
@media (min-width: 720px){ .foot-cols { grid-template-columns: 1.5fr 1fr 1.3fr; gap: 36px; } }
.foot-h { color:#fff; font-size: .95rem; margin: 0 0 10px; }

/* Screen-reader-only text (visually hidden, still announced) */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.foot-text { margin: 0 0 12px; line-height: 1.7; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 20px;
  color:#8294b3; font-size: .85rem; }

/* screenshots */
.shot {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(20,35,59,.08);
}
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 12px 16px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.hero-shot { margin-top: 32px; max-width: 920px; }
.screens { display: grid; gap: 22px; }
@media (min-width: 760px){ .screens { grid-template-columns: 1fr 1fr; } }

/* small helpers */
.center { text-align: center; }
.mt0 { margin-top: 0; }
.placeholder { color: var(--accent-dark); font-weight: 700; }
