/* =================================================================
   Cendatra · Design System
   Palantir-lean institutional. Heavy type, sparse, restrained gold.
   ================================================================= */

:root {
  --bg: #0A0E1A;
  --bg-2: #0d121f;
  --bg-3: #111827;
  --bg-elev: #131a2b;
  --line: #1F2937;
  --line-2: #243049;
  --line-faint: rgba(255, 255, 255, 0.06);

  --gold: #C9A84C;
  --gold-2: #d8b758;
  --gold-dim: rgba(201, 168, 76, 0.55);
  --gold-faint: rgba(201, 168, 76, 0.15);
  --gold-glow: rgba(201, 168, 76, 0.08);

  --fg: #F5F5F5;
  --fg-2: #C7CCD6;
  --muted: #9CA3AF;
  --muted-2: #6B7280;

  --green: #10B981;
  --red: #ef4444;
  --navy: #1E3A5F;

  --content-w: 1280px;
  --gutter: 56px;

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-serif: 'Fraunces', 'Times New Roman', serif;
}

/* Background tones (Tweak) ------------------------------------- */
[data-bg="navy"]   { --bg: #0A0E1A; --bg-2: #0d121f; --bg-3: #111827; }
[data-bg="black"]  { --bg: #050608; --bg-2: #08090c; --bg-3: #0d0f14; }
[data-bg="carbon"] { --bg: #0f1115; --bg-2: #14171c; --bg-3: #191d24; }

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--gold); color: var(--bg); }

/* Reusable container ------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============== NAVBAR ============== */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 14, 26, 0.0);
  transition: background .25s, backdrop-filter .25s, border-color .25s;
}
.nav.scrolled {
  background: rgba(10, 14, 26, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.wordmark {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 17px;
  color: var(--fg);
  display: flex; align-items: baseline; gap: 8px;
}
.wordmark .dot {
  width: 6px; height: 6px; background: var(--gold); display: inline-block;
  transform: translateY(-2px);
}
.wordmark small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.14em;
  font-weight: 400;
}
.navlinks {
  display: flex; gap: 32px;
  font-size: 13px;
  color: var(--fg-2);
}
.navlinks a {
  position: relative;
  padding: 4px 0;
  opacity: 0.85;
  transition: color .15s, opacity .15s;
}
.navlinks a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .2s;
}
.navlinks a:hover, .navlinks a.active {
  color: var(--fg); opacity: 1;
}
.navlinks a:hover::after, .navlinks a.active::after { transform: scaleX(1); }

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

.lang-toggle {
  display: flex; gap: 0;
  border: 1px solid var(--line-2);
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11px;
}
.lang-toggle button {
  background: transparent; border: 0; color: var(--muted);
  padding: 6px 10px; letter-spacing: 0.1em;
}
.lang-toggle button.active {
  background: var(--line);
  color: var(--gold);
}

.navcta {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 9px 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  background: transparent;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.navcta:hover { background: var(--gold); color: var(--bg); }

/* ============== TYPOGRAPHY HELPERS ============== */
.indexline {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--gold); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px;
}
.indexline::before {
  content: ''; width: 28px; height: 1px; background: var(--gold-dim);
}
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0;
}
h1.display {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
h2.section-title {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 920px;
}
h3.block-title {
  font-size: 19px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--fg);
}
.gold { color: var(--gold); }
.lede {
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.55;
  max-width: 640px;
}
.kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--muted); text-transform: uppercase;
}
.serif-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg);
}

/* ============== BUTTONS ============== */
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border: none;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .15s, transform .15s;
}
.btn-primary:hover { background: var(--gold-2); }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-2);
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color .15s, color .15s;
}
.btn-secondary:hover { border-color: var(--fg-2); color: var(--fg); }

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background .15s, color .15s;
}
.btn-ghost:hover { background: var(--gold); color: var(--bg); }

