/* ===========================================================
   Stone Wall Trees AI — site styles
   Branch of Stone Wall Trees. Parent palette + one Signal accent.
   Palette: Ink #15171B · Slate #1C1F25 · Sage #8A9A64
            Signal #5B9DD9 (AI only) · Bone #EEF0EA · Stone #5A605D
   Type: Hanken Grotesk (display/body) · IBM Plex Mono (labels)
   =========================================================== */

:root {
  --ink: #15171b;
  --slate: #1c1f25;
  --sage: #8a9a64;
  --sage-text: #15171b;
  --signal: #5b9dd9;        /* AI signal on dark */
  --signal-ink: #3d7ab0;    /* AI signal on light, for contrast */
  --bone: #eef0ea;
  --stone: #5a605d;
  --line-dark: #2a2e35;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  background: var(--ink);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

::selection { background: var(--signal); color: #0e2236; }

h1, h2, h3, p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 23, 27, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #262a31;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  padding-bottom: 15px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .wordmark {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.brand .ai { color: var(--signal); }
.brand .dot { color: var(--sage); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a.link {
  font-weight: 500;
  font-size: 14px;
  color: #a0a6a4;
  transition: color 0.15s ease;
}
.nav a.link:hover { color: var(--bone); }

.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: 8px;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--sage); color: var(--sage-text); }
.btn-primary:hover { opacity: 0.9; }
.nav .btn-primary { font-size: 14px; padding: 9px 18px; border-radius: 6px; }
.btn-ghost {
  color: var(--bone);
  border: 1px solid #2c313a;
}
.btn-ghost:hover { border-color: var(--signal); }

/* ===== Hero ===== */
.hero { position: relative; background: var(--ink); overflow: hidden; }
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#20242b 1px, transparent 1px),
    linear-gradient(90deg, #20242b 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.grid-bg.hero-grid {
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000, transparent);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000, transparent);
}
.grid-bg.approach-grid {
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 30%, #000, transparent);
  mask-image: radial-gradient(ellipse 70% 80% at 20% 30%, #000, transparent);
}
.hero-inner {
  position: relative;
  padding: 104px 40px 96px;
  max-width: var(--max);
  margin: 0 auto;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #2c313a;
  border-radius: 100px;
  padding: 7px 15px;
  margin-bottom: 34px;
}
.pill .ping {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(91, 157, 217, 0.2);
}
.pill .label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #bfc4c2;
}
h1.headline {
  font-weight: 800;
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--bone);
  max-width: 840px;
  text-wrap: balance;
}
h1.headline .signal-text { color: var(--signal); }
h1.headline .sage-dot { color: var(--sage); }
.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: #a7adab;
  margin-top: 26px;
  max-width: 600px;
  text-wrap: pretty;
}
.hero-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-cta .btn { font-size: 16px; padding: 15px 28px; }

