/* =========================================================
   CONCISE — Design tokens
   Display: Fraunces (editorial serif, restrained use)
   Body/UI: Inter
   Utility (timestamps, tags, source labels): IBM Plex Mono
   Palette: near-black canvas, warm signal-gold accent,
            slate-blue secondary, hairline borders.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-raised: #121212;
  --bg-card: #141414;
  --border: #262626;
  --border-soft: #1c1c1c;
  --text: #ececea;
  --text-muted: #9a9a95;
  --text-faint: #6b6b67;
  --accent: #e3b23c;       /* signal gold */
  --accent-dim: #8a7130;
  --secondary: #7c8db5;    /* slate blue */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* -------------------- NAVBAR -------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Brand mark — used by the footer; header now uses image logos (below) */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.logo .mark {
  width: 26px; height: 26px;
  display: inline-block;
}
.logo .mark svg { width: 100%; height: 100%; }

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

/* Right-hand group: sign-in + the two image logos, pinned to the far right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.btn-ghost {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);   /* always visible, not just on hover */
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: #3a3a3a;
  background: var(--bg-raised);
}

.logo-imgs {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
}
.logo-mark-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 7px;
}
.logo-word-img {
  height: 30px;
  width: auto;
  object-fit: contain;
}


.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
}

/* -------------------- HERO (ss1) -------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  position: relative;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hero-copy .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  display: inline-block;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.06;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-copy p.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 0 36px;
}

.auth-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 420px;
  background: var(--bg-raised);
}
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1f1f1f;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-google:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.08);
}
.btn-google svg { width: 18px; height: 18px; }

.auth-fine {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.5;
}
.auth-fine a { color: var(--secondary); border-bottom: 1px solid transparent; }
.auth-fine a:hover { border-color: var(--secondary); }

/* Hero visual — signature converging-streams animation */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 120% at 78% 22%, rgba(227,178,60,0.07), transparent 55%),
    #0d0d0d;
  overflow: hidden;
}
.hero-visual::after {
  /* legibility gradient so the caption reads over any footage */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.68) 100%);
  pointer-events: none;
}
.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-visual svg { width: 88%; height: 88%; }

.stream {
  fill: none;
  stroke-width: 1.4;
  opacity: 0.55;
  stroke-dasharray: 12 10;
  animation: flow 5.5s linear infinite;
}
.stream.s1 { stroke: var(--secondary); animation-duration: 6.2s; }
.stream.s2 { stroke: var(--text-faint); animation-duration: 7.4s; }
.stream.s3 { stroke: var(--accent-dim); animation-duration: 5s; }
.stream.s4 { stroke: var(--secondary); opacity: 0.35; animation-duration: 8.1s; }
.stream.s5 { stroke: var(--text-faint); opacity: 0.35; animation-duration: 6.8s; }

@keyframes flow {
  to { stroke-dashoffset: -220; }
}

.core-point {
  fill: var(--accent);
  filter: drop-shadow(0 0 10px rgba(227,178,60,0.55));
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { r: 5; opacity: 0.9; }
  50% { r: 7; opacity: 1; }
}

.hero-visual .caption {
  position: absolute;
  z-index: 2;
  bottom: 18px; left: 18px; right: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #d8d8d4;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
}

/* -------------------- SECTION SHELL -------------------- */
section { position: relative; padding: 110px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 42px);
  margin: 0;
  letter-spacing: -0.01em;
}
.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 420px;
  margin: 10px 0 0;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* -------------------- HOW IT WORKS -------------------- */
.how { background: var(--bg); border-top: 1px solid var(--border-soft); }

