/* NexCode Labs — studio site */
:root {
  --canvas: #0b0d14;
  --raise: #12151f;
  --raise-2: #181c29;
  --line: #232838;
  --text: #eef0f6;
  --body: #c9cedb;
  --muted: #8e96aa;
  --indigo: #7c83ff;
  --cyan: #22d3ee;
  --grad: linear-gradient(135deg, var(--indigo), var(--cyan));
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--text); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(11, 13, 20, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--text); font-size: 18px; }
.brand img { width: 34px; height: 34px; }
.brand span b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 28px; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #0b0d14; box-shadow: 0 10px 30px rgba(124, 131, 255, .28); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: #3a4157; }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(124, 131, 255, .22), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -30% -10%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(34, 211, 238, .14), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(124, 131, 255, .1); border: 1px solid rgba(124, 131, 255, .25);
  color: #b8bcff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; margin: 22px 0 20px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; max-width: 560px; color: var(--body); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-art { position: relative; height: 380px; }
.float {
  position: absolute; width: 168px; height: 168px; border-radius: 40px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  animation: bob 6s ease-in-out infinite;
}
.float img { width: 100%; height: 100%; }
.float.nockout { left: 6%; top: 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 60px rgba(45, 226, 200, .35); }
.float.splitbook { right: 4%; top: 170px; animation-delay: -3s; box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 60px rgba(16, 185, 129, .35); }
.orbit {
  position: absolute; inset: 30px 10px; border: 1px dashed rgba(255, 255, 255, .08); border-radius: 50%;
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }

/* ---------- sections ---------- */
section { padding: 90px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .kicker { color: var(--cyan); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin: 10px 0 14px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- app cards ---------- */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.app {
  position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--raise-2), var(--raise)); border: 1px solid var(--line); overflow: hidden;
}
.app::before {
  content: ""; position: absolute; inset: -40% -30% auto auto; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 65%); opacity: .5; pointer-events: none;
}
.app.nockout { --accent: #2de2c8; --glow: rgba(45, 226, 200, .35); }
.app.splitbook { --accent: #10b981; --glow: rgba(16, 185, 129, .32); }
.app.nurayah { --accent: #ebc166; --glow: rgba(235, 193, 102, .3); }
.app.colorsort { --accent: #d2bcff; --glow: rgba(210, 188, 255, .3); }
.app-top { position: relative; display: flex; gap: 18px; align-items: center; }
.app-top img { width: 76px; height: 76px; border-radius: 20px; }
.app-top h3 { font-size: 24px; font-weight: 800; }
.app-top .cat { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.app .tagline { position: relative; color: var(--text); font-size: 19px; font-weight: 700; margin: 24px 0 10px; }
.app .desc { position: relative; color: var(--body); }
.chips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--body); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.app .actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.app .btn-accent { background: var(--accent); color: #06110e; }
.badge-soon { display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); border: 1px dashed var(--line); }

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.principle { padding: 26px; border-radius: 18px; background: var(--raise); border: 1px solid var(--line); }
.principle .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(124, 131, 255, .12); color: #b8bcff;
}
.principle .ico svg { width: 22px; height: 22px; }
.principle h3 { font-size: 18px; margin-bottom: 8px; }
.principle p { color: var(--muted); font-size: 15px; }

/* ---------- about / contact ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about p + p { margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fact { padding: 22px; border-radius: 18px; background: var(--raise); border: 1px solid var(--line); }
.fact b { display: block; font-size: 30px; color: var(--text); font-weight: 800; }
.fact span { color: var(--muted); font-size: 14px; }

.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 44px; border-radius: 28px; border: 1px solid rgba(124, 131, 255, .25);
  background: radial-gradient(600px 240px at 0% 0%, rgba(124, 131, 255, .18), transparent 70%),
              radial-gradient(500px 240px at 100% 100%, rgba(34, 211, 238, .14), transparent 70%), var(--raise);
}
.contact-card h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.contact-card p { color: var(--muted); margin-top: 8px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 70px 0 60px; }
  .hero .wrap, .about { grid-template-columns: 1fr; }
  .hero-art { height: 260px; }
  .float { width: 128px; height: 128px; border-radius: 30px; }
  .float.splitbook { top: 110px; }
  .apps { grid-template-columns: 1fr; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  section { padding: 64px 0; }
  .principles, .facts { grid-template-columns: 1fr; }
  .app, .contact-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .float { animation: none; } html { scroll-behavior: auto; } }
