/* ArfxSignals homepage (index.html). The member page keeps using style.css. */
:root {
  --paper: #FAF8F3;
  --card: #FFFFFF;
  --soft: #FDFBF6;
  --sand: #F2ECDF;
  --ink: #14181F;
  --muted: #4B5260;
  --muted2: #6B6457;
  --rule: #E2DACB;
  --rule2: #EFE9DC;
  --gold: #B8872A;
  --gold-text: #86621A;
  --gold-faint: #D8C9A6;
  --pos: #1E7A4C;
  --pos-text: #1E5C3A;
  --pos-bg: #E3F1E8;
  --neg: #B3261E;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; overflow-x: clip; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-text); }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.em { font-style: italic; color: var(--gold-text); }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -.01em; }
.lede { color: var(--muted); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 6px; font: 600 15px/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; border: 1px solid var(--ink); background: var(--ink); color: #F7F2E7; transition: background .15s, color .15s; }
.btn:hover { background: #000; color: #fff; }
.btn.line { background: transparent; border-color: var(--gold); color: var(--gold-text); }
.btn.line:hover { background: var(--sand); color: var(--ink); }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: wait; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(250,248,243,.96); backdrop-filter: blur(6px); border-bottom: 3px double var(--gold); }
.top .wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 40px; width: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .01em; }
.brand-tag { white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--ink); }

/* logo hero */
.crest { padding: 72px 0 8px; }
.crest .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.divider { display: flex; align-items: center; gap: 12px; }
.divider span { width: 80px; height: 1px; background: var(--gold); }
.divider i { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }

