*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --dark:    #1b1c1d;
  --dark-2:  #272a2c;
  --dark-3:  #2e3234;
  --accent:  #879c9d;
  --accent-d:#6a8081;
  --muted:   #6b7280;
  --border:  #e5e7eb;
  --light:   #f9fafb;
  --light-2: #f3f4f6;
  --white:   #ffffff;
  --font:    'Inter', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); background: var(--white); overflow-x: hidden; line-height: 1.6; }

/* NAV */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 88px; display: flex; align-items: center;
  padding: 0 6vw; justify-content: space-between;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 64px; }
nav { display: flex; align-items: center; gap: 2.5rem; }
nav a { font-size: 0.875rem; font-weight: 400; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.15s; }
nav a:hover { color: var(--white); }
.nav-cta {
  background: #879c9d !important; color: var(--white) !important;
  padding: 0.5rem 1.25rem; border-radius: 8px;
  font-weight: 600 !important; font-size: 0.82rem !important;
}
.nav-cta:hover { background: #6a8081 !important; opacity: 1 !important; }

/* TICKER */
.ticker {
  position: fixed; top: 88px; left: 0; right: 0; z-index: 99;
  background: rgba(23,25,26,0.98); border-bottom: 1px solid rgba(135,156,157,0.2);
  height: 30px; overflow: hidden; display: flex; align-items: center;
}
.ticker-label {
  background: var(--accent); color: var(--white);
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0 14px; height: 100%;
  display: flex; align-items: center; white-space: nowrap; flex-shrink: 0;
}
.t-scroll {
  display: flex; align-items: center;
  animation: tscroll 50s linear infinite; white-space: nowrap;
}
.t-scroll:hover { animation-play-state: paused; }
.t-item { font-size: 0.67rem; color: rgba(255,255,255,0.45); padding: 0 2.5rem; display: flex; align-items: center; gap: 8px; }
.t-val { color: rgba(255,255,255,0.8); font-weight: 600; }
.t-dot { color: var(--accent); font-size: 0.4rem; }
@keyframes tscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* HERO */
.hero {
  position: relative; min-height: 100vh;
  padding-top: 118px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('https://chainmill.io/img/hero_2.png');
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(16,19,20,0.96) 0%, rgba(16,19,20,0.88) 55%, rgba(16,19,20,0.5) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 5rem 6vw; max-width: 820px;
}
.hero-kicker {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 2rem; display: flex; align-items: center; gap: 10px;
}
.hero-kicker::before { content: ''; width: 28px; height: 1px; background: var(--accent); }

h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 900; line-height: 1.04; letter-spacing: -0.035em;
  color: var(--white); margin-bottom: 2rem;
}
h1 .dim { color: rgba(255,255,255,0.45); font-weight: 900; font-size: 1em; }

.hero-statement {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.55); font-weight: 300;
  line-height: 1.75; max-width: 56ch; margin-bottom: 3rem;
  border-left: 2px solid rgba(135,156,157,0.4);
  padding-left: 1.5rem;
}
.hero-statement strong { color: rgba(255,255,255,0.8); font-weight: 500; }

