/* ===== Tokens ===== */
:root {
  --ink: #0F1D16;
  --vault: #1E3A2B;
  --vault-light: #2A4A36;
  --vault-line: #3E5C49;
  --parchment: #F6F1E4;
  --parchment-deep: #ECE4D0;
  --brass: #C8A35A;
  --brass-bright: #D9BC7E;
  --stone: #7C8577;
  --stone-on-dark: #A9B6A9;
  --ink-text: #1A2A20;
  --white: #FFFFFF;

  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--parchment);
  color: var(--ink-text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* fine paper grain overlay for warmth, very subtle */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

em { font-style: italic; }

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 228, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 29, 22, 0.08);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--vault);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-text);
}

.brand-name em { color: var(--brass); font-style: italic; }

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14.5px;
  color: var(--ink-text);
}

.nav-links a { opacity: 0.75; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }

.nav-cta {
  font-size: 14px;
  padding: 9px 20px;
  border: 1px solid var(--vault);
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--vault); color: var(--parchment); }

/* ===== Hero ===== */
.hero {
  background: var(--ink);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  min-height: 86vh;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 12% 20%, rgba(42, 74, 54, 0.55), transparent 60%),
    repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(200, 163, 90, 0.035) 39px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 24px 0 64px;
  max-width: 600px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

.hero-title em {
  font-style: italic;
  color: var(--brass-bright);
}

.hero-sub {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--stone-on-dark);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 15px 28px;
  border-radius: 2px;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--brass);
  color: var(--ink);
}
.btn-primary:hover { background: var(--brass-bright); transform: translateY(-1px); }

.btn-large { padding: 18px 38px; font-size: 16px; }

.btn-ghost {
  border: 1px solid rgba(246, 241, 228, 0.3);
  color: var(--parchment);
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }

.arrow { font-size: 13px; }

/* ===== Hero video ===== */
.hero-video-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 56px 36px 28px;
}

.hero-video-wrap::before {
  content: '';
  position: absolute;
  width: min(420px, 78%);
  height: min(420px, 70%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 74, 54, 0.55) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero-video-frame {
  position: relative;
  z-index: 1;
  padding: 11px;
  background:
    linear-gradient(155deg, rgba(200, 163, 90, 0.18) 0%, rgba(21, 41, 30, 0.95) 42%, #122218 100%);
  border: 1px solid rgba(200, 163, 90, 0.62);
  border-radius: 3px;
  box-shadow:
    0 0 0 1px rgba(15, 29, 22, 0.85),
    0 26px 54px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(217, 188, 126, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.hero-video-frame::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(200, 163, 90, 0.28);
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}

.hero-video-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 3px;
  pointer-events: none;
  background:
    linear-gradient(var(--brass), var(--brass)) top left / 14px 1px no-repeat,
    linear-gradient(var(--brass), var(--brass)) top left / 1px 14px no-repeat,
    linear-gradient(var(--brass), var(--brass)) top right / 14px 1px no-repeat,
    linear-gradient(var(--brass), var(--brass)) top right / 1px 14px no-repeat,
    linear-gradient(var(--brass), var(--brass)) bottom left / 14px 1px no-repeat,
    linear-gradient(var(--brass), var(--brass)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--brass), var(--brass)) bottom right / 14px 1px no-repeat,
    linear-gradient(var(--brass), var(--brass)) bottom right / 1px 14px no-repeat;
  opacity: 0.85;
}

.hero-video-bezel {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: #0a1210;
  box-shadow: inset 0 0 0 1px rgba(62, 92, 73, 0.55);
}

.hero-video {
  display: block;
  width: auto;
  height: min(68vh, 580px);
  max-width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #0a1210;
}

.hero-video-caption {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  max-width: 280px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--stone-on-dark);
  opacity: 0.65;
}

/* ===== Instrument (signature element) ===== */
.instrument-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 8px;
}

.hero > .instrument-wrap .instrument-caption {
  color: var(--stone-on-dark);
  opacity: 0.65;
}

@media (min-width: 981px) {
  .hero > .instrument-wrap {
    display: none;
  }
}

.como-layout > .instrument-wrap {
  padding: 12px 0 12px 12px;
}

.como-layout > .instrument-wrap .instrument-caption {
  color: var(--stone);
  opacity: 0.85;
}

.instrument {
  width: min(400px, 100%);
}

.instrument-svg {
  width: 100%;
  height: auto;
}

#scanRing {
  animation: scan 4s linear infinite;
  transform-origin: 240px 240px;
}

