/* NCOSYS: site styles */

:root {
  --bg: #050816;
  --bg-2: #0a1025;
  --surface: #0d1530;
  --surface-2: #111a3c;
  --primary: #6c63ff;
  --accent: #00d4ff;
  --text: #f5f7ff;
  --text-2: #dce2f5;
  --muted: #9da7c2;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(0, 212, 255, 0.45);
  --ok: #3ddc97;
  --err: #ff6b81;
  --grad: linear-gradient(90deg, var(--primary), var(--accent));
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--accent); color: #001018; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip:focus { top: 12px; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

.muted { color: var(--muted); }
.gradient-text { background: linear-gradient(90deg, #fff 0%, var(--primary) 45%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(108, 99, 255, .25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 212, 255, .3); }
.btn-ghost { border-color: var(--border); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--border-strong); background: rgba(0, 212, 255, .06); }
.btn .ico { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover .ico { transform: translateX(3px); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(5, 8, 22, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, background-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(5, 8, 22, .9); }

.nav-wrap { width: min(1250px, 100% - 32px); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; }
.logo-img { height: 36px; width: auto; }
.logo-404 { display: flex; width: max-content; margin-bottom: 40px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { font-size: 14px; color: var(--text-2); position: relative; padding: 6px 0; transition: color .2s ease; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:not(.btn):hover, .nav a.active { color: #fff; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }

.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--border); background: rgba(255, 255, 255, .03); border-radius: var(--radius-sm); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 56px) 0 80px;
  background:
    radial-gradient(circle at 80% 30%, rgba(108, 99, 255, .28), transparent 38%),
    radial-gradient(circle at 15% 85%, rgba(0, 212, 255, .16), transparent 38%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
}

.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border: 1px solid rgba(0, 212, 255, .35); border-radius: 999px;
  background: rgba(0, 212, 255, .05); color: var(--accent);
  font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 24px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(0, 212, 255, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); } }

.hero h1 { font-size: clamp(44px, 6.5vw, 84px); letter-spacing: -0.035em; line-height: 1.02; }
.lead { margin-top: 24px; max-width: 600px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-points { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--text-2); font-size: 14px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ico { width: 18px; height: 18px; color: var(--accent); }

/* Orbit visual */
.hero-visual { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin-inline: auto; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(108, 99, 255, .28); animation: spin 40s linear infinite; }
.orbit-1 { inset: 0; }
.orbit-2 { inset: 13%; border-color: rgba(0, 212, 255, .22); animation-duration: 30s; animation-direction: reverse; }
.orbit-3 { inset: 27%; border-color: rgba(255, 255, 255, .12); border-style: dashed; animation-duration: 22s; }
.sat {
  position: absolute; padding: 7px 13px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  background: #101936; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35); animation: spin 40s linear infinite reverse;
}
.orbit-2 .sat { animation-duration: 30s; animation-direction: normal; }
.orbit-3 .sat { animation-duration: 22s; }
.s1 { top: -14px; left: 50%; margin-left: -18px; }
.s2 { bottom: 12%; right: -18px; }
.s3 { top: 46%; left: -30px; }
.s4 { top: 6%; right: -6px; }
.s5 { bottom: -14px; left: 40%; }
@keyframes spin { to { transform: rotate(360deg); } }

.core {
  position: absolute; top: 50%; left: 50%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 22%; display: grid; place-items: center;
  box-shadow: 0 0 80px rgba(0, 212, 255, .35), 0 0 0 1px rgba(255, 255, 255, .1);
}
.core img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 22%; }

.terminal {
  position: absolute; right: -8%; bottom: -4%; width: 62%; min-width: 230px;
  background: rgba(8, 13, 32, .92); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); backdrop-filter: blur(8px); overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
.term-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a3358; }
.term-bar i:nth-child(1) { background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 6px; }
.terminal pre { padding: 12px 14px; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text-2); white-space: pre-wrap; }
.c-mut { color: var(--muted); }
.c-ok { color: var(--ok); }
.c-acc { color: var(--accent); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-data { background: linear-gradient(135deg, #07112b, #080d20); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 600; }
.section-head h2, .h-left { font-size: clamp(32px, 4.5vw, 52px); margin-top: 12px; }
.section-head p:not(.kicker) { color: var(--muted); margin-top: 16px; font-size: 17px; }
.h-left { margin-bottom: 20px; }
#about .muted, #contact .muted { margin-bottom: 16px; font-size: 17px; }

/* Cards */
.card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { display: flex; flex-direction: column; }
.service p { flex: 1; }

.service-ico {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(145deg, rgba(108, 99, 255, .22), rgba(0, 212, 255, .10));
  border: 1px solid rgba(108, 99, 255, .3); color: var(--accent);
}
.service-ico .ico { width: 24px; height: 24px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); color: var(--text-2); }

/* Split / panels */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.split-center { align-items: center; gap: 64px; }

.panel { padding: 36px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255, 255, 255, .035); }
.panel-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.panel-head .service-ico { margin-bottom: 0; }
.panel h3 { font-size: 26px; }
.panel > p { color: var(--muted); }

.checklist { margin-top: 22px; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); color: var(--text-2); }
.checklist li:last-child { border-bottom: 0; }
.checklist .ico { width: 18px; height: 18px; color: var(--accent); }
.checklist.two-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.checklist.two-col li:nth-last-child(2) { border-bottom: 0; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent); opacity: .5; }
.step { position: relative; padding: 0 6px; }
.step-no {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; position: relative;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--border-strong);
  font-family: var(--font-display); font-weight: 700; color: var(--accent);
  box-shadow: 0 0 30px rgba(0, 212, 255, .15);
}
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* Technology */
.tech-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.tech-group { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.tech-group h3 { font-size: 18px; margin-bottom: 18px; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; background: #0b1330; border: 1px solid var(--border); transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.chips li:hover { border-color: var(--border-strong); color: var(--accent); transform: translateY(-2px); }

/* Solutions */
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.solution {
  position: relative; overflow: hidden; min-height: 240px; padding: 30px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--surface-2), #080d20);
  transition: transform .3s ease, border-color .3s ease;
}
.solution::after { content: ""; position: absolute; width: 200px; height: 200px; right: -90px; bottom: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 212, 255, .22), transparent 70%); transition: transform .4s ease; }
.solution:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.solution:hover::after { transform: scale(1.4); }
.solution small { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.solution h3 { font-size: 24px; margin: 18px 0 10px; }
.solution p { color: var(--muted); position: relative; z-index: 1; }

/* Engagement */
.engage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.engage { position: relative; }
.engage h3 { font-size: 24px; }
.engage-featured { border-color: rgba(108, 99, 255, .55); background: linear-gradient(160deg, rgba(108, 99, 255, .16), rgba(0, 212, 255, .04)); }
.ribbon { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--grad); }

