/* Shared styles for every page of ficuscapitalsecurities.com */
/* ---------- Tokens ---------- */
:root {
  --bg: #070807; --bg-2: #0e100e;
  --line: rgba(236, 229, 212, 0.1); --line-2: rgba(236, 229, 212, 0.18);
  --text: #ece5d4; --muted: rgba(236, 229, 212, 0.62); --faint: rgba(236, 229, 212, 0.4);
  --accent: #8fbf8a; --accent-soft: rgba(143, 191, 138, 0.09);
  --up: #6fcf7f; --down: #e5735c;
  --btn-bg: #f6f1e7; --btn-text: #0a0a0a;
  --header: rgba(7, 8, 7, 0.82); --ghost: rgba(236, 229, 212, 0.035);

  /* Layout system: one container, one 12-column grid, one spacing scale */
  --max: 1200px; --pad: 48px; --gap: 24px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
}
:root[data-theme="light"] {
  --bg: #f6f1e7; --bg-2: #eee8da;
  --line: rgba(20, 22, 18, 0.1); --line-2: rgba(20, 22, 18, 0.2);
  --text: #161814; --muted: rgba(22, 24, 20, 0.66); --faint: rgba(22, 24, 20, 0.45);
  --accent: #2f6b38; --accent-soft: rgba(47, 107, 56, 0.07);
  --up: #1f7a35; --down: #b2442c;
  --btn-bg: #161814; --btn-text: #f6f1e7;
  --header: rgba(246, 241, 231, 0.85); --ghost: rgba(22, 24, 20, 0.045);
}
@media (max-width: 1100px) { :root { --pad: 32px; } }
@media (max-width: 860px)  { :root { --pad: 20px; --gap: 16px; --s7: 64px; --s8: 88px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .4s, color .4s;
}
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.L { grid-column: 1 / 8; }          /* left column: always cols 1-7 */
.R { grid-column: 8 / 13; }         /* right column: always cols 8-12 */
.full { grid-column: 1 / -1; }

/* Type shared with Ficus Finance: Newsreader headings, Inter text and labels. Mono is kept for market data only. */
.serif { font-family: Newsreader, Georgia, serif; font-weight: 500; letter-spacing: -0.02em; }
.serif em { font-style: italic; color: var(--accent); }
.label {
  display: block; font-family: Inter, system-ui, sans-serif; font-size: 12px; font-weight: 700; line-height: 16px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3);
}
.h2 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.05; font-weight: 600; letter-spacing: -0.025em; }
.lede { color: var(--muted); font-size: 17px; line-height: 1.6; }

