/* ===== Riyu Inti Optima — Forex Agency ===== */
:root {
  --bg: #070b16;
  --bg-2: #0b1120;
  --bg-alt: #0d1424;
  --card: rgba(255, 255, 255, 0.04);
  --card-brd: rgba(255, 255, 255, 0.08);
  --txt: #e9edf5;
  --txt-dim: #9aa6bd;
  --gold: #e7b84b;
  --gold-2: #f6d178;
  --emerald: #22c98a;
  --blue: #4d8cff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --maxw: 1180px;
  --font: 'Inter', system-ui, sans-serif;
  --head: 'Sora', 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
  z-index: 1000; box-shadow: 0 0 12px var(--gold);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--head); font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s, box-shadow .25s, background .25s;
  white-space: nowrap;
}
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1405; box-shadow: 0 10px 30px rgba(231, 184, 75, .28);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(231, 184, 75, .42); }
.btn--ghost { background: transparent; color: var(--txt); border-color: var(--card-brd); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-3px); }

/* ===== Navbar ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 11, 22, .82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--card-brd);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; }
.brand__mark {
  background: linear-gradient(135deg, var(--gold), var(--emerald));
  color: #08101f; font-size: 15px; letter-spacing: 1px;
  padding: 6px 9px; border-radius: 9px;
}
.brand__text { font-size: 17px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 15px; color: var(--txt-dim); font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--txt); }
.nav__links a.btn { color: #1a1405; }
.nav__actions { display: flex; align-items: center; gap: 14px; }

.lang-select { position: relative; }
.lang-select__btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--card-brd);
  border-radius: 999px; padding: 7px 12px; cursor: pointer; color: var(--txt);
  font-family: var(--head); font-weight: 700; font-size: 13px; transition: border-color .2s;
}
.lang-select__btn:hover { border-color: var(--gold); }
.lang-select__flag { font-size: 15px; line-height: 1; }
.lang-select__caret { font-size: 10px; color: var(--txt-dim); transition: transform .25s; }
.lang-select.is-open .lang-select__caret { transform: rotate(180deg); }
.lang-select__menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 168px; list-style: none;
  background: rgba(13, 20, 36, .98); backdrop-filter: blur(14px);
  border: 1px solid var(--card-brd); border-radius: 14px; padding: 6px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s, transform .22s, visibility .22s; z-index: 50;
}
.lang-select.is-open .lang-select__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-select__menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer; color: var(--txt-dim);
  font-family: var(--font); font-size: 14.5px; font-weight: 500;
  padding: 10px 12px; border-radius: 10px; transition: background .18s, color .18s;
}
.lang-select__menu button span { font-size: 17px; line-height: 1; }
.lang-select__menu button:hover { background: rgba(255,255,255,.05); color: var(--txt); }
.lang-select__menu button.is-active { color: var(--gold-2); background: rgba(231,184,75,.1); }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--txt); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(77, 140, 255, .12), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.hero__glow--1 { width: 420px; height: 420px; background: rgba(231, 184, 75, .35); top: -80px; right: -60px; }
.hero__glow--2 { width: 380px; height: 380px; background: rgba(34, 201, 138, .28); bottom: -120px; left: -80px; }
#tickerCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }

.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 760px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--card-brd);
  padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--txt-dim);
  font-weight: 600; margin-bottom: 26px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero__title {
  font-family: var(--head); font-weight: 800; letter-spacing: -1px;
  font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05;
}
.hero__title span { display: block; }
.grad {
  background: linear-gradient(120deg, var(--gold-2), var(--gold) 40%, var(--emerald));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { color: var(--txt-dim); font-size: clamp(1rem, 2vw, 1.18rem); margin: 24px 0 34px; max-width: 640px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 64px; padding: 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-brd); backdrop-filter: blur(8px);
}
.stat { text-align: center; }
.stat__num { font-family: var(--head); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--gold-2); }
.stat__plus { font-family: var(--head); font-weight: 800; font-size: 1.4rem; color: var(--gold-2); }
.stat__label { display: block; color: var(--txt-dim); font-size: 13.5px; margin-top: 4px; }

/* ===== Marquee ===== */
.marquee { position: relative; z-index: 2; margin-top: 60px; overflow: hidden;
  border-top: 1px solid var(--card-brd); border-bottom: 1px solid var(--card-brd); padding: 16px 0; }
