/* ==========================================================================
   CustoBia — Custodia de Bitcoin
   Palette derived from logo custobia-2a.
   ========================================================================== */

:root {
  --ink:        #0F1B2D;   /* navy — from logo */
  --ink-deep:   #0A1220;   /* deeper ground for alternating bands */
  --ink-raise:  #16243A;   /* raised surface / cards */
  --orange:     #F7931A;   /* bitcoin orange — from logo */
  --orange-dim: #C87614;
  --paper:      #FAFAF8;
  --text:       #E8EDF5;
  --muted:      #93A2B8;
  --muted-dim:  #6B7C94;
  --line:       rgba(255, 255, 255, 0.09);
  --line-hi:    rgba(255, 255, 255, 0.16);
  --green:      #4ADE80;
  --red:        #F87171;

  --wrap: 1140px;
  --r:    14px;

  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-head: 'Manrope', var(--f-sans);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.24rem; font-weight: 700; letter-spacing: -0.012em; }

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }
.band       { background: var(--ink-deep); }
.band-edge  { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* --- shared type helpers ------------------------------------------------ */
.eyebrow {
  font-family: var(--f-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 16px;
}
.lead   { font-size: 1.19rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.sec-head { max-width: 68ch; margin-bottom: 56px; }
.center.sec-head { margin-left: auto; margin-right: auto; }

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #16120A; }
.btn-primary:hover { background: #FFA633; }
.btn-ghost { border-color: var(--line-hi); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.center .btn-row { justify-content: center; }

/* --- nav ---------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(15, 27, 45, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 20px;
}
.nav-logo { flex: none; display: flex; align-items: center; }
.nav-logo img { height: 29px; width: auto; display: block; }
.nav-menu { display: flex; align-items: center; gap: 22px; }
.nav-menu a {
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  font-family: var(--f-head); text-decoration: none; white-space: nowrap;
}
.nav-menu a:hover { color: var(--text); text-decoration: none; }
.nav-cta { padding: 10px 18px; font-size: 0.88rem; white-space: nowrap; flex: none; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; width: 42px; height: 42px;
}
.nav-toggle span {
  display: block; height: 2px; width: 22px; background: var(--text);
  margin: 4px auto; border-radius: 2px; transition: .2s;
}

/* --- hero --------------------------------------------------------------- */
.hero {
  padding: 108px 0 96px;
  background:
    radial-gradient(900px 460px at 78% -8%, rgba(247,147,26,0.13), transparent 62%),
    radial-gradient(700px 420px at 8% 105%, rgba(247,147,26,0.055), transparent 60%);
}
.hero-logo { width: min(430px, 84%); margin-bottom: 34px; }
.hero h1 { max-width: 17ch; }
.hero .lead { font-size: 1.3rem; max-width: 56ch; }
.hero-note {
  margin-top: 30px; font-size: 0.93rem; color: var(--muted-dim);
  display: flex; align-items: center; gap: 9px;
}
.hero-note .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(74,222,128,0.15); flex: none;
}

/* --- stats -------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat {
  border-left: 2px solid var(--orange);
  padding: 6px 0 6px 22px;
}
.stat .n {
  font-family: var(--f-head); font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; color: var(--text);
}
.stat .l { font-size: 0.95rem; color: var(--muted); margin-top: 8px; }

/* --- generic card grid -------------------------------------------------- */
.grid    { display: grid; gap: 24px; }
.grid-2  { grid-template-columns: repeat(2, 1fr); }
.grid-3  { grid-template-columns: repeat(3, 1fr); }
.grid-4  { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--ink-raise);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card-ico {
  width: 44px; height: 44px; border-radius: 11px;
  background: rgba(247,147,26,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.25rem;
}

/* --- custody model comparison ------------------------------------------ */
.model {
  background: var(--ink-raise);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 36px;
  display: flex; flex-direction: column;
}
.model.feature { border-color: rgba(247,147,26,0.42); }
.model-tag {
  align-self: flex-start;
  font-family: var(--f-head); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
  background: rgba(255,255,255,0.07); color: var(--muted);
}
.model.feature .model-tag { background: rgba(247,147,26,0.15); color: var(--orange); }
.model ul { list-style: none; padding: 0; margin: 20px 0 0; }
.model li {
  position: relative; padding-left: 28px; margin-bottom: 13px;
  font-size: 0.98rem; color: var(--muted);
}
.model li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); opacity: .75;
}
.model li b { color: var(--text); font-weight: 600; }

/* --- plans -------------------------------------------------------------- */
.plan {
  background: var(--ink-raise);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.plan-top { padding: 30px 30px 24px; border-bottom: 1px solid var(--line); }
.plan-top h3 { margin-bottom: 6px; }
.plan-for { font-size: 0.9rem; color: var(--muted-dim); margin: 0; }
.plan-body { padding: 26px 30px 30px; }
.plan-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: 0.95rem; }
.plan-row + .plan-row { border-top: 1px solid var(--line); }
.plan-row .k { color: var(--muted-dim); flex: none; }
.plan-row .v { color: var(--text); text-align: right; font-weight: 600; }
.sig {
  font-family: var(--f-head); font-weight: 800;
  color: var(--orange); font-size: 1.02rem;
}

/* --- timeline diagram (inline SVG wrapper) ------------------------------ */
.diagram {
  background: var(--ink-raise);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 34px;
  overflow-x: auto;
}
.diagram svg { min-width: 620px; width: 100%; height: auto; }
.diagram-note {
  margin: 18px 0 0; font-size: 0.87rem; color: var(--muted-dim); text-align: center;
}

/* --- steps -------------------------------------------------------------- */
.steps { counter-reset: s; display: grid; gap: 22px; }
.step {
  display: flex; gap: 22px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 28px; background: var(--ink-raise);
}
.step-n {
  counter-increment: s; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(247,147,26,0.13); color: var(--orange);
  font-family: var(--f-head); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step-n::before { content: counter(s); }
.step h3 { margin-bottom: 5px; }
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* --- screenshots -------------------------------------------------------- */
/* align-items:start so each figure is only as tall as its own content —
   otherwise the grid stretches shorter cards and leaves dead space under the caption. */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
.shot {
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: #101010;
}
.shot img { width: 100%; }
.shot figcaption {
  padding: 15px 20px; font-size: 0.9rem; color: var(--muted);
  border-top: 1px solid var(--line); background: var(--ink-raise);
}

/* --- trust / arcadiab --------------------------------------------------- */
.trust-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: center; }
.trust-list { list-style: none; padding: 0; margin: 26px 0 0; }
.trust-list li {
  position: relative; padding-left: 32px; margin-bottom: 17px; color: var(--muted);
}
.trust-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--orange); font-weight: 700;
}
.trust-list b { color: var(--text); font-weight: 600; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 6px 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0;
  font-family: var(--f-head); font-weight: 700; font-size: 1.06rem;
  position: relative; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%); color: var(--orange);
  font-size: 1.5rem; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); padding-right: 40px; margin: 0 0 20px; }

