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

:root {
  --bg: #0b1121;
  --bg-alt: #0f172a;
  --bg-warm: #131c31;
  --surface: #1a2332;
  --surface-hover: #1e293b;
  --border: #1e293b;
  --border-light: #1a2332;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --blue: #3b82f6;
  --blue-light: #1e3a5f;
  --teal: #22d3ee;
  --teal-light: #164e63;
  --gradient: linear-gradient(135deg, #3b82f6, #22d3ee);
  --gradient-subtle: linear-gradient(135deg, #1e3a5f, #164e63);
  --gradient-warm: linear-gradient(180deg, #131c31 0%, #0b1121 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 17, 33, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav--scrolled { border-color: var(--border); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav__logo-icon {
  width: 28px;
  height: 28px;
}

.nav__links { display: flex; align-items: center; gap: 32px; }

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav__link:hover { color: var(--blue); }

.nav__cta {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav__cta:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav__toggle { display: none; background: none; border: none; color: var(--text-secondary); padding: 4px; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--gradient-warm);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  color: var(--bg);
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}

.hero__blob--1 {
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: var(--blue);
}

.hero__blob--2 {
  bottom: -100px;
  left: -60px;
  width: 400px;
  height: 400px;
  background: var(--teal);
}

.hero__content {
  position: relative;
  max-width: 680px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue);
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__title-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.btn--ghost:hover { color: var(--blue); border-color: var(--blue); }

.btn--lg { padding: 14px 32px; font-size: 16px; }

.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }

.section__accent {
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient);
  margin-bottom: 20px;
}

.section__header {
  max-width: 600px;
  margin-bottom: 56px;
}

.section__header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section__desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about__text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__text p:last-child { margin-bottom: 0; }

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about__stat {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.about__stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.about__stat-value {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.about__stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 640px;
}

.product-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.product-card__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__icon svg { width: 28px; height: 28px; color: var(--blue); }

.product-card__body { flex: 1; }

.product-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.product-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.product-card__link:hover { gap: 8px; }

/* ───── Solutions for Traders ───── */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.solution-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 0;
}

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

.solution-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--blue), transparent, var(--teal));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  padding: 1.5px;
}

.solution-card:hover::after { opacity: 1; }

.solution-card--violet::after {
  background: linear-gradient(135deg, #8b5cf6, transparent, #06b6d4);
}

.solution-card__badge {
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.solution-card--blue .solution-card__badge { background: var(--blue-light); color: var(--blue); }
.solution-card--violet .solution-card__badge { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

.solution-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.solution-card__icon svg { width: 24px; height: 24px; }

.solution-card--blue .solution-card__icon { background: var(--blue-light); color: var(--blue); }
.solution-card--violet .solution-card__icon { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

.solution-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.solution-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.solution-card__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.solution-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.solution-card__link:hover { gap: 8px; }

.solution-card__link--muted { color: var(--text-muted); font-weight: 500; }
.solution-card__link--muted:hover { color: var(--blue); }

.solutions-more {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.solutions-more a {
  color: var(--blue);
  font-weight: 600;
  transition: color 0.2s;
}

.solutions-more a:hover { color: var(--teal); }

.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

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

.value-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-card__icon svg { width: 24px; height: 24px; }

.value-card__icon--blue { background: var(--blue-light); color: var(--blue); }
.value-card__icon--teal { background: var(--teal-light); color: var(--teal); }
.value-card__icon--gradient { background: var(--gradient-subtle); color: var(--blue); }

.value-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.value-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact {
  background: var(--gradient-warm);
}

.contact__inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contact__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__icon svg { width: 24px; height: 24px; color: #fff; }

.contact__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 12px;
}

.contact__desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1.5px solid var(--blue-light);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact__email:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.contact__email svg { width: 20px; height: 20px; }

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 32px;
}

.footer__brand { max-width: 260px; }

.footer__tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

.footer__links { display: flex; gap: 48px; }

.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--blue); }

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .values__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(11, 17, 33, 0.98);
    backdrop-filter: blur(16px);
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .hero__title { font-size: clamp(36px, 10vw, 52px); }

  .about__grid { grid-template-columns: 1fr; gap: 32px; }

  .solutions-grid { grid-template-columns: 1fr; }

  .values__grid { grid-template-columns: 1fr; }

  .section { padding: 64px 0; }

  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__links { flex-wrap: wrap; gap: 32px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 32px; }
  .about__stats { grid-template-columns: 1fr; }
  .product-card { flex-direction: column; }
}

/* ───── Animated Floating Orbs ───── */
@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -70px) scale(1.1); }
  50% { transform: translate(-30px, -130px) scale(0.95); }
  75% { transform: translate(40px, -50px) scale(1.05); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-60px, 50px) scale(0.9); }
  50% { transform: translate(40px, 90px) scale(1.15); }
  75% { transform: translate(-30px, 30px) scale(1); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero__blob--1 { animation: float-1 20s ease-in-out infinite; }
.hero__blob--2 { animation: float-2 25s ease-in-out infinite; }

.hero__title-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

/* ───── Hero Grid Overlay ───── */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ───── Particles Canvas ───── */
#particle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* ───── Hero badge glow pulse ───── */
.hero__badge {
  animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
  50% { box-shadow: 0 0 24px 0 rgba(59, 130, 246, 0.12); }
}

/* ───── Enhanced card hover glow ───── */
.product-card, .value-card, .about__stat {
  position: relative;
  z-index: 0;
}

.product-card::after, .value-card::after, .about__stat::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--blue), transparent, var(--teal));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  padding: 1.5px;
}

.product-card:hover::after, .value-card:hover::after, .about__stat:hover::after {
  opacity: 1;
}

/* ───── FAQ Section (GEO) ───── */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.faq-item:hover { border-color: var(--blue); }

.faq-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.faq-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ───── Section reveal stagger ───── */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }

/* ───── Smooth wave animation ───── */
.hero__wave {
  animation: wave-drift 8s ease-in-out infinite alternate;
}

@keyframes wave-drift {
  from { transform: translateX(-2%) scaleX(1.02); }
  to { transform: translateX(2%) scaleX(0.98); }
}
