/* ===========================================================
   SS Digitalize — Trading Consultancy
   Design system
   =========================================================== */

:root {
  --bg:        #070b14;
  --bg-2:      #0b1220;
  --surface:   rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 255, 255, 0.08);
  --text:      #e8edf6;
  --text-dim:  #9aa6bd;
  --text-mute: #6b7589;
  --gold:      #e3b341;
  --gold-dim:  #b58c2a;
  --green:     #14c08a;
  --green-dim: #0e8d66;
  --red:       #ef5b5b;
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1180px;
  --shadow:    0 20px 60px rgba(0, 0, 0, 0.45);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(227, 179, 65, 0.10), transparent 60%),
    radial-gradient(50% 45% at 10% 0%, rgba(20, 192, 138, 0.08), transparent 55%),
    var(--bg);
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.accent { color: var(--gold); }
.accent-green { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #1a1404; box-shadow: 0 10px 30px rgba(227, 179, 65, 0.25);
}
.btn-wa {
  background: linear-gradient(135deg, #25d366, #128c4f);
  color: #04200f; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.25);
}
.btn-ghost {
  background: var(--surface); color: var(--text); border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; display: block;
  box-shadow: 0 6px 16px rgba(227, 179, 65, 0.22);
}
.brand small { display: block; font-size: 0.6rem; letter-spacing: 0.18em; color: var(--text-mute); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ---------- Compliance ribbon ---------- */
.risk-ribbon {
  background: rgba(239, 91, 91, 0.08);
  border-bottom: 1px solid rgba(239, 91, 91, 0.18);
  font-size: 0.8rem; color: #f0b8b8; text-align: center;
  padding: 9px 16px;
}
.risk-ribbon strong { color: #ff9b9b; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 70px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-dim); margin-bottom: 22px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 20px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--gold), #f6d27a 60%, var(--green));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 1.08rem; color: var(--text-dim); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-mute); }
.hero-trust span { display: flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--green); flex-shrink: 0; }

/* Hero card */
.hero-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 22px;
  padding: 26px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 90% 0%, rgba(227,179,65,0.12), transparent 60%);
  pointer-events: none;
}
.hc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hc-head .tag { font-size: 0.72rem; color: var(--text-mute); letter-spacing: 0.12em; }
.hc-head .live { font-size: 0.72rem; color: var(--green); display: flex; align-items: center; gap: 6px; }
.hc-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border); }
.hc-row:last-child { border-bottom: 0; }
.hc-row .label { font-size: 0.86rem; color: var(--text-dim); }
.hc-row .sub { font-size: 0.72rem; color: var(--text-mute); }
.hc-row .val { font-family: var(--font-head); font-weight: 600; }
.chip { padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; }
.chip-green { background: rgba(20,192,138,0.14); color: var(--green); }
.chip-gold { background: rgba(227,179,65,0.14); color: var(--gold); }
.hc-note { margin-top: 16px; font-size: 0.7rem; color: var(--text-mute); line-height: 1.5; }

/* Auto-rotating snapshot transitions */
.hc-banner img, .hc-banner .cap, .hc-right { transition: opacity 0.4s ease; }
.hero-card.swapping .hc-banner img,
.hero-card.swapping .hc-banner .cap,
.hero-card.swapping .hc-right { opacity: 0; }
.hc-dots { display: flex; gap: 7px; justify-content: center; margin-top: 18px; }
.hc-dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
  background: var(--border); cursor: pointer; transition: all 0.3s ease;
}
.hc-dots button.active { width: 20px; border-radius: 4px; background: var(--gold); }

/* Hero card image banner */
.hc-banner {
  position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 18px;
  border: 1px solid var(--border);
}
.hc-banner img { width: 100%; height: 130px; object-fit: cover; display: block; filter: saturate(1.05); }
.hc-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,11,20,0) 40%, rgba(7,11,20,0.85));
}
.hc-banner .cap {
  position: absolute; left: 14px; bottom: 10px; z-index: 1;
  font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.04em;
}