/* ---------- Live market tape ---------- */
.tape { position: relative; z-index: 60; display: flex; align-items: center; height: 36px; background: var(--bg); border-bottom: 1px solid var(--line); font-family: "JetBrains Mono", monospace; font-size: 11.5px; letter-spacing: 0.04em; }
.mkt { flex: none; display: flex; align-items: center; gap: var(--s1); height: 100%; padding: 0 var(--s2) 0 max(var(--pad), calc((100% - var(--max)) / 2)); border-right: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap; }
.mkt i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.mkt.live i { background: var(--up); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111,207,127,.6); } 70% { box-shadow: 0 0 0 7px rgba(111,207,127,0); } 100% { box-shadow: 0 0 0 0 rgba(111,207,127,0); } }
.tape-view { flex: 1; overflow: hidden; height: 100%; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.tape-track { display: inline-flex; align-items: center; height: 100%; white-space: nowrap; animation: tape var(--dur, 70s) linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.q { display: inline-flex; align-items: baseline; gap: 10px; padding: 0 22px; border-right: 1px solid var(--line); }
.q .n { color: var(--faint); }
.q .p { color: var(--text); }
.q .c.up { color: var(--up); } .q .c.down { color: var(--down); }
.q.flash .p { animation: flash 1s; }
@keyframes flash { 0% { color: var(--accent); } 100% { color: var(--text); } }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
header { position: sticky; top: 0; z-index: 50; background: var(--header); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 32px; height: 32px; flex: none; object-fit: contain; }
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }
.brand-name { font-family: Inter, system-ui, sans-serif; font-size: 19px; font-weight: 700; letter-spacing: 0.01em; line-height: 1; }
.brand-name small { display: block; font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: 0.24em; color: var(--faint); margin-top: 5px; text-transform: uppercase; }
.links { display: flex; align-items: center; gap: var(--s4); font-size: 14px; }
.links a { color: var(--muted); transition: color .2s; }
.links a:hover { color: var(--text); }
.pill { border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 16px; color: var(--text) !important; transition: background .2s, border-color .2s; }
.pill:hover { border-color: var(--accent); background: var(--accent-soft); }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: color .2s, border-color .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--accent); }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; opacity: .4; mask-image: radial-gradient(ellipse 80% 70% at 65% 45%, #000 25%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 65% 45%, #000 25%, transparent 80%); }
.ghost { position: absolute; top: var(--s3); left: 0; white-space: nowrap; pointer-events: none; font-family: "JetBrains Mono", monospace; font-weight: 500; font-size: clamp(80px, 10vw, 150px); line-height: 1; letter-spacing: 0.04em; color: var(--ghost); animation: tape 90s linear infinite; }
.hero .grid { position: relative; align-items: center; padding-top: var(--s8); padding-bottom: var(--s8); min-height: min(calc(100vh - 100px), 820px); }
.hero h1 { font-size: clamp(48px, 5.6vw, 84px); line-height: 1; margin-bottom: var(--s4); font-weight: 600; letter-spacing: -0.03em; }
.hero .lede { font-size: 18px; max-width: 34em; }
.badges { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s4); }
.badge { font-family: "JetBrains Mono", monospace; font-size: 11px; line-height: 16px; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 6px 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s5); }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 500; background: var(--btn-bg); color: var(--btn-text); border: 1px solid var(--btn-bg); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -12px var(--accent); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn.alt { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.alt:hover { border-color: var(--accent); box-shadow: none; }

.console { background: color-mix(in srgb, var(--bg-2) 90%, transparent); border: 1px solid var(--line-2); border-radius: 18px; padding: var(--s4); backdrop-filter: blur(6px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.console-head { display: flex; justify-content: space-between; align-items: baseline; }
.console-head h3 { font-family: Newsreader, serif; font-weight: 600; font-size: 23px; line-height: 1.2; }
.console-head .label { margin: 0; font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 400; letter-spacing: 0.16em; }
.console-note { font-size: 13px; color: var(--faint); margin: var(--s1) 0 var(--s3); }
.checks { list-style: none; border-top: 1px solid var(--line); }
.checks li { display: flex; justify-content: space-between; align-items: center; height: 48px; border-bottom: 1px solid var(--line); font-size: 14px; opacity: .25; transition: opacity .5s; }
.checks li.on { opacity: 1; }
.checks .st { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--faint); }
.checks li.on .st { color: var(--accent); }
.console-foot { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s3); }
.gate { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.12em; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--faint); transition: all .4s; }
.gate.go { color: var(--btn-text); background: var(--accent); border-color: var(--accent); }
.spark { width: 112px; height: 32px; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 3s ease forwards .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Sections ---------- */
section { padding: var(--s8) 0; border-bottom: 1px solid var(--line); }
.head { align-items: end; margin-bottom: var(--s6); }
.head .lede { padding-bottom: 6px; }

.big { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.25; font-weight: 400; }
.body p + p { margin-top: var(--s3); }

.stats { margin-top: var(--s7); row-gap: var(--s4); }
.stat { grid-column: span 3; border-top: 1px solid var(--line-2); padding-top: var(--s3); }
.stat .v { font-family: Newsreader, serif; font-weight: 500; font-size: 60px; line-height: 1; letter-spacing: -0.03em; }
.stat .v em { font-style: italic; color: var(--accent); }
.stat .k { color: var(--faint); font-size: 14px; margin-top: var(--s2); }

.cards { row-gap: var(--gap); }
.card { grid-column: span 4; position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: var(--s4); min-height: 280px; display: flex; flex-direction: column; transition: border-color .3s, transform .3s; }
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card .n { font-family: "JetBrains Mono", monospace; font-size: 12px; line-height: 24px; color: var(--faint); letter-spacing: 0.1em; }
.card .ico { position: absolute; top: var(--s4); right: var(--s4); width: 24px; height: 24px; color: var(--accent); }
.card h3 { font-family: Newsreader, serif; font-weight: 600; font-size: 27px; line-height: 1.2; letter-spacing: -0.01em; margin: auto 0 var(--s1); }
.card p { color: var(--muted); font-size: 15px; min-height: 4.8em; }  /* 3 lines, so headings line up across cards */

.statement { text-align: center; padding: calc(var(--s8) * 1.25) 0; }
.statement .label { margin-bottom: var(--s4); }
.statement h2 { font-size: clamp(40px, 5.4vw, 80px); line-height: 1.05; max-width: 15em; margin: 0 auto; }
.statement .word { display: inline-block; opacity: .15; transition: opacity .6s; }
.statement .word.lit { opacity: 1; }

.role { align-items: center; padding: var(--s4) 0; border-top: 1px solid var(--line); transition: background .3s; }
.role:last-child { border-bottom: 1px solid var(--line); }
.role:hover { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.role h3 { grid-column: 1 / 8; font-family: Newsreader, serif; font-weight: 600; font-size: 31px; line-height: 1.2; letter-spacing: -0.01em; transition: transform .3s; }
.role:hover h3 { transform: translateX(8px); }
.role .meta { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.role .m1 { grid-column: 8 / 11; }
.role .m2 { grid-column: 11 / 12; }
.role .arrow { grid-column: 12 / 13; justify-self: end; color: var(--accent); font-size: 20px; transition: transform .3s; }
.role:hover .arrow { transform: translateX(4px); }

.group { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px; padding: var(--s6) 0; }
.group .L { padding-left: var(--s6); }
.group .R { padding-right: var(--s6); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s4); }
.group .h2 { margin-bottom: var(--s3); }
.offer { display: flex; flex-wrap: wrap; gap: var(--s1); }
.offer span { border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--muted); }

.contact { align-items: end; }
.contact .h2 { font-size: clamp(44px, 5vw, 76px); }
.clist a, .clist div { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); font-size: 16px; }
.clist > :last-child { border-bottom: 1px solid var(--line); }
.clist .k { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); line-height: 24px; }
.clist .v { text-align: right; transition: color .2s; }
.clist a:hover .v { color: var(--accent); }

