/* ============================================
   Sprague Designs LLC — Global Stylesheet
   Dark / Electric Cyan — Futuristic Modern
   ============================================ */

:root {
  --bg: #060a13;
  --bg-alt: #0a1120;
  --surface: #0e1729;
  --surface-2: #12203a;
  --border: rgba(56, 189, 248, 0.14);
  --border-strong: rgba(56, 189, 248, 0.35);
  --text: #e6f1ff;
  --text-muted: #93a5c0;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --accent-grad: linear-gradient(90deg, #22d3ee 0%, #3b82f6 100%);
  --glow: 0 0 24px rgba(34, 211, 238, 0.35);
  --radius: 14px;
  --max-w: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: #7dd3fc; }

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 10, 19, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .02em;
  color: var(--text);
}
.logo:hover { color: var(--text); }

.logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #04101c;
  font-size: 1rem;
  box-shadow: var(--glow);
}

.logo .accent { color: var(--cyan); }

.logo-img { height: 40px; width: auto; display: block; }

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.main-nav { display: flex; align-items: center; gap: 28px; }

.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: .95rem;
}
.main-nav a:hover, .main-nav a.active { color: var(--cyan); }

.nav-cta {
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--accent-grad);
  color: #04101c !important;
  font-weight: 700;
  box-shadow: var(--glow);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 34px rgba(34,211,238,.5); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 1.3rem;
  padding: 4px 12px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 180px 0 110px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(34, 211, 238, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 35% at 80% 20%, rgba(59, 130, 246, 0.10), transparent 70%),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,211,238,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero .container { position: relative; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34,211,238,.06);
  margin-bottom: 28px;
}

.badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero p.lead {
  max-width: 640px;
  margin: 0 auto 38px;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.btn-primary {
  background: var(--accent-grad);
  color: #04101c;
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 38px rgba(34,211,238,.5); color: #04101c; }

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(34,211,238,.04);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .kicker {
  color: var(--cyan);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 40px rgba(2, 8, 20, .6), 0 0 0 1px rgba(34,211,238,.12);
}

.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(34,211,238,.1);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--cyan);
}

.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: .95rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .label { color: var(--text-muted); font-size: .92rem; margin-top: 6px; }

/* ---------- Client / Project cards ---------- */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  margin-bottom: 28px;
  transition: border-color .25s, box-shadow .25s;
}
.project-card:hover { border-color: var(--border-strong); box-shadow: 0 0 0 1px rgba(34,211,238,.12), 0 16px 44px rgba(2,8,20,.55); }

.project-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.project-top h3 { font-size: 1.45rem; font-weight: 800; }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cyan);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(34,211,238,.06);
}

.project-card p { color: var(--text-muted); margin-bottom: 14px; }
.project-card ul { list-style: none; margin: 18px 0 6px; }
.project-card ul li {
  color: var(--text-muted);
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
}
.project-card ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* ---------- About ---------- */
.founder-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
}

.founder-avatar {
  width: 200px; height: 200px;
  border-radius: 18px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  font-size: 4rem;
  font-weight: 900;
  color: #04101c;
  box-shadow: var(--glow);
}

.founder-card h3 { font-size: 1.5rem; font-weight: 800; }
.founder-card .role { color: var(--cyan); font-weight: 600; margin-bottom: 16px; }
.founder-card p { color: var(--text-muted); margin-bottom: 12px; }

.cert-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.timeline { max-width: 760px; margin: 0 auto; }
.timeline-item {
  position: relative;
  padding: 0 0 40px 40px;
  border-left: 1px solid var(--border-strong);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px; top: 4px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.timeline-item .year { color: var(--cyan); font-weight: 800; font-size: .9rem; letter-spacing: .1em; }
.timeline-item h4 { font-size: 1.1rem; margin: 6px 0; }
.timeline-item p { color: var(--text-muted); font-size: .95rem; }

/* ---------- Contact form ---------- */
.contact-wrap { max-width: 640px; margin: 0 auto; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
}

.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34,211,238,.15);
}

.form-group textarea { min-height: 150px; resize: vertical; }

.btn-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.form-status { margin-top: 16px; text-align: center; font-weight: 600; display: none; }
.form-status.ok { display: block; color: #34d399; }
.form-status.err { display: block; color: #f87171; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal .updated { color: var(--text-muted); font-size: .9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.35rem; margin: 38px 0 14px; color: var(--text); }
.legal p, .legal li { color: var(--text-muted); margin-bottom: 14px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 160px 0 70px;
  text-align: center;
  background:
    radial-gradient(ellipse 55% 60% at 50% 0%, rgba(34,211,238,.10), transparent 70%),
    var(--bg);
}
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.page-hero p { color: var(--text-muted); max-width: 620px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 70px 40px;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(34,211,238,.12), transparent 75%),
    var(--surface);
}
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: var(--text-muted); margin-bottom: 30px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-grid h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-muted); font-size: .95rem; }
.footer-grid a:hover { color: var(--cyan); }

.footer-about p { color: var(--text-muted); font-size: .95rem; max-width: 340px; margin-top: 14px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: .88rem;
}

/* ---------- Reveal animation ---------- */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .founder-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .main-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(6,10,19,.97);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 140px 0 80px; }
  .footer-grid { grid-template-columns: 1fr; }
  .founder-avatar { width: 160px; height: 160px; }
  .logo-img { height: 32px; }
  .form-card, .founder-card { padding: 28px; }
}
