/* Nexmind — company site */
:root {
  --bg: #07080F;
  --bg-alt: #0B0D18;
  --card: #10131F;
  --card-hi: #151929;
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(255, 255, 255, 0.16);
  --text: #EEF0F8;
  --text-dim: #A3A8BE;
  --text-faint: #6D7290;
  --violet: #7C5CFF;
  --cyan: #22D3EE;
  --grad: linear-gradient(120deg, #9D85FF 0%, #7C5CFF 35%, #22D3EE 100%);

  /* TradeBrain brand (from the app's theme) */
  --tb-bg: #0A0710;
  --tb-card: #1B1422;
  --tb-pink: #FF2D78;
  --tb-pink-soft: #FF6FB0;
  --tb-green: #2FE6A8;
  --tb-gold: #F7C948;
  --tb-text-dim: #BDA3B3;

  --radius: 20px;
  --wrap: 1160px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--font-body);
  color: #fff; background: var(--grad);
  box-shadow: 0 8px 30px -8px rgba(124, 92, 255, 0.6), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -8px rgba(124, 92, 255, 0.75), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-ghost { background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px var(--line-hi); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-lg { height: 60px; padding: 0 32px; font-size: 18px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 8, 15, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--font-head); letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text small { margin-top: 4px; font: 600 9.5px/1 var(--font-body); letter-spacing: .32em; text-transform: uppercase; color: var(--text-dim); }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--text-dim); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero-glow {
  position: absolute; left: 50%; top: 42%; width: 900px; height: 600px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.28), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(34, 211, 238, 0.16), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 200px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }

.announce {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 6px 14px 6px 6px; margin-bottom: 22px; border-radius: 999px;
  background: rgba(255, 45, 120, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 45, 120, 0.35);
  font-size: 14px; color: #FFD3E4; transition: background-color .2s, box-shadow .2s;
}
.announce img { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.announce b { color: #fff; }
.announce:hover { background: rgba(255, 45, 120, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 45, 120, 0.6); }
.announce-arrow { transition: transform .2s; }
.announce:hover .announce-arrow { transform: translateX(3px); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-dim); letter-spacing: .02em; margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15); flex: none; }
.hero h1 { font-size: clamp(44px, 8vw, 92px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.lead { max-width: 640px; margin-top: 26px; font-size: clamp(17px, 2vw, 20px); color: var(--text-dim); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 48px 0 0; }
.hero-tags li { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-dim); background: rgba(255,255,255,0.03); box-shadow: inset 0 0 0 1px var(--line); }

/* Sections */
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 700px; margin-bottom: 56px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.section h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; }
.sub { margin-top: 18px; font-size: 18px; color: var(--text-dim); }

/* Services */
.grid { display: grid; gap: 20px; }
.services { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; padding: 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.45), 0 20px 50px -20px rgba(124, 92, 255, 0.35); }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(34, 211, 238, 0.12));
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.35);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: #C7BBFF; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 16px; }

/* Product — TradeBrain, in the app's own brand colours */
.product {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding: 56px; border-radius: 28px; position: relative; overflow: hidden;
}
.tb {
  background:
    radial-gradient(600px 400px at 85% 30%, rgba(255, 45, 120, 0.18), transparent 70%),
    linear-gradient(180deg, #130A18, var(--tb-bg));
  box-shadow: inset 0 0 0 1px rgba(255, 110, 170, 0.18), 0 40px 100px -40px rgba(255, 45, 120, 0.35);
}
.product-id { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.product-id img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 30px -6px rgba(255, 45, 120, 0.55), inset 0 0 0 1px rgba(255,255,255,.1); }
.product h3 { font-size: 34px; font-weight: 700; }
.product-tag { color: var(--tb-pink-soft); font-weight: 500; margin-top: 4px; }
.product-copy > p { color: var(--tb-text-dim); font-size: 17px; }
.feature-list { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; }
.feature-list li { position: relative; padding-left: 28px; color: var(--tb-text-dim); font-size: 16px; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255, 45, 120, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23FF6FB0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.feature-list strong { color: #FDF2F8; font-weight: 600; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #fff;
  background: linear-gradient(90deg, var(--tb-pink), #FF5FA0);
  box-shadow: 0 10px 30px -10px rgba(255, 45, 120, 0.7);
}
.badge .dot { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } }

.product-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.brain-glow {
  position: absolute; width: 80%; aspect-ratio: 1; left: 0; top: 4%;
  background: radial-gradient(closest-side, rgba(255, 45, 120, 0.45), transparent 75%);
  filter: blur(30px);
}
.brain-art {
  position: absolute; left: -2%; top: 2%; width: 74%; height: auto;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.5));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }

.phone {
  position: absolute; right: 0; bottom: 0; width: 250px;
  padding: 10px; border-radius: 38px;
  background: linear-gradient(160deg, #2A2030, #120C17);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 40px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.6);
  transform: rotate(4deg);
}
.phone-screen {
  border-radius: 29px; padding: 22px 16px 18px; min-height: 400px;
  background: linear-gradient(180deg, #130A18, var(--tb-bg));
  font-size: 12px; color: var(--tb-text-dim);
}
.ps-brand { display: flex; align-items: center; gap: 7px; justify-content: center; font: 600 12px/1 var(--font-body); color: #FDF2F8; margin-bottom: 16px; }
.ps-brand img { width: 18px; height: 18px; border-radius: 5px; }
.ps-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 600; color: #FDF2F8; font-size: 13px; }
.ps-pill { padding: 4px 9px; border-radius: 999px; font-size: 10.5px; color: var(--tb-green); background: rgba(47, 230, 168, 0.12); }
.ps-chart { width: 100%; height: 110px; border-radius: 12px; background: var(--tb-card); margin-bottom: 12px; }
.ps-chart .area { fill: rgba(47, 230, 168, 0.1); }
.ps-chart .line { fill: none; stroke: var(--tb-green); stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ps-chart .zone { stroke: var(--tb-gold); stroke-width: 1.2; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.ps-row { display: flex; justify-content: space-between; padding: 9px 12px; margin-bottom: 6px; border-radius: 10px; background: var(--tb-card); }
.ps-row b { color: #FDF2F8; font-weight: 600; }
.ps-row b.up { color: var(--tb-green); }
.ps-xp { margin-top: 12px; padding: 10px; border-radius: 12px; text-align: center; font-weight: 600; color: #1A1200; background: linear-gradient(90deg, var(--tb-gold), #E2AC2A); }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 30px 26px 32px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.step-n { display: inline-block; font: 700 14px/1 var(--font-head); padding: 8px 10px; border-radius: 10px; margin-bottom: 22px; color: #fff; background: var(--grad); }
.step h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 16px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 47px; right: -20px; width: 20px; height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan)); opacity: .6;
}

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-copy p:not(.kicker) { color: var(--text-dim); font-size: 18px; margin-top: 20px; }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.values li { padding: 26px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.values h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.values p { color: var(--text-dim); font-size: 15px; }

/* Contact */
.cta {
  position: relative; overflow: hidden; text-align: center; padding: 88px 32px;
  border-radius: 32px; background: linear-gradient(180deg, #121530, #0B0D1C);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.3);
}
.cta-glow { position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(closest-side, rgba(124, 92, 255, 0.35), transparent 70%); pointer-events: none; }
.cta > *:not(.cta-glow) { position: relative; }
.cta .sub { max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { margin-top: 36px; display: flex; justify-content: center; }
.cta-note { margin-top: 22px; font-size: 14px; color: var(--text-faint); }

/* Footer */
.footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }
.copy { font-size: 14px; color: var(--text-faint); }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
/* Hero animates straight away on load rather than waiting for the observer */
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .reveal:nth-child(2) { animation-delay: .08s; }
.hero .reveal:nth-child(3) { animation-delay: .16s; }
.hero .reveal:nth-child(4) { animation-delay: .24s; }
.hero .reveal:nth-child(5) { animation-delay: .32s; }
.hero .reveal:nth-child(6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* Responsive */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .product { grid-template-columns: 1fr; padding: 40px; gap: 40px; }
  .product-visual { min-height: 480px; max-width: 520px; width: 100%; margin: 0 auto; }
  .about { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-toggle {
    display: grid; gap: 6px; place-content: center; width: 44px; height: 44px; margin-right: -8px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 24px; background: rgba(7, 8, 15, 0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 18px; height: 48px; }
  .nav.menu-open { background: rgba(7, 8, 15, 0.96); }

  .hero { padding: 110px 0 64px; }
  .announce { font-size: 13px; text-align: left; }
  .hero-cta .btn { flex: 1 1 100%; }
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 40px; }
  .services, .steps, .values { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .product { padding: 28px 20px; border-radius: 24px; }
  .product h3 { font-size: 28px; }
  .product-id img { width: 60px; height: 60px; border-radius: 15px; }
  .nav.scrolled { background: rgba(7, 8, 15, 0.88); }
  .product-visual { min-height: 400px; }
  .brain-glow { width: 90%; }
  .brain-art { width: 82%; left: -6%; top: 0; }
  .phone { width: 250px; transform: rotate(4deg) scale(.68); transform-origin: bottom right; right: 6px; }
  .cta { padding: 64px 20px; border-radius: 24px; }
  .btn-lg { height: 54px; padding: 0 22px; font-size: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
