/* ==========================================================================
   LevelNet Brokers — shared stylesheet (v2, bolder pass)
   Original design system. Not affiliated with, and not derived from the
   assets of, any existing brokerage.
   ========================================================================== */

:root {
  --navy-950: #050a18;
  --navy-900: #0a1430;
  --navy-800: #101f45;
  --navy-700: #172d63;
  --navy-100: #e9edf7;
  --teal-500: #12e0c4;
  --teal-400: #4bf0d8;
  --violet-500: #7c5cff;
  --violet-400: #9c85ff;
  --pink-500: #ff4d94;
  --gold-400: #ffb84d;
  --ink: #0a1430;
  --muted: #5a6b85;
  --paper: #f5f7fc;
  --white: #ffffff;
  --danger: #c0392b;
  --radius: 16px;
  --shadow-md: 0 14px 36px rgba(6, 16, 36, 0.16);
  --shadow-lg: 0 24px 70px rgba(6, 16, 36, 0.24);
  --glow-teal: 0 0 0 1px rgba(18,224,196,0.35), 0 20px 50px rgba(18,224,196,0.25);
  --glow-violet: 0 0 0 1px rgba(124,92,255,0.35), 0 20px 50px rgba(124,92,255,0.28);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
}

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

a:focus-visible, button:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--teal-400), var(--violet-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 12px var(--teal-400);
  -webkit-text-fill-color: initial;
}

h1, h2, h3, h4 { font-weight: 800; margin: 0 0 14px; letter-spacing: -0.015em; }
h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.06; }
h2 { font-size: clamp(27px, 3.6vw, 40px); line-height: 1.12; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 14px; color: var(--muted); }

.gradient-text {
  background: linear-gradient(90deg, var(--teal-400), var(--violet-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section { padding: 92px 0; position: relative; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--paper); }
.section-dark {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--navy-100);
  position: relative;
  overflow: hidden;
}
.section-dark p { color: #aebada; }
.section-dark h2, .section-dark h3 { color: var(--white); }

.text-center { text-align: center; }
.max-w { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---- Decorative blobs / dot grid ---- */
.blob-field { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: blob-float 16s ease-in-out infinite;
}
.blob-teal { width: 420px; height: 420px; background: var(--teal-500); top: -140px; right: -100px; animation-delay: 0s; }
.blob-violet { width: 380px; height: 380px; background: var(--violet-500); bottom: -160px; left: -80px; animation-delay: -5s; }
.blob-pink { width: 260px; height: 260px; background: var(--pink-500); top: 40%; right: 20%; opacity: 0.35; animation-delay: -9s; }
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.08); }
  66% { transform: translate(-24px, 20px) scale(0.95); }
}

.dot-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, black 40%, transparent 100%);
}

/* ---- Reveal-on-scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
  position: relative;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn-primary {
  background: linear-gradient(90deg, var(--teal-500), var(--violet-500));
  color: var(--navy-950);
  box-shadow: var(--glow-teal);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: var(--glow-violet); }
.btn-ghost { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.12); }
.btn-outline { background: transparent; border-color: var(--navy-700); color: var(--navy-700); }
.btn-outline:hover { background: var(--navy-700); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 10, 24, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled { background: rgba(5, 10, 24, 0.96); box-shadow: 0 8px 30px rgba(0,0,0,0.35); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--white); }
.brand .mark { width: 32px; height: 32px; }
.brand .brand-lockup { height: 36px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: #cfd8ea;
  font-size: 14.5px;
  font-weight: 600;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--teal-400), var(--violet-400));
  transition: right 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 22px; cursor: pointer; }

@media (max-width: 900px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-950); flex-direction: column; align-items: flex-start; padding: 18px 24px; gap: 16px; display: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-actions .btn-ghost { display: none; }
}

/* ---- Hero ---- */
.hero {
  padding: 100px 0 76px;
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800) 70%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero p.lead { color: #bcc7e2; font-size: 18.5px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 27px; color: var(--white); background: linear-gradient(90deg, var(--teal-400), var(--violet-400)); -webkit-background-clip: text; background-clip: text; }
.hero-stats div span { font-size: 13px; color: #93a0bd; }

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

/* ---- Hero devices (laptop + phone) ---- */
.hero-devices { position: relative; animation: float-y 7s ease-in-out infinite; }
.hero-devices img { width: 100%; height: auto; }

/* ---- Markets section (earth horizon + candles) ---- */
.markets-section { padding-bottom: 100px; }
.markets-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.markets-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; opacity: 0.9; }
.markets-section .container { position: relative; z-index: 2; }
.markets-spacer { height: 190px; }
@media (max-width: 700px) { .markets-spacer { height: 90px; } }
.asset-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 18px 0 16px; }
.asset-links a { color: var(--white); font-weight: 700; font-size: 16px; opacity: 0.92; transition: opacity 0.2s ease, color 0.2s ease; }
.asset-links a:hover { color: var(--teal-400); opacity: 1; }
.markets-section .card-dark { background: rgba(10, 15, 30, 0.65); backdrop-filter: blur(4px); }