.how-flow {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.how-flow::before,
.how-flow::after {
  content: '';
  position: absolute;
  top: 26px;
  left: 5%;
  right: 5%;
  height: 1px;
}
.how-flow::before { background: var(--border); z-index: 0; }
.how-flow::after {
  background: var(--accent);
  width: 0;
  transition: width 1.8s cubic-bezier(.16,1,.3,1) .2s;
  z-index: 1;
}
.how.in-view .how-flow::after { width: 90%; }

.how-step {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
}
.how-node {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.how-step:hover .how-node {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 0 0 6px rgba(227,178,60,0.10);
}
.how-text {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 180px;
  transition: color 0.3s ease;
}
.how-step:hover .how-text { color: var(--text); }

@media (max-width: 900px) {
  .how-flow { flex-direction: column; align-items: flex-start; gap: 34px; margin-top: 30px; }
  .how-flow::before, .how-flow::after {
    top: 0; bottom: 0; left: 25px; right: auto; height: auto; width: 1px;
  }
  .how-flow::after { transition: height 1.8s cubic-bezier(.16,1,.3,1) .2s; height: 0; }
  .how.in-view .how-flow::after { height: 94%; width: 1px; }
  .how-step { flex-direction: row; align-items: flex-start; text-align: left; padding: 0; width: 100%; }
  .how-node { flex-shrink: 0; }
  .how-text { margin: 4px 0 0 18px; max-width: none; }
}

/* -------------------- NEWS SLIDER (ss2) -------------------- */
.latest { background: var(--bg); border-top: 1px solid var(--border-soft); }

.slider-controls { display: flex; gap: 10px; }
.slider-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.slider-btn:hover { border-color: var(--accent); background: #1a1a1a; }

.slider-viewport {
  overflow: hidden;
  margin: 0 -40px;
  padding: 0 40px;
}
.slider-track {
  display: flex;
  gap: 22px;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(.16,1,.3,1);
}

.news-card {
  flex: 0 0 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.news-card:hover { transform: translateY(-4px); border-color: #333; }

.news-card .thumb {
  aspect-ratio: 16/10;
  background: #1a1a1a;
  overflow: hidden;
}
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.news-card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card .source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.news-card .source-row .src { color: var(--accent); }
.news-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.32;
  margin: 0;
}
.news-card p.blurb {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .read {
  margin-top: auto;
  font-size: 13px;
  color: var(--secondary);
  font-weight: 600;
  padding-top: 6px;
}
.news-card .read::after { content: " →"; }

.slider-empty {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  padding: 40px 0;
}

/* -------------------- FAQ (ss3) -------------------- */
.faq { background: var(--bg); }
.faq .wrap { max-width: 860px; }
.faq h2 { text-align: center; }
.faq-list { margin-top: 48px; border-top: 1px solid var(--border-soft); }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 24px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-family: var(--font-body);
  font-weight: 500;
}
.faq-q .plus {
  width: 20px; height: 20px;
  position: relative;
  flex-shrink: 0;
  margin-left: 20px;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: '';
  position: absolute;
  background: var(--text-muted);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq-q .plus::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-q .plus::after { left: 50%; top: 0; height: 100%; width: 1.5px; transform: translateX(-50%); }
.faq-item.open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-item.open .plus::before { background: var(--accent); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.16,1,.3,1);
}
.faq-a p {
  margin: 0 4px 26px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 680px;
}

/* -------------------- FOOTER (ss4) -------------------- */

.logo-mark-img-bottom {
  height: 20px;
  width: 20px;
  object-fit: contain;
  border-radius: 4px;
}
.logo-word-img-bottom {
  height: 15px;
  width: auto;
  object-fit: contain;
}

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  padding: 90px 0 34px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p {
  font-size: 13.5px;
  color: var(--text-faint);
  line-height: 1.6;
  max-width: 260px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 70px;
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .byline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.footer-social a:hover { color: var(--text); border-color: #3a3a3a; }
.footer-social svg { width: 15px; height: 15px; }

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; order: -1; }   /* pushes hamburger to the far left */
  .nav-right {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
  }
  .logo-imgs {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);               /* centers the two logos */
  }
  .btn-ghost { margin-left: auto; }             /* pushes sign-in to the far right */
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }               /* same left/right margin as the text — no extra centering */
  .hero-copy p.lede { max-width: none; }
  section { padding: 76px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .auth-card { margin: 0 auto; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .auth-card { padding: 22px; }
  .news-card { flex-basis: 82vw; }
  .slider-viewport { margin: 0 -18px; padding: 0 18px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .faq-q { font-size: 15.5px; }
  .logo-word-img { display: none; }
  .logo-mark-img { height: 60px; width: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .stream, .core-point { animation: none; }
}