footer { padding: var(--s7) 0 var(--s5); font-size: 14px; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.foot-links h4 { font-family: Inter, system-ui, sans-serif; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: var(--s2); }
.foot-links ul { list-style: none; }
.foot-links li { margin-bottom: 10px; color: var(--muted); }
.foot-links li a:hover { color: var(--text); }
.wordmark { font-family: Newsreader, serif; font-weight: 500; font-size: min(calc((100vw - var(--pad) * 2) / 6.3), 190px); line-height: 1; letter-spacing: -0.045em; margin: var(--s7) 0 var(--s5); color: var(--ghost); -webkit-text-stroke: 1px var(--line-2); white-space: nowrap; }
.legal { border-top: 1px solid var(--line); padding-top: var(--s3); color: var(--faint); font-size: 12.5px; line-height: 1.6; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero .L, .hero .R { grid-column: 1 / -1; }
  .hero .R { margin-top: var(--s6); max-width: 560px; }
  .hero .grid { min-height: 0; }
  .card { grid-column: span 6; }
  .stat { grid-column: span 6; }
  .role .m2 { display: none; }
  .role .m1 { grid-column: 8 / 12; }
}
@media (max-width: 860px) {
  .L, .R, .role h3 { grid-column: 1 / -1; }
  .head .R, .about .R, .contact .R, .foot .R { margin-top: var(--s4); }
  .links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s1) var(--pad) var(--s3); }
  .links.open { display: flex; }
  .links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .links .pill { border-radius: 999px; text-align: center; margin-top: var(--s2); padding: 12px; }
  .links .icon-btn { margin-top: var(--s2); }
  .menu-btn { display: grid; }
  .brand-name small { display: none; }
  .hero .grid { padding-top: var(--s7); padding-bottom: var(--s7); }
  .hero h1 { font-size: clamp(44px, 12vw, 60px); }
  .card { grid-column: 1 / -1; min-height: 220px; }
  .stat .v { font-size: 44px; }
  .role { grid-template-columns: 1fr auto; padding: var(--s3) 0; }
  .role h3 { grid-column: 1; font-size: 24px; }
  .role .meta { display: none; }
  .role .arrow { grid-column: 2; }
  .group { padding: var(--s5) 0; }
  .group .L, .group .R { padding: 0 var(--s3); }
  .group .R { margin-top: var(--s4); }
  .clist a, .clist div { flex-direction: column; gap: 2px; }
  .clist .v { text-align: left; }
  .mkt span { display: none; }
  .mkt { padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .statement .word, .checks li { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- How we work (process steps) ---------- */
.steps { list-style: none; row-gap: var(--s5); }
.step { grid-column: span 3; position: relative; border-top: 1px solid var(--line-2); padding-top: var(--s3); }
.step::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.step .n { font-family: "JetBrains Mono", monospace; font-size: 12px; line-height: 24px; color: var(--faint); letter-spacing: 0.1em; }
.step h3 { font-family: Newsreader, serif; font-weight: 600; font-size: 27px; line-height: 1.2; letter-spacing: -0.01em; margin: var(--s2) 0 var(--s1); }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Fraud alert ---------- */
.notice-sec { padding: var(--s6) 0; }
.notice { align-items: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px; padding: var(--s5) 0; }
.notice .L { padding-left: var(--s5); }
.notice .R { padding-right: var(--s5); color: var(--muted); font-size: 15px; }
.notice .label { display: flex; align-items: center; gap: 10px; color: var(--accent); margin-bottom: var(--s2); }
.notice .label svg { width: 16px; height: 16px; flex: none; }
.notice h2 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.15; font-weight: 600; }
.notice a { color: var(--text); border-bottom: 1px solid var(--accent); }

/* ---------- Careers page ---------- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding: var(--s8) 0 var(--s7); }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; opacity: .4; mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%); }
.page-hero .grid { position: relative; align-items: end; }
.page-hero h1 { font-size: clamp(48px, 5.6vw, 84px); line-height: 1; margin-bottom: var(--s4); font-weight: 600; letter-spacing: -0.03em; }
.page-hero .lede { font-size: 18px; max-width: 34em; }
.links a.on { color: var(--text); }
.card.q4 { grid-column: span 3; min-height: 260px; }
.job { padding: var(--s6) 0; border-top: 1px solid var(--line); scroll-margin-top: 88px; row-gap: var(--s4); }
.job:last-child { border-bottom: 1px solid var(--line); }
.job:target { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.job h3 { font-family: Newsreader, serif; font-weight: 600; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.job .summary { color: var(--muted); margin-top: var(--s2); max-width: 36em; }
.job .side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.job .meta { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.job h4 { font-family: Inter, system-ui, sans-serif; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: var(--s2); }
.ticks { list-style: none; }
.ticks li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15px; }
.ticks li + li { margin-top: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 10px; height: 1px; background: var(--accent); }

@media (max-width: 1100px) {
  .step, .card.q4 { grid-column: span 6; }
}
@media (max-width: 860px) {
  .step, .card.q4 { grid-column: 1 / -1; }
  .card.q4 { min-height: 200px; }
  .notice { padding: var(--s4) 0; }
  .notice .L, .notice .R { padding: 0 var(--s3); }
  .notice .R { margin-top: var(--s3); }
  .page-hero { padding: var(--s7) 0 var(--s6); }
  .page-hero h1 { font-size: clamp(44px, 12vw, 60px); }
  .page-hero .R { margin-top: var(--s4); }
  .job { padding: var(--s5) 0; }
}
.ticks + h4 { margin-top: var(--s4); }