/* ---- Globe section ---- */
.globe-section { padding: 110px 0; }
.globe-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.globe-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.85; }
.globe-section .container { position: relative; z-index: 2; }

/* ---- Device mockup / hero visual ---- */
.device-mockup {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow-lg), 0 0 90px rgba(124,92,255,0.18);
  padding: 18px;
  backdrop-filter: blur(6px);
  animation: float-y 6s ease-in-out infinite;
}
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.device-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }

/* ---- Ticker ---- */
.ticker-wrap {
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: var(--navy-900);
  overflow: hidden;
  padding: 13px 0;
  position: relative;
}
.ticker { display: flex; gap: 40px; white-space: nowrap; animation: scroll-left 24s linear infinite; width: max-content; }
.ticker span { color: #cfd8ea; font-size: 13.5px; font-weight: 700; }
.ticker span.up { color: var(--teal-400); }
.ticker span.down { color: var(--pink-500); }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Trust bar ---- */
.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item {
  text-align: center; padding: 26px 18px; border-radius: var(--radius);
  background: var(--white); border: 1px solid #e7ecf4;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.trust-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(18,224,196,0.4); }
.trust-item strong { display: block; font-size: 27px; color: var(--navy-900); }
.trust-item span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .trust-bar { grid-template-columns: repeat(2, 1fr); } }

/* ---- Marquee (logos / awards) ---- */
.marquee-wrap { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.marquee { display: flex; gap: 60px; width: max-content; animation: scroll-left 20s linear infinite; align-items: center; }
.marquee span { font-weight: 800; font-size: 15px; color: var(--muted); white-space: nowrap; opacity: 0.7; }

/* ---- Cards / grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid #e7ecf4;
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); border-color: rgba(18,224,196,0.45); }
.card .icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, rgba(18,224,196,0.18), rgba(124,92,255,0.18));
  color: var(--teal-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 16px;
  transition: transform 0.25s ease;
}
.card:hover .icon { transform: scale(1.1) rotate(-4deg); }

.card-dark {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card-dark:hover { transform: translateY(-5px); border-color: rgba(18,224,196,0.5); background: rgba(255,255,255,0.07); }

/* ---- Pricing ---- */
.price-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.price-table th, .price-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #e7ecf4; font-size: 14.5px; }
.price-table th { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.plan-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: linear-gradient(90deg, rgba(18,224,196,0.18), rgba(124,92,255,0.18)); color: var(--teal-500); margin-bottom: 10px; }
.plan-price { font-size: 36px; font-weight: 800; }
.plan-price span { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan-featured { border: 2px solid var(--teal-500); position: relative; box-shadow: var(--glow-teal); }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-left: 6px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--violet-500));
  color: var(--navy-950);
  font-weight: 800; font-size: 15px; margin-bottom: 14px;
  box-shadow: var(--glow-teal);
}
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---- Form ---- */
.form-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e7ecf4;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; color: var(--navy-900); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid #d7deea;
  font-size: 14.5px; font-family: var(--font); background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); background: var(--white); box-shadow: 0 0 0 4px rgba(18,224,196,0.15); }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.form-error { display: none; background: rgba(255,77,148,0.1); border: 1px solid rgba(255,77,148,0.45); color: #b32360; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---- Callout / risk box ---- */
.callout {
  border-left: 4px solid var(--gold-400);
  background: #fdf5e8;
  padding: 18px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  color: #6b5a2c;
}
.callout strong { color: #4a3d1c; }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--teal-500), var(--violet-500));
  color: var(--navy-950);
  border-radius: 24px;
  padding: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-violet);
}
.cta-band h2 { color: var(--navy-950); margin-bottom: 6px; }
.cta-band p { color: rgba(10,20,48,0.75); margin: 0; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-950); color: #9fabc7; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; }
.footer-col a, .footer-col li { display: block; font-size: 13.5px; margin-bottom: 10px; color: #9fabc7; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--teal-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; font-size: 12px; line-height: 1.7; color: #7d8bab; }
.footer-bottom p { color: #7d8bab; margin-bottom: 10px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Page hero (interior pages) ---- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero p { color: #bcc7e2; max-width: 620px; }
.breadcrumb { font-size: 12.5px; color: #93a0bd; margin-bottom: 14px; }
.breadcrumb a { color: #93a0bd; }
.breadcrumb a:hover { color: var(--white); }

.table-compare { width: 100%; border-collapse: collapse; }
.table-compare th, .table-compare td { padding: 14px; border-bottom: 1px solid #e7ecf4; font-size: 14px; text-align: left; }
.table-compare th { background: var(--paper); }
.table-compare tr { transition: background 0.15s ease; }
.table-compare tbody tr:hover { background: var(--paper); }

.badge-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.badge-pill { font-size: 12px; font-weight: 700; padding: 8px 15px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--white); border: 1px solid rgba(255,255,255,0.15); transition: border-color 0.2s ease, background 0.2s ease; }
.badge-pill:hover { border-color: var(--teal-400); background: rgba(18,224,196,0.12); }