/* ---------- Split (image + text) section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split.reverse .media { order: 2; }
.media {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(227,179,65,0.12), rgba(20,192,138,0.10));
  mix-blend-mode: overlay;
}
.media .badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  background: rgba(7,11,20,0.78); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px;
  font-size: 0.8rem; color: var(--text); display: flex; align-items: center; gap: 9px;
}
.media .badge svg { color: var(--green); flex-shrink: 0; }
.split-text .eyebrow { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.split-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 12px 0 16px; }
.split-text p { color: var(--text-dim); margin-bottom: 16px; }
.split-list { list-style: none; }
.split-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-dim); font-size: 0.94rem; margin-bottom: 12px; }
.split-list svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }

/* ---------- Section base ---------- */
section { padding: 78px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 50px; }
.section-head .eyebrow { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 12px 0; }
.section-head p { color: var(--text-dim); font-size: 1.02rem; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(227,179,65,0.3); background: var(--surface-2); }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(227,179,65,0.1); color: var(--gold); margin-bottom: 16px;
}
.card.green .ic { background: rgba(20,192,138,0.1); color: var(--green); }
.card h3 { font-size: 1.15rem; margin-bottom: 9px; }
.card p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Process / steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 60px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim)); color: #1a1404;
  font-family: var(--font-head); font-weight: 700;
}
.step h3 { font-size: 1.1rem; margin-bottom: 7px; }
.step p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--gold); }
.stat .lbl { font-size: 0.84rem; color: var(--text-dim); margin-top: 4px; }

/* ---------- Compliance section ---------- */
.compliance { background: linear-gradient(180deg, transparent, rgba(20,192,138,0.03)); }
.comp-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 16px; align-items: flex-start;
}
.comp-card .ic { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.comp-card h4 { font-size: 1rem; margin-bottom: 5px; }
.comp-card p { color: var(--text-dim); font-size: 0.88rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; color: var(--text);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; cursor: pointer;
  padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .sign { color: var(--gold); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-q .sign { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--text-dim); font-size: 0.92rem; }

/* ---------- CTA / Contact ---------- */
.cta {
  background: linear-gradient(135deg, rgba(227,179,65,0.1), rgba(20,192,138,0.08));
  border: 1px solid var(--border); border-radius: 26px; padding: 56px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 14px; }
.cta p { color: var(--text-dim); max-width: 540px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-address {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 20px; padding: 11px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.88rem; color: var(--text-dim);
}
.contact-address svg { color: var(--gold); flex-shrink: 0; }
.consent-note {
  margin-top: 18px; font-size: 0.78rem; color: var(--text-mute);
  max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.55;
}
.footer-address {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 24px; font-size: 0.88rem; color: var(--text-dim);
}
.footer-address svg { color: var(--gold); flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 54px 0 30px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid p { color: var(--text-mute); font-size: 0.88rem; margin-top: 14px; max-width: 320px; }
.footer-col h5 { font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-mute); font-size: 0.9rem; margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: var(--gold); }
.footer-disclaimer {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 22px 0; margin-bottom: 24px;
  font-size: 0.76rem; color: var(--text-mute); line-height: 1.6;
}
.footer-disclaimer strong { color: var(--text-dim); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: var(--text-mute); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c4f);
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,0.4);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Legal pages ---------- */
.legal { padding: 60px 0 80px; }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.legal .updated { color: var(--text-mute); font-size: 0.85rem; margin-bottom: 14px; }
.legal .intro-note {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 22px 0 34px; color: var(--text-dim); font-size: 0.92rem;
}
.legal h2 { font-size: 1.4rem; margin: 38px 0 12px; color: var(--text); }
.legal h3 { font-size: 1.08rem; margin: 22px 0 8px; color: var(--gold); }
.legal p { color: var(--text-dim); margin-bottom: 14px; }
.legal ul { color: var(--text-dim); margin: 0 0 16px 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--gold); text-decoration: underline; }
.toc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 34px;
}
.toc h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 12px; }
.toc ol { margin-left: 18px; color: var(--text-dim); }
.toc li { margin-bottom: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--gold); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .media { order: 0; }
  .media img { min-height: 240px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 8px 0;
  }
  .nav-links.open a { padding: 12px 22px; width: 100%; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .cta { padding: 40px 22px; }
  .nav-cta .btn-ghost { display: none; }
}