/* ============== ATMOSPHERIC GRID BG ============== */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ============== SECTION SCAFFOLD ============== */
section {
  position: relative;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
section:first-of-type { border-top: 0; }
section .container { position: relative; }

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  margin-bottom: 72px;
  align-items: start;
}
.section-head .num {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--gold);
  letter-spacing: 0.2em; text-transform: uppercase;
  border-top: 1px solid var(--gold-dim);
  padding-top: 10px;
}
.section-head .head-main h2 { margin-bottom: 18px; }
.section-head .head-main p.lede { margin: 0; max-width: 720px; }

@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 18px; }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  padding-top: 0;
  border-top: 0;
  overflow: hidden;
}
.hero .container { padding-top: 96px; padding-bottom: 64px; }

.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: stretch;
  min-height: 640px;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  gap: 36px;
  padding: 32px 0;
}
.hero-left h1 em { font-style: normal; color: var(--gold); }
.hero-left .ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-right {
  position: relative;
  border-left: 1px solid var(--line);
  margin-right: calc(-1 * var(--gutter));
}
.hero-dotfield {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(245,245,245,0.18) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 70% at 55% 50%, black 25%, transparent 88%);
}
.hero-dotfield::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(201,168,76,0.85) 2px, transparent 2.5px);
  background-size: 110px 110px;
  background-position: 33px 44px;
  mask-image: radial-gradient(ellipse 50% 40% at 55% 50%, black 10%, transparent 88%);
  animation: dotpulse 6s ease-in-out infinite;
}
@keyframes dotpulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
.hero-right .corner-label {
  position: absolute; top: 24px; left: 28px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.hero-stack {
  position: absolute; bottom: 32px; left: 28px; right: 28px;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.hero-stack > div {
  background: var(--bg); padding: 18px 20px;
}
.hero-stack b {
  font-family: var(--font-mono); font-size: 22px; color: var(--fg); font-weight: 500;
  letter-spacing: -0.01em; display: block;
}
.hero-stack span {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  letter-spacing: 0.12em; text-transform: uppercase; margin-top: 6px; display: block;
}

.hero-meta {
  display: flex; justify-content: space-between;
  margin-top: 64px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted-2); letter-spacing: 0.12em; text-transform: uppercase;
}
.hero-meta b { color: var(--fg-2); font-weight: 500; }

.live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-right {
    border-left: 0; border-top: 1px solid var(--line);
    height: 360px; margin-right: 0;
  }
}

/* ============== METRICS ============== */
.metrics {
  background: var(--bg-2);
}
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.metric {
  background: var(--bg);
  padding: 36px 32px 32px;
  position: relative;
  transition: background .2s;
}
.metric:hover { background: var(--bg-elev); }
.metric .idx {
  font-family: var(--font-mono); font-size: 10px; color: var(--gold);
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 28px;
}
.metric .n {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 44px;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
}
.metric .n .unit { color: var(--gold); margin-left: 4px; }
.metric .l {
  margin-top: 14px;
  font-size: 13px; color: var(--muted);
  line-height: 1.5;
  max-width: 220px;
}
.metric .src {
  margin-top: 18px;
  font-family: var(--font-mono); font-size: 9px;
  color: var(--muted-2); letter-spacing: 0.14em; text-transform: uppercase;
}

@media (max-width: 900px) {
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============== PROBLEM ============== */
.problem-headline {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 980px;
  margin: 0 0 80px;
}
.problem-headline .figure {
  font-family: var(--font-mono);
  color: var(--gold);
  letter-spacing: -0.02em;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.problem-item {
  padding: 36px 32px 36px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.problem-item:last-child { border-right: 0; padding-right: 0; }
.problem-item:not(:first-child) { padding-left: 32px; }
.problem-item .pic {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-dim);
  margin-bottom: 28px;
  color: var(--gold);
}
.problem-item h3 { margin-bottom: 12px; }
.problem-item p {
  color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0;
}

@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; }
  .problem-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 0; }
  .problem-item:not(:first-child) { padding-left: 0; }
}

