:root {
  --bg: #0b0d12;
  --surface: #141820;
  --surface-2: #1c212e;
  --text: #f4f6fb;
  --muted: #cdd4e6;
  --accent: #2f80ed;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  background: var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/img/aitrade-hero.svg") center bottom / contain no-repeat;
  opacity: .12;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 16px;
}

.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  margin: 0 0 22px;
  font-weight: 800;
}

.hero .sub {
  font-size: clamp(17px, 2.4vw, 22px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(47,128,237,.25);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(47,128,237,.35); }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.1);
}

.btn-secondary:hover { background: rgba(255,255,255,.08); }

.btn-icon,
.tg-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.section {
  padding: 92px 24px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 0 16px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 14px;
}

.section-head .sub {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.features { background: var(--surface); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.card {
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(47,128,237,.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.icon-wrap svg { width: 26px; height: 26px; }

.card h3 { margin: 0 0 10px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }

.post-section { background: var(--bg); }

.tg-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tg-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.tg-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

.tg-name { margin: 0; font-weight: 700; }
.tg-time { margin: 0; font-size: 13px; color: var(--muted); }

.tg-body {
  padding: 22px 20px;
  font-size: 16px;
  line-height: 1.6;
}

.tg-body p { margin: 0 0 14px; }
.tg-body p:last-child { margin-bottom: 0; }

.tg-lead {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.tg-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.tg-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.tg-list li:last-child { border-bottom: none; }

.tg-divider {
  border: none;
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: 20px 0;
}

.tg-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.tg-final {
  text-align: center;
  font-size: 18px;
  padding-top: 8px;
}

.tg-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  background: rgba(255,255,255,.02);
  border-top: 1px solid rgba(255,255,255,.06);
}

.toast {
  color: #7bf7a0;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}

.toast.show { opacity: 1; transform: translateY(0); }

.footer {
  text-align: center;
  padding: 42px 24px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.footer p { margin: 0 0 8px; }
.footer-note { opacity: .8; }

@media (max-width: 560px) {
  .hero { padding: 48px 18px; }
  .hero-content { padding: 0 6px; }
  .section { padding: 64px 18px; }
  .section-head { padding: 0 6px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .tg-actions { flex-direction: column; align-items: flex-start; }
}
