/* ============================================================
   NYXO — global brand site
   mood: mysterious, clean, premium
   ============================================================ */
:root {
  --black: #05080c;
  --black-2: #0a1017;
  --navy: #0e1720;
  --ink: #17212b;
  --gold: #c9ab72;
  --gold-soft: #d9c69b;
  --gold-dark: #a8895a;
  --muted: #64727e;
  --line: #e6eaed;
  --line-dark: rgba(255, 255, 255, 0.12);
  --bg: #ffffff;
  --bg-soft: #f6f8f9;
  --radius: 12px;
  --shadow: 0 14px 40px rgba(5, 8, 12, 0.08);
  --shadow-hover: 0 22px 56px rgba(5, 8, 12, 0.16);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  overflow-x: hidden;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.section { padding: 110px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--black); color: rgba(255,255,255,0.78); }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 20px;
}
.dark .eyebrow { color: var(--gold); }
h1, h2, h3, h4 { line-height: 1.22; font-weight: 600; color: var(--black); }
h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 20px; letter-spacing: -0.01em; }
.dark h2 { color: #fff; }
.lead { color: var(--muted); font-size: 18px; max-width: 660px; font-weight: 300; }
.dark .lead { color: rgba(255,255,255,0.66); }
.center { text-align: center; }
.center .lead { margin: 0 auto; }
.head { margin-bottom: 60px; }
.gold-rule { width: 64px; height: 1px; background: var(--gold); border: 0; margin: 0 auto 28px; }
.gold-rule.left { margin: 0 0 28px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: all 0.28s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #14100a; }
.btn-gold:hover { background: var(--gold-soft); }
.btn-line-light { border-color: rgba(255,255,255,0.4); color: #fff; background: transparent; }
.btn-line-light:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: var(--navy); }
.btn-outline { border-color: var(--line); color: var(--black); background: #fff; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }

/* ---------- header (transparent over dark hero) ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header .nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.nav-logo { position: relative; display: block; height: 34px; }
.nav-logo img {
  position: absolute; top: 0; left: 0;
  height: 34px; width: auto;
  transition: opacity 0.3s ease;
}
.nav-logo .logo-dark { opacity: 0; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-soft); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 11px 24px; font-size: 13px; }
.nav-cta .btn-outline {
  color: #fff; background: transparent; border-color: rgba(255,255,255,0.4);
}
.burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 1.5px; background: #fff; border-radius: 2px; transition: background 0.3s; }

/* scrolled / solid state */
.site-header.scrolled { background: rgba(255,255,255,0.97); box-shadow: 0 1px 0 var(--line); }
.scrolled .nav-logo .logo-light { opacity: 0; }
.scrolled .nav-logo .logo-dark { opacity: 1; }
.scrolled .nav-links a { color: var(--ink); }
.scrolled .nav-links a:hover { color: var(--gold-dark); }
.scrolled .nav-cta .btn-outline { color: var(--black); border-color: var(--line); }
.scrolled .nav-cta .btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }
.scrolled .burger span { background: var(--black); }

/* ---------- dark cinematic hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 860px; height: 860px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,171,114,0.055) 0%, rgba(0,0,0,0) 58%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: 120px 26px 60px; max-width: 820px; }
.hero-glow {
  width: min(430px, 72vw);
  margin: 0 auto 36px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 500;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.hero p {
  font-size: 16.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.62);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hero-scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ---------- photo statement band ---------- */
.photo-band { position: relative; height: 78vh; min-height: 480px; overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.photo-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(5,8,12,0.72) 0%, rgba(5,8,12,0.12) 45%, rgba(5,8,12,0.25) 100%);
}
.photo-caption {
  position: absolute;
  bottom: 64px; left: 0; right: 0;
  z-index: 2;
  text-align: center;
  padding: 0 26px;
}
.photo-caption p {
  color: rgba(255,255,255,0.88);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 300;
  max-width: 720px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-hover); border-color: var(--gold); }