@keyframes scan {
  0% { stroke-dasharray: 1 1380; stroke-dashoffset: 0; opacity: 0.7; }
  50% { stroke-dasharray: 460 920; stroke-dashoffset: -690; opacity: 0.25; }
  100% { stroke-dasharray: 1 1380; stroke-dashoffset: -1380; opacity: 0.7; }
}

#needle {
  animation: read 6s ease-in-out infinite;
}

@keyframes read {
  0%   { transform: rotate(-34deg); }
  18%  { transform: rotate(12deg); }
  34%  { transform: rotate(-8deg); }
  52%  { transform: rotate(28deg); }
  68%  { transform: rotate(-22deg); }
  84%  { transform: rotate(6deg); }
  100% { transform: rotate(-34deg); }
}

.tick { stroke: var(--vault-line); stroke-width: 0.75; }
.tick-major { stroke: var(--brass); stroke-width: 1; opacity: 0.6; }

.dial-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  fill: var(--stone-on-dark);
}

.dial-value {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 500;
  fill: var(--brass-bright);
}

.dial-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  fill: var(--stone-on-dark);
  letter-spacing: 0.04em;
}

.data-point {
  fill: var(--brass);
  opacity: 0.85;
}

.instrument-caption {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--stone);
  text-align: center;
  opacity: 0.85;
  margin-top: 18px;
  line-height: 1.5;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Cómo empieza split layout ===== */
.como-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.como-copy {
  min-width: 0;
}

.como-copy .onboard-grid {
  grid-template-columns: repeat(2, 1fr);
}

.como-layout > .balance-note {
  grid-column: 1 / -1;
}

/* ===== Bands / sections ===== */
.band {
  padding: 110px 32px;
}

.band-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.band-inner.narrow {
  max-width: 760px;
}

.band-inner.center {
  text-align: center;
}

.band-parchment { background: var(--parchment); }

.band-vault {
  background: var(--vault);
  color: var(--parchment);
}

.band-dark-cta {
  background: var(--ink);
  color: var(--parchment);
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vault);
  margin-bottom: 20px;
}

.kicker-light { color: var(--brass); }

.serif-h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin-bottom: 28px;
  max-width: 820px;
}

.serif-h.light { color: var(--parchment); }
.serif-h em { font-style: italic; color: var(--brass-bright); }

.lede {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-text);
  opacity: 0.82;
  max-width: 680px;
}

.light-lede { color: var(--stone-on-dark); opacity: 1; }

.band-inner.center .lede { margin: 0 auto; }
.band-inner.center .serif-h { margin-left: auto; margin-right: auto; }

/* ===== Flow (method) ===== */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr auto 1fr;
  align-items: start;
  gap: 0;
  margin-top: 64px;
}

.flow-step {
  padding: 0 8px;
}

.flow-num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--vault-line);
}

.flow-step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 14px;
}

.flow-step p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--stone-on-dark);
}

.flow-step-ai {
  background: rgba(200, 163, 90, 0.07);
  border: 1px solid rgba(200, 163, 90, 0.25);
  border-radius: 3px;
  padding: 28px 24px;
  margin-top: -14px;
}

.flow-step-ai .flow-num { border-bottom-color: rgba(200, 163, 90, 0.3); }

.flow-connector {
  width: 48px;
  height: 1px;
  background: var(--vault-line);
  margin-top: 50px;
  align-self: start;
  justify-self: center;
}

/* ===== Capability grid ===== */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(15, 29, 22, 0.1);
  margin-top: 56px;
  border: 1px solid rgba(15, 29, 22, 0.1);
}

.cap-card {
  background: var(--parchment);
  padding: 38px 36px;
}

.cap-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  color: var(--brass);
  margin-bottom: 18px;
}

.cap-icon svg {
  width: 100%;
  height: 100%;
}

.cap-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 12px;
}

.cap-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-text);
  opacity: 0.78;
}

/* ===== Safeguards ===== */
.safeguard-list {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
}

.safeguard-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 30px 0;
  border-top: 1px solid var(--vault-line);
}

.safeguard-list .safeguard-row:last-child {
  border-bottom: 1px solid var(--vault-line);
}

.safeguard-row h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
}

.safeguard-row p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--stone-on-dark);
  max-width: 540px;
}

/* ===== Onboarding grid ===== */
.onboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.onboard-card {
  padding: 0;
}

.onboard-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  color: var(--brass);
  margin-bottom: 14px;
}

.onboard-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  margin-bottom: 10px;
}

.onboard-card p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-text);
  opacity: 0.78;
}

