/* Nexorda company site. Plain HTML pages (readable by Google without JavaScript); site.js only adds motion. */
:root {
  --bg: #05070d; --bg2: #0a0f1a; --card: rgba(20, 27, 40, .55); --line: rgba(148, 163, 184, .14); --text: #f1f5fb; --muted: #94a3b8;
  --teal: #2dd4bf; --violet: #8b5cf6; --ink: #03201c; --glow: 0 0 40px rgba(45, 212, 191, .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { background: var(--bg); }
html, body { margin: 0; color: var(--text); font: 17px/1.65 "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background:
  radial-gradient(60vw 60vw at 85% -10%, rgba(139, 92, 246, .16), transparent 60%),
  radial-gradient(50vw 50vw at -10% 30%, rgba(45, 212, 191, .10), transparent 60%), var(--bg); }
body::after { content: ""; position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: var(--teal); }
h1, h2, h3, .logo { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; letter-spacing: -.02em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); background: rgba(5, 7, 13, .55); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.logo img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(45, 212, 191, .5)); }
nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: .95rem; }
nav a { color: var(--muted); text-decoration: none; position: relative; transition: color .2s; white-space: nowrap; }
nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--violet)); transform: scaleX(0); transition: transform .25s; }
nav a:hover, nav a[aria-current] { color: var(--text); } nav a:hover::after, nav a[aria-current]::after { transform: scaleX(1); }

