/* Gatebridge Labs — site styles. Brand: ink #121722, Girder Blue #2B59D9 (#8AA8FF on dark), Manrope. */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F5F6F8;
  --text: #121722;
  --muted: #4B5563;
  --line: #E5E7EB;
  --accent: #2B59D9;
  --accent-ink: #FFFFFF;
  --mk-solid: #2B59D9;
  --mk-cables: #121722;
  --card: #FFFFFF;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121722;
    --bg-alt: #171E2C;
    --text: #F3F4F6;
    --muted: #A3ABBC;
    --line: #273044;
    --accent: #8AA8FF;
    --accent-ink: #121722;
    --mk-solid: #8AA8FF;
    --mk-cables: #FFFFFF;
    --card: #1B2333;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Logo parts: colors follow the light/dark scheme. Stroke widths live on each SVG. */
.mk-cables { fill: none; stroke: var(--mk-cables); }
.mk-solid { fill: var(--mk-solid); }

/* Header and lockup: the deck's bottom edge sits on the text baseline (brand rule). */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.lockup { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--text); }
.mark-crop { overflow: visible; flex: none; }
.wordmark { font-weight: 700; letter-spacing: 0.1em; font-size: 15px; line-height: 1; white-space: nowrap; }
.wordmark .labs { font-weight: 500; color: var(--accent); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); }
@media (max-width: 640px) { .nav { display: none; } }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { margin: 0 0 18px; font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; }
.lead { margin: 0 0 28px; font-size: 20px; color: var(--muted); max-width: 34em; }
.hero-art { display: flex; justify-content: center; }
.mark-hero { width: 100%; max-width: 300px; height: auto; }
@media (max-width: 760px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; justify-content: flex-start; }
  .mark-hero { max-width: 120px; }
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-block; padding: 12px 20px; border-radius: 10px;
  border: 1.5px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px;
}
.button:hover { border-color: var(--accent); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button.primary:hover { filter: brightness(1.08); }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
@media (max-width: 600px) { .section { padding: 52px 0; } }
h2 { margin: 0 0 20px; font-size: clamp(28px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; }
h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.3; }
.section-lead { margin: -6px 0 28px; color: var(--muted); max-width: 40em; }

/* App card */
.app-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 24px;
  padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--card);
}
.app-card + .app-card { margin-top: 16px; }
.app-icon { border-radius: 22px; display: block; }
.app-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.app-title h3 { margin: 0; font-size: 24px; }
.pill { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }
.app-sub { margin: 4px 0 14px; color: var(--muted); font-weight: 500; }
.app-body p { margin: 0 0 12px; max-width: 42em; }
.app-links { display: flex; gap: 20px; margin-top: 4px; font-weight: 600; }
@media (max-width: 600px) {
  .app-card { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
  .app-icon { width: 72px; height: 72px; border-radius: 16px; }
}

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.card p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* About and contact */
.about-grid { display: grid; grid-template-columns: 1.5fr 0.5fr; gap: 48px; align-items: center; }
.about-grid p { max-width: 40em; }
.g-reveal { margin: 0; text-align: center; }
.g-reveal svg { width: 100%; max-width: 200px; height: auto; }
.g-reveal figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.g-faint { fill: var(--line); }
.g-faint-line { fill: none; stroke: var(--line); }
.g-on { fill: var(--accent); }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .g-reveal { text-align: left; }
  .g-reveal svg { max-width: 140px; }
}
.aside { color: var(--muted); font-style: italic; }
.contact p { max-width: 40em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 15px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-row p { margin: 0; }
.footer-row a { color: var(--muted); }

/* Simple pages (privacy, 404) */
.page { padding: 56px 0 72px; }
.page .wrap > * { max-width: 42em; }
.page h1 { font-size: clamp(32px, 5vw, 44px); }
.updated { color: var(--muted); }
