:root {
  --cyan: #3db8f5;
  --cyan-deep: #2a9fd6;
  --navy: #0c2340;
  --navy-2: #123057;
  --ink: #1a2b4a;
  --muted: #6b7c93;
  --line: #e4ebf3;
  --bg: #ffffff;
  --soft: #f5f8fc;
  --danger: #d64545;
  --ok: #1f9d63;
  --shadow: 0 18px 50px rgba(12, 35, 64, 0.12);
  --radius: 8px;
  --font: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
}
.site-header.solid {
  position: sticky;
  background: linear-gradient(180deg, #0a1d36 0%, #0c2340 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img {
  height: 72px; width: 144px; object-fit: contain;
  border-radius: 0; background: transparent;
  filter: invert(1);
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #fff; font-family: var(--font); font-size: 13px; font-weight: 600;
  padding: 10px 12px; letter-spacing: .02em;
}
.nav .has-sub { position: relative; }
.nav .has-sub > a::after {
  content: ""; display: inline-block; margin-left: 6px;
  border: 4px solid transparent; border-top-color: #fff; transform: translateY(2px);
}
.nav .sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 180px;
  background: #fff; border-radius: 8px; box-shadow: var(--shadow); padding: 8px 0;
}
.nav .has-sub:hover .sub { display: block; }
.nav .sub a { display: block; color: var(--ink); padding: 10px 16px; font-weight: 500; }
.nav .sub a:hover { background: var(--soft); color: var(--cyan-deep); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font-family: var(--font); font-weight: 700; font-size: 13px; letter-spacing: .03em;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease;
}
.btn-portal {
  color: #fff; border-color: rgba(255,255,255,.85); background: transparent;
}
.btn-portal:hover { background: rgba(255,255,255,.1); }
.btn-cyan {
  background: var(--cyan); color: #fff; border-color: var(--cyan); border-radius: 6px;
}
.btn-cyan:hover { background: var(--cyan-deep); }
.btn-outline {
  background: transparent; color: var(--cyan); border-color: var(--cyan); border-radius: 6px;
}
.btn-outline:hover { background: rgba(61,184,245,.08); }
.btn-outline-light {
  background: transparent; color: #fff; border-color: #fff; border-radius: 6px;
}
.btn-block { width: 100%; }
.nav-toggle {
  display: none; width: 42px; height: 42px; margin-left: auto;
  border: 1px solid rgba(255,255,255,.35); background: transparent; border-radius: 8px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: #fff;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* Hero */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(6,20,40,.55) 0%, rgba(6,20,40,.35) 45%, rgba(6,20,40,.72) 100%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
  color: #fff;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 168px 0 0;
}
.hero-content {
  padding-bottom: 24px;
  width: min(720px, calc(100% - 40px));
  margin-left: max(24px, calc((100% - 1180px) / 2 - 120px));
  margin-right: auto;
}
.hero .stats { margin-top: auto; }
.hero h1 {
  margin: 0 0 18px; font-family: var(--font); font-size: clamp(34px, 5vw, 54px);
  font-weight: 800; letter-spacing: .01em; line-height: 1.15;
}
.hero p {
  margin: 0 0 28px; font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,.92);
  max-width: 560px;
}
.stats {
  background: #fff; color: var(--ink);
  display: grid; grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 -10px 40px rgba(0,0,0,.12);
}
.stat {
  text-align: center; padding: 28px 12px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat strong {
  display: block; font-family: var(--font); font-size: 34px; color: var(--navy);
  font-weight: 800; line-height: 1.1;
}
.stat span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 80px 0; }
.section.soft { background: var(--soft); }
.section-title {
  text-align: center; margin: 0 0 14px;
  font-family: var(--font); font-size: 28px; font-weight: 800;
  color: var(--navy); letter-spacing: .08em; text-transform: uppercase;
}
.section-title::after {
  content: ""; display: block; width: 48px; height: 3px; margin: 14px auto 0;
  background: var(--cyan);
}
.section-lead {
  text-align: center; max-width: 760px; margin: 0 auto 40px; color: var(--muted);
}
.intro-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
}
.intro-copy p { color: #44566f; font-size: 16px; }
.intro-copy .btn { margin-top: 18px; }

.steps {
  background:
    linear-gradient(180deg, rgba(8,28,52,.78), rgba(8,28,52,.78)),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80") center/cover;
  color: #fff; padding: 80px 0;
}
.steps-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px;
}
.steps-head h2 {
  margin: 0; font-family: var(--font); font-size: clamp(28px, 4vw, 40px); font-weight: 800;
}
.steps-head p { margin: 8px 0 0; color: rgba(255,255,255,.8); }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.step-card {
  background: #fff; color: var(--ink); border-radius: 10px; padding: 28px 24px;
  box-shadow: var(--shadow); min-height: 220px;
}
.step-ico {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, #e8f8ff, #d7f0c8);
  color: var(--navy); font-weight: 800; font-family: var(--font);
}
.step-card h3 {
  margin: 0 0 10px; font-family: var(--font); font-size: 18px; color: var(--navy);
}
.step-card p { margin: 0; color: var(--muted); font-size: 14px; }

