/* Zetapatrimencia — dark neon-blue fintech theme. Hand-written, no framework. */

:root {
  --bg: #070c18;
  --bg-2: #0a1120;
  --surface: #0e1626;
  --surface-2: #131e33;
  --border: #1f3050;
  --text: #eaf1ff;
  --text-muted: #93a3c2;
  --accent: #2f8dff;
  --accent-hover: #529cff;
  --accent-tint: rgba(47, 141, 255, 0.14);
  --accent-2: #26e0d6;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(3, 8, 20, .5), 0 1px 4px rgba(47, 141, 255, .06);
  --shadow-md: 0 4px 16px rgba(3, 8, 20, .55), 0 12px 32px rgba(47, 141, 255, .10);
  --shadow-lg: 0 12px 40px rgba(3, 8, 20, .65), 0 20px 60px rgba(47, 141, 255, .16);
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); max-width: 20ch; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--text-muted); }
ul, ol { padding-left: 1.2em; color: var(--text-muted); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: #04121c;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s cubic-bezier(.2,.6,.2,1), box-shadow .18s, background .18s, border-color .18s;
}
.btn--primary { background: var(--accent); color: #04121c; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--secondary { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--secondary:hover { background: var(--accent-tint); transform: translateY(-1px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(7,12,24,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); transition: box-shadow .2s, background .2s; }
body.calc-modal-open .site-header { z-index: 1; }
body.calc-modal-open [data-reveal] { transform: none !important; }
.site-header.is-scrolled { box-shadow: var(--shadow-md); background: rgba(7,12,24,.96); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; }
.main-nav { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: flex-end; }
.main-nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav__item { position: relative; }
.main-nav__trigger {
  background: none; border: none; color: var(--text); font: inherit; font-weight: 500;
  display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer;
}
.main-nav__trigger:hover, .main-nav__trigger[aria-expanded="true"] { background: var(--accent-tint); color: var(--accent); }
.icon-caret { width: 16px; height: 16px; transition: transform .15s; }
.main-nav__trigger[aria-expanded="true"] .icon-caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(4px); transition: opacity .16s, transform .16s, visibility .16s;
  z-index: 50;
}
.main-nav__item:last-child .dropdown { left: auto; right: 0; }
.main-nav__item.is-open .dropdown,
.main-nav__item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__item { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: .92rem; }
.dropdown__item:hover, .dropdown__item:focus-visible { background: var(--accent-tint); color: var(--accent); }

.mobile-nav-trigger { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--text); cursor: pointer; }
.mobile-nav-trigger .icon-close { display: none; }
.mobile-nav-trigger[aria-expanded="true"] .icon-open { display: none; }
.mobile-nav-trigger[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav { background: var(--bg-2); border-bottom: 1px solid var(--border); }
.mobile-nav__inner { padding-block: 12px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav__group summary { cursor: pointer; padding: 12px 4px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mobile-nav__group summary::-webkit-details-marker { display: none; }
.mobile-nav__group summary .icon-caret { flex-shrink: 0; transition: transform .18s; }
.mobile-nav__group[open] summary .icon-caret { transform: rotate(180deg); }
.mobile-nav__links { display: flex; flex-direction: column; padding: 0 4px 12px 12px; gap: 8px; }
.mobile-nav__links a { color: var(--text-muted); }
.mobile-nav__cta { margin-top: 8px; width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 64px 56px; overflow: hidden; }
.hero--inner { padding-block: 56px 48px; }
.hero--compact { padding-block: 48px 32px; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,9,20,.72), rgba(5,9,20,.92)),
    url('../images/z-ar-bg-wall.webp') center / cover no-repeat;
}
.hero__canvas-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.hero__inner--home {
  grid-template-columns: 1.15fr .85fr;
  grid-template-areas: "title form" "copy form";
}
.hero__inner--home .hero__title { grid-area: title; margin-bottom: 0; }
.hero__inner--home .hero__form-card { grid-area: form; }
.hero__inner--home .hero__copy { grid-area: copy; }
@media (max-width: 900px) {
  .hero__inner--home {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "form" "copy";
  }
}
.hero__inner--form-only { grid-template-columns: 1fr 1fr; align-items: center; }
.hero__lead { font-size: 1.06rem; max-width: 58ch; }
.hero__offices { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0; font-size: .9rem; }
.hero__offices-label { color: var(--text-muted); }
.hero__flags { display: flex; flex-wrap: wrap; gap: 8px; }
.flag-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: .85rem; }
.flag { width: 20px; height: 14px; border-radius: 2px; display: inline-block; object-fit: cover; }
.hero__trust-icons { display: flex; gap: 20px; flex-wrap: wrap; }
.trust-icon { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 500; color: var(--text); }
.hero__bullets { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; color: var(--text-muted); }
.hero__bullets li { display: flex; align-items: center; gap: 8px; }