/* ============== PLATFORM ============== */
.platform {
  position: relative;
  background: var(--bg);
}
.platform::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(245,245,245,0.04) 1px, transparent 1.2px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 80%);
  opacity: 0.7;
}
.platform-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.platform-col {
  padding: 36px 32px 36px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.platform-col:last-child { border-right: 0; padding-right: 0; }
.platform-col:not(:first-child) { padding-left: 32px; }
.platform-col .num {
  font-family: var(--font-mono); font-size: 11px; color: var(--gold);
  letter-spacing: 0.2em; margin-bottom: 24px; text-transform: uppercase;
}
.platform-col h3 { margin-bottom: 14px; font-size: 22px; }
.platform-col p {
  color: var(--fg-2); font-size: 15px; line-height: 1.6; margin: 0 0 24px;
}
.platform-col .features {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line);
}
.platform-col .features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
  display: flex; justify-content: space-between; gap: 12px;
}
.platform-col .features li::before { content: '·'; color: var(--gold); margin-right: 8px; }
.platform-col .features li b { color: var(--fg-2); font-weight: 500; }

@media (max-width: 900px) {
  .platform-grid { grid-template-columns: 1fr; }
  .platform-col { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 0; }
  .platform-col:not(:first-child) { padding-left: 0; }
}

/* ============== MODEL ============== */
.model {
  background: var(--bg-2);
}
.model-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.model-card {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 32px;
  display: flex; flex-direction: column;
  gap: 20px;
  transition: border-color .2s, box-shadow .2s;
}
.model-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 1px var(--gold-glow), 0 12px 40px rgba(0,0,0,0.3);
}
.model-card .num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase;
}
.model-card h3 { font-size: 22px; }
.model-card p { color: var(--fg-2); font-size: 14px; line-height: 1.6; margin: 0; }
.model-card .pricing {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--gold); letter-spacing: 0.1em;
}
.model-card .pricing .label {
  color: var(--muted-2); display: block; margin-bottom: 4px;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
}

@media (max-width: 900px) {
  .model-grid { grid-template-columns: 1fr; }
}

/* ============== MARKET ============== */
.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.market-list {
  list-style: none; padding: 0; margin: 32px 0 0;
}
.market-list li {
  display: grid; grid-template-columns: 36px 1fr;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  gap: 16px;
}
.market-list li:last-child { border-bottom: 1px solid var(--line); }
.market-list li .li-num {
  font-family: var(--font-mono); font-size: 11px; color: var(--gold);
  letter-spacing: 0.16em; padding-top: 4px;
}
.market-list li .li-body strong {
  display: block; font-weight: 500; font-size: 15px; margin-bottom: 4px;
}
.market-list li .li-body span {
  color: var(--muted); font-size: 13px; line-height: 1.55;
}

.heatmap {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 28px;
  position: relative;
}
.heatmap-head {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.heatmap-rows {
  display: flex; flex-direction: column; gap: 14px;
}
.hm-row {
  display: grid; grid-template-columns: 88px 1fr 80px;
  gap: 16px; align-items: center;
}
.hm-row .hm-label {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-2); letter-spacing: 0.05em;
}
.hm-row .hm-bar {
  position: relative; height: 22px;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}
.hm-row .hm-bar::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--w, 50%);
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
}
.hm-row .hm-val {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--gold); text-align: right; letter-spacing: 0.04em;
}
.heatmap-foot {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted-2); letter-spacing: 0.14em; text-transform: uppercase;
}

.market-quote {
  margin-top: 96px;
  padding: 64px 0 24px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 200px 1fr; gap: 56px;
}
.market-quote .qmeta {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase;
}
.market-quote .qbody { max-width: 880px; }

@media (max-width: 900px) {
  .market-grid { grid-template-columns: 1fr; gap: 56px; }
  .market-quote { grid-template-columns: 1fr; gap: 16px; }
}

