/* ===========================================================
   Nexus Point — Apple-inspired redesign
   Brand: navy bg, lime accent (#b6d333), steel blue (#314a80), white
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy-900: #060d1f;
  --navy-800: #0a1530;
  --navy-700: #0f1d3f;
  --navy-600: #142850;
  --steel:    #314a80;
  --steel-2:  #4a64a0;
  --lime:     #b6d333;
  --lime-2:   #c8e155;
  --white:    #ffffff;
  --ink-70:   rgba(255,255,255,0.72);
  --ink-50:   rgba(255,255,255,0.50);
  --ink-30:   rgba(255,255,255,0.30);
  --ink-15:   rgba(255,255,255,0.15);
  --ink-08:   rgba(255,255,255,0.08);
  --ink-05:   rgba(255,255,255,0.05);

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --content: 1240px;
  --gutter: 32px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy-800);
  color: var(--white);
  font-feature-settings: "ss01", "cv01", "cv02";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* --- TYPE SCALE (Apple-ish) --- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}
.kicker {
  font-size: 21px;
  font-weight: 500;
  color: var(--ink-70);
  letter-spacing: -0.01em;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }

.display-xl  { font-size: clamp(56px, 8vw, 112px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.12; }
.display-lg  { font-size: clamp(44px, 6vw, 80px);  font-weight: 700; letter-spacing: -0.04em;  line-height: 1.02; }
.display-md  { font-size: clamp(34px, 4.4vw, 60px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.display-sm  { font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; letter-spacing: -0.03em;  line-height: 1.1; }

.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-70); line-height: 1.5; max-width: 680px; }

/* --- LAYOUT --- */
.shell { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section-tight { padding: clamp(60px, 8vw, 100px) 0; }

/* --- NAV --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  display: flex; align-items: center;
  background: rgba(6, 13, 31, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--ink-08);
}
.nav-inner {
  width: 100%; max-width: 1280px;
  margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.02em;
}
.nav-brand .mark {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-links {
  display: flex; gap: 4px; list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-70);
  border-radius: 100px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--white); background: var(--ink-05); }
.nav-links a.active { color: var(--white); }
.nav-cta {
  padding: 8px 18px;
  background: var(--lime);
  color: var(--navy-900);
  border-radius: 100px;
  font-size: 13.5px; font-weight: 600;
  transition: transform .2s, background .2s;
}
.nav-cta:hover { background: var(--lime-2); }

/* hide nav links under 880px, show burger */
.nav-burger {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 100px;
  background: transparent;
  border: 1px solid var(--ink-15);
  cursor: pointer;
  position: relative; z-index: 100;
}
.nav-burger:hover { background: var(--ink-05); }
.nav-burger svg { width: 20px; height: 20px; stroke: var(--white); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600; font-size: 15px;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--lime); color: var(--navy-900); }
.btn-primary:hover { background: var(--lime-2); }
.btn-ghost {
  border: 1px solid var(--ink-30);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--white); background: var(--ink-05); }
.btn-link {
  color: var(--lime);
  font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-link:hover .arrow { transform: translateX(4px); }
.arrow { transition: transform .2s; display: inline-block; }

/* --- CARD / SURFACE --- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--ink-08);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* --- FOOTER --- */
.footer {
  background: var(--navy-900);
  border-top: 1px solid var(--ink-08);
  padding: 80px 0 36px;
  font-size: 13px;
  color: var(--ink-50);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer h5 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--ink-50); transition: color .2s; }
.footer ul a:hover { color: var(--white); }
.footer-bar {
  border-top: 1px solid var(--ink-08);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-totop {
  display: flex; justify-content: center;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--ink-08);
  margin-bottom: 60px;
}
.back-to-top {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 500;
  color: var(--ink-70);
  padding: 10px 20px;
  border: 1px solid var(--ink-15);
  border-radius: 100px;
  transition: color .2s, border-color .2s, background .2s;
}
.back-to-top:hover {
  color: var(--white);
  border-color: var(--white);
  background: var(--ink-05);
}
.footer-bar .legals { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bar .legals a:hover { color: var(--white); }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bar .legals { gap: 12px 18px; }
  .footer-bar .legals a { font-size: 13px; }
}

/* --- REVEAL ON SCROLL --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* --- BG UTILS --- */
.bg-deeper { background: var(--navy-900); }
.bg-tile   { background: var(--navy-700); }