.marquee__track { display: flex; gap: 28px; white-space: nowrap; width: max-content; animation: scroll 26s linear infinite; }
.marquee__track span { font-family: var(--head); font-weight: 700; letter-spacing: 2px; font-size: 14px; color: var(--txt-dim); }
.marquee__track span:nth-child(3n+1) { color: var(--gold-2); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 100px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow { font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.section__title { font-family: var(--head); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 12px 0 16px; letter-spacing: -.5px; }
.section__lead { color: var(--txt-dim); font-size: 1.05rem; }

/* ===== About ===== */
.about__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
.vm-card {
  background: var(--card); border: 1px solid var(--card-brd); border-radius: var(--radius);
  padding: 32px; transition: transform .3s, border-color .3s;
}
.vm-card:hover { transform: translateY(-6px); border-color: rgba(231,184,75,.4); }
.vm-card--wide { grid-column: 1 / -1; }
.vm-card__icon { font-size: 34px; margin-bottom: 14px; }
.vm-card h3 { font-family: var(--head); font-size: 1.3rem; margin-bottom: 10px; }
.vm-card p { color: var(--txt-dim); }
.tick { list-style: none; display: grid; gap: 10px; }
.tick li { position: relative; padding-left: 28px; color: var(--txt-dim); }
.tick li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 800; }

.values { margin-top: 20px; }
.values__title { font-family: var(--head); text-align: center; font-size: 1.4rem; margin-bottom: 26px; }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { text-align: center; padding: 26px 18px; background: var(--card); border: 1px solid var(--card-brd); border-radius: var(--radius); transition: transform .3s; }
.value:hover { transform: translateY(-5px); }
.value span { font-size: 30px; }
.value b { display: block; font-family: var(--head); margin: 10px 0 6px; }
.value p { color: var(--txt-dim); font-size: 14px; }

/* ===== Concept ===== */
.concept__wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: start; }
.flow { display: grid; gap: 16px; }
.flow__step {
  position: relative; padding: 22px 22px 22px 66px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-brd); transition: border-color .3s, transform .3s;
}
.flow__step:hover { border-color: rgba(34,201,138,.4); transform: translateX(6px); }
.flow__no {
  position: absolute; left: 18px; top: 20px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--emerald)); color: #08101f;
  font-family: var(--head); font-weight: 800;
}
.flow__step b { font-family: var(--head); display: block; margin-bottom: 4px; }
.flow__step p { color: var(--txt-dim); font-size: 14.5px; }

.concept__target {
  background: var(--card); border: 1px solid var(--card-brd); border-radius: var(--radius);
  padding: 30px; position: sticky; top: 90px;
}
.concept__target h3 { font-family: var(--head); font-size: 1.4rem; margin-bottom: 20px; }
.target { display: grid; gap: 16px; }
.target__item { display: grid; gap: 3px; padding-bottom: 14px; border-bottom: 1px dashed var(--card-brd); }
.target__item:last-child { border-bottom: 0; padding-bottom: 0; }
.target__k { font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); font-weight: 700; font-family: var(--head); }
.target__v { color: var(--txt); }

/* ===== Services ===== */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  background: var(--card); border: 1px solid var(--card-brd); border-radius: var(--radius);
  padding: 30px; transition: transform .3s, border-color .3s, background .3s; position: relative; overflow: hidden;
}
.svc::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px 200px at 50% 0%, rgba(231,184,75,.12), transparent 70%);
}
.svc:hover { transform: translateY(-8px); border-color: rgba(231,184,75,.45); }
.svc:hover::after { opacity: 1; }
.svc__ic { font-size: 32px; margin-bottom: 16px; }
.svc h3 { font-family: var(--head); font-size: 1.18rem; margin-bottom: 10px; }
.svc p { color: var(--txt-dim); font-size: 15px; }

