/* Day Labs LLC — matches joshday.net brand system (see docs/design.md in the
   joshday-net repo): dark editorial canvas, one electric-blue accent,
   Space Grotesk display / Inter body / JetBrains Mono micro-labels. */

:root {
  --color-canvas: #05080f;
  --color-panel: #0b111e;
  --color-panel-2: #111a2b;
  --color-ink: #f2f5f9;
  --color-muted: #8a94a6;
  --color-dim: #5c6678;
  --color-accent: #2e7be8;
  --color-accent-bright: #63a4f4;
  --color-accent-deep: #1d4ed8;
  --color-line: rgba(148, 163, 184, 0.14);

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-label: "JetBrains Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-canvas);
}

body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

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

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

.accent-bright {
  color: var(--color-accent-bright);
}

.inline-link {
  color: var(--color-accent-bright);
  border-bottom: 1px solid rgba(99, 164, 244, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.inline-link:hover {
  color: var(--color-ink);
  border-color: var(--color-accent-bright);
}

.micro-label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-dim);
  margin: 0;
}

.hairline {
  border-color: var(--color-line);
}

/* quiet film grain over everything */
body.grain::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 60;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- layout ---------- */

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.nav-mark {
  align-self: center;
}

.nav-word {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.nav-sub {
  display: none;
}

@media (min-width: 640px) {
  .nav-sub {
    display: inline;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  display: none;
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color 0.2s ease;
}

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

@media (min-width: 640px) {
  .nav-link {
    display: inline;
  }
}

.nav-cta {
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.nav-cta:hover {
  background: var(--color-accent-deep);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  max-width: 56rem;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: 3rem;
  margin: 1.5rem 0 0;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-sub {
  margin-top: 1.75rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-muted);
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

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

.btn-secondary {
  border-radius: 999px;
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-bright);
}

/* subtle node-and-line texture — the only echo of the logo's mountain
   motif allowed on-page (see design.md: "never literal") */
.hero-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(
      circle at 82% 18%,
      rgba(46, 123, 232, 0.16),
      transparent 45%
    ),
    radial-gradient(circle at 92% 8%, rgba(99, 164, 244, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 30%, rgba(99, 164, 244, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 42%, rgba(99, 164, 244, 0.3) 0 1.5px, transparent 2.5px),
    linear-gradient(115deg, transparent 60%, rgba(46, 123, 232, 0.06) 100%);
  mask-image: linear-gradient(to left, black, transparent 70%);
}

/* ---------- services ---------- */

.services {
  border-top: 1px solid var(--color-line);
  background: rgba(11, 17, 30, 0.4);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.75rem;
  max-width: 40rem;
  margin: 1rem 0 0;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.service-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--color-panel);
  padding: 1.75rem;
  transition: background-color 0.2s ease;
}

.service-card:hover {
  background: var(--color-panel-2);
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.service-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0;
}

.service-card p[data-copy-pending] {
  color: var(--color-dim);
  font-style: italic;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.about-body {
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.about-lockup {
  display: flex;
  justify-content: center;
  padding: 2rem;
  border-radius: 1rem;
  background: #f7f8fa;
}

.lockup-img {
  max-width: 280px;
  width: 100%;
}

/* ---------- contact ---------- */

.contact {
  border-top: 1px solid var(--color-line);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--color-line);
}

.footer-inner {
  padding: 3rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--color-dim);
}

.footer-copyright {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-dim);
}