.cat-img {
  height: 215px;
  display: flex; align-items: center; justify-content: center;
  padding: 26px;
  background: var(--bg-soft);
}
.cat-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.cat-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.cat-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 9px; }
.cat-body p { font-size: 14px; color: var(--muted); font-weight: 300; flex: 1; margin-bottom: 18px; }
.cat-more { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark); }
.cat-more::after { content: " →"; }

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.why-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 36px;
  display: flex; gap: 24px;
}
.why-icon {
  flex: 0 0 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}
.why-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 9px; }
.why-item p { font-size: 14.5px; color: var(--muted); font-weight: 300; }

/* ---------- engineering standards ---------- */
.standards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.standard-num { font-size: clamp(32px, 3.8vw, 44px); font-weight: 500; color: var(--gold); line-height: 1.1; letter-spacing: 0.02em; }
.standard-label { margin-top: 12px; color: rgba(255,255,255,0.58); font-size: 14px; font-weight: 300; letter-spacing: 0.05em; }
.standards-note { margin: 52px auto 0; max-width: 680px; text-align: center; font-size: 14.5px; font-weight: 300; color: rgba(255,255,255,0.5); }

/* ---------- process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-step { position: relative; padding-top: 8px; }
.step-num {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  margin-bottom: 22px;
}
.process-step::before {
  content: "";
  display: block;
  width: 32px; height: 1px;
  background: var(--gold);
  margin-bottom: 22px;
}
.process-step .step-num { position: absolute; top: 0; right: 0; margin: 0; }
.process-step h3 { font-size: 17px; font-weight: 600; margin-bottom: 11px; }
.process-step p { font-size: 14.5px; color: var(--muted); font-weight: 300; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 34px 20px 0;
  position: relative;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--gold-dark);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--gold-dark); }
.faq-item p {
  padding: 0 34px 22px 0;
  font-size: 14.5px;
  font-weight: 300;
  color: var(--muted);
}

/* ---------- story teaser ---------- */
.story-teaser { max-width: 760px; margin: 0 auto; text-align: center; }
.story-teaser p { font-size: 17px; font-weight: 300; color: rgba(255,255,255,0.66); margin-bottom: 34px; }

/* ---------- cta band ---------- */
.cta-band {
  background: var(--black);
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  padding: 70px 60px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.6); font-weight: 300; }

/* ---------- footer ---------- */
.site-footer { background: #04070a; color: rgba(255,255,255,0.62); padding: 84px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.4fr; gap: 44px; margin-bottom: 58px; }
.footer-logo img { height: 34px; width: auto; margin-bottom: 20px; }
.footer-about { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.48); max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col li { margin-bottom: 12px; font-size: 14px; font-weight: 300; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-contact li { font-size: 14px; font-weight: 300; margin-bottom: 13px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 13px; color: rgba(255,255,255,0.38);
}

/* ---------- inner pages ---------- */
.page-hero {
  position: relative;
  padding: 170px 0 90px;
  background: var(--black);
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(34px, 4.4vw, 50px); font-weight: 500; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.6); font-weight: 300; max-width: 620px; margin: 0 auto; font-size: 17px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--gold); }
.product-card .p-img {
  height: 260px;
  display: flex; align-items: center; justify-content: center;
  padding: 28px; background: var(--bg-soft);
}
.product-card .p-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.product-card .p-body { padding: 24px 26px 28px; }
.product-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.product-card p { font-size: 13.5px; color: var(--muted); font-weight: 300; }

