/* ===== Astro Solutions — astrosolutions.live ===== */
:root {
  --navy: #162233;
  --navy-2: #0d2b5e;
  --navy-deep: #0f1722;
  --slate: #344255;
  --slate-2: #496070;
  --ink: #18212f;
  --muted: #5a6878;
  --panel: #fbfcfd;
  --border: #c9d2dd;
  --bg: #ffffff;
  --accent: #f7931a;          /* bitcoin orange, used sparingly */
  --max: 1140px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 34, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 34, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-2); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  padding: 11px 20px; border-radius: 9px; border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #1b1300; border-color: var(--accent); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(247, 147, 26, .35); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: block; }
.brand-text {
  font-weight: 700; letter-spacing: .14em; font-size: 15px; color: var(--navy);
}
.brand-text strong { font-weight: 800; }
.footer-brand .brand-text { color: #fff; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  text-decoration: none; color: var(--slate); font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 7px;
}
.nav-menu a:hover { color: var(--navy); background: var(--panel); }
.nav-cta, .nav-cta:hover { color: #1b1300; background: var(--accent); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; }

/* ===== Hero ===== */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,19,28,.86) 0%, rgba(22,34,51,.78) 55%, rgba(15,23,34,.92) 100%),
    url("assets/hashboard-bench.jpg") center center / cover no-repeat;
}
.hero-inner { position: relative; padding: 86px 22px 72px; max-width: 860px; }
.kicker {
  text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 700;
  color: #cdd9ec; margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 60px); line-height: 1.04; margin: 0 0 18px;
  font-weight: 800; letter-spacing: -0.01em;
}
.hero-sub { font-size: clamp(17px, 2.4vw, 21px); color: #dde6f1; max-width: 640px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 14px 40px; list-style: none; margin: 0; padding: 26px 0 0;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-stats li { display: flex; flex-direction: column; }
.stat-num { font-size: 22px; font-weight: 800; color: #fff; }
.stat-label { font-size: 13.5px; color: #b9c6d8; }

/* ===== Trust bar ===== */
.trustbar { background: var(--navy); color: #cdd9ec; }
.trustbar-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px;
  padding: 16px 22px; font-size: 14px; font-weight: 600; letter-spacing: .01em;
}
.trustbar-inner span { position: relative; }
.trustbar-inner span:not(:last-child)::after {
  content: "•"; position: absolute; right: -19px; color: rgba(255,255,255,.3);
}

/* ===== Sections ===== */
.section { padding: 76px 0; }
.section-alt { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 700;
  color: var(--slate-2); margin: 0 0 10px;
}
.section-title {
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; margin: 0 0 16px;
  font-weight: 800; color: var(--navy); letter-spacing: -0.01em; max-width: 16ch;
}
.section-lead { font-size: 18px; color: var(--muted); max-width: 62ch; margin: 0 0 38px; }

/* ===== Service cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 48px; height: 48px; display: grid; place-items: center; font-size: 24px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; color: var(--navy); font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ===== Why grid ===== */
.why-grid, .about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.checklist { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 16px; }
.checklist li { position: relative; padding-left: 34px; color: var(--muted); font-size: 16px; }
.checklist li strong { color: var(--ink); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px;
  display: grid; place-items: center; background: var(--navy); color: #fff;
  border-radius: 50%; font-size: 12px; font-weight: 800;
}
.why-figure, .about-figure { margin: 0; }
.why-figure img, .about-figure img {
  width: 100%; height: 100%; max-height: 440px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.why-figure figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ===== Process steps ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: relative;
}
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 14px;
}
.steps h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* ===== About ===== */
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; }
.badges li {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 15px; font-size: 13.5px; font-weight: 600; color: var(--slate);
}
.about-copy p { color: var(--muted); font-size: 16.5px; }
.about-copy--full { max-width: 760px; }

/* ===== Contact ===== */
.section-contact { background: var(--navy-deep); color: #e7eef7; }
.section-contact .eyebrow { color: #9fb4d8; }
.section-contact .section-title { color: #fff; }
.section-contact .section-lead { color: #c4d0e0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: #8fa3c4; font-weight: 700; }
.contact-list a { color: #fff; text-decoration: none; font-size: 17px; font-weight: 600; }
.contact-list a:hover { color: var(--accent); }
.commercial-note { font-size: 14px; color: #93a3bd; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; }

.contact-form {
  background: #fff; color: var(--ink); border-radius: 16px; padding: 28px;
  box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--slate); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  border: 1.5px solid var(--border); border-radius: 9px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(13,43,94,.12);
}
.field textarea { resize: vertical; }
.form-status { margin: 14px 0 0; font-size: 14.5px; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }
.form-fallback { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.hidden { display: none; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #c4d0e0; padding: 44px 0 26px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand p { margin: 8px 0 0; font-size: 14px; color: #9fb0c6; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.footer-contact a, .footer-contact span { color: #c4d0e0; text-decoration: none; font-size: 15px; }
.footer-contact a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; font-size: 13px; color: #8294ad; }

/* ===== Live board testing ===== */
.test-lead { max-width: 660px; color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0 0 30px; }
.test-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.test-fig { margin: 0; }
.test-fig img {
  width: 100%; height: 100%; max-height: 460px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.test-fig figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-figure { order: 2; }
  .test-figs { gap: 18px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 4px; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 16px;
    box-shadow: var(--shadow); display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px; }
  .nav-cta { text-align: center; margin-top: 4px; }
  .section { padding: 56px 0; }
  .hero-inner { padding: 64px 22px 54px; }
}
@media (max-width: 540px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-contact { text-align: left; }
}