/* ============== INVESTORS ============== */
.investors {
  background: var(--bg-2);
}
.thesis-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.thesis-item {
  padding: 36px 36px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  transition: background .2s;
}
.thesis-item:hover { background: var(--bg-elev); }
.thesis-item .num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 24px;
}
.thesis-item h3 { font-size: 22px; margin-bottom: 12px; }
.thesis-item p { color: var(--fg-2); font-size: 14px; line-height: 1.6; margin: 0; }

.investor-cta {
  margin-top: 64px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, var(--gold-glow), transparent);
}
.investor-cta .cta-text strong {
  display: block; font-size: 22px; font-weight: 500; margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.investor-cta .cta-text span {
  color: var(--muted); font-size: 14px;
}
.investor-cta .cta-actions { display: flex; gap: 12px; }

@media (max-width: 900px) {
  .thesis-grid { grid-template-columns: 1fr; }
  .investor-cta { grid-template-columns: 1fr; }
}

/* ============== ALLIANCES ============== */
.alliances-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.alliance-card {
  border: 1px solid var(--line);
  padding: 36px;
  background: var(--bg-2);
  position: relative;
  display: flex; flex-direction: column; gap: 20px;
  transition: border-color .2s;
}
.alliance-card:hover { border-color: var(--gold-dim); }
.alliance-card .tag {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase;
}
.alliance-card h3 { font-size: 24px; }
.alliance-card p { color: var(--fg-2); font-size: 14px; line-height: 1.6; margin: 0; }
.alliance-card .points {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.alliance-card .points li {
  background: var(--bg); padding: 14px 16px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase;
}
.alliance-card .points li b {
  display: block; color: var(--fg); font-weight: 500;
  font-size: 18px; letter-spacing: -0.01em;
  text-transform: none; margin-bottom: 4px;
  font-family: var(--font-mono);
}
.alliance-card .actions { margin-top: 8px; }

@media (max-width: 900px) {
  .alliances-grid { grid-template-columns: 1fr; }
}

/* ============== CONTACT ============== */
.contact {
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.contact-info .contact-rows {
  list-style: none; padding: 0; margin: 32px 0 0;
}
.contact-info .contact-rows li {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.contact-info .contact-rows li:last-child { border-bottom: 1px solid var(--line); }
.contact-info .contact-rows li span:first-child {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted-2); letter-spacing: 0.18em; text-transform: uppercase;
}
.contact-info .contact-rows li b {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--fg); font-weight: 500; letter-spacing: 0.02em;
}
.contact-info .contact-rows li b a { color: var(--fg); }
.contact-info .contact-rows li b a:hover { color: var(--gold); }

.form {
  border: 1px solid var(--line);
  padding: 36px;
  background: var(--bg-2);
}
.form h3 { font-size: 20px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase;
}
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
}
.field.error input, .field.error select, .field.error textarea {
  border-color: var(--red);
}
.field .err {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--red); letter-spacing: 0.06em;
}
.field textarea { min-height: 96px; resize: vertical; font-family: var(--font-sans); }
.form .submit-row {
  margin-top: 8px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.form .submit-row .note {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted-2); letter-spacing: 0.1em; text-transform: uppercase;
}
.form-success {
  border: 1px solid var(--gold);
  background: var(--gold-glow);
  padding: 24px;
  margin-top: 16px;
}
.form-success b { color: var(--gold); display: block; margin-bottom: 6px; }
.form-success span { color: var(--fg-2); font-size: 14px; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============== FOOTER ============== */
footer.foot {
  border-top: 1px solid var(--line);
  padding: 80px 0 48px;
  background: var(--bg);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.foot-grid h4 {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted-2); letter-spacing: 0.18em; text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 400;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid ul li { padding: 6px 0; }
.foot-grid ul li a {
  font-size: 13px; color: var(--fg-2);
  transition: color .15s;
}
.foot-grid ul li a:hover { color: var(--gold); }
.foot-brand .wordmark { margin-bottom: 16px; }
.foot-brand p {
  font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0;
  max-width: 320px;
}

.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted-2); letter-spacing: 0.12em; text-transform: uppercase;
}
.disclaimer {
  margin-top: 48px;
  border: 1px solid var(--line);
  padding: 20px 24px;
  font-size: 12px; color: var(--muted-2); line-height: 1.55;
}
.disclaimer b { color: var(--muted); }

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ============== ENTRANCE ANIMATIONS ============== */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============== TWEAKS PANEL placement override ============== */
.cendatra-tweaks {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000;
}

