:root {
  --page: #f7fbff;
  --paper: #ffffff;
  --paper-2: #eef8ff;
  --ink: #102033;
  --text: #28394d;
  --muted: #66798c;
  --line: #d8e7f1;
  --blue: #0b74d1;
  --thai-blue: #1e4fbf;
  --thai-red: #d53e4f;
  --green: #05b989;
  --green-2: #1ee0a6;
  --gold: #f4b942;
  --violet: #7c4dff;
  --shadow: 0 24px 70px rgba(16, 32, 51, 0.14);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 12%, rgba(5, 185, 137, 0.16), transparent 28%),
    radial-gradient(circle at 82% 4%, rgba(30, 79, 191, 0.16), transparent 30%),
    linear-gradient(180deg, #f9fdff 0%, #edf7ff 48%, #f8fbff 100%);
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.5;
}

body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); letter-spacing: 0; line-height: 1.08; }

h1,
.intro-band h2,
.section-head h2,
.split-panel h2,
.page-hero h1,
.legal-copy h2 {
  font-family: "Outfit", sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(216, 231, 241, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.site-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #31506c;
  font-size: 12px;
  font-weight: 900;
}

.site-nav a:hover {
  color: var(--thai-blue);
  background: #eef5ff;
}

.site-nav a.is-active,
.site-nav a[aria-current="page"] {
  color: #ffffff;
  background: linear-gradient(135deg, var(--thai-blue), #0b74d1);
  box-shadow: 0 8px 20px rgba(30, 79, 191, 0.18);
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn svg, .text-link svg { width: 16px; height: 16px; }
.btn-primary { color: #06251d; background: linear-gradient(135deg, var(--green), var(--green-2)); box-shadow: 0 12px 28px rgba(5, 185, 137, 0.22); }
.btn-ghost, .btn-outline { color: var(--thai-blue); border-color: #b8d3f1; background: rgba(255, 255, 255, 0.68); }
.btn:hover, .text-link:hover { transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(213, 62, 79, 0.1), transparent 24%),
    linear-gradient(180deg, transparent 0%, rgba(30, 79, 191, 0.07) 100%);
  pointer-events: none;
}

.hero-bg, .hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  object-position: center right;
  opacity: 0.16;
  filter: saturate(1.15);
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 45%, rgba(5, 185, 137, 0.16), transparent 26%),
    linear-gradient(90deg, rgba(247, 251, 255, 0.98) 0%, rgba(247, 251, 255, 0.88) 54%, rgba(247, 251, 255, 0.68) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.86fr);
  gap: 54px;
  align-items: center;
  width: min(var(--max), calc(100% - 48px));
  min-height: 520px;
  margin: 0 auto;
  padding: 48px 0;
}

.kicker {
  width: fit-content;
  margin: 0 auto 12px;
  padding: 7px 13px;
  border: 1px solid rgba(5, 185, 137, 0.22);
  border-radius: 999px;
  color: #087b78;
  background:
    radial-gradient(circle at 18% 50%, rgba(30, 224, 166, 0.22), transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(232, 250, 247, 0.88));
  box-shadow: 0 0 24px rgba(5, 185, 137, 0.16);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy .kicker,
.split-panel .kicker,
.section-head .kicker,
.page-hero .kicker {
  margin-left: 0;
  margin-right: 0;
}

.hero h1 {
  max-width: 590px;
  margin-bottom: 14px;
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: clamp(31px, 3.05vw, 44px);
  font-weight: 800;
  line-height: 1.08;
}

.hero h1 span {
  display: block;
  color: var(--thai-blue);
}

.hero h1 span,
.page-hero h1 span {
  color: var(--thai-blue);
}

.page-hero h1 span {
  display: block;
}

.intro-band h2 span,
.section-head h2 span,
.split-panel h2 span,
.legal-copy h2 span {
  color: var(--ink);
  background: none;
  box-decoration-break: initial;
  -webkit-box-decoration-break: initial;
}

.hero-copy > p {
  max-width: 570px;
  margin-bottom: 14px;
  color: #4d6479;
  font-size: 14px;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 570px;
  margin: 0 0 16px;
}

.value-strip div {
  padding: 11px 13px;
  border: 1px solid #cfe0f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.value-strip strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.value-strip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.market-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.market-tags span {
  padding: 8px 11px;
  border: 1px solid #cfe0f0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #31506c;
  font-size: 12px;
  font-weight: 900;
}

.risk-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 660px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 185, 66, 0.48);
  border-radius: 12px;
  background: rgba(255, 248, 229, 0.88);
  color: #526374;
  font-size: 12px;
  font-weight: 800;
}

.risk-note svg { width: 18px; height: 18px; color: var(--gold); flex: 0 0 auto; }

.trading-animation {
  padding: 20px;
  border: 1px solid rgba(154, 197, 226, 0.78);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 8%, rgba(5, 185, 137, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 247, 255, 0.94));
  box-shadow: 0 28px 86px rgba(25, 70, 120, 0.18);
  overflow: hidden;
}