.glow {
  position: absolute; pointer-events: none;
  width: 900px; height: 900px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.glow-lime  { background: radial-gradient(circle, rgba(182,211,51,0.55) 0%, transparent 60%); }
.glow-steel { background: radial-gradient(circle, rgba(49,74,128,0.9) 0%, transparent 60%); }

/* --- LOGO LOCKUP (uses official artwork PNG, transparent background) --- */
.np-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.np-logo-img {
  display: block;
  width: 150px;
  height: auto;
}
.nav .np-logo-img   { width: 84px; }
.footer .np-logo-img { width: 160px; }
.footer .social-link { display: inline-flex; align-items: center; gap: 10px; }
.footer .social-link svg { width: 18px; height: 18px; flex: 0 0 auto; transition: transform .2s; }
.footer .social-link:hover svg { transform: translateY(-1px); }

/* --- LEGAL / CUSTOM PAGES --- */
.pp-hero-legal {
  position: relative; padding: 180px 24px 60px; text-align: center; overflow: hidden; isolation: isolate;
}
.pp-hero-legal::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(49,74,128,0.6) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(182,211,51,0.18) 0%, transparent 70%),
    var(--navy-800);
  z-index: -1;
}
.pp-hero-legal .eyebrow { margin-bottom: 18px; }
.pp-hero-legal h1 { max-width: 18ch; margin: 0 auto 18px; }
.pp-hero-legal .lead { margin: 0 auto; max-width: 56ch; }
.pp-hero-legal .updated {
  margin-top: 22px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-50);
}
.legal-section { padding: 80px 0 120px; }
.legal-shell { width: min(820px, 92%); margin: 0 auto; }
.legal-shell h2 {
  font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.02em;
  margin: 56px 0 14px; color: var(--white);
}
.legal-shell h2:first-of-type { margin-top: 0; }
.legal-shell h3 { font-size: 17px; font-weight: 600; margin: 22px 0 8px; color: var(--white); }
.legal-shell p, .legal-shell li { color: var(--ink-70); font-size: 16px; line-height: 1.7; }
.legal-shell p + p { margin-top: 14px; }
.legal-shell ol { margin: 18px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; }
.legal-shell ul { margin: 14px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-shell ol li, .legal-shell ul li { color: var(--ink-70); font-size: 16px; line-height: 1.7; padding-left: 6px; }
.legal-shell ol li::marker, .legal-shell ul li::marker { color: var(--lime); font-weight: 700; }
.legal-shell a.link {
  color: var(--lime); text-decoration: none; border-bottom: 1px solid currentColor;
  padding-bottom: 1px; transition: opacity .2s;
}
.legal-shell a.link:hover { opacity: 0.8; }
.legal-divider { margin: 56px 0 0; height: 1px; background: var(--ink-08); border: 0; }
.legal-contact {
  margin-top: 32px; padding: 28px 32px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--ink-08);
}
.legal-contact .lbl {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lime); font-weight: 600; margin-bottom: 10px;
}
.legal-contact .name { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 14px; letter-spacing: -0.015em; }
.legal-contact .row { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.legal-contact .row .it { font-size: 15px; color: var(--ink-70); }
.legal-contact .row .it a { color: var(--white); }
.legal-contact .row .it a:hover { color: var(--lime); }
/* Legals index page */
.legal-intro { color: var(--ink-70); font-size: 17px; line-height: 1.7; margin: 0 0 40px; text-align: center; max-width: 64ch; margin-left: auto; margin-right: auto; }
.legals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .legals-grid { grid-template-columns: 1fr; } }
.legal-card {
  display: flex; flex-direction: column; padding: 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--ink-08); text-decoration: none; color: inherit;
  transition: transform .35s, border-color .35s; position: relative;
}
.legal-card:hover { transform: translateY(-3px); border-color: var(--ink-15); }
.legal-card .num { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); font-weight: 600; margin-bottom: 14px; }
.legal-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px; color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-card h3 .arrow { color: var(--lime); transition: transform .35s; flex: 0 0 auto; }
.legal-card:hover h3 .arrow { transform: translateX(4px); }
.legal-card p { color: var(--ink-70); font-size: 14.5px; line-height: 1.6; margin: 0; }
.legal-card ul { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.legal-card ul li { color: var(--ink-70); font-size: 14px; line-height: 1.55; }
.legal-card ul li::marker { color: var(--lime); }
.legal-card.feature {
  grid-column: 1 / -1;
  background: radial-gradient(ellipse 60% 80% at 0% 0%, rgba(182,211,51,0.10) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}
.legal-isp { margin-top: 36px; padding: 24px 28px; border-radius: var(--r-lg); border: 1px dashed var(--ink-15); background: rgba(255,255,255,0.015); }
.legal-isp .text { color: var(--ink-70); font-size: 15px; line-height: 1.65; }
.legal-isp .text strong { color: var(--white); font-weight: 600; }
.legal-isp .text a.isp-trigger { color: var(--lime); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: opacity .2s; }
.legal-isp .text a.isp-trigger:hover { opacity: 0.8; }
/* ISP modal */
.isp-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.isp-modal[hidden] { display: none; }
.isp-modal-scrim { position: absolute; inset: 0; background: rgba(4,10,24,0.78); backdrop-filter: blur(6px); animation: ispFadeIn .25s ease-out; }
.isp-modal-card { position: relative; z-index: 1; width: min(560px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 40px 40px 36px; border-radius: var(--r-lg); background: radial-gradient(ellipse 60% 60% at 0% 0%, rgba(49,74,128,0.45) 0%, transparent 60%), linear-gradient(180deg, #11203f, #0a162e); border: 1px solid var(--ink-15); box-shadow: 0 60px 120px rgba(0,0,0,0.6); animation: ispCardIn .35s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes ispFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ispCardIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.isp-modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid var(--ink-08); color: var(--ink-50); font-size: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color .2s, background .2s; }
.isp-modal-x:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.isp-modal-head { margin-bottom: 24px; }
.isp-modal-head .eyebrow { margin-bottom: 12px; }
.isp-modal-head h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--white); }
.isp-modal-head p { color: var(--ink-70); font-size: 15px; line-height: 1.55; margin: 0; }
.isp-form { display: flex; flex-direction: column; gap: 16px; }
.isp-row { display: flex; flex-direction: column; gap: 6px; }
.isp-row label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-50); }
.isp-row label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: 0.7; }
.isp-row input, .isp-row textarea { background: rgba(255,255,255,0.03); border: 1px solid var(--ink-15); border-radius: 10px; padding: 12px 14px; color: var(--white); font: inherit; font-size: 15px; transition: border-color .2s, background .2s; }
.isp-row input:focus, .isp-row textarea:focus { outline: none; border-color: var(--lime); background: rgba(255,255,255,0.05); }
.isp-row textarea { resize: vertical; min-height: 80px; }
.isp-row input.invalid, .isp-row textarea.invalid { border-color: #ff6b6b; }
.isp-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.isp-sent { text-align: center; padding: 12px 0 4px; }
.isp-check { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: rgba(182,211,51,0.15); color: var(--lime); display: inline-flex; align-items: center; justify-content: center; }
.isp-check svg { width: 32px; height: 32px; }
.isp-sent h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--white); }
.isp-sent p { color: var(--ink-70); font-size: 15px; line-height: 1.6; margin: 0 0 22px; }
@media (max-width: 640px) {
  .pp-hero-legal { padding: 110px 18px 50px; }
  .pp-hero-legal h1 { font-size: clamp(40px, 12vw, 64px) !important; max-width: 100%; }
  .pp-hero-legal .lead { font-size: 16px; line-height: 1.55; }
  .legal-section { padding: 50px 0 80px; }
  .legal-shell h2 { margin: 40px 0 12px; font-size: 22px; }
  .legal-shell p, .legal-shell li { font-size: 15px; line-height: 1.65; }
  .legal-contact { padding: 22px 20px; }
  .legal-contact .name { font-size: 16px; }
  .legal-contact .row { gap: 6px 18px; }
  .legal-contact .row .it { font-size: 14px; }
  .legal-intro { font-size: 16px; line-height: 1.65; margin-bottom: 28px; }
  .legals-grid { gap: 14px; }
  .legal-card { padding: 22px 20px; }
  .legal-card h3 { font-size: 18px; }
  .legal-card.feature { padding: 24px 22px; }
  .legal-isp { padding: 20px 18px; }
  .legal-isp .text { font-size: 14.5px; }
  .isp-modal-card { padding: 28px 22px 22px; }
  .isp-actions { flex-direction: column-reverse; }
  .isp-actions .btn { width: 100%; justify-content: center; }
}
