/* Bad Dog Software — dark, technical, quiet.
   One accent (signal green), hairlines, Geist for text, Geist Mono for labels. */

@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #08090B;
  --surface: #0E1013;
  --fg: #EDEFF2;
  --muted: #8A9099;
  --accent: #86EFAC;
  --accent-glow: rgba(134, 239, 172, .55);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1140px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 16px;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base -- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(134, 239, 172, .28); }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
h1 {
  font-size: clamp(2.9rem, 7.2vw, 6.4rem); letter-spacing: -.045em; line-height: .98;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .62) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: .08em;
}
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.08; max-width: 18ch; margin-bottom: .8rem; }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--muted); max-width: 56ch; }
.prose { max-width: 62ch; color: var(--muted); font-size: 1.05rem; }
.prose p + p { margin-top: 1.1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--accent); color: #000; padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { left: var(--gutter); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.label {
  display: flex; align-items: center; gap: .65rem; margin: 0 0 1.1rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); flex: none; }

/* --------------------------------------------------------------- the dog -- */
.mark .dog { fill: currentColor; }
.mark .bark { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; }

/* ---------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 11, .66); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; padding-top: .8rem; padding-bottom: .8rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand .mark { height: 26px; width: auto; }
.brand-name { font-weight: 600; font-size: .98rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-name span { font-weight: 400; color: var(--muted); }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .92rem; transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
@media (max-width: 720px) {
  .nav { order: 3; flex-basis: 100%; gap: 1.2rem; margin-left: 0; }
  .header-cta { margin-left: auto; }
}

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; gap: .45rem; padding: .74rem 1.2rem; border-radius: 999px;
  font: inherit; font-size: .95rem; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn-primary { background: #fff; color: #0A0B0D; }
.btn-primary:hover { background: #E4E7EB; }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .06); }
.btn-sm { padding: .56rem .95rem; font-size: .88rem; }
.arrow { display: inline-block; transition: transform .15s; }
.btn:hover .arrow, .card:hover .arrow { transform: translateX(3px); }

/* ------------------------------------------------------------------ hero -- */
.hero, .page-hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% 0%, rgba(134, 239, 172, .16), transparent 70%),
    url("../img/contours.svg") center top / max(100%, 1600px) auto no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
}
.hero .wrap, .page-hero .wrap { z-index: 1; }
.hero { padding: clamp(4.5rem, 11vw, 8rem) 0 clamp(4rem, 9vw, 7rem); }
.hero-copy { text-align: center; max-width: 860px; }
.hero-copy .label { justify-content: center; }
.hero-copy .lede { margin: 1.6rem auto 0; max-width: 54ch; }
.actions { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; margin-top: 2.1rem; }

.page-hero { padding: clamp(4.5rem, 10vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); max-width: 14ch; }
.page-hero .lede { margin-top: 1.4rem; }
.page-hero--tall { padding-bottom: clamp(5rem, 12vw, 9rem); }
.page-hero--tall .btn { margin-top: .6rem; }

/* -------------------------------------------------------------- sections -- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--rule { border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem 5rem; align-items: start; }
.split .btn { margin-top: .5rem; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; gap: .55rem; padding: 1.6rem;
  border-radius: var(--radius); border: 1px solid var(--line); color: inherit; text-decoration: none; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  transition: border-color .2s, transform .2s, background .2s;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); }
a.card:hover { border-color: rgba(255, 255, 255, .22); transform: translateY(-2px); background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); }
.card h3 { margin-top: .2rem; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card .more { margin-top: auto; padding-top: 1rem; font-size: .92rem; font-weight: 500; display: inline-flex; align-items: center; gap: .4rem; }
.icon { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .4rem; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; gap: .15rem 1rem; padding: 1.35rem 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--mono); font-size: .78rem; color: var(--accent); padding-top: .35rem; }
.steps b { font-weight: 600; font-size: 1.08rem; letter-spacing: -.01em; }
.steps span { color: var(--muted); font-size: .98rem; }

.caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 0 2.5rem; }
.caps li { display: flex; gap: 1rem; align-items: baseline; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.caps .idx { font-family: var(--mono); font-size: .74rem; color: var(--accent); flex: none; }

.news { list-style: none; margin: 0; padding: 0; }
.news li { display: grid; gap: .5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.news li:first-child { border-top: 0; padding-top: 0; }
.news time { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.news p { color: var(--muted); font-size: .98rem; margin: 0; }


/* ------------------------------------------------------------------- cta -- */
.cta { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding: clamp(5rem, 11vw, 8.5rem) 0; text-align: center; }
.cta-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(45% 55% at 50% 100%, rgba(134, 239, 172, .16), transparent 70%),
    url("../img/contours.svg") center bottom / max(100%, 1600px) auto no-repeat;
  -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 35%, transparent 100%);
  mask-image: linear-gradient(0deg, #000 0%, #000 35%, transparent 100%);
}
.cta-inner { position: relative; }
.cta h2 { margin: 0 auto .9rem; max-width: 18ch; font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -.04em; }
.cta p { color: var(--muted); margin: 0 0 2rem; }

/* --------------------------------------------------------------- contact -- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .8rem .95rem; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--fg);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(134, 239, 172, .18); }
.field textarea { resize: vertical; min-height: 9rem; }
.form-error { margin: 0; padding: .75rem 1rem; border-radius: 10px; border: 1px solid rgba(255, 120, 120, .4); background: rgba(255, 120, 120, .08); color: #FFB4B4; font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.card p.label { font-size: .74rem; margin: 1.2rem 0 .4rem; }
.card p.label:first-child { margin-top: 0; }
.contact-aside a { text-decoration: none; color: var(--fg); }
.contact-aside a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- footer -- */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem 3rem; }
.footer-brand .mark { height: 30px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); max-width: 38ch; font-size: .95rem; }
.footer-head { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .4rem 0; }
.site-footer li a { color: var(--fg); text-decoration: none; font-size: .95rem; }
.site-footer li a:hover { color: var(--accent); }
.footer-legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem;
  margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- motion -- */
/* Content is visible by default; the fade-up only runs where motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .reveal.d1 { animation-delay: .08s; }
  .reveal.d2 { animation-delay: .16s; }
  .reveal.d3 { animation-delay: .24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