/* ============== INTERIOR PAGE HEADER ============== */
.page-hero {
  padding: 96px 0 80px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero .grid-bg { opacity: 0.6; }
.page-hero .crumbs {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 32px;
  display: flex; gap: 12px; align-items: center;
}
.page-hero .crumbs a { color: var(--muted); }
.page-hero .crumbs a:hover { color: var(--gold); }
.page-hero .crumbs span { color: var(--muted-2); }
.page-hero h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1; letter-spacing: -0.03em;
  max-width: 1000px; font-weight: 500;
}
.page-hero h1 em { font-style: normal; color: var(--gold); }
.page-hero .lede { margin-top: 28px; max-width: 700px; }

/* Module separators (used inside interior pages) */
.module {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.module.tinted { background: var(--bg-2); }

/* Detail tables on interior pages */
.detail-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.detail-table th, .detail-table td {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
.detail-table th {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--muted-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 10px;
  width: 200px;
}
.detail-table td {
  color: var(--fg-2);
  line-height: 1.55;
}
.detail-table td b { color: var(--fg); font-weight: 500; }
.detail-table td .mono { font-family: var(--font-mono); color: var(--gold); font-size: 12px; }

/* Investor docs list */
.docs {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.doc {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line);
  padding: 18px 20px;
  background: var(--bg-2);
  gap: 16px;
  transition: border-color .15s, background .15s;
}
.doc:hover { border-color: var(--gold-dim); background: var(--bg); }
.doc .doc-meta {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted-2); letter-spacing: 0.14em; text-transform: uppercase;
}
.doc .doc-title { font-size: 14px; color: var(--fg); margin-top: 2px; }
.doc .doc-action {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .docs { grid-template-columns: 1fr; }
}

/* Timeline (used on Plataforma page) */
.timeline { margin-top: 32px; }
.tl-row {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.tl-row:last-child { border-bottom: 1px solid var(--line); }
.tl-row .tl-key {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase;
  padding-top: 4px;
}
.tl-row .tl-body strong {
  display: block; font-size: 16px; margin-bottom: 6px; font-weight: 500;
  letter-spacing: -0.01em;
}
.tl-row .tl-body p {
  color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0;
}

/* Skip nav for accessibility */
.skip {
  position: absolute; top: -80px; left: 0;
  background: var(--gold); color: var(--bg);
  padding: 10px 16px; z-index: 1000;
  font-family: var(--font-mono); font-size: 11px;
}
.skip:focus { top: 0; }


/* ============== MOBILE RESPONSIVE FIXES ============== */
@media (max-width: 800px) {
  .nav {
    height: auto;
    padding: 16px var(--gutter);
    flex-wrap: wrap; /* allow line breaks */
    gap: 16px;
  }
  .navlinks {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px; /* For scrollbar */
    -webkit-overflow-scrolling: touch;
  }
  .navlinks::-webkit-scrollbar {
    height: 0px; 
    background: transparent;
  }
  .nav-right {
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .hero-grid {
    gap: 32px;
  }
  .hero h1 {
    font-size: clamp(36px, 10vw, 42px);
  }
}

@media (max-width: 600px) {
  .navcta .txt { display: none !important; }
  .navcta .ico { display: inline-flex !important; align-items: center; justify-content: center; }
  .navcta { padding: 8px 12px; }
  
  /* Point 4 fix: form and contact side on mobile */
  .contact-info .contact-rows li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }
}
