/* Forex Simulator for Beginners — тестовая версия сайта (дизайн приложения ещё может измениться) */
:root {
  --bg: #071612;
  --bg-2: #0c231d;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef7f3;
  --muted: #a7bdb4;
  --mint: #3ee0a1;
  --gold: #f2c25c;
  --red: #f0646a;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(62, 224, 161, 0.18), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(242, 194, 92, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  background-attachment: fixed;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 22, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; gap: 20px; font-weight: 600; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }

/* Первый экран */
.hero { padding: 72px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.badge {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(242, 194, 92, 0.45); color: var(--gold);
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
}
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; margin: 18px 0 16px; font-weight: 800; }
h1 span { display: block; color: var(--mint); }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; font-size: 16px;
  background: linear-gradient(180deg, #5af0b4, #22b77e); color: #04241a;
  box-shadow: 0 10px 30px rgba(62, 224, 161, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn.soon { cursor: default; }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: none; }

/* Иллюстрация: стеклянная карточка со свечами */
.hero-art {
  position: relative; aspect-ratio: 1 / 1; max-width: 400px; width: 100%; justify-self: center;
  border-radius: 32px; background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow); overflow: hidden;
}
.hero-art::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), transparent 45%);
}
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { position: absolute; left: 24px; top: 24px; width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow); }

/* Секции */
section { padding: 64px 0; }
.section-title { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 10px; font-weight: 800; }
.section-sub { color: var(--muted); margin: 0 0 36px; max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.card .num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800;
  background: rgba(62, 224, 161, 0.14); color: var(--mint); margin-bottom: 14px;
}
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.pairs { display: flex; flex-wrap: wrap; gap: 10px; }
.pair { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }

/* Подвал */
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; }
.disclaimer { max-width: 640px; margin: 0; }

/* Страница политики */
.doc { max-width: 760px; padding: 48px 16px 80px; margin: 0 auto; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc .updated { font-size: 14px; }

@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 320px; }
  .grid, .two { grid-template-columns: 1fr; }
  .top nav a.hide-sm { display: none; }
}
