/* Silly Singularity LLC — sillysingularity.com
   Dark theme to match the logo artwork (designed for a dark background). */
:root {
  --bg: #05070f;
  --bg-alt: #0a0f1e;
  --surface: #0f1629;
  --border: #1d2742;
  --text: #e8ecf5;
  --muted: #9aa6c0;
  --blue: #1aa7ff;
  --blue-2: #2f6bff;
  --cyan: #3fd0ff;
  --green: #22d68a;
  --gold: #f5b81c;
  --error: #ff6b6b;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Blog banner */
.blog-banner {
  background: linear-gradient(90deg, #1a2fa8, #0b78d6);
  color: #fff;
  text-align: center;
  font-size: 0.92rem;
  padding: 8px 16px;
}
.blog-banner a { color: #fff; font-weight: 700; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(5, 7, 15, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.brand img { width: 150px; }
nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
nav a:hover { color: var(--cyan); }

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  font: 600 1rem var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26, 167, 255, .35); }
.btn-small { padding: 7px 16px; font-size: 0.92rem; }
.btn-ghost { background: transparent; border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: none; }

/* Hero */
.hero {
  padding: 72px 0 64px;
  background: radial-gradient(ellipse at 75% 30%, rgba(26, 167, 255, .16), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; margin: 0 0 12px; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.1; margin: 0 0 20px; letter-spacing: -0.02em; }
.grad { background: linear-gradient(90deg, var(--cyan), var(--blue-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 28px; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; margin: 0 0 8px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card p { color: var(--muted); margin: 0; }
.tag { color: var(--gold); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.card-list { color: var(--muted); margin: 12px 0 0; padding-left: 18px; font-size: .95rem; }
.card-list li { margin-bottom: 8px; }
.card-list li:last-child { margin-bottom: 0; }
.card-list strong { color: var(--text); }
.card .text-link { display: table; margin-top: 12px; font-weight: 600; text-decoration: none; }

.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-blue  { color: var(--blue);  background: rgba(26, 167, 255, .12); }
.icon-green { color: var(--green); background: rgba(34, 214, 138, .12); }
.icon-gold  { color: var(--gold);  background: rgba(245, 184, 28, .12); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-intro p { color: var(--muted); }
.muted { font-size: .95rem; }
.contact-form-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  font: 1rem var(--font);
}
textarea { resize: vertical; min-height: 140px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 167, 255, .2); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--error); }
.fine { color: var(--muted); font-size: .85rem; margin: 14px 0 0; }
.form-status { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: rgba(34, 214, 138, .1); border: 1px solid rgba(34, 214, 138, .35); font-size: .93rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--cyan); }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.notfound img { width: min(420px, 80vw); margin: 0 auto 28px; }
.notfound p { color: var(--muted); }

/* Responsive */
@media (max-width: 860px) {
  .hero { padding: 48px 0; }
  .hero-inner, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { order: -1; max-width: 520px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .header-inner { flex-direction: column; gap: 6px; }
  nav { gap: 16px; justify-content: center; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .contact-form-box { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
.card .text-link + .text-link { margin-top: 6px; }
