/* ==========================================================================
   Springbench, LLC / springbench.com
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  --bg:            #ffffff;
  --surface:       #f5f8f6;
  --surface-2:     #eef3f0;
  --ink:           #0e1512;
  --ink-2:         #3d4a44;
  --muted:         #6b7a72;
  --line:          rgba(14, 21, 18, 0.10);
  --line-strong:   rgba(14, 21, 18, 0.16);
  --green:         #4caf50;
  --green-deep:    #2e7d32;
  --green-tint:    rgba(76, 175, 80, 0.10);
  --shadow-sm:     0 1px 2px rgba(14, 21, 18, 0.05);
  --shadow-md:     0 12px 32px -12px rgba(14, 21, 18, 0.16);
  --shadow-lg:     0 32px 64px -32px rgba(14, 21, 18, 0.28);

  --wrap:          1120px;
  --gutter:        clamp(1.25rem, 5vw, 2.5rem);
  --section:       clamp(4.5rem, 9vw, 8rem);
  --radius:        18px;
  --radius-lg:     28px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0a0f0c;
    --surface:     #111815;
    --surface-2:   #18211d;
    --ink:         #f1f5f3;
    --ink-2:       #c2cec8;
    --muted:       #8b9a93;
    --line:        rgba(255, 255, 255, 0.10);
    --line-strong: rgba(255, 255, 255, 0.18);
    --green:       #5ec462;
    --green-deep:  #86d689;
    --green-tint:  rgba(94, 196, 98, 0.12);
    --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md:   0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg:   0 32px 64px -32px rgba(0, 0, 0, 0.8);

    color-scheme: dark;
  }
}

/* --- Base ----------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "calt";
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

::selection { background: var(--green); color: #fff; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0 0 10px 0;
  font-size: 0.875rem;
  font-weight: 500;
}
.skip-link:focus { left: 0; }

/* --- Layout primitives ---------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 34rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.125rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
}

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

.section-lede {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--muted);
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header[data-scrolled="true"] { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand svg, .brand img { height: 26px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav a:hover { color: var(--ink); }

/* Below 600px the header keeps only the brand and a single Contact link,
   so nothing is forced to overflow the viewport. */
.nav .nav__minor,
.nav .nav__contact { display: none; }

@media (min-width: 600px) {
  .nav .nav__minor { display: inline-flex; }
}

@media (min-width: 780px) {
  .nav .nav__contact { display: inline-flex; }
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.375rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease,
              border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(76, 175, 80, 0.9);
}

.btn--primary:hover { background: var(--green-deep); }

@media (prefers-color-scheme: dark) {
  .btn--primary { color: #08130a; }
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--ink-2);
}

.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3.5rem, 8vw, 6.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -55% -8% auto auto;
  width: min(820px, 95vw);
  aspect-ratio: 1;
  background: radial-gradient(circle at center,
              var(--green-tint) 0%, transparent 68%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 44rem;
}

.hero h1 {
  font-size: clamp(2.375rem, 6vw, 4rem);
  letter-spacing: -0.038em;
}

.hero h1 .accent { color: var(--green-deep); }

.hero__lede {
  margin-top: 1.5rem;
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1.8vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-2);
}

/* Auto-flow columns at 1fr on a fit-content track sizes both buttons to the
   wider of the two, so they come out equal without a hard-coded width. */
.hero__actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  justify-content: start;
  width: fit-content;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

@media (max-width: 480px) {
  .hero__actions {
    grid-auto-flow: row;
    width: 100%;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem 0.375rem 0.625rem;
  margin-bottom: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
}

.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-tint);
}

/* --- Apps ----------------------------------------------------------------- */

.cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.125rem);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  box-shadow: 0 8px 20px -10px rgba(76, 175, 80, 0.85);
}

.card__title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.card h3 { font-size: 1.3125rem; }

.card p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9875rem;
}

.tag {
  padding: 0.1875rem 0.625rem;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green-deep);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- Principles ----------------------------------------------------------- */

.principles {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.principle h3 {
  font-size: 1.125rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--green);
}

.principle p {
  margin-top: 0.625rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* --- About ---------------------------------------------------------------- */

.about {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .about { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
}

.portrait {
  max-width: 200px;
}

.portrait img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.about__body blockquote {
  margin: 0;
  font-size: clamp(1.1875rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: pretty;
}

.about__body p { margin-top: 1.25rem; color: var(--muted); }

.signature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.signature strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}

.signature span {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}

/* --- Contact -------------------------------------------------------------- */

.contact {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.contact-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.contact-list > div {
  display: grid;
  gap: 0.25rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}

.contact-list > div:last-child { border-bottom: 1px solid var(--line); }

.contact-list dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list dd {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.contact-list a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-list a:hover {
  color: var(--green-deep);
  border-bottom-color: var(--green);
}

.contact-list address {
  font-style: normal;
  white-space: pre-line;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  padding-block: 2.75rem 3.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
}

.site-footer__brand svg { height: 18px; width: auto; color: var(--green); }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer a { text-decoration: none; transition: color 0.15s ease; }
.site-footer a:hover { color: var(--ink); }

/* --- Motion --------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
