/* ============================================================
   DAYNOUGHT — shared site styles
   Palette: black / white / silver (per brand deck)
   ============================================================ */

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

:root {
  --bg: #0a0a0a;
  --bg-alt: #101010;
  --card: #161616;
  --border: rgba(255, 255, 255, 0.16);
  --border-soft: rgba(255, 255, 255, 0.08);
  --white: #ffffff;
  --silver: #c7ccd1;
  --text: rgba(255, 255, 255, 0.8);
  --muted: rgba(255, 255, 255, 0.48);
  --mono: Menlo, Consolas, 'Courier New', monospace;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-width: 1160px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
section { scroll-margin-top: 96px; }

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

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, padding 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 40px;
  border-bottom: 1px solid var(--border-soft);
}

.nav-logo img { height: 30px; width: auto; }

.nav-right { display: flex; align-items: center; gap: 36px; }

.nav-links { display: flex; gap: 32px; list-style: none; }

.nav-links a {
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 9px 20px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover { background: var(--white); color: var(--bg); }

.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); margin: 5px 0; transition: all 0.3s ease;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 13px 34px;
  background: var(--white);
  color: var(--bg);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--white);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover { background: transparent; color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}

.btn-ghost:hover { background: var(--white); color: var(--bg); border-color: var(--white); }

/* ============================================================
   HERO
   ============================================================ */
#particles-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}

.hero-content { position: relative; z-index: 2; max-width: 840px; }

.hero-wordmark {
  font-size: clamp(26px, 4.2vw, 48px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  margin-bottom: 34px;
  margin-left: 0.45em; /* optically recentre letter-spaced text */
}

.hero h1 {
  font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: clamp(14px, 1.7vw, 18px);
  font-style: italic;
  color: var(--muted);
  margin-bottom: 42px;
}

.hero-runs {
  font-family: var(--mono);
  font-size: clamp(11px, 1.3vw, 13px);
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 52px;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-indicator {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator svg { width: 26px; height: 26px; stroke: var(--muted); stroke-width: 2; fill: none; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(9px); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 104px 0; }
.section + .section { border-top: 1px solid var(--border-soft); }

.section-label {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--white);
  margin-bottom: 28px;
}

.section-label .num { font-family: var(--mono); color: var(--muted); letter-spacing: 0.1em; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border-soft); }
.section-label.center { justify-content: center; }
.section-label.center::after { display: none; }

.section-heading {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 20px;
}

.section-text { font-size: 16px; line-height: 1.7; color: var(--text); max-width: 640px; }

.footnote { font-size: 13.5px; color: var(--muted); margin-top: 36px; line-height: 1.6; }

/* Split layout — heading column + content column */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: start;
}

.split-head { position: sticky; top: 110px; }

/* ============================================================
   STATS (inline row)
   ============================================================ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.stat { border-left: 1px solid var(--border); padding-left: 24px; }

.stat-num {
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.stat-desc { font-size: 14px; color: var(--text); line-height: 1.5; margin-bottom: 10px; }
.stat-src { font-size: 11.5px; color: var(--muted); font-style: italic; }

/* ============================================================
   FLOW (process cards)
   ============================================================ */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 64px;
}

.flow-step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-top: 2px solid var(--silver);
  border-radius: 4px;
  padding: 28px 24px 30px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.flow-step:hover { transform: translateY(-4px); border-color: var(--border); }

/* oversized step number watermark */
.flow-step::after {
  content: attr(data-num);
  position: absolute;
  top: 12px; right: 16px;
  font-family: var(--mono);
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* connector arrows between cards */
.flow-step:not(:last-child)::before {
  content: '→';
  position: absolute;
  top: 50%;
  right: -24px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 17px;
  z-index: 2;
}

.flow-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--silver);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
}

.flow-step h3 { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 8px; position: relative; }
.flow-step p { font-size: 13.5px; color: var(--text); line-height: 1.6; position: relative; }

/* ============================================================
   FIGURES (optional images accompanying text)
   ============================================================ */
.figure {
  margin: 56px 0 0;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  overflow: hidden;
  background: var(--card);
}

.figure img { width: 100%; display: block; }

.figure figcaption {
  padding: 13px 20px;
  font-size: 12.5px;
  font-style: italic;
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
}

.figure.compact { margin-top: 28px; }

/* ============================================================
   PROPERTIES (definition list) + RUNS CARD
   ============================================================ */
.prop {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--border-soft);
}

.prop:last-child { border-bottom: 1px solid var(--border-soft); }
.prop h3 { font-size: 15.5px; font-weight: 700; color: var(--white); }
.prop p { font-size: 14px; color: var(--text); line-height: 1.6; }

.runs-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 32px 30px;
  font-family: var(--mono);
}