/* Hero with the living ring */
.hero { position: relative; min-height: 100vh; display: grid; align-items: center; overflow: hidden; }
.hero.compact { min-height: 62vh; }
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
.cursor { position: fixed; left: -200px; top: -200px; width: 400px; height: 400px; border-radius: 50%; pointer-events: none; z-index: -1; background: radial-gradient(circle, rgba(45, 212, 191, .10), transparent 60%); transition: transform .25s ease-out; }
.big { font-family: "Space Grotesk", sans-serif; font-size: clamp(2.2rem, 7vw, 5.6rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; margin: 120px 0 40px; max-width: 1000px; }
.big em { font-style: normal; color: var(--muted); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 640px); gap: 40px; align-items: center; padding-top: 60px; padding-bottom: 60px; width: 100%; }
.hero.compact .wrap { grid-template-columns: 1fr; padding-top: 90px; padding-bottom: 70px; }
h1 { font-size: clamp(2.6rem, 7.4vw, 6rem); line-height: 1.02; margin: 0 0 22px; }
.grad { background: linear-gradient(100deg, #fff 10%, var(--teal) 45%, var(--violet) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shine 8s ease-in-out infinite alternate; }
@keyframes shine { to { background-position: 100% 0; } }
.lead { font-size: clamp(1.08rem, 2vw, 1.3rem); color: #c3cede; max-width: 620px; margin: 0 0 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--teal); padding: 6px 12px; border: 1px solid rgba(45, 212, 191, .3); border-radius: 999px; background: rgba(45, 212, 191, .06); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.button { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(120deg, var(--teal), #5eead4); color: var(--ink); font-weight: 700; text-decoration: none; padding: 14px 22px; border-radius: 14px; margin: 6px 10px 0 0; box-shadow: var(--glow); transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(45, 212, 191, .55); }
.button.ghost { background: rgba(255, 255, 255, .04); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.button.ghost:hover { border-color: rgba(45, 212, 191, .5); }

/* Phone mockup that plays a missed call */
.phone { justify-self: center; width: min(300px, 78vw); aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #1f2937, #0b0f17); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 80px rgba(139, 92, 246, .25); transform: perspective(1200px) rotateY(-12deg) rotateX(4deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: perspective(1200px) rotateY(-8deg) rotateX(2deg) translateY(-12px); } }
.screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #070b12; padding: 40px 16px 16px; display: grid; align-content: start; gap: 12px; font-size: .82rem; }
.screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 90px; height: 22px; margin-left: -45px; border-radius: 12px; background: #000; }
.screen .top { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; }
.switch { border-radius: 22px; padding: 20px 10px; text-align: center; font-weight: 800; font-size: 1.25rem; letter-spacing: .06em; color: #fff; background: #16a34a; transition: background .5s, box-shadow .5s; }
.switch small { display: block; font-weight: 500; font-size: .7rem; letter-spacing: 0; opacity: .85; }
.switch.busy { background: #dc2626; box-shadow: 0 0 40px rgba(220, 38, 38, .5); }
.event { border: 1px solid var(--line); background: rgba(255, 255, 255, .03); border-radius: 14px; padding: 10px 12px; }
.js .event { opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .5s, transform .5s; }
.js .event.on { opacity: 1; transform: none; }
.event b { display: block; font-size: .84rem; } .event span { color: var(--muted); font-size: .72rem; }
.event.ring.on { animation: ring .5s 3; }
@keyframes ring { 25% { transform: rotate(-1.5deg); } 75% { transform: rotate(1.5deg); } }

main { padding: 0 0 40px; }
section { padding: 80px 0 10px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1; margin: 0 0 14px; }
h3 { margin: 0 0 8px; font-size: 1.2rem; }
.sub { color: var(--muted); max-width: 640px; margin: 0 0 30px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; overflow: hidden; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .3s, border-color .3s, opacity .8s; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(45, 212, 191, .14), transparent 45%); }
.card:hover { border-color: rgba(45, 212, 191, .35); } .card:hover::before { opacity: 1; }
.card p { margin: 0 0 8px; color: var(--muted); }
.card.best { border-color: rgba(45, 212, 191, .5); box-shadow: 0 0 60px rgba(45, 212, 191, .12); }
.icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; font-size: 1.35rem; margin-bottom: 14px; background: linear-gradient(140deg, rgba(45, 212, 191, .2), rgba(139, 92, 246, .2)); border: 1px solid var(--line); }
.product { padding: 32px; min-height: 290px; display: flex; flex-direction: column; }
.product p:last-child { margin-top: auto; }
.price { font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--text) !important; line-height: 1.1; margin: 6px 0 10px !important; } .price span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.tag { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--teal); margin-bottom: 8px; }
.more { text-decoration: none; font-weight: 600; } .more:hover { text-decoration: underline; }

ul.check { padding-left: 0; list-style: none; columns: 2 300px; column-gap: 30px; } ul.check li { padding-left: 32px; position: relative; margin-bottom: 12px; break-inside: avoid; }
ul.check li::before { content: "✓"; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; color: var(--ink); background: var(--teal); font-weight: 800; }

.steps { counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.steps .card { padding-top: 74px; } .steps .card::after { counter-increment: step; content: "0" counter(step); position: absolute; top: 18px; left: 26px; font-family: "Space Grotesk", sans-serif; font-size: 2.1rem; font-weight: 700; background: linear-gradient(120deg, var(--teal), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Moving band of features */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; margin-top: 80px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee div { display: flex; gap: 46px; width: max-content; animation: slide 40s linear infinite; font-family: "Space Grotesk", sans-serif; font-size: 1.2rem; color: #cbd5e1; white-space: nowrap; }
.marquee span::before { content: "✦"; color: var(--teal); margin-right: 46px; }
@keyframes slide { to { transform: translateX(-50%); } }

.cta { margin-top: 90px; text-align: center; padding: 60px 26px; border-radius: 28px; border: 1px solid rgba(45, 212, 191, .3); background: radial-gradient(600px circle at 50% 0%, rgba(45, 212, 191, .18), transparent 60%), radial-gradient(500px circle at 80% 120%, rgba(139, 92, 246, .22), transparent 60%), var(--bg2); }
.cta .sub { margin-inline: auto; }

.legal { max-width: 780px; padding-top: 10px; } .legal h2 { font-size: 1.35rem; margin-top: 34px; } .legal p, .legal li { color: #cdd6e3; }
.small { font-size: .9rem; color: var(--muted); }

/* Reveal on scroll (site.js adds .in; without JavaScript everything stays visible) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1), border-color .3s; }
.js .reveal.in { opacity: 1; transform: none; }

footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: .9rem; color: var(--muted); margin-top: 80px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); margin-right: 16px; } footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; }
  .phone { transform: none; animation: none; margin-top: 10px; }
  nav { gap: 16px; font-size: .9rem; flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  header .wrap { padding-top: 10px; padding-bottom: 10px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .event { opacity: 1; transform: none; }
}

/* Chapters of the systems story: the 3D scene flies to the system each chapter is about */
.chapter { min-height: 100vh; display: flex; align-items: center; padding: 60px 0; }
.panel { max-width: 540px; padding: 34px; border-radius: 26px; background: rgba(8, 12, 20, .55); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.panel h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.panel p { color: #c3cede; }
.panel ul.check { columns: 1; margin: 18px 0; }
.panel .steps { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
.panel .steps .card { padding: 16px 18px 16px 70px; } .panel .steps .card::after { top: 12px; left: 18px; font-size: 1.6rem; }
.chapter[data-focus="core"] .panel { max-width: 620px; }
.demo-phone { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
@media (max-width: 900px) {
  .demo-phone { grid-template-columns: 1fr; }
  .chapter { min-height: 150vh; align-items: flex-end; padding-bottom: 40px; }
  .panel { padding: 24px; background: rgba(8, 12, 20, .78); }
  .hero[data-focus="all"] .wrap { align-self: start; padding-top: 70px; }
}