.balance-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 56px;
  padding: 24px 28px;
  background: rgba(30, 58, 43, 0.06);
  border: 1px solid rgba(30, 58, 43, 0.18);
  border-radius: 3px;
}

.balance-icon {
  width: 22px;
  height: 22px;
  color: var(--vault);
  flex-shrink: 0;
  margin-top: 2px;
}

.balance-note p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-text);
  opacity: 0.85;
}

/* ===== Mechanics / chart section ===== */
.narrow-mecanica {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 0 32px;
}

.chart-section {
  max-width: 900px;
  margin: 48px auto 0;
  padding: 0 32px;
}

.chart-card {
  background: rgba(15, 29, 22, 0.35);
  border: 1px solid rgba(200, 163, 90, 0.25);
  border-radius: 4px;
  padding: 28px 28px 20px;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.chart-asset {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--stone-on-dark);
}

.asset-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass);
  display: inline-block;
}

.chart-pl {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--brass-bright);
}

.chart-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-axis { stroke: var(--vault-line); stroke-width: 1; }

.grid-line { stroke: var(--vault-line); stroke-width: 0.5; opacity: 0.5; }

.price-path {
  fill: none;
  stroke: var(--brass);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.price-area { fill: rgba(200, 163, 90, 0.08); }

.day-dot { fill: var(--brass-bright); stroke: var(--ink); stroke-width: 2; }
.day-dot.dot-key { fill: var(--brass-bright); r: 6; }

.day-label {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--stone-on-dark);
}

.price-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  fill: var(--parchment);
}

.chart-legend {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--stone-on-dark);
  line-height: 1.5;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-open { background: var(--brass); }
.dot-hold { background: var(--vault-line); border: 1px solid var(--brass); }
.dot-close { background: var(--brass-bright); }

.mecanica-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mecanica-step {
  padding: 24px 0;
  border-top: 1px solid var(--vault-line);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
}

.mecanica-steps .mecanica-step:last-child {
  border-bottom: 1px solid var(--vault-line);
}

.mecanica-day {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
}

.mecanica-step p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--stone-on-dark);
}

.mecanica-step-key {
  background: rgba(200, 163, 90, 0.07);
  margin: 0 -20px;
  padding: 24px 20px;
  border-top-color: rgba(200, 163, 90, 0.3);
}

/* ===== Market tags ===== */
.market-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.market-tag {
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 10px 18px;
  border: 1px solid rgba(200, 163, 90, 0.35);
  border-radius: 999px;
  color: var(--brass-bright);
}

/* ===== CTA ===== */
.micro-note {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--stone-on-dark);
  margin-top: 22px;
  opacity: 0.8;
}

.band-dark-cta .btn-primary { margin-top: 8px; }

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  padding: 56px 32px 48px;
  border-top: 1px solid rgba(200, 163, 90, 0.15);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.footer .brand-name { color: var(--parchment); }
.footer .brand-mark { color: var(--brass); }

.footer-legal {
  font-size: 11px;
  line-height: 1.6;
  color: var(--stone-on-dark);
  max-width: 620px;
  margin: 18px 0 14px;
  opacity: 0.45;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--stone-on-dark);
  opacity: 0.5;
}

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .nav-links { gap: 24px; }
  .hero-inner { padding-left: 40px; }
  .hero-video { height: min(68vh, 540px); }
  .safeguard-row { grid-template-columns: 220px 1fr; gap: 28px; }
  .onboard-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .como-layout { gap: 32px; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 48px;
  }
  .hero-inner { padding: 0 24px; max-width: 100%; }

  .hero-video-wrap {
    width: 100%;
    padding: 36px 24px 12px;
  }

  .hero-video-frame {
    width: 100%;
    max-width: 320px;
    padding: 8px;
  }

  .hero-video {
    width: 100%;
    height: auto;
  }

  .hero-video-caption {
    max-width: 320px;
  }

  .hero > .instrument-wrap {
    padding: 20px 24px 8px;
  }

  .como-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .flow-connector { display: none; }
  .flow-step-ai { margin-top: 0; }

  .capability-grid { grid-template-columns: 1fr; }

  .onboard-grid,
  .como-copy .onboard-grid { grid-template-columns: 1fr; gap: 32px; }

  .mecanica-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .mecanica-step-key { margin: 0; }

  .chart-section, .narrow-mecanica { padding: 0 22px; }
  .chart-card { padding: 22px 18px 16px; }

  .safeguard-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .band { padding: 72px 22px; }
}

@media (max-width: 560px) {
  .nav-inner { padding: 14px 20px; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .btn { padding: 13px 22px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  #needle, #scanRing { animation: none; }
}
