/* B-USA JOINT STOCK COMPANY — styles */
:root {
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-700: #13365f;
  --navy-500: #35577f;
  --blue: #1f6feb;
  --amber: #f5a524;
  --amber-dark: #c77d00;
  --paper: #f6f8fb;
  --paper-2: #eaeff6;
  --white: #ffffff;
  --ink: #14233b;
  --muted: #566783;
  --line: #d5deeb;
  --danger: #c62828;
  --ok: #1b7f4b;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 6px;
  --shadow: 0 18px 40px -18px rgba(11, 37, 69, 0.35);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease; }
a:hover { color: var(--navy-800); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-800);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--amber); color: var(--navy-900); padding: 10px 16px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-dark); margin-bottom: 16px; font-weight: 500;
}
.eyebrow::before { content: ""; width: 36px; height: 2px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius); border: 2px solid transparent;
  font: 700 1rem/1 var(--font-body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--amber); color: var(--navy-900); box-shadow: 0 10px 24px -10px rgba(245,165,36,.8); }
.btn-primary:hover { background: #ffb73d; color: var(--navy-900); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy-800); border-color: var(--white); }
.btn-dark { background: var(--navy-800); color: var(--white); }
.btn-dark:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(7, 26, 51, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; letter-spacing: .02em; }
.brand-name span { color: var(--amber); }
.brand-sub { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.brand:hover { color: var(--white); }

.nav-toggle {
  display: none; width: 46px; height: 46px; background: transparent; border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius); cursor: pointer; position: relative; color: var(--white);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { left: 0; right: 0; top: -7px; }
.nav-toggle span::after { left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav a {
  display: block; padding: 10px 14px; color: rgba(255,255,255,.82); text-decoration: none; font-weight: 600; font-size: .98rem;
  position: relative; transition: color .2s ease;
}
.site-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"], .site-nav a.active { color: var(--white); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after, .site-nav a.active::after { transform: scaleX(1); }
.site-nav .nav-cta { background: var(--amber); color: var(--navy-900); border-radius: var(--radius); margin-left: 8px; }
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: #ffb73d; color: var(--navy-900); }

@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--navy-900);
    border-bottom: 1px solid rgba(255,255,255,.1); max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .35s ease, visibility .35s;
  }
  .site-nav.open { max-height: 480px; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 24px; gap: 0; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { margin: 16px 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--navy-900); color: var(--white); overflow: hidden;
  padding: 88px 0 180px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 70px));
  background-image:
    radial-gradient(900px 500px at 85% 10%, rgba(31,111,235,.45), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(245,165,36,.18), transparent 60%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
}
.hero-ghost {
  position: absolute; right: -2%; bottom: 40px; font-family: var(--font-head); font-weight: 900;
  font-size: clamp(9rem, 28vw, 24rem); line-height: .8; letter-spacing: -.04em; color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.1); user-select: none; pointer-events: none; white-space: nowrap;
}
.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--amber); font-weight: 700; }
.hero .eyebrow { color: var(--amber); }
.hero-lead { font-size: 1.2rem; color: rgba(255,255,255,.8); max-width: 56ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.id-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
  padding: 28px; backdrop-filter: blur(6px); box-shadow: var(--shadow); max-width: 460px;
  position: relative;
}
.id-card::before {
  content: ""; position: absolute; top: -1px; left: 28px; width: 64px; height: 4px; background: var(--amber);
}
.id-card h2 { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 500; margin-bottom: 18px; }
.id-card dl { margin: 0; }
.id-card dt { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--amber); margin-top: 16px; }
.id-card dd { margin: 4px 0 0; color: var(--white); font-weight: 600; font-size: 1.02rem; overflow-wrap: anywhere; }
.id-card dd a { color: var(--white); text-decoration-color: rgba(255,255,255,.4); }
.id-card dd a:hover { color: var(--amber); }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.25fr .75fr; }
  .hero { padding: 120px 0 200px; }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* About */
.about { margin-top: -70px; padding-top: 140px; }
.about-grid { display: grid; gap: 48px; }
.about-copy p { font-size: 1.1rem; color: #2a3b57; }
.about-copy p:first-of-type::first-letter {
  font-family: var(--font-head); font-weight: 800; float: left; font-size: 4.2rem; line-height: .85;
  padding: 6px 12px 0 0; color: var(--navy-800);
}
.pillars { display: grid; gap: 16px; align-content: start; }
.pillar {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--amber);
  border-radius: var(--radius); padding: 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.pillar-num { font-family: var(--font-mono); font-size: 1.6rem; color: var(--blue); font-weight: 500; }
.pillar h3 { margin-bottom: 4px; font-size: 1.2rem; }
.pillar p { margin: 0; color: var(--muted); font-size: .98rem; }

@media (min-width: 1024px) { .about-grid { grid-template-columns: 1.05fr .95fr; gap: 80px; } }

/* Values */
.values { background: var(--paper-2); }
.values-grid { display: grid; gap: 22px; }
.value-card {
  position: relative; background: var(--white); border-radius: 10px; padding: 34px 28px 30px;
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.value-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--amber));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.value-card:hover::after { transform: scaleX(1); }
.value-icon {
  width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--navy-800); color: var(--amber);
}
.value-icon svg { width: 30px; height: 30px; }
.value-card:nth-child(even) .value-icon { background: var(--blue); color: var(--white); }
.value-card p { color: var(--muted); margin: 0; }

@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }

