/* ===================================================================
   NanoPalm Website — Shared Stylesheet
   Palette: Navy #0D1B3E · Light Blue #5BB8FF · Cyan #00E5FF · White
   =================================================================== */

:root {
  --navy: #0D1B3E;
  --navy-deep: #060f24;
  --navy-card: #122348;
  --navy-card-2: #16284f;
  --blue: #5BB8FF;
  --cyan: #00E5FF;
  --white: #FFFFFF;
  --text-soft: #B8C4DA;
  --text-mute: #7E8DAC;
  --border: rgba(91, 184, 255, 0.14);
  --border-strong: rgba(91, 184, 255, 0.30);
  --glow: rgba(0, 229, 255, 0.35);
  --maxw: 1200px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

/* lowercase, dropped p in pLNP */
.np-p { text-transform: lowercase !important; font-size: 0.9em; vertical-align: baseline; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Background texture ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--navy);
  pointer-events: none;
  z-index: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

a { color: inherit; text-decoration: none; }

section { position: relative; z-index: 1; }

/* ===================== NAV ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 27, 62, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, border-color .3s;
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; height: 100%; }
.nav-logo img { height: 38px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--text-soft);
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(91,184,255,0.08); }
.nav-links .caret { font-size: 10px; opacity: .6; transition: transform .2s; }
.nav-links > li:hover .caret { transform: rotate(180deg); }

/* dropdowns */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 240px;
  background: rgba(18, 35, 72, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s, transform .22s, visibility .22s;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.nav-links > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 11px 14px; border-radius: 9px; color: var(--text-soft); font-size: 14px; }
.dropdown a:hover { background: rgba(0,229,255,0.10); color: var(--cyan); }

.nav-cta {
  background: var(--cyan);
  color: var(--navy) !important; font-weight: 700 !important;
  padding: 10px 22px !important; border-radius: 10px !important;
}
.nav-cta:hover { background: var(--blue) !important; transform: translateY(-1px); }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: 0; }
.burger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }

/* mobile drawer */
.mobile-menu {
  position: fixed; inset: 72px 0 0 0; z-index: 99;
  background: rgba(6, 15, 36, 0.98);
  backdrop-filter: blur(20px);
  padding: 28px 24px; overflow-y: auto;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .group { border-bottom: 1px solid var(--border); padding: 14px 0; }
.mobile-menu .group > span { display: block; font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--cyan); margin-bottom: 10px; }
.mobile-menu .group a { display: block; padding: 9px 0; font-size: 17px; color: var(--text-soft); }
.mobile-menu .nav-cta { display: block; text-align: center; margin-top: 24px; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px; border-radius: 12px;
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  cursor: pointer; border: 0; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--cyan); color: var(--navy); }
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); }
.btn-ghost { background: rgba(91,184,255,0.08); color: var(--white); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: rgba(91,184,255,0.16); transform: translateY(-2px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ===================== HERO (generic) ===================== */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(13,27,62,0.82) 42%, rgba(13,27,62,0.55) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em; color: var(--cyan);
  padding: 8px 16px; border: 1px solid var(--border-strong); border-radius: 100px;
  background: rgba(0,229,255,0.06); margin-bottom: 26px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.4;} }

.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin-bottom: 22px; }
.hero h1 .accent { color: var(--cyan); }
.hero-tagline { font-family: var(--font-display); font-size: clamp(.95rem,1.6vw,1.15rem); font-weight: 500; letter-spacing: .08em; color: var(--blue); text-transform: uppercase; margin-bottom: 22px; }
.hero p.lead { font-size: 1.12rem; color: var(--text-soft); max-width: 580px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===================== SECTION HEADERS ===================== */
.section { padding: 100px 0; }
.section-tag { font-family: var(--font-display); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: var(--cyan); margin-bottom: 16px; display: block; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 20px; }
.section-intro { font-size: 1.1rem; color: var(--text-soft); max-width: 640px; }
.center { text-align: center; }
.center .section-intro { margin: 0 auto; }

/* ===================== CHIPS ===================== */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 100px;
  background: rgba(91,184,255,0.07); border: 1px solid var(--border);
  font-size: 14px; font-weight: 500; color: var(--text-soft);
  transition: border-color .2s, color .2s, transform .2s;
}
.chip:hover { border-color: var(--border-strong); color: var(--white); transform: translateY(-2px); }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

/* ===================== CARDS ===================== */
.card {
  background: var(--navy-card);
  border: 1px solid var(--border); border-radius: 18px; padding: 30px;
  transition: transform .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.card p { color: var(--text-soft); font-size: .98rem; }
.card-icon { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px; background: rgba(0,229,255,0.10); border: 1px solid var(--border-strong); color: var(--cyan); }
.card-icon svg { width: 24px; height: 24px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===================== FOOTER ===================== */
.footer { background: var(--navy-deep); border-top: 1px solid var(--border); padding: 70px 0 32px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer-logo img { height: 42px; margin-bottom: 18px; }
.footer-brand p { color: var(--text-mute); font-size: .94rem; max-width: 280px; }
.footer-col h4 { font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--white); margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; color: var(--text-mute); font-size: .94rem; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-contact a { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 5px; flex-shrink: 0; color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { color: var(--text-mute); font-size: .88rem; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(91,184,255,0.07); border: 1px solid var(--border); color: var(--text-soft); transition: .2s; }
.footer-social a:hover { background: rgba(0,229,255,0.14); color: var(--cyan); border-color: var(--border-strong); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

/* ===================== REVEAL ANIMATION ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.no-js .reveal { opacity: 1; transform: none; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .hero { min-height: 80vh; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ===================== FORM STATUS ===================== */
.form-status { margin-top: 16px; padding: 13px 16px; border-radius: 11px; font-size: .92rem; text-align: center; }
.form-status.success { background: rgba(0,229,255,0.10); border: 1px solid var(--border-strong); color: var(--cyan); }
.form-status.error { background: rgba(255,107,107,0.10); border: 1px solid rgba(255,107,107,0.40); color: #ff9b9b; }

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