.animation-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.animation-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.animation-header strong {
  color: var(--thai-blue);
  font-size: 13px;
}

.ticker-row {
  display: flex;
  gap: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}

.ticker-row span {
  flex: 1;
  min-width: 118px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef8ff, #ffffff);
  color: #41596e;
  font-size: 11px;
  font-weight: 900;
}

.ticker-row em {
  display: block;
  margin-top: 3px;
  color: var(--green);
  font-style: normal;
}

.chart-stage {
  position: relative;
  height: 250px;
  overflow: hidden;
  border: 1px solid #bcd7eb;
  border-radius: 22px;
  background:
    radial-gradient(circle at 72% 22%, rgba(30, 224, 166, 0.2), transparent 30%),
    radial-gradient(circle at 42% 56%, rgba(30, 79, 191, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #eaf7ff 100%);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#dcebf5 1px, transparent 1px),
    linear-gradient(90deg, #dcebf5 1px, transparent 1px);
  background-size: 100% 44px, 58px 100%;
  opacity: 0.75;
}

.chart-stage svg {
  position: absolute;
  inset: 34px 12px 0;
  width: calc(100% - 24px);
  height: calc(100% - 36px);
}

.session-flow {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.session-flow span {
  padding: 7px 8px;
  border: 1px solid rgba(30, 79, 191, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #31506c;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  animation: sessionGlow 4.8s ease-in-out infinite;
}

.session-flow span:nth-child(2) { animation-delay: 1.2s; }
.session-flow span:nth-child(3) { animation-delay: 2.4s; }
.session-flow span:nth-child(4) { animation-delay: 3.6s; }

.world-orbit {
  position: absolute;
  right: 44px;
  top: 66px;
  width: 146px;
  height: 146px;
  border: 1px solid rgba(30, 79, 191, 0.22);
  border-radius: 50%;
  transform: rotate(-18deg);
  opacity: 0.72;
}

.world-orbit::before {
  content: "";
  position: absolute;
  inset: 28px -18px;
  border: 1px solid rgba(5, 185, 137, 0.28);
  border-radius: 50%;
}

.orbit-two {
  transform: rotate(28deg);
  animation: orbitTurn 7s linear infinite;
}

.chart-line, .chart-glow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  animation: drawChart 3.2s ease-in-out infinite;
}

.chart-glow {
  stroke: rgba(5, 185, 137, 0.22);
  stroke-width: 14;
  filter: blur(2px);
}

.chart-line {
  stroke: var(--green);
  stroke-width: 5;
}

.candle {
  position: absolute;
  bottom: 30px;
  width: 10px;
  border-radius: 999px;
  background: var(--thai-blue);
  animation: candlePulse 1.8s ease-in-out infinite;
}

.c1 { left: 12%; height: 54px; animation-delay: 0s; }
.c2 { left: 22%; height: 88px; background: var(--green); animation-delay: 0.2s; }
.c3 { left: 33%; height: 68px; background: var(--thai-red); animation-delay: 0.4s; }
.c4 { left: 44%; height: 108px; background: var(--green); animation-delay: 0.6s; }

.pulse-dot {
  position: absolute;
  right: 44px;
  top: 88px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(5, 185, 137, 0.44);
  animation: pulseDot 1.4s ease-out infinite;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.mini-stats div {
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #d8e7f1;
}

.mini-stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.mini-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
}

@keyframes drawChart {
  0% { stroke-dashoffset: 720; }
  42%, 72% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -720; }
}

@keyframes candlePulse {
  0%, 100% { transform: scaleY(0.72); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(5, 185, 137, 0.44); }
  100% { box-shadow: 0 0 0 18px rgba(5, 185, 137, 0); }
}

@keyframes sessionGlow {
  0%, 100% {
    color: #31506c;
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(30, 79, 191, 0.18);
  }
  38%, 58% {
    color: #06251d;
    background: rgba(30, 224, 166, 0.26);
    border-color: rgba(5, 185, 137, 0.42);
  }
}

@keyframes orbitTurn {
  from { transform: rotate(28deg); }
  to { transform: rotate(388deg); }
}

.intro-band, .section, .split-panel, .proof-strip, .content-page {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.intro-band {
  padding: 38px 0 20px;
  text-align: center;
}

.intro-band h2, .section-head h2, .split-panel h2, .content-page h1, .content-page h2 { color: var(--ink); }
.intro-band h2 { max-width: 700px; margin: 0 auto 20px; font-size: 24px; line-height: 1.12; }

.feature-grid, .market-grid, .info-grid, .legal-grid { display: grid; gap: 14px; }
.feature-grid { grid-template-columns: repeat(3, 1fr); }

.feature-grid article, .market-card, .info-card, .legal-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 44px rgba(16, 32, 51, 0.08);
}

.feature-grid article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  min-height: 102px;
  padding: 18px;
  text-align: left;
}

.feature-grid svg, .market-card svg, .proof-strip svg, .info-card svg {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 12px;
  color: var(--thai-blue);
  background: #eaf3ff;
}

.feature-grid h3, .market-card h3, .info-card h3, .legal-card h3 {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 15px;
}

.feature-grid p, .market-card p, .split-panel p, .info-card p, .legal-card p, .content-page p, .content-page li {
  color: var(--muted);
  font-size: 13px;
}

.feature-grid article p { grid-column: 2; }

.split-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 248, 255, 0.9)),
    var(--paper);
  box-shadow: var(--shadow);
}