/* main hero */
.hero { padding: 48px 0 80px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.2vw, 66px); line-height: 1.04; letter-spacing: -.02em; }
.hero .lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 540px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* trade card */
.tcard { flex: 1 1 440px; min-width: 0; background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: 12px; box-shadow: 0 18px 40px rgba(20,24,31,.08); overflow: hidden; }
.tcard-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--rule2); }
.sym { font-family: var(--mono); font-size: 14px; }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--pos-bg); color: var(--pos-text); font-size: 12px; font-weight: 600; }
.tcard svg { display: block; width: 100%; height: auto; }
.status { border-top: 1px solid var(--rule2); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--soft); }
.status-k { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted2); }
.srow { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.srow > span:first-child { display: flex; align-items: center; gap: 8px; }
.srow b { color: var(--pos-text); font-weight: 600; }
.num { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--gold); display: inline-flex; align-items: center; justify-content: center; font: 500 11px/1 var(--mono); color: var(--gold-text); }
.num.on { background: var(--gold); color: #fff; }

/* trust strip */
.strip { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.strip .wrap > div { padding: 26px 20px 26px 0; display: flex; flex-direction: column; gap: 2px; }
.strip .t { font-family: var(--serif); font-size: 21px; }
.strip .d { font-size: 14px; color: var(--muted); }

/* sections */
.sec { padding: 96px 0; }
.sec.white { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sec .wrap { display: flex; flex-direction: column; gap: 40px; }
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.split { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-end; justify-content: space-between; }
.split > div { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split > p { flex: 1 1 340px; min-width: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card .roman { font-family: var(--serif); font-size: 30px; color: var(--gold-faint); }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; }
.card p, .feat p { font-size: 15px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border-top: 1px solid var(--ink); }
.steps > div { padding: 24px 24px 8px 0; display: flex; flex-direction: column; gap: 8px; }
.steps .k { font: 500 13px/1.4 var(--mono); color: var(--gold-text); }
.steps b { font-size: 17px; }
.steps span:last-child { font-size: 15px; color: var(--muted); }

.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.feat { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.feat b { font-size: 17px; }

.promise { padding: 88px 0; border-top: 1px solid var(--rule); }
.promise .wrap { max-width: 900px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.promise .big { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); line-height: 1.2; }
.promise .lede { max-width: 600px; }

/* login */
.login { background: var(--sand); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.login .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.login-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.login-copy h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; }
.login-form { flex: 1 1 360px; min-width: 0; background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.login-form label { font-size: 13px; font-weight: 600; color: var(--muted); }
.login-form input { min-height: 52px; padding: 0 14px; border: 1.5px solid #CFC5B0; border-radius: 6px; background: var(--soft); font: 500 17px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); width: 100%; }
.login-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,135,42,.18); }
.login-form .btn { width: 100%; }
.err { color: var(--neg); font-size: 14px; min-height: 20px; }
.hint { font-size: 13px; color: var(--muted2); }

/* risk + footer */
.risk { padding: 36px 0; }
.risk p { font-size: 13px; color: #5A574F; max-width: 900px; }
.risk b { color: var(--ink); }
footer { background: var(--ink); color: #C9CDD4; font-size: 13px; }
footer .wrap { padding-top: 36px; padding-bottom: 36px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .fb { display: flex; align-items: center; gap: 10px; }
footer img { height: 24px; width: auto; }
footer a { color: #E6C987; }
footer a:hover { color: #fff; }

@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .brand img { height: 34px; }
  .brand-name { font-size: 20px; }
  .crest { padding-top: 48px; }
  .sec { padding: 64px 0; }
  .promise { padding: 64px 0; }
  .login .wrap { padding-top: 56px; padding-bottom: 56px; }
  .hero { padding-bottom: 56px; }
  .strip .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .strip .wrap > div { padding: 18px 0; }
  .strip .t { font-size: 18px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .brand-tag { letter-spacing: .1em; font-size: 10px; }
  .btn { width: 100%; }
  .nav .btn { width: auto; }
  .card, .feat, .login-form { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* motion: logo glow + sections slide in (only with JS on and motion allowed) */
.logo-wrap { position: relative; display: inline-block; }
.logo-wrap img { width: clamp(220px, 30vw, 360px); }
@media (prefers-reduced-motion: no-preference) {
  .js .logo-wrap { animation: logoIn 1.2s cubic-bezier(.2,.7,.2,1) both, logoGlow 2.6s ease-out .9s both; }
  .js .logo-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255,246,214,.95) 50%, transparent 65%) no-repeat;
    background-size: 250% 100%; background-position: 160% 0;
    -webkit-mask: url(/assets/logo.png) center / contain no-repeat; mask: url(/assets/logo.png) center / contain no-repeat;
    animation: shine 1.6s ease-in-out 1s both, shine 1.6s ease-in-out 7s both; }
  @keyframes logoIn { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }
  @keyframes logoGlow { 0% { filter: drop-shadow(0 0 0 rgba(212,160,40,0)); } 35% { filter: drop-shadow(0 0 26px rgba(212,160,40,.75)); } 100% { filter: drop-shadow(0 6px 18px rgba(184,135,42,.22)); } }
  @keyframes shine { from { background-position: 160% 0; } to { background-position: -60% 0; } }

  .js .rv { opacity: 0; transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); transform: translateY(50px); }
  .js .rv.fl { transform: translateX(-80px); }
  .js .rv.fr { transform: translateX(80px); }
  .js .rv.fz { transform: scale(.94); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .rv.d1 { transition-delay: .15s; } .js .rv.d2 { transition-delay: .3s; } .js .rv.d3 { transition-delay: .45s; }
}

/* ---- member tools (ArFX Flow) ---- */
.sec .wrap.tools { flex-direction: row; }
.tools { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: center; }
.tools-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.tlist { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.titem { display: flex; gap: 12px; align-items: flex-start; }
.titem .num { flex: none; margin-top: 2px; }
.titem b { display: block; font-size: 16px; margin-bottom: 2px; }
.titem span:not(.num) { color: var(--muted); font-size: 15px; line-height: 1.55; }
.soon { font-style: normal; font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); background: var(--sand); border-radius: 999px; padding: 3px 8px; margin-left: 6px; vertical-align: 2px; }
.flowcard { flex: 1 1 380px; }
.chip.neg { background: #F8E3E1; color: var(--neg); }
.fc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; }
.fc-tile { border: 1px solid var(--rule2); border-left: 3px solid var(--neg); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--soft); }
.fc-k { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted2); }
.fc-s { font: 600 22px/1.15 var(--serif); color: var(--neg); }
.fc-d { font-size: 13px; color: var(--muted); }
.fc-agree { margin: 0 18px 18px; padding: 12px 14px; border-radius: 10px; background: #F8E3E1; color: var(--neg); font-size: 15px; }
.fc-agree b { font-weight: 600; }
.fc-arrow { font-size: 12px; margin-right: 4px; }
.srow b.neg { color: var(--neg); }
.srow b.amb { color: var(--gold-text); }
@media (max-width: 480px) { .fc-tiles { grid-template-columns: 1fr; } }

/* ---- ARFXAiagent sneak-peek video ---- */
.vidcard { flex: 1 1 380px; max-width: 520px; margin: 0 auto; padding: 0; background: #FAF8F3; }
.vidcard video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #FAF8F3; }
.vidcard figcaption { padding: 12px 18px; border-top: 1px solid var(--rule2); font-size: 13px; color: var(--muted2); background: var(--card); }

/* ---- partner broker banner ---- */
.broker { background: var(--ink); color: #F7F2E7; border-top: 3px double var(--gold); border-bottom: 3px double var(--gold); position: relative; overflow: hidden; }
.broker::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 85% 50%, rgba(184,135,42,.22), transparent 70%); pointer-events: none; }
.broker .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; padding-top: 56px; padding-bottom: 56px; }
.bk-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.broker .kicker { color: #D8B25A; }
.bk-h { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.broker .em { color: #E3C27A; }
.bk-copy p { color: #CFC7B6; max-width: 560px; }
.bk-act { flex: 0 1 340px; display: flex; flex-direction: column; gap: 12px; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #14181F; box-shadow: 0 0 0 0 rgba(184,135,42,.5); }
.btn.gold:hover { background: #D8B25A; border-color: #D8B25A; color: #14181F; }
.bk-note { font-size: 12.5px; line-height: 1.45; color: #A79F8E; }
@media (prefers-reduced-motion: no-preference) { .btn.gold { animation: bkPulse 3.2s ease-out infinite; } }
@keyframes bkPulse { 0% { box-shadow: 0 0 0 0 rgba(184,135,42,.45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(184,135,42,0); } }

/* ---- logo: soft gold breathing glow ---- */
@media (prefers-reduced-motion: no-preference) { .top .brand img { animation: logoBreath 6s ease-in-out infinite; } }
@keyframes logoBreath { 0%, 100% { filter: drop-shadow(0 0 1px rgba(184,135,42,.25)); } 50% { filter: drop-shadow(0 0 9px rgba(184,135,42,.65)); } }

/* From the trading desk */
#desk .vidcard img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