.hero__form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; }
.hero__form-title { font-size: 1.05rem; margin-bottom: 16px; }
.hero__form-note { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--text-muted); margin-top: 14px; }

.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--accent-tint); color: var(--accent); margin-bottom: 14px; flex-shrink: 0; }
.icon-badge .icon { width: 24px; height: 24px; }
.icon-sm { width: 16px; height: 16px; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: 64px; }
.section--alt { background: var(--bg-2); }
.section__lead { max-width: 62ch; margin-bottom: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--accent); font-weight: 700; margin-bottom: 10px; }

.section__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.section__bg--grid { background-image: radial-gradient(circle at 18% 20%, rgba(47,141,255,.16), transparent 55%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M40 0H0V40' fill='none' stroke='%231f3050' stroke-width='1' opacity='0.4'/%3E%3C/svg%3E"); }
.section__bg--dots { background-image: radial-gradient(circle at 82% 12%, rgba(38,224,214,.14), transparent 50%), radial-gradient(rgba(47,141,255,.28) 1px, transparent 1px); background-size: auto, 22px 22px; }
.section > .container, .hero__inner { position: relative; z-index: 1; }

/* exchange row */
.section--exchanges { padding-block: 32px; }
.exchange-row { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.exchange-logo { height: 32px; width: auto; opacity: .85; filter: grayscale(.1); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 26px; transition: transform .18s cubic-bezier(.2,.6,.2,1), box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(47,141,255,.4); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card--lg { grid-column: span 2; }

.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 24px; }
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card-grid--asymmetric { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (min-width: 860px) {
  .card-grid--asymmetric { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-weight: 700; font-size: .9rem; margin-bottom: 12px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
.small-table { min-width: 380px; }
thead th { background: var(--surface-2); text-align: left; padding: 14px 16px; font-family: var(--font-display); font-size: .85rem; color: var(--text); white-space: nowrap; }
tbody td, tbody th { padding: 14px 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .92rem; text-align: left; }
tbody th { color: var(--text); font-weight: 600; white-space: nowrap; }
.compare-table td.yes { color: var(--accent-2); text-align: center; }
.compare-table td.no { color: #ff4d5e; text-align: center; }
.compare-table .icon { width: 20px; height: 20px; }
.table-note { font-size: .85rem; color: var(--text-muted); }
.data-table tr:hover td { background: rgba(47,141,255,.04); }

/* ---------- Docs ---------- */
.doc-columns { display: grid; gap: 28px; }
.doc-block { padding-bottom: 8px; }
.doc-block h2 { display: flex; align-items: center; gap: 12px; }
.doc-cards .doc-card { display: block; }
.checklist, .numbered-list, .related-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-muted); }
.numbered-list { counter-reset: item; }
.numbered-list li { counter-increment: item; padding-left: 30px; position: relative; color: var(--text-muted); }
.numbered-list li::before { content: counter(item); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-size: .75rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.related-links a { display: flex; gap: 8px; align-items: center; color: var(--accent); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 4px 20px; }
.faq-item summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding-bottom: 16px; margin: 0; }
.faq-categories { display: grid; gap: 32px; }

/* ---------- Reviews ---------- */
.review-grid { margin-bottom: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (min-width: 860px) {
  .review-grid { grid-template-columns: repeat(3, 1fr); }
}
.review-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-card__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-tint); }
.review-card__photo--fallback { width: 56px; height: 56px; margin-bottom: 0; flex-shrink: 0; background: var(--accent-tint); }
.review-card__photo--fallback .icon { width: 26px; height: 26px; }
.review-card__name { font-weight: 600; margin: 0; color: var(--text); }
.review-card__job { margin: 0; font-size: .82rem; color: var(--text-muted); }
.review-card__amount { font-size: .85rem; color: var(--accent-2); font-weight: 600; }
.review-disclaimer { font-size: .82rem; color: var(--text-muted); }

/* ---------- Company block / footer cards ---------- */
.company-block { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: start; }
.company-facts { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.company-facts li { display: flex; gap: 8px; align-items: center; color: var(--text-muted); font-size: .92rem; }
.company-block__links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.icon-link-card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; font-weight: 600; transition: border-color .18s, transform .18s; }
.icon-link-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.icon-link-card .icon-badge { margin-bottom: 0; }

/* ---------- CTA cards / forms ---------- */
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-block-wide { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: center; }
.section--pre-faq { overflow: hidden; }
.pre-faq__bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 82%); -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 82%); }
.form-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); }
.form-block__intro { font-size: .92rem; }
.form-legal { font-size: .78rem; color: var(--text-muted); margin-top: 12px; margin-bottom: 0; }
.form-legal a { color: var(--accent); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 18px; border-left: 2px solid var(--border); margin-left: 6px; }
.timeline__item { padding-left: 22px; position: relative; }
.timeline__item::before { content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline__year { font-family: var(--font-display); color: var(--accent); font-weight: 700; }

/* ---------- Contact / map ---------- */
.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 8px; }
.map-address { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 8px; }
.map-embed { border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; max-width: 100%; aspect-ratio: 16 / 9; min-height: 320px; margin-bottom: 24px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Careers ---------- */
.job-list { display: flex; flex-direction: column; gap: 16px; }
.job-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ---------- Articles ---------- */
.article-list { display: flex; flex-direction: column; gap: 28px; }

/* ---------- Data table plans ---------- */
.plans-table th, .plans-table td { text-align: center; }
.plans-table th:first-child, .plans-table td:first-child { text-align: left; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { border-bottom: 1px solid var(--border); background: var(--bg-2); }
.breadcrumbs__inner { display: flex; gap: 8px; align-items: center; padding-block: 14px; font-size: .85rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-block: 56px 0; }
.site-footer__inner { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; padding-bottom: 40px; }
.site-footer__brand p { max-width: 32ch; font-size: .88rem; }
.site-footer h3 { font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--text-muted); font-size: .88rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer__contact li { display: flex; gap: 8px; align-items: center; }
.site-footer__disclaimer { border-top: 1px solid var(--border); padding-block: 24px; }
.site-footer__disclaimer h4 { font-size: .85rem; color: var(--text); margin-bottom: 8px; }
.site-footer__disclaimer p { font-size: .78rem; color: var(--text-muted); max-width: 90ch; margin: 0; }
.site-footer__bottom { border-top: 1px solid var(--border); padding-block: 18px; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--text-muted); }

.text-muted { color: var(--text-muted); }

/* ---------- Calculator container hook ---------- */
.section--calc { padding-block: 72px; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner, .hero__inner--form-only, .form-block-wide, .company-block { grid-template-columns: 1fr; }
  .main-nav__list, .main-nav .main-nav__cta { display: none; }
  .mobile-nav-trigger { display: inline-flex; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .card--lg { grid-column: span 1; }
  .company-block__links { grid-template-columns: 1fr 1fr; }
  .exchange-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; justify-items: start; }
  .exchange-logo { height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .hero__canvas { display: none; }
}