.split-panel img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.split-panel div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 38px;
}

.split-panel h2 { max-width: 480px; margin-bottom: 10px; font-size: 27px; line-height: 1.12; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 22px;
  padding: 10px 14px;
  border: 1px solid #b8d3f1;
  border-radius: 999px;
  color: var(--thai-blue);
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.section { padding: 30px 0 20px; }
.compact-section { padding-top: 22px; }
.section-head { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 0; font-size: 24px; line-height: 1.12; }

.market-grid { grid-template-columns: repeat(6, 1fr); }
.market-card { min-height: 178px; padding: 18px; }
.market-card h3 { margin-top: 14px; }
.market-card p { min-height: 58px; }
.market-card span { color: var(--green); font-size: 12px; font-weight: 900; }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.proof-strip div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.proof-strip strong { color: var(--ink); font-size: 14px; }
.proof-strip span { display: block; grid-column: 2; margin-top: 5px; color: var(--muted); font-size: 12px; }

.condition-grid,
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.condition-grid article,
.timeline-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 44px rgba(16, 32, 51, 0.07);
}

.condition-grid span,
.timeline-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--thai-red);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.condition-grid strong,
.timeline-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.condition-grid p,
.timeline-grid p {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 28px auto 0;
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 12px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, 0.55fr));
  gap: 32px;
  padding: 30px 0 24px;
  border-top: 1px solid var(--line);
}

.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { max-width: 360px; color: var(--muted); }

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer a, .site-footer span {
  display: block;
  margin-bottom: 9px;
  color: #31506c;
}

.footer-risk {
  padding: 14px 16px;
  border: 1px solid rgba(244, 185, 66, 0.44);
  border-radius: 16px;
  background: rgba(255, 248, 229, 0.9);
  color: #526374;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-bottom span { margin-bottom: 0; color: var(--muted); }

.content-page { padding: 54px 0 36px; }

.page-hero {
  margin-bottom: 22px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 0%, rgba(30, 79, 191, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 248, 255, 0.9));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 760px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.1;
}

.page-hero p { max-width: 850px; font-size: 15px; }

.info-grid { grid-template-columns: repeat(3, 1fr); }
.info-card, .legal-card { padding: 22px; }
.info-card svg { margin-bottom: 14px; }
.legal-grid { grid-template-columns: repeat(2, 1fr); }

.doc-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 16px;
  padding: 9px 12px;
  border: 1px solid #b8d3f1;
  border-radius: 999px;
  color: var(--thai-blue);
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.document-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
}

.document-menu {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.document-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #31506c;
  font-size: 12px;
  font-weight: 900;
}