.hero-cta-group { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 4rem; }
.btn-main {
  background: #879c9d; color: var(--white);
  padding: 1rem 2.25rem; border-radius: 16px;
  font-size: 0.92rem; font-weight: 700; text-decoration: none;
  letter-spacing: 0.01em; border: 2px solid #879c9d;
  transition: background 0.15s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-main:hover { background: #6a8081; border-color: #6a8081; transform: translateY(-1px); }
.btn-ghost {
  color: rgba(255,255,255,0.5); font-size: 0.88rem; font-weight: 400;
  text-decoration: none; display: flex; align-items: center; gap: 6px;
  transition: color 0.15s;
}
.btn-ghost:hover { color: rgba(255,255,255,0.8); }

.hero-proof {
  display: flex; gap: 3rem;
  padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.08);
}
.proof-item strong {
  display: block; font-size: 1.8rem; font-weight: 900;
  color: var(--white); letter-spacing: -0.03em; line-height: 1;
}
.proof-item span { font-size: 0.73rem; color: rgba(255,255,255,0.35); margin-top: 3px; display: block; }

/* DATES BAND */
.dates {
  background: var(--dark-2); border-bottom: 1px solid rgba(135,156,157,0.12);
  padding: 0.9rem 6vw; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.dates-label { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; flex-shrink: 0; }
.dates-list { display: flex; gap: 0.75rem; flex-wrap: wrap; flex: 1; }
.d { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.d-tag { font-size: 0.65rem; font-weight: 700; color: var(--accent); background: rgba(135,156,157,0.1); border: 1px solid rgba(135,156,157,0.2); padding: 2px 8px; border-radius: 4px; white-space: nowrap; }

/* SHARED SECTION */
.section { padding: 5.5rem 6vw; }
.s-dark { background: var(--dark); }
.s-dark2 { background: var(--dark-2); }
.s-light { background: var(--light); }
.s-grey { background: var(--light-2); }

.label {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 8px;
}
.label-dark { color: rgba(255,255,255,0.25); }
.label-dark::before { content: ''; width: 16px; height: 1px; background: currentColor; }
.label-light { color: var(--muted); }
.label-light::before { content: ''; width: 16px; height: 1px; background: currentColor; }

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.08;
  margin-bottom: 1.2rem;
}
.h2-dark { color: var(--white); }
.h2-light { color: var(--dark); }
.lead { font-size: 1rem; font-weight: 300; line-height: 1.75; max-width: 58ch; }
.lead-dark { color: rgba(255,255,255,0.4); }
.lead-light { color: var(--muted); }

/* WHAT'S COMING */
.coming-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; overflow: hidden; margin-top: 3rem;
}
.coming-item {
  background: var(--dark); padding: 2.5rem 2rem;
  transition: background 0.2s;
}
.coming-item:hover { background: #1e2122; }
.c-num { font-size: 0.9rem; font-weight: 800; letter-spacing: 0.1em; color: #879c9d; margin-bottom: 1rem; text-transform: uppercase; }
.c-title { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 0.6rem; line-height: 1.2; }
.c-body { font-size: 0.82rem; color: rgba(255,255,255,0.35); line-height: 1.65; }
.c-body strong { color: rgba(255,255,255,0.6); font-weight: 500; }

/* PROBLEM SECTION */
.problem-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem; margin-top: 3rem;
}
.p-block {
  padding: 2rem 1.8rem; background: var(--white);
  border: 1px solid var(--border); border-radius: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.p-block:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.06); transform: translateY(-2px); }
.p-n { font-size: 3rem; font-weight: 900; color: var(--border); letter-spacing: -0.05em; line-height: 1; margin-bottom: 1rem; }
.p-block h3 { font-size: 0.9rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; line-height: 1.3; }
.p-block p { font-size: 0.8rem; color: var(--muted); line-height: 1.65; }

/* QUOTE */
.quote-wrap {
  background: var(--dark-2); padding: 4.5rem 6vw;
  display: flex; align-items: center; gap: 5rem;
  border-top: 1px solid rgba(135,156,157,0.1);
  border-bottom: 1px solid rgba(135,156,157,0.1);
}
blockquote {
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-weight: 700; color: var(--white);
  line-height: 1.3; flex: 1; letter-spacing: -0.02em;
}
blockquote::before { content: '\201C'; color: var(--accent); font-size: 2.5em; line-height: 0; vertical-align: -0.5em; margin-right: 2px; }
.q-source { flex-shrink: 0; border-left: 1px solid rgba(255,255,255,0.1); padding-left: 2.5rem; }
.q-role { font-size: 0.8rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.q-co { font-size: 0.73rem; color: rgba(255,255,255,0.25); }

/* BRIEFINGS */
.briefings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.briefing-card {
  background: var(--dark-2); border: 1px solid rgba(135,156,157,0.12);
  border-radius: 12px; overflow: hidden;
}
.bc-head { padding: 0.9rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.25); }
.bc-row {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.8rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none; transition: background 0.15s;
}
.bc-row:last-child { border-bottom: none; }
.bc-row:hover { background: rgba(255,255,255,0.03); }
.bc-num { font-size: 0.63rem; font-weight: 800; color: var(--accent); min-width: 40px; letter-spacing: 0.04em; }
.bc-content { flex: 1; }
.bc-title { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.7); line-height: 1.3; margin-bottom: 2px; }
.bc-date { font-size: 0.68rem; color: rgba(255,255,255,0.22); }
.bc-arrow { font-size: 0.72rem; color: rgba(255,255,255,0.18); }