/* about page */
.about-logo {
  width: min(480px, 76vw);
  margin: 0 auto 56px;
}
.about-block { max-width: 760px; margin: 0 auto; }
.about-block p { font-size: 17px; font-weight: 300; color: rgba(255,255,255,0.68); margin-bottom: 26px; }
.about-values { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.about-values .v-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}
.about-values .v-card .why-icon { margin: 0 auto 18px; }
.about-values h3 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.about-values p { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.55); }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; }
.contact-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list h4 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 8px; }
.contact-list p { font-size: 16px; color: var(--ink); }
.contact-card-box {
  background: var(--black);
  border-radius: var(--radius);
  padding: 48px 40px;
  color: #fff;
}
.contact-card-box h3 { color: #fff; margin-bottom: 14px; }
.contact-card-box p { font-size: 14.5px; font-weight: 300; color: rgba(255,255,255,0.6); margin-bottom: 30px; }
.contact-card-box .btn { width: 100%; margin-bottom: 14px; }

/* ============================================================
   Night theme — homepage only (body.night)
   ============================================================ */
body.night { background: var(--black); color: rgba(255,255,255,0.78); }
body.night .section:not(.dark) { background: var(--black); color: rgba(255,255,255,0.78); }
body.night .section.soft { background: var(--black-2); }
body.night h1, body.night h2, body.night h3 { color: #fff; }
body.night .lead { color: rgba(255,255,255,0.6); }

/* faint starfield inside the hero */
body.night .hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 22% 68%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 31% 14%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 40% 78%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1px 1px at 53% 18%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 63% 72%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 71% 28%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 80% 62%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1.2px 1.2px at 88% 16%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 93% 80%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 7% 84%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1px 1px at 47% 52%, rgba(255,255,255,0.3), transparent 60%);
  opacity: 0.7;
}

/* dark cards */
body.night .cat-card,
body.night .why-item {
  background: rgba(255,255,255,0.035);
  border-color: var(--line-dark);
}
body.night .cat-card:hover,
body.night .why-item:hover { border-color: var(--gold); }
body.night .cat-img {
  background: #f6f8f9;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 16px 16px 0;
  border-radius: 10px;
}
body.night .cat-body p,
body.night .why-item p,
body.night .process-step p,
body.night .faq-item p { color: rgba(255,255,255,0.55); }
body.night .process-step h3,
body.night .faq-item summary { color: #fff; }

/* FAQ on dark */
body.night .faq-item { border-color: var(--line-dark); }
body.night .faq-item summary:hover { color: var(--gold-soft); }

/* product cards on dark */
body.night .product-card {
  background: rgba(255,255,255,0.035);
  border-color: var(--line-dark);
}
body.night .product-card:hover { border-color: var(--gold); }
body.night .p-img {
  background: #f6f8f9;
  margin: 16px 16px 0;
  border-radius: 10px;
  height: 240px;
  padding: 20px;
}
body.night .p-body h3 { color: #fff; }
body.night .p-body p { color: rgba(255,255,255,0.55); }

/* contact on dark */
body.night .contact-list li { border-color: var(--line-dark); }
body.night .contact-list p { color: rgba(255,255,255,0.82); }
body.night .contact-card-box {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--line-dark);
}

/* night header: keep dark after scrolling */
body.night .site-header.scrolled {
  background: rgba(6,8,13,0.92);
  box-shadow: 0 1px 0 var(--line-dark);
}
body.night .scrolled .nav-links a { color: rgba(255,255,255,0.85); }
body.night .scrolled .nav-logo .logo-light { opacity: 1; }
body.night .scrolled .nav-logo .logo-dark { opacity: 0; }
body.night .scrolled .burger span { background: #fff; }

/* night mobile menu */
body.night .mobile-open .nav-links {
  background: #0a0d14;
  box-shadow: 0 14px 44px rgba(0,0,0,0.6);
}
body.night .mobile-open .nav-links a { color: rgba(255,255,255,0.88); }
body.night .mobile-open .burger span { background: #fff; }

/* the name block */
.name-block { max-width: 780px; margin: 0 auto; text-align: center; }
.name-quote {
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 300;
  color: rgba(255,255,255,0.84);
  line-height: 1.55;
  letter-spacing: 0.01em;
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .section { padding: 84px 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .standards-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band, .contact-grid { grid-template-columns: 1fr; flex-direction: column; text-align: center; padding: 48px 32px; }
  .about-values { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-cta .btn { display: none; }
  .mobile-open .nav-links {
    display: flex;
    position: fixed;
    top: 84px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 28px 26px;
    gap: 22px;
    box-shadow: var(--shadow);
  }
  .mobile-open .nav-links a { color: var(--ink); }
  .mobile-open .burger span { background: var(--black); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .cat-grid, .product-grid, .standards-grid, .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-actions .btn { width: 100%; }
  .photo-band { height: 60vh; }
}
