/* FluxTrade public site styles (no inline CSS needed) */

:root{
  /* Background */
  --flux-bg-url: url('/img/background.png');
  --flux-bg-fallback: #0b1220;

  /* Theme */
  --card-bg: rgba(2,6,23,.55);
  --card-border: rgba(148,163,184,.16);
  --muted: #94a3b8;
  --text: #e5e7eb;
  --link: #cbd5e1;
  --btn-bg: #111827;
  --btn-border: #334155;
  --primary: #0ea5e9;

  /* These control “dullness” */
  --flux-overlay-top: 0.15;
  --flux-overlay-bottom: 0.15;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: var(--flux-bg-fallback) var(--flux-bg-url) center/cover no-repeat fixed;
  color-scheme: dark;
}

/* Apply the overlay only when body has flux-bg */
body.flux-bg::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(56,189,248,.16), transparent 60%),
    linear-gradient(180deg,
      rgba(2,6,23,var(--flux-overlay-top)),
      rgba(2,6,23,var(--flux-overlay-bottom))
    );
  z-index:0;
}

/* Keep content ABOVE the fixed overlay */
.flux-content,
.hero-image-wrap,
.flux-main,
.cms-page,
.flux-home{
  position:relative;
  z-index:1;
}

a{color:var(--link); text-decoration:none}
a:hover{color:#fff; text-decoration:underline}

.skip-link{position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;}
.skip-link:focus{left:12px; top:12px; width:auto; height:auto; padding:10px 12px; background:#111827; border:1px solid var(--btn-border); border-radius:10px; z-index:10}

.container{max-width:1100px; margin:0 auto; padding:24px}

.flux-header{position:relative}
.nav{display:flex; align-items:center; justify-content:space-between; gap:12px}
.nav-links{display:flex; align-items:center; gap:14px; flex-wrap:wrap}
.brand{display:flex; align-items:center; gap:10px; color:var(--text)}
.brand span{font-weight:700; letter-spacing:.3px}
.svg-logo{width:28px; height:28px}

.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:10px;
  border:1px solid var(--btn-border);
  background:var(--btn-bg);
  color:var(--text);
  text-decoration:none;
}
.btn:hover{background:#0b1220; text-decoration:none}
.btn.primary{
  background:var(--primary);
  border-color:var(--primary);
  color:#0b1220;
}
.inline-form{display:inline}
.inline-form button{cursor:pointer}

.hero-image-wrap{margin-top:12px}
.hero-image{
  width:100%;
  max-width:1100px;
  display:block;
  margin:0 auto;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.18);
  box-shadow:0 20px 60px rgba(0,0,0,.45);
  opacity: 1 !important;
  filter: none !important;
}

.flux-card{
  background:var(--card-bg);
  border:1px solid var(--card-border);
  border-radius:14px;
  padding:16px;
  backdrop-filter: blur(6px);
}

.hero-card{margin-top:16px}
.hero{display:grid; grid-template-columns:1.1fr .9fr; gap:18px}
@media (max-width:900px){.hero{grid-template-columns:1fr}}

.hero-label{display:flex; align-items:center; gap:10px; margin-bottom:10px}
.svg-hero{width:56px; height:56px; opacity:.9}
.h1{
  font-size:clamp(28px,5vw,44px);
  line-height:1.1;
  margin:0 0 8px;
}
.muted{color:var(--muted)}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}

.card-title{margin:0 0 10px; font-weight:600}
.list{margin:0; padding-left:18px}
.list li{margin:0 0 6px}

.grid-wrap{margin-top:14px}
.grid{display:grid; grid-template-columns:repeat(4,1fr); gap:14px}
@media (max-width:900px){.grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.grid{grid-template-columns:1fr}}

.flux-footer{margin-top:18px}
.fineprint{font-size:13px; margin:10px 0}