.runs-card-title {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--silver);
  margin-bottom: 20px;
}

.runs-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  padding: 11px 0;
  border-bottom: 1px solid var(--border-soft);
}

.runs-row:last-of-type { border-bottom: none; }
.runs-row .run-id { color: var(--white); font-weight: 700; }

.runs-card-footer {
  font-family: var(--sans);
  font-size: 14px;
  font-style: italic;
  color: var(--silver);
  margin-top: 22px;
  line-height: 1.5;
}

/* ============================================================
   PROOF BAND
   ============================================================ */
.proof {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 72px 0;
}

.proof-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.proof-stats { display: flex; gap: 56px; flex-wrap: wrap; }

.proof-stat .n {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.proof-stat .l {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 8px;
}

/* ============================================================
   PAGE HEADER (subpages)
   ============================================================ */
.page-header { padding: 168px 0 72px; border-bottom: 1px solid var(--border-soft); }
.page-header .section-text { max-width: 720px; }

/* ============================================================
   EVIDENCE TABLE
   ============================================================ */
.table-wrap { overflow-x: auto; }

.evidence-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  min-width: 700px;
}

.evidence-table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  text-align: left;
  padding: 14px 18px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.evidence-table td {
  font-size: 13.5px;
  color: var(--text);
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
}

.evidence-table tr:last-child td { border-bottom: none; }
.evidence-table .ok { font-weight: 700; color: var(--white); letter-spacing: 0.04em; font-size: 12.5px; }
.evidence-table .files { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* ============================================================
   QUALITY LIST
   ============================================================ */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 48px;
}

.quality-item { border-top: 1px solid var(--border-soft); padding: 22px 0 26px; }
.quality-item h3 { font-size: 15.5px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.quality-item p { font-size: 13.5px; color: var(--text); line-height: 1.6; }

/* ============================================================
   PILLS (domain breadth)
   ============================================================ */
.pills { display: flex; flex-wrap: wrap; gap: 10px; max-width: 880px; }

.pill {
  border: 1px solid var(--border-soft);
  background: var(--card);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 13px;
  color: var(--silver);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pill:hover { border-color: var(--border); color: var(--white); }

/* ============================================================
   DEMO
   ============================================================ */
.demo-step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 16px 0; }

.demo-step-number {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--white);
}

.demo-step h3 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.demo-step p { font-size: 14px; color: var(--text); line-height: 1.6; }

.eliminates {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  padding: 28px 30px;
}

.eliminates-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--silver);
  margin-bottom: 14px;
}

.eliminates li {
  list-style: none;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
}

.eliminates li:last-child { border-bottom: none; }
.eliminates li strong { color: var(--white); }

/* ============================================================
   BRIEF FORM
   ============================================================ */
.brief-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 32px 30px;
  align-self: center;
}

.brief-intro { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 22px; }

.brief-card form { display: grid; gap: 18px; }

.field label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--silver);
  margin-bottom: 8px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.2s ease;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23c7ccd1' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.field select option { background: var(--card); color: var(--white); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--silver);
}

.field ::placeholder { color: var(--muted); }

.brief-card .btn { justify-self: start; }

.form-status { font-size: 13px; color: var(--silver); min-height: 18px; margin-top: -6px; }

/* ============================================================
   CATEGORY
   ============================================================ */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.category-item { border-top: 1px solid var(--border-soft); padding: 22px 0 26px; }
.category-item h3 { font-size: 15.5px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.category-item p { font-size: 13.5px; color: var(--text); line-height: 1.6; }

.banner {
  margin-top: 48px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 3px;
  padding: 32px 40px;
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.6;
  text-align: center;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: 104px 0; }

.contact-meta { margin-top: 40px; }

.contact-email {
  display: inline-block;
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.contact-email:hover { border-bottom-color: var(--white); }
.contact-founder { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.contact-bio { font-size: 14px; color: var(--muted); max-width: 460px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 28px 0; border-top: 1px solid var(--border-soft); }

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy, .footer-links a { font-size: 12.5px; color: var(--muted); }
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--white); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split-head { position: static; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step:not(:last-child)::before { display: none; }
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section, .contact { padding: 72px 0; }
  .nav { padding: 14px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-cta { display: none; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 99;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 19px; color: var(--white); }
  .nav-mobile-toggle { display: block; z-index: 101; }
  .nav-mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .stat-row { grid-template-columns: 1fr; gap: 28px; }
  .flow { grid-template-columns: 1fr; }
  .quality-grid, .category-grid { grid-template-columns: 1fr; }
  .proof-grid { flex-direction: column; align-items: flex-start; }
  .proof-stats { gap: 36px; }
  .prop { grid-template-columns: 1fr; gap: 6px; }
  .field-row { grid-template-columns: 1fr; }
}