/* ===== Band ===== */
.band { background: var(--bone); }
.band-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 34px 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.band-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); flex: none; }
.band p { font-size: 17px; color: #3a3f3c; line-height: 1.5; max-width: 880px; }
.band p strong { color: var(--ink); font-weight: 700; }

/* ===== Sections ===== */
.section.light { background: #f7f8f5; }
.section.dark { background: var(--ink); position: relative; overflow: hidden; }
.section.contact { background: #101216; }
.section-inner {
  position: relative;
  padding: 96px 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.section h2.title {
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.025em;
  margin-top: 14px;
  line-height: 1.08;
  max-width: 660px;
}
.section.light .eyebrow { color: var(--signal-ink); }
.section.light h2.title { color: var(--ink); }
.section.dark .eyebrow { color: var(--signal); }
.section.dark h2.title { color: var(--bone); }
.lede { font-size: 17px; line-height: 1.6; margin-top: 18px; max-width: 580px; }
.section.light .lede { color: var(--stone); }
.section.dark .lede { color: #a7adab; }

/* ===== Use case cards ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.card {
  background: #fff;
  border: 1px solid #e6e8e3;
  border-radius: 12px;
  padding: 34px;
}
.case-eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal-ink);
  margin-bottom: 16px;
}
.card.case h3 {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.card.case > p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone);
  margin: 14px 0 20px;
}
.case-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.case-list li { display: flex; gap: 11px; align-items: flex-start; }
.case-list .chev { color: var(--signal); font-weight: 700; padding-top: 1px; }
.case-list span:last-child { font-size: 14.5px; line-height: 1.5; color: #3a3f3c; }
.case-list b { color: var(--ink); font-weight: 600; }
.result {
  border-top: 1px solid #eef0ea;
  padding-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.result-k {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7d8b58;
  padding-top: 2px;
  flex: none;
}
.result span:last-child { font-size: 14.5px; line-height: 1.55; color: #3a3f3c; }
.cases-foot { font-size: 15px; color: var(--stone); margin-top: 34px; max-width: 620px; line-height: 1.6; }
.cases-foot a { color: var(--signal-ink); font-weight: 600; border-bottom: 1px solid rgba(61, 122, 176, 0.35); }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px; }
.tile {
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 28px;
  background: var(--slate);
}
.tile .num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--signal);
  margin-bottom: 14px;
}
.tile h3 { font-weight: 700; font-size: 18px; color: var(--bone); }
.tile p { font-size: 14px; line-height: 1.6; color: #9298a0; margin-top: 10px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact h2.title-lg {
  font-weight: 800;
  font-size: 46px;
  letter-spacing: -0.03em;
  color: var(--bone);
  margin-top: 14px;
  line-height: 1.05;
}
.contact .lede { color: #a7adab; max-width: 440px; }
.contact-card {
  background: #1a1c21;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 34px;
}
.email-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--sage);
  border-radius: 10px;
  padding: 20px 24px;
  transition: opacity 0.15s ease;
  min-width: 0;
}
.email-btn > span:first-child { min-width: 0; }
.email-btn:hover { opacity: 0.92; }
.email-btn .lbl {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-text);
  opacity: 0.7;
}
.email-btn .addr {
  display: block;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--sage-text);
  margin-top: 3px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.email-btn .arrow { font-size: 22px; color: var(--sage-text); flex: none; }
.info-row { display: flex; gap: 12px; margin-top: 14px; }
.info {
  flex: 1;
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 18px 20px;
}
.info .k {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7e8482;
}
.info .v { font-weight: 600; font-size: 15px; color: var(--bone); margin-top: 4px; }
.info .v.avail { display: inline-flex; align-items: center; gap: 7px; }
.info .v.avail .ping { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }

/* ===== Footer ===== */
.site-footer { background: #0d0e11; border-top: 1px solid #20242b; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px;
  color: #7e8482;
}
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 13px; color: #7e8482; transition: color 0.15s ease; }
.footer-nav a:hover { color: var(--bone); }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
  .wrap, .hero-inner, .section-inner, .footer-inner, .band-inner { padding-left: 32px; padding-right: 32px; }
  .contact-grid { gap: 40px; }
  .cases { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .header-inner { padding-left: 20px; padding-right: 20px; }
  .nav { gap: 16px; }
  .nav a.link { display: none; }

  .hero-inner { padding: 64px 20px 56px; }
  h1.headline { font-size: 38px; }
  .hero-sub { font-size: 17px; }

  .band-inner { padding: 28px 20px; flex-direction: column; align-items: flex-start; gap: 20px; }

  .section-inner { padding: 56px 20px; }
  .section h2.title { font-size: 28px; }
  .contact h2.title-lg { font-size: 34px; }
  .contact h2.title-lg br { display: none; }

  .grid-2 { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .steps { grid-template-columns: 1fr; }
  .card { padding: 26px; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-card { padding: 26px; }
  .email-btn { padding: 18px 20px; }
  .email-btn .addr { font-size: 17px; }

  .footer-inner { padding: 32px 20px; gap: 18px; }
}

@media (max-width: 380px) {
  .info-row { flex-direction: column; }
}
