/* ---- cygnuscrane.com — dark tech / Stream Deck-vibe ---- */

:root {
  --bg: #0a0a0d;
  --bg-elev: #14141a;
  --bg-card: #1a1a22;
  --border: #2a2a35;
  --text: #e8e8ea;
  --text-muted: #8b8b94;
  --text-dim: #5a5a63;
  --accent-gold: #d4af37;
  --accent-cyan: #4a9eff;
  --accent-warn: #ffb84d;
  --accent-danger: #ff6b6b;
  --mono: "JetBrains Mono", "Fira Code", "Cascadia Mono", Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ---- Top nav (minimal) ---- */
nav.top {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
nav.top .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav.top a.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  text-decoration: none;
}
nav.top a.brand:hover { color: #f0c958; }
nav.top .links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  transition: color 0.15s;
}
nav.top .links a:hover { color: var(--text); }

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 6rem 0 4rem;
}
.hero .eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  line-height: 1.1;
}
.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.hero.product h1 {
  color: var(--text);
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero.product .eyebrow { color: var(--accent-gold); }

/* Mail Bender product logo in hero */
.hero-logo {
  display: block;
  width: 240px;
  height: 240px;
  margin: 0 auto 1.5rem;
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(74, 158, 255, 0.25), 0 20px 50px rgba(0, 0, 0, 0.5);
}
.brand-logo {
  height: 32px;
  width: 32px;
  border-radius: 7px;
  vertical-align: middle;
  margin-right: 0.5rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 700px) {
  .hero-logo { width: 180px; height: 180px; }
}

/* Cygnus Crane company logo in hero */
.hero-logo-company {
  display: block;
  width: 300px;
  height: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 50px rgba(212, 175, 55, 0.2));
}
@media (max-width: 700px) {
  .hero-logo-company { width: 220px; }
}

/* ---- Buttons / CTAs ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.btn.primary {
  background: var(--accent-cyan);
  color: #0a0a0d;
}
.btn.primary:hover {
  background: #6db0ff;
  transform: translateY(-1px);
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn.secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.btn.gold {
  background: var(--accent-gold);
  color: #0a0a0d;
}
.btn.gold:hover {
  background: #f0c958;
}

/* ---- Sections ---- */
section {
  margin: 5rem 0;
}
h2 {
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
h2 .accent { color: var(--accent-cyan); }
h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}
p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 70ch;
}
p strong { color: var(--text); font-weight: 600; }
a {
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
a:hover { border-bottom-color: var(--accent-cyan); }

ul {
  list-style: none;
  margin-bottom: 1.5rem;
}
ul li {
  color: var(--text-muted);
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}
ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-family: var(--mono);
}

/* ---- Grid of feature cards ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}
.card .icon {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ---- Specs table (for Mail Bender page) ---- */
.specs {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}
.specs .row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.specs .row:last-child { border-bottom: none; }
.specs .key {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.specs .val { color: var(--text); }

/* ---- Code-style accent box ---- */
.snippet {
  background: #050507;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text);
  margin: 1.5rem 0;
  overflow-x: auto;
}
.snippet .comment { color: var(--text-dim); }
.snippet .key { color: var(--accent-cyan); }
.snippet .str { color: var(--accent-gold); }

/* ---- Badge (verified publisher etc) ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(74, 158, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.badge.gold {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* ---- Hero image (deck render) ---- */
.hero-image {
  max-width: 900px;
  margin: 3rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.hero-image img {
  width: 100%;
  display: block;
}

/* ---- Variant gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.gallery .item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  text-align: center;
}
.gallery .item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.gallery .item .label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Two-column ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}
@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero h1 { font-size: 2.5rem; }
  main { padding: 2rem 1rem 4rem; }
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  margin-top: auto;
  padding: 2rem;
}
footer .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
footer .copy {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}
footer .footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: 1.25rem;
  text-decoration: none;
}
footer .footer-links a:hover { color: var(--text); }

/* ---- Legal-page typography overrides ---- */
.legal h1 {
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.legal .updated {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 3rem;
}
.legal h2 {
  font-size: 1.4rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.legal p { color: var(--text); max-width: 75ch; }
.legal ul li { color: var(--text); }