.feature-grid, .markets-grid, .why-grid, .plans-grid {
  display: grid; gap: 22px;
}
.feature-grid { grid-template-columns: repeat(4, 1fr); }
.markets-grid { grid-template-columns: repeat(3, 1fr); }
.why-grid { grid-template-columns: repeat(3, 1fr); }
.plans-grid { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 22px; transition: .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card h3, .card h4 {
  margin: 0 0 10px; font-family: var(--font); color: var(--navy); font-size: 18px;
}
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .more {
  display: inline-block; margin-top: 16px; color: var(--cyan-deep);
  font-family: var(--font); font-weight: 700; font-size: 13px;
}

.trade-banner {
  background: linear-gradient(120deg, #0c2340, #15406f);
  color: #fff; border-radius: 16px; padding: 36px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center;
}
.trade-banner h3 { margin: 0 0 8px; font-family: var(--font); font-size: 28px; }
.trade-banner p { margin: 0 0 18px; color: rgba(255,255,255,.78); }
.trade-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.trade-chips span {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 8px 14px; font-size: 13px;
}

.why-item {
  background: var(--soft); border-radius: 12px; padding: 28px 22px;
}
.why-item h4 {
  margin: 0 0 10px; font-family: var(--font); font-size: 15px; letter-spacing: .04em;
  color: var(--navy); text-transform: uppercase;
}
.why-item p { margin: 0; color: var(--muted); font-size: 14px; }

.plan {
  border: 1px solid var(--line); border-radius: 14px; padding: 28px 22px;
  background: #fff; display: flex; flex-direction: column; min-height: 100%;
}
.plan.featured {
  border-color: var(--cyan);
  box-shadow: 0 16px 40px rgba(61,184,245,.18);
}
.plan .tag {
  align-self: flex-start; background: rgba(61,184,245,.12); color: var(--cyan-deep);
  font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 999px; margin-bottom: 12px;
}
.plan h4 { margin: 0 0 10px; font-family: var(--font); font-size: 24px; color: var(--navy); }
.plan p { margin: 0 0 18px; color: var(--muted); font-size: 14px; flex: 1; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; }
.plan li {
  padding: 8px 0 8px 22px; position: relative; color: #44566f; font-size: 14px;
  border-top: 1px solid var(--line);
}
.plan li::before {
  content: "✓"; position: absolute; left: 0; color: var(--cyan-deep); font-weight: 700;
}

.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 18px 20px; cursor: pointer; font-family: var(--font); font-weight: 700;
  color: var(--navy); font-size: 15px;
}
.faq-a {
  display: none; padding: 0 20px 18px; color: var(--muted); font-size: 14px;
}
.faq-item.open .faq-a { display: block; }

.contact-grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px;
}
.contact-card, .contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px;
}
.contact-card h3, .contact-form h3 {
  margin: 0 0 10px; font-family: var(--font); color: var(--navy);
}
.field { margin-bottom: 14px; }
.field label {
  display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted);
  font-family: var(--font); font-weight: 600;
}
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(61,184,245,.15);
}
.form-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.form-note.ok { color: var(--ok); }
.form-note.err { color: var(--danger); }