/* Approach strip */
.approach { background: var(--navy-800); color: var(--white); padding: 90px 0; position: relative; overflow: hidden; }
.approach::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -200px;
  border: 70px solid rgba(245,165,36,.12);
}
.approach h2 { color: var(--white); }
.approach .eyebrow { color: var(--amber); }
.steps { list-style: none; counter-reset: step; margin: 48px 0 0; padding: 0; display: grid; gap: 28px; position: relative; }
.steps li { counter-increment: step; position: relative; padding-top: 22px; border-top: 2px solid rgba(255,255,255,.18); }
.steps li::before {
  content: "0" counter(step); font-family: var(--font-mono); font-size: .9rem; color: var(--amber); letter-spacing: .1em;
  position: absolute; top: -13px; left: 0; background: var(--navy-800); padding-right: 12px;
}
.steps h3 { color: var(--white); font-size: 1.2rem; margin-top: 6px; }
.steps p { color: rgba(255,255,255,.72); margin: 0; font-size: .98rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 36px; } }

/* Company details */
.details-wrap { display: grid; gap: 48px; align-items: start; }
.registry {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow);
}
.registry-top {
  background: var(--navy-800); color: var(--white); padding: 18px 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
}
.registry-top span:last-child { color: var(--amber); }
.registry dl { margin: 0; }
.registry .row { display: grid; gap: 4px; padding: 20px 28px; border-bottom: 1px solid var(--line); }
.registry .row:last-child { border-bottom: 0; }
.registry dt { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.registry dd { margin: 0; font-weight: 600; font-size: 1.1rem; color: var(--navy-800); overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .registry .row { grid-template-columns: 200px 1fr; gap: 24px; align-items: baseline; }
}
@media (min-width: 1024px) { .details-wrap { grid-template-columns: .8fr 1.2fr; gap: 80px; } }

/* Contact */
.contact { background: var(--navy-900); color: var(--white); clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%); padding-top: 160px; }
.contact h2 { color: var(--white); }
.contact .eyebrow { color: var(--amber); }
.contact .section-head p { color: rgba(255,255,255,.72); }
.contact-grid { display: grid; gap: 40px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; align-content: start; }
.contact-item {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; padding: 20px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.04);
  transition: background .25s ease, border-color .25s ease;
}
.contact-item:hover { background: rgba(255,255,255,.09); border-color: var(--amber); }
.contact-item .ic { width: 52px; height: 52px; border-radius: 12px; background: var(--amber); color: var(--navy-900); display: grid; place-items: center; }
.contact-item .ic svg { width: 26px; height: 26px; }
.contact-item small { display: block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.contact-item strong, .contact-item a { font-size: 1.08rem; font-weight: 600; color: var(--white); overflow-wrap: anywhere; text-decoration: none; }
.contact-item a:hover { color: var(--amber); }

.form-card { background: var(--white); color: var(--ink); border-radius: 12px; padding: 32px 28px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.form-card h3 { margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: .98rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--navy-800); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(31,111,235,.15); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field .error { display: none; color: var(--danger); font-size: .85rem; margin-top: 5px; font-weight: 600; }
.field.invalid .error { display: block; }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 14px; font-weight: 600; color: var(--ok); min-height: 1.4em; }
.form-card .btn { width: 100%; }

@media (min-width: 1024px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } .form-card { padding: 40px; } }

/* ---------- Footer ---------- */
.site-footer { background: #040f20; color: rgba(255,255,255,.7); padding: 64px 0 28px; font-size: .96rem; }
.footer-grid { display: grid; gap: 36px; margin-bottom: 40px; }
.site-footer h4 { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); font-weight: 500; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; display: grid; gap: 8px; }
.footer-brand p { max-width: 36ch; margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .88rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }

/* ---------- Legal page ---------- */
.legal-hero { background: var(--navy-900); color: var(--white); padding: 72px 0 100px; position: relative; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 40px)); }
.legal-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent);
}
.legal-hero .container { position: relative; }
.legal-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 14px; }
.legal-hero .eyebrow { color: var(--amber); }
.legal-hero p { color: rgba(255,255,255,.75); max-width: 60ch; margin: 0; }
.legal-meta { display: inline-block; margin-top: 22px; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: var(--amber); }

.legal-layout { display: grid; gap: 40px; padding: 40px 0 100px; margin-top: -30px; position: relative; }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px; align-self: start; }
.toc h2 { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.toc ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: .95rem; }
.toc a { text-decoration: none; color: var(--navy-700); }
.toc a:hover { color: var(--blue); text-decoration: underline; }
.legal-body { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 32px 24px; box-shadow: var(--shadow); min-width: 0; }
.legal-body section { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-body section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.legal-body h2 { font-size: 1.55rem; display: flex; gap: 14px; align-items: baseline; }
.legal-body h2 .n { font-family: var(--font-mono); font-size: .95rem; color: var(--amber-dark); font-weight: 500; }
.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body address { font-style: normal; background: var(--paper); border-left: 4px solid var(--amber); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; line-height: 1.8; }
.legal-body p, .legal-body li { overflow-wrap: anywhere; }

@media (min-width: 768px) { .legal-body { padding: 48px; } }
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 280px 1fr; gap: 48px; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero .eyebrow, .hero h1, .hero-lead, .hero-actions, .id-card { animation: rise .8s ease both; }
.hero h1 { animation-delay: .1s; }
.hero-lead { animation-delay: .2s; }
.hero-actions { animation-delay: .3s; }
.id-card { animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