.document-menu a:hover,
.document-menu a.is-active-doc {
  color: #ffffff;
  background: linear-gradient(135deg, var(--thai-blue), #0b74d1);
}

.document-frame-wrap {
  min-height: 720px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.document-frame-wrap iframe {
  width: 100%;
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 44px rgba(16, 32, 51, 0.08);
}

table { width: 100%; min-width: 760px; border-collapse: collapse; }
th, td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
th {
  color: var(--ink);
  background: #eef8ff;
  font-size: 12px;
  text-transform: uppercase;
}
td:first-child { color: var(--thai-blue); font-weight: 900; }
tr:last-child td { border-bottom: 0; }

.legal-copy { display: grid; gap: 14px; }
.legal-copy section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}
.legal-copy h2 { margin-bottom: 10px; font-size: 21px; line-height: 1.12; }
.legal-copy ul { margin: 10px 0 0; padding-left: 18px; }

.risk-callout {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(244, 185, 66, 0.48);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 248, 229, 0.96), rgba(255, 255, 255, 0.9));
}

.risk-callout svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 14px;
  color: #9b6a06;
  background: rgba(244, 185, 66, 0.18);
}

.risk-callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 16px;
}

.risk-callout p {
  color: #526374;
  font-size: 13px;
}

.auth-page {
  padding-top: 34px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 0.72fr);
  gap: 34px;
  align-items: start;
}

.auth-copy {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 8%, rgba(5, 185, 137, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 248, 255, 0.9));
  box-shadow: var(--shadow);
}

.auth-copy h1 {
  max-width: 620px;
  margin-bottom: 12px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(31px, 3.2vw, 44px);
  line-height: 1.1;
}

.auth-copy h1 span {
  display: block;
  color: var(--thai-blue);
}

.auth-copy > p {
  color: var(--muted);
  font-size: 14px;
}

.auth-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.auth-points div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px 12px;
  align-items: start;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.auth-points svg {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 12px;
  color: var(--thai-blue);
  background: #eaf3ff;
}

.auth-points strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.auth-points span {
  display: block;
  grid-column: 1 / -1;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.auth-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef8ff;
}

.auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  color: #31506c;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.auth-tabs button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--thai-blue), #0b74d1);
}

.auth-form {
  display: none;
  gap: 12px;
}

.auth-form.is-active {
  display: grid;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #cfe0f0;
  border-radius: 12px;
  color: var(--ink);
  background: #fafdff;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: var(--thai-blue);
  box-shadow: 0 0 0 4px rgba(30, 79, 191, 0.1);
}

.check-row {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 9px !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.45;
}

.check-row input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
}

.check-row.small {
  align-items: center;
}

.legal-consent button {
  padding: 0;
  border: 0;
  color: var(--thai-blue);
  background: transparent;
  font: inherit;
  color: var(--thai-blue);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  padding: 22px;
}

.legal-modal.is-open {
  display: grid;
  place-items: center;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 32, 51, 0.56);
  backdrop-filter: blur(6px);
}

.legal-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(1000px, 100%);
  height: min(760px, calc(100vh - 44px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(16, 32, 51, 0.34);
}

.legal-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #f7fbff;
}

.legal-modal-head strong {
  color: var(--ink);
  font-size: 15px;
}

.legal-modal-head button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #ffffff;
  cursor: pointer;
}

.legal-modal-head svg {
  width: 18px;
  height: 18px;
}

.legal-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-row a {
  color: var(--thai-blue);
  font-size: 12px;
  font-weight: 900;
}

.auth-submit {
  width: 100%;
}

.form-note,
.auth-feedback {
  color: var(--muted);
  font-size: 12px;
}

.auth-feedback {
  display: none;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(5, 185, 137, 0.28);
  border-radius: 14px;
  background: rgba(232, 250, 247, 0.9);
  color: #087b78;
  font-weight: 800;
}