.nl-stats { display: flex; gap: 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.nl-s strong { display: block; font-size: 1.6rem; font-weight: 900; color: var(--dark); letter-spacing: -0.025em; }
.nl-s span { font-size: 0.7rem; color: var(--muted); }

/* SIGNUP */
.signup-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.signup-form { display: flex; flex-direction: column; gap: 0.7rem; }
.f-row { display: flex; gap: 0.6rem; }
.signup-form input {
  flex: 1; padding: 0.85rem 1rem;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  background: rgba(255,255,255,0.06);
  font-family: var(--font); font-size: 0.85rem; color: var(--white);
  outline: none; transition: border-color 0.15s;
}
.signup-form input:focus { border-color: var(--accent); }
.signup-form input::placeholder { color: rgba(255,255,255,0.22); }
.signup-form button {
  background: #879c9d; color: var(--white);
  padding: 0.85rem 1.6rem; border: none; border-radius: 8px;
  font-family: var(--font); font-size: 0.85rem; font-weight: 800;
  cursor: pointer; white-space: nowrap; transition: background 0.15s;
}
.signup-form button:hover { background: #6a8081; }
.fine { font-size: 0.7rem; color: rgba(255,255,255,0.22); line-height: 1.5; }

/* FOOTER */
footer {
  background: var(--dark); padding: 3rem 6vw 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.f-brand p { font-size: 0.77rem; color: rgba(255,255,255,0.28); line-height: 1.7; max-width: 26ch; margin-top: 0.75rem; }
.f-brand a { font-size: 0.77rem; color: rgba(255,255,255,0.28); text-decoration: none; }
.f-col h4 { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.22); margin-bottom: 1rem; }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.f-col a { font-size: 0.78rem; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.15s; }
.f-col a:hover { color: rgba(255,255,255,0.75); }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; }
.footer-bottom span { font-size: 0.7rem; color: rgba(255,255,255,0.18); }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Form feedback */
.hidden { display: none !important; }
.success-modal {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6); padding: 1rem;
}
.success-modal-card {
  width: 100%; max-width: 460px; border-radius: 14px;
  background: #fff; color: var(--dark);
  padding: 2rem; text-align: center;
}
.success-actions { margin-top: 1rem; display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.success-actions a, .success-actions button {
  border: 0; border-radius: 8px; padding: 0.7rem 1rem; cursor: pointer;
  text-decoration: none; font-size: 0.9rem;
}
.success-actions a { background: var(--accent); color: #fff; }
.success-actions button { background: #edf1f2; color: var(--dark); }
.loader-overlay {
  position: fixed; inset: 0; z-index: 130; display: none;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(2px);
  text-align: center; padding-top: 42vh;
}
.loader-spin {
  display: inline-block;
  width: 54px; height: 54px; border-radius: 999px;
  border: 4px solid rgba(255,255,255,0.25);
  border-top-color: #fff; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 900px) {
  .coming-grid, .problem-row, .briefings-grid, .signup-wrap { grid-template-columns: 1fr; }
  .quote-wrap { flex-direction: column; gap: 2rem; }
  .q-source { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-left: 0; padding-top: 1.5rem; }
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
  nav .hide-mobile { display: none; }
}