/* --- contact form ------------------------------------------------------- */
.form-shell {
  background: var(--ink-raise);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 40px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 0.87rem; font-weight: 600;
  color: var(--muted); margin-bottom: 8px; font-family: var(--f-head);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  background: var(--ink-deep);
  border: 1px solid var(--line-hi);
  border-radius: 9px;
  color: var(--text); font-family: var(--f-sans); font-size: 1rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-legal { font-size: 0.84rem; color: var(--muted-dim); margin: 18px 0 0; }
.hp { position: absolute; left: -9999px; }

/* --- footer ------------------------------------------------------------- */
.footer { background: var(--ink-deep); border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.footer img.f-logo { height: 32px; width: auto; margin-bottom: 18px; }
.footer p { color: var(--muted-dim); font-size: 0.94rem; }
.footer h4 {
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer li a { color: var(--muted-dim); font-size: 0.94rem; }
.footer li a:hover { color: var(--orange); }
.footer-bot {
  border-top: 1px solid var(--line); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 0.86rem; color: var(--muted-dim);
}

/* --- staging banner ----------------------------------------------------- */
.staging {
  background: var(--orange); color: #1A1206;
  text-align: center; padding: 9px 16px;
  font-size: 0.84rem; font-weight: 600; font-family: var(--f-head);
}

/* --- responsive --------------------------------------------------------- */
/* Collapse the nav to a hamburger before the menu can collide with the logo. */
@media (max-width: 1040px) {
  .nav-menu {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 13px 0; width: 100%; font-size: 1rem; }
  .nav-toggle { display: block; }
  /* menu is out of flow here — keep the CTA beside the hamburger, not stranded mid-bar */
  .nav-cta { margin-left: auto; }
}

/* Below this the logo + CTA + hamburger stop fitting on one line. */
@media (max-width: 620px) {
  .nav-cta { display: none; }
}

@media (max-width: 940px) {
  .trust-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  section { padding: 68px 0; }
  body { font-size: 16px; }
  .nav-menu {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }
  .grid-2, .grid-3, .grid-4, .stats, .shots, .field-2 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 68px; }
  .hero .lead { font-size: 1.12rem; }
  .btn { width: 100%; text-align: center; }
  .btn-row { flex-direction: column; }
  .form-shell, .model, .card, .diagram { padding: 26px 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .step { flex-direction: column; gap: 14px; }
}