.auth-feedback.is-visible {
  display: block;
}

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav-toggle { display: grid; place-items: center; }
  .site-nav, .header-actions { display: none; }

  .site-nav.is-open {
    position: fixed;
    top: 82px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open a {
    padding: 13px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open a:last-child { border-bottom: 0; }

  .hero-inner, .split-panel, .feature-grid, .proof-strip, .info-grid, .legal-grid, .footer-top, .auth-shell, .document-layout {
    grid-template-columns: 1fr;
  }

  .market-grid, .condition-grid, .timeline-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .site-header { min-height: 68px; padding: 0 16px; }
  .brand span { font-size: 18px; }
  .hero-inner, .intro-band, .section, .split-panel, .proof-strip, .content-page, .site-footer {
    width: calc(100% - 28px);
  }
  .hero-inner { min-height: auto; padding: 32px 0; }
  .hero h1 { font-size: 33px; }
  .value-strip { grid-template-columns: 1fr; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .feature-grid article { grid-template-columns: 1fr; }
  .feature-grid article p, .proof-strip span { grid-column: auto; }
  .risk-callout { grid-template-columns: 1fr; }
  .split-panel div, .page-hero { padding: 22px; }
  .market-grid, .mini-stats, .condition-grid, .timeline-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .trading-animation { padding: 14px; }
  .auth-copy, .auth-card { padding: 18px; }
  .auth-points { grid-template-columns: 1fr; }
  .form-grid.two { grid-template-columns: 1fr; }
  .login-row { align-items: flex-start; flex-direction: column; }
  .document-frame-wrap,
  .document-frame-wrap iframe {
    min-height: 520px;
  }
}

/* Register legal popup: readable text modal, no iframe */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.legal-modal.is-open {
  display: flex;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 42, 0.58);
  backdrop-filter: blur(12px);
}

.legal-modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(940px, 100%);
  max-height: min(86vh, 820px);
  overflow: hidden;
  border: 1px solid rgba(184, 211, 241, 0.92);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 0%, rgba(5, 185, 137, 0.13), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
  box-shadow: 0 30px 90px rgba(8, 24, 42, 0.28);
}

.legal-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.legal-modal-head strong {
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-modal-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #ffffff;
  cursor: pointer;
}

.legal-modal-body {
  overflow: auto;
  padding: 22px 24px 24px;
  outline: none;
}

.legal-modal-intro,
.legal-modal-warning,
.legal-modal-documents,
.legal-modal-section {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
}

.legal-modal-intro {
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(30, 79, 191, 0.08), rgba(5, 185, 137, 0.1)),
    #ffffff;
}

.legal-modal-intro span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #073d8d;
  background: rgba(30, 79, 191, 0.1);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-modal-intro p,
.legal-modal-warning p,
.legal-modal-documents p,
.legal-modal-section p {
  margin: 0;
  color: #4d6479;
  font-size: 14px;
}

.legal-modal-warning {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 14px;
  padding: 15px 17px;
  border-color: rgba(244, 185, 66, 0.55);
  background: #fff8e8;
}

.legal-modal-warning strong {
  color: #865600;
  font-size: 13px;
}

.legal-modal-documents {
  margin-top: 14px;
  padding: 18px;
}

.legal-modal-documents h3,
.legal-modal-section h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.legal-modal-documents > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.legal-modal-documents article {
  padding: 13px;
  border: 1px solid #dbeaf6;
  border-radius: 16px;
  background: #ffffff;
}

.legal-modal-documents strong {
  display: block;
  margin-bottom: 5px;
  color: #073d8d;
  font-size: 13px;
}

.legal-modal-documents span {
  display: block;
  color: #60768a;
  font-size: 12px;
  line-height: 1.45;
}

.legal-modal-sections {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.legal-modal-section {
  padding: 16px 18px;
}

.legal-modal-foot {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

@media (max-width: 720px) {
  .legal-modal {
    padding: 10px;
  }

  .legal-modal-panel {
    max-height: 92vh;
    border-radius: 22px;
  }

  .legal-modal-head,
  .legal-modal-body,
  .legal-modal-foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  .legal-modal-documents > div {
    grid-template-columns: 1fr;
  }

  .legal-modal-warning {
    grid-template-columns: 1fr;
  }
}

/* Registration form validation and country/mobile controls */
.auth-form select,
.auth-form input[type="email"],
.auth-form input[type="tel"] {
  min-height: 58px;
}

.auth-form select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 0 48px 0 18px;
  border: 1px solid #c7ddf0;
  border-radius: 18px;
  color: var(--ink);
  background:
    linear-gradient(45deg, transparent 50%, #1e4fbf 50%) calc(100% - 24px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, #ffffff, #f7fcff);
  font: inherit;
  font-weight: 850;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.auth-form select:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="tel"]:focus {
  border-color: rgba(30, 79, 191, 0.55);
  box-shadow: 0 0 0 4px rgba(30, 79, 191, 0.1);
}

.phone-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  margin-top: 7px;
}

.phone-row select,
.phone-row input {
  margin-top: 0 !important;
}

.phone-row select {
  padding-left: 14px;
  padding-right: 34px;
  font-size: 15px;
}

.phone-row input {
  letter-spacing: 0.02em;
}

@media (max-width: 620px) {
  .phone-row {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}
