/* AquaFX — mobile-first stylesheet. Theme tokens live in :root. */

:root {
  --bg: #0a0c0f;
  --surface: #12161b;
  --border: #1f262e;
  --text: #e8edf0;
  --text-muted: #9aa7b0;
  --accent: #2fb8c9;
  --accent-strong: #46cbdb;
  --accent-ink: #06272c;   /* text on accent buttons */
  --success: #4ecf8a;
  --error: #e5695e;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }

/* Keep the hidden attribute working on elements we also give a display value */
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow { max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 15, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }

.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.brand-name strong { font-weight: 800; }

.nav-links {
  display: none;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .95rem;
}
.nav-links a:hover { color: var(--text); }

.nav-cta { margin-left: auto; padding: 9px 18px; font-size: .95rem; }

@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-cta { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }

.hero h1 {
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  max-width: 720px;
}

.hero-sub {
  margin-top: 18px;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero-ctas {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Stats ---------- */
.stats { padding: 8px 0 40px; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.01em;
}

.stat-label { color: var(--text-muted); font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -.015em;
}

.section-sub {
  margin-top: 10px;
  color: var(--text-muted);
  max-width: 560px;
}

/* ---------- Telegram feed ---------- */
.telegram-feed {
  margin-top: 28px;
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.telegram-fallback {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/* ---------- Copy trading explainer ---------- */
.explain-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 720px) {
  .explain-grid { grid-template-columns: repeat(3, 1fr); }
}

.explain-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.explain-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.explain-card p { color: var(--text-muted); font-size: .95rem; }

.explain-note {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: .9rem;
  max-width: 640px;
}

/* ---------- Steps ---------- */
.steps {
  margin-top: 32px;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step { position: relative; padding-left: 54px; }

.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { font-size: 1.05rem; }
.step p { color: var(--text-muted); font-size: .95rem; margin-top: 4px; }

/* ---------- Join paths (new account vs IB transfer) ---------- */
.join-paths {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 720px) {
  .join-paths { grid-template-columns: repeat(2, 1fr); }
}

.path-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.path-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.path-card p { color: var(--text-muted); font-size: .95rem; }
.path-card .btn { margin-top: 16px; }

.mini-steps {
  margin-top: 12px;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: .95rem;
}

.mini-steps li { margin-bottom: 6px; }
.mini-steps strong { color: var(--text); }

.section-note { margin-top: 20px; font-size: .95rem; }
.section-note a { color: var(--accent); text-decoration: none; }
.section-note a:hover { text-decoration: underline; }

/* ---------- Form ---------- */
#join-form { margin-top: 30px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.req { color: var(--accent); }
.opt { color: var(--text-muted); font-weight: 400; }

.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 11px 14px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field.invalid input,
.field.invalid .input-prefix { border-color: var(--error); }

.input-prefix {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.input-prefix:focus-within { border-color: var(--accent); }

.input-prefix span {
  padding: 0 4px 0 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.input-prefix input {
  border: none;
  background: transparent;
  padding-left: 2px;
}
.input-prefix input:focus { border: none; }

.field-error {
  margin-top: 6px;
  color: var(--error);
  font-size: .88rem;
}

.form-msg {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: .97rem;
}

.form-msg-success {
  background: rgba(78, 207, 138, .1);
  border: 1px solid rgba(78, 207, 138, .4);
  color: var(--success);
}

.form-msg-error {
  background: rgba(229, 105, 94, .1);
  border: 1px solid rgba(229, 105, 94, .4);
  color: var(--error);
}

.form-note {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: .9rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-brand .brand-mark { width: 26px; height: 26px; }
.footer-brand .brand-name { font-size: 1.1rem; font-weight: 700; }

.disclaimer { max-width: 760px; }

.disclaimer h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.disclaimer p {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 10px;
}

.footer-meta {
  margin-top: 26px;
  color: var(--text-muted);
  font-size: .88rem;
}

.footer-meta a { color: var(--accent); text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }
