/* Baisden Holdings Inc. — "moonlit night" palette, taken from Steve's
   reference photo: near-black sky, smoky charcoal clouds, warm moonlight
   gold, cream moon, amber city lights. */
:root {
  --night: #0b0b0c;
  --night-2: #111113;
  --cloud: #1a1a1c;
  --cloud-2: #2a2826;
  --line: rgba(243, 235, 216, 0.10);
  --line-2: rgba(217, 192, 138, 0.28);
  --moon: #f3ebd8;
  --text: #e9e4d8;
  --muted: #a59f92;
  --gold: #d9c08a;
  --gold-2: #b89a5e;
  --amber: #e8a848;
  --glass: rgba(26, 26, 28, 0.55);
  --radius: 20px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
html, body { margin: 0; }
body {
  background: var(--night);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--moon); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* The sky: moon glow top-right, faint amber city glow at the bottom. */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(600px 600px at 82% 6%, rgba(243, 235, 216, 0.16), transparent 60%),
    radial-gradient(900px 700px at 78% 0%, rgba(217, 192, 138, 0.12), transparent 70%),
    radial-gradient(1200px 500px at 50% 110%, rgba(232, 168, 72, 0.08), transparent 70%),
    linear-gradient(180deg, #0b0b0c 0%, #0f0f10 55%, #0b0b0c 100%);
}
.sky::after { /* drifting smoke */
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(500px 220px at 20% 30%, rgba(165, 159, 146, 0.06), transparent 70%),
    radial-gradient(700px 260px at 70% 55%, rgba(165, 159, 146, 0.05), transparent 70%),
    radial-gradient(400px 200px at 40% 80%, rgba(165, 159, 146, 0.04), transparent 70%);
  animation: drift 60s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(-3%, 0, 0); } to { transform: translate3d(3%, -2%, 0); } }
@media (prefers-reduced-motion: reduce) { .sky::after { animation: none; } html { scroll-behavior: auto; } }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 110px 0; position: relative; }
@media (max-width: 700px) { section { padding: 76px 0; } }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 12, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--moon); font-weight: 600; letter-spacing: 0.02em; }
.brand-mark { width: 34px; height: 34px; }
.brand small { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.18em; font-weight: 500; text-transform: uppercase; }
nav.links { display: flex; gap: 28px; font-size: 15px; }
nav.links a { color: var(--muted); }
nav.links a:hover { color: var(--moon); }
@media (max-width: 860px) { nav.links { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn-gold { background: linear-gradient(135deg, var(--moon), var(--gold) 55%, var(--gold-2)); color: #1a160e; box-shadow: 0 8px 30px rgba(217, 192, 138, 0.25); }
.btn-gold:hover { color: #1a160e; transform: translateY(-1px); box-shadow: 0 12px 40px rgba(217, 192, 138, 0.35); }
.btn-ghost { border-color: var(--line-2); color: var(--moon); background: rgba(243, 235, 216, 0.03); }
.btn-ghost:hover { background: rgba(243, 235, 216, 0.07); color: var(--moon); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: .7; }
h1, h2, h3 { color: var(--moon); line-height: 1.12; margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(30px, 4.2vw, 48px); margin-top: 14px; }
h3 { font-size: 21px; letter-spacing: -0.01em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 640px; margin: 22px 0 0; }
.glow-text { background: linear-gradient(180deg, var(--moon), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head p { color: var(--muted); margin: 16px 0 0; font-size: 18px; }

/* Hero */
.hero { padding: 120px 0 130px; min-height: calc(100vh - 70px); display: flex; align-items: center; overflow: hidden; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.moon {
  position: absolute; right: max(4vw, 24px); top: 70px; width: clamp(160px, 22vw, 300px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fbf6ea 0%, #ece2c9 38%, #cdbf9c 70%, #9d906f 100%);
  box-shadow: 0 0 80px 20px rgba(243, 235, 216, 0.18), 0 0 220px 60px rgba(217, 192, 138, 0.12);
  opacity: .92; z-index: -1;
}
.moon::after { /* craters */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(14% 12% at 62% 40%, rgba(120, 108, 82, 0.35), transparent 70%),
    radial-gradient(9% 8% at 35% 62%, rgba(120, 108, 82, 0.30), transparent 70%),
    radial-gradient(7% 6% at 70% 70%, rgba(120, 108, 82, 0.25), transparent 70%),
    radial-gradient(20% 16% at 45% 30%, rgba(120, 108, 82, 0.18), transparent 70%);
}
.skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; opacity: .55;
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent); mask-image: linear-gradient(to top, #000 30%, transparent); }
@media (max-width: 700px) { .moon { top: 18px; right: 14px; width: 110px; opacity: .45; } .hero { padding: 150px 0 110px; } }

/* Glass cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
.card .num { color: var(--gold); font-size: 13px; letter-spacing: .18em; font-weight: 600; }
.icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(243,235,216,.12), rgba(217,192,138,.06)); border: 1px solid var(--line-2); color: var(--gold); }
.icon svg { width: 22px; height: 22px; }

/* Products */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; overflow: hidden; padding: 0; margin-bottom: 26px; }
.product:nth-child(even) { grid-template-columns: 1fr 1.05fr; }
.product:nth-child(even) .shot { order: 2; }
.product .body { padding: 44px; }
.product .shot { background: #000; position: relative; min-height: 320px; }
.product .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: .95; }
.product .shot::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); }
.product-name { display: flex; align-items: center; gap: 14px; }
.product-name img { width: 48px; height: 48px; border-radius: 12px; background: #fff; }
.tag { display: inline-block; margin-top: 6px; color: var(--gold); font-size: 14px; }
ul.ticks { list-style: none; padding: 0; margin: 18px 0 26px; }
ul.ticks li { padding-left: 28px; position: relative; margin: 8px 0; color: var(--text); font-size: 16px; }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.note { color: var(--muted); font-size: 15px; text-align: center; margin-top: 30px; }
@media (max-width: 860px) {
  .product, .product:nth-child(even) { grid-template-columns: 1fr; }
  .product:nth-child(even) .shot { order: 0; }
  .product .body { padding: 30px 24px; }
  .product .shot { min-height: 220px; }
}

/* Steps */
.steps { counter-reset: s; }
.steps .card::before { counter-increment: s; content: "0" counter(s); display: block; color: var(--gold); font-size: 13px; letter-spacing: .2em; font-weight: 600; margin-bottom: 12px; }

/* Case study */
.case { display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; padding: 0; }
.case .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case .body { padding: 44px; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } .case .body { padding: 30px 24px; } }

/* Founder */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.founder img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 60px rgba(217,192,138,.12); filter: saturate(.9); }
.founder p { color: var(--muted); font-size: 18px; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } .founder img { max-width: 260px; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.field { margin-bottom: 18px; }
input, select, textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: rgba(11,11,12,.6);
  color: var(--moon); font: inherit; font-size: 16px; transition: border-color .2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 140px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 14px; font-size: 15px; }
.form-status.ok { color: var(--gold); }
.form-status.err { color: #e8a0a0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 46px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--moon); }

/* Legal pages */
.legal { max-width: 780px; padding: 80px 24px 100px; margin: 0 auto; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); }
.legal h2 { font-size: 24px; margin-top: 40px; }
.legal p, .legal li { color: var(--text); }
.legal .muted { color: var(--muted); }

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