/* About */
.vision { padding: 40px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(145deg, rgba(108, 99, 255, .12), rgba(0, 212, 255, .04)); }
.vision h3 { font-size: 30px; margin-bottom: 18px; }
.vision > p { color: var(--muted); margin-bottom: 14px; }
.values { display: grid; gap: 14px; margin-top: 26px; }
.values div { padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(5, 8, 22, .55); border: 1px solid var(--border); }
.values strong { display: block; font-family: var(--font-display); color: var(--accent); }
.values span { color: var(--muted); font-size: 14px; }

/* Contact */
.contact-list { margin-top: 32px; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list .service-ico { margin: 0; }
.contact-list strong { display: block; font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.contact-list a:hover { color: var(--accent); }

.form { display: grid; gap: 18px; padding: 32px; }
.form:hover { transform: none; box-shadow: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: #080d20; border: 1px solid var(--border); color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 212, 255, .15); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field input::placeholder, .field textarea::placeholder { color: #5f6a8a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: 14px; text-align: center; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* Footer */
.site-footer { background: #03050d; border-top: 1px solid var(--border); padding: 64px 0 28px; color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid .logo { margin-bottom: 14px; }
.footer-grid h4 { color: var(--text); font-size: 15px; margin-bottom: 14px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 9px; }
.footer-grid a:not(.logo):hover { color: var(--accent); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.footer-bottom a:hover { color: var(--accent); }

/* Reveal on scroll (only when JS has run) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin-top: 24px; }
  .terminal { right: -4%; }
  .service-grid, .solution-grid, .engage-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .split, .split-center { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 24px; background: rgba(7, 11, 27, .98); border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 16px; padding: 14px; }
}

@media (max-width: 640px) {
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .actions .btn { flex: 1 1 100%; }
  .hero-visual { max-width: 300px; }
  .terminal { right: -6px; bottom: -10%; width: 78%; min-width: 0; }
  .terminal pre { font-size: 11px; }
  .service-grid, .solution-grid, .engage-grid, .tech-groups, .steps, .field-row, .checklist.two-col { grid-template-columns: 1fr; }
  .checklist.two-col li:nth-last-child(2) { border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .panel, .vision, .form, .card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

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