/* ===== Broker Partners ===== */
.brokers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.broker {
  background: var(--card); border: 1px solid var(--card-brd); border-radius: var(--radius);
  padding: 26px; transition: transform .3s, border-color .3s; position: relative; overflow: hidden;
}
.broker::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--emerald)); opacity: 0; transition: opacity .3s;
}
.broker:hover { transform: translateY(-8px); border-color: rgba(231,184,75,.45); }
.broker:hover::before { opacity: 1; }
.broker__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.broker__logo {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  font-family: var(--head); font-weight: 800; font-size: 18px; color: #0b0f1a;
  background: linear-gradient(135deg, var(--c1, var(--gold)), var(--c2, var(--gold-2)));
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.broker__reg {
  font-size: 11.5px; font-weight: 700; letter-spacing: .5px; color: var(--emerald);
  background: rgba(34,201,138,.1); border: 1px solid rgba(34,201,138,.25);
  padding: 5px 10px; border-radius: 999px;
}
.broker__name { font-family: var(--head); font-size: 1.35rem; margin-bottom: 16px; }
.broker__meta { list-style: none; display: grid; gap: 9px; margin-bottom: 20px; }
.broker__meta li { display: flex; justify-content: space-between; font-size: 14px; padding-bottom: 8px; border-bottom: 1px dashed var(--card-brd); }
.broker__meta li:last-child { border-bottom: 0; padding-bottom: 0; }
.broker__meta span { color: var(--txt-dim); }
.broker__meta b { color: var(--txt); font-family: var(--head); }
.broker__btn {
  display: block; text-align: center; padding: 12px; border-radius: 12px; font-weight: 700;
  font-family: var(--head); font-size: 14px; color: var(--gold-2);
  border: 1px solid var(--card-brd); transition: background .25s, color .25s, border-color .25s;
}
.broker__btn:hover { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1405; border-color: transparent; }
.brokers__note { text-align: center; color: var(--txt-dim); font-size: 13px; opacity: .8; margin-top: 34px; }

/* ===== Community ===== */
.community__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.community__media { position: relative; }
.community__media img { border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--card-brd); }
.community__badge {
  position: absolute; right: -14px; bottom: -22px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1405;
  padding: 18px 24px; border-radius: 16px; box-shadow: var(--shadow); text-align: center;
}
.community__badge b { font-family: var(--head); font-size: 1.9rem; }
.community__badge span { font-family: var(--head); font-size: 1.4rem; font-weight: 800; }
.community__badge small { display: block; font-weight: 600; font-size: 12.5px; }
.community__content .eyebrow { display: block; margin-bottom: 8px; }
.community__content .section__title, .community__content .section__lead { text-align: left; }
.community__list { display: grid; gap: 18px; margin: 28px 0; }
.cfeat { display: flex; gap: 14px; align-items: flex-start; }
.cfeat span { font-size: 24px; }
.cfeat b { font-family: var(--head); }
.cfeat p { color: var(--txt-dim); font-size: 14.5px; }
.chips { display: flex; gap: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--card-brd); font-weight: 600; font-size: 14px; transition: transform .25s, border-color .25s; }
.chip:hover { transform: translateY(-3px); }
.chip--tg:hover { border-color: #2ca5e0; }
.chip--wa:hover { border-color: #25d366; }
.chip--dc:hover { border-color: #5865f2; }

/* ===== Media / Social ===== */
.media__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.platform {
  display: flex; flex-direction: column; gap: 6px; padding: 28px 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-brd); transition: transform .3s, border-color .3s;
  position: relative; overflow: hidden; cursor: pointer;
}
.platform::before { content: ""; position: absolute; inset: 0; opacity: .0; transition: opacity .3s; }
.platform:hover { transform: translateY(-8px); }
.platform:hover::before { opacity: .14; }
.platform--ig::before { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.platform--tt::before { background: linear-gradient(135deg, #25f4ee, #000, #fe2c55); }
.platform--yt::before { background: #ff0000; }
.platform--tg::before { background: #2ca5e0; }
.platform__ic { font-size: 30px; position: relative; }
.platform b { font-family: var(--head); font-size: 1.15rem; position: relative; }
.platform small { color: var(--txt-dim); font-size: 13.5px; position: relative; }

.media__strategy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mcard { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-brd); transition: transform .3s; }
.mcard:hover { transform: translateY(-6px); }
.mcard h4 { font-family: var(--head); font-size: 1.15rem; margin-bottom: 10px; color: var(--gold-2); }
.mcard p { color: var(--txt-dim); font-size: 15px; }

/* ===== CTA ===== */
.cta { padding: 90px 0; background:
  radial-gradient(700px 300px at 50% 0%, rgba(231,184,75,.14), transparent 70%),
  linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.cta__inner {
  max-width: 780px; text-align: center;
  background: var(--card); border: 1px solid var(--card-brd); border-radius: 26px;
  padding: 48px 40px; box-shadow: var(--shadow);
}
.cta h2 { font-family: var(--head); font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cta p { color: var(--txt-dim); margin: 12px 0 28px; }
.cta__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta__form input, .cta__form select {
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--card-brd);
  background: var(--bg-2); color: var(--txt); font-family: var(--font); font-size: 15px;
}
.cta__form input:focus, .cta__form select:focus { outline: none; border-color: var(--gold); }
.cta__form select { grid-column: 1 / -1; }
.cta__form .btn { grid-column: 1 / -1; }
.cta__note { color: var(--emerald); font-weight: 600; margin-top: 18px; }
.cta__error { color: #ff7a7a; font-weight: 600; margin-top: 18px; }
.cta__form button[disabled] { opacity: .65; cursor: wait; }
.cta__risk { font-size: 13px; color: var(--txt-dim); opacity: .8; margin-top: 18px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--card-brd); padding: 56px 0 26px; background: var(--bg-2); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer__brand p { color: var(--txt-dim); margin-top: 14px; max-width: 320px; }
.footer__col h5 { font-family: var(--head); margin-bottom: 14px; font-size: 15px; }
.footer__col a { display: block; color: var(--txt-dim); padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: var(--gold-2); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--card-brd);
  color: var(--txt-dim); font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .concept__wrap, .community__grid { grid-template-columns: 1fr; }
  .concept__target { position: static; }
  .media__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid, .media__strategy, .brokers__grid { grid-template-columns: repeat(2, 1fr); }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .community__media { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; top: 72px; right: 0; width: min(80%, 300px); height: calc(100vh - 72px);
    flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px 24px;
    background: rgba(9, 14, 26, .98); backdrop-filter: blur(14px);
    border-left: 1px solid var(--card-brd); transform: translateX(105%); transition: transform .35s ease;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { width: 100%; padding: 10px 0; font-size: 16px; }
  .nav__links a.btn { margin-top: 8px; }
  .nav__burger { display: flex; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .cta__form { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .media__grid, .services__grid, .media__strategy, .values__grid, .footer__inner, .brokers__grid { grid-template-columns: 1fr; }
  .brand__text { display: none; }
  .footer__bottom { flex-direction: column; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}