.site-footer {
  background: #08182c; color: rgba(255,255,255,.78); padding: 56px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 24px; margin-bottom: 36px;
}
.site-footer h4 {
  margin: 0 0 14px; color: #fff; font-family: var(--font); font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--cyan); }
.footer-brand p { margin: 12px 0 0; font-size: 14px; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px;
  font-size: 12px; color: rgba(255,255,255,.55);
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(800px 420px at 10% -10%, rgba(61,184,245,.22), transparent 60%),
    linear-gradient(160deg, #061428 0%, #0c2340 45%, #123057 100%);
  display: grid; place-items: center; padding: 40px 16px;
}
.auth-card {
  width: min(440px, 100%);
  background: #fff; border-radius: 16px; padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.auth-card .brand {
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.auth-card .brand img {
  height: 100px; width: 200px; object-fit: contain; border-radius: 0;
  background: transparent;
}
.auth-card h1 {
  margin: 0 0 8px; text-align: center; font-family: var(--font);
  font-size: 26px; color: var(--navy);
}
.auth-card .sub {
  margin: 0 0 24px; text-align: center; color: var(--muted); font-size: 14px;
}
.auth-card .links {
  margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted);
}
.auth-card .links a { color: var(--cyan-deep); font-weight: 700; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.code-row .btn { min-height: 46px; border-radius: 8px; white-space: nowrap; }
.device-pick {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px;
}
.device-pick label {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px;
}
.device-pick input { accent-color: var(--cyan); }

@media (max-width: 1100px) {
  .feature-grid, .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 20px; right: 20px;
    background: #0c2340; border-radius: 12px; flex-direction: column;
    align-items: stretch; padding: 12px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav .sub { position: static; display: none; background: transparent; box-shadow: none; }
  .nav .has-sub.open .sub { display: block; }
  .nav .sub a { color: rgba(255,255,255,.85); }
  .btn-portal { display: none; }
  .intro-grid, .steps-grid, .contact-grid, .trade-banner { grid-template-columns: 1fr; }
  .steps-head { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .markets-grid, .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .feature-grid, .markets-grid, .why-grid, .plans-grid, .stats, .footer-grid {
    grid-template-columns: 1fr;
  }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero { min-height: 88vh; padding-top: 110px; }
  .auth-card { padding: 28px 20px; }
}

/* Language switcher */
.lang-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px; flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.45); background: transparent;
  color: #fff; cursor: pointer; font-family: var(--font); font-size: 12px; font-weight: 600;
}
.lang-trigger-bar { margin-left: 4px; }
.lang-trigger img { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; }
.header-inner .nav-toggle { margin-left: 8px; }
.auth-page .lang-float {
  position: fixed; top: 18px; right: 18px; z-index: 40;
}
.auth-page .lang-trigger {
  border-color: rgba(12,35,64,.18); color: var(--navy); background: #fff;
  box-shadow: 0 8px 24px rgba(12,35,64,.12);
}
.lang-overlay {
  position: fixed; inset: 0; background: rgba(6,20,40,.45); z-index: 80;
  opacity: 0; pointer-events: none; transition: .2s ease;
}
.lang-overlay.open { opacity: 1; pointer-events: auto; }
.lang-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 92vw);
  background: #fff; z-index: 90; transform: translateX(105%);
  transition: transform .25s ease; box-shadow: -12px 0 40px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
}
.lang-panel.open { transform: translateX(0); }
.lang-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 12px; border-bottom: 1px solid var(--line);
}
.lang-panel-head strong {
  font-family: var(--font); color: var(--navy); font-size: 16px;
}
.lang-close {
  width: 36px; height: 36px; border: 0; background: transparent;
  font-size: 28px; line-height: 1; color: #8a97ab; cursor: pointer;
}
.lang-list { overflow: auto; flex: 1; }
.lang-item {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border: 0; border-bottom: 1px solid #eef2f7;
  background: #fff; cursor: pointer; text-align: left;
  font-size: 15px; color: #22324a;
}
.lang-item img { width: 28px; height: 20px; object-fit: cover; border-radius: 2px; flex: 0 0 auto; }
.lang-item span { flex: 1; }
.lang-item i { color: #c0c7d4; font-style: normal; font-size: 20px; }
.lang-item:hover, .lang-item.active { background: #f7faff; }
.lang-item.active span { color: var(--cyan-deep); font-weight: 700; }
.faq-a { white-space: pre-line; }
@media (max-width: 980px) {
  .lang-trigger .lang-label { display: none; }
  .lang-trigger-bar { margin-left: auto; }
  .header-inner .nav-toggle { margin-left: 8px; }
}
