/* ============================================================
   PT Nexera Digital Labs — global styles
   Palette: warm-dark #0C0B0F + gold #E8A33D + iris #7C6CF0
   Type: Clash Display (headings) / Satoshi (body)
   ============================================================ */

:root {
  --black:        #050507;
  --white:        #F4F2F7;
  /* "orange" names kept as aliases so existing rules keep working */
  --orange:       #E8A33D;
  --orange-hover: #F2B257;
  --orange-soft:  rgba(232, 163, 61, 0.12);
  --orange-rgb:   232, 163, 61;
  --iris:         #7C6CF0;
  --iris-rgb:     124, 108, 240;
  --grad: linear-gradient(100deg, #f4f2f7 0%, #f4f2f7 38%, #e8a33d 66%, #ff8a4c 86%, #b07cf2 110%);

  --bg:        #0C0B0F;
  --surface:   #131119;
  --surface-2: #1B1824;
  --line:      rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text:      #F4F2F7;
  --muted:     #9A95A6;

  --radius:   12px;
  --maxw:     1180px;
  --nav-h:    76px;
  --transition: all 0.25s ease;

  font-synthesis: none;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .logo-text, .product-name {
  font-family: 'Clash Display', 'Satoshi', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { height: 54px; padding: 0 30px; font-size: 15px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 28px rgba(var(--orange-rgb), 0.3);
}
.btn-primary:hover {
  background: var(--orange-hover);
  box-shadow: 0 14px 40px rgba(var(--orange-rgb), 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--white); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px; display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
.logo-text { font-weight: 700; font-size: 18px; letter-spacing: 1px; }
.logo-dot { color: var(--orange); }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: color .2s ease;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions-mobile { display: none; }

/* Lang toggle */
.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang-btn.active { background: var(--white); color: #000; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
  display: block;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background:
    radial-gradient(ellipse 70% 55% at 75% 35%, rgba(232,163,61,0.08) 0%, transparent 62%),
    radial-gradient(ellipse 55% 50% at 18% 75%, rgba(124,108,240,0.08) 0%, transparent 60%),
    var(--bg);
}

/* animated particle background (canvas) */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  background: rgba(232,163,61,0.18);
  top: -100px; right: 5%;
  animation: glowPulse 6s ease-in-out infinite alternate;
}
.hero-glow-2 {
  width: 380px; height: 380px;
  background: rgba(124,108,240,0.14);
  bottom: -80px; left: -60px;
}
@keyframes glowPulse {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.08); }
}

/* Hero single column over the animated background */
.hero-inner {
  position: relative;
  z-index: 2;
  display: block;
  padding-block: 80px 60px;
  width: 100%;
}

/* Left: content */
.hero-content { max-width: 680px; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(232,163,61,0.35);
  background: rgba(232,163,61,0.08);
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-title {
  margin-top: 20px;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -1.6px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 20px;
  max-width: 520px;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: var(--muted);
  line-height: 1.7;
}

.hero-tagline {
  margin-top: 14px;
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
  opacity: 0.9;
}
.hero-tagline::before { content: "— "; color: var(--orange); }

.hero-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* blink — used by the NEXPA "coming soon" badge */
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.2; } }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--line-strong);
  border-radius: 14px;
  z-index: 2;
  display: flex;
  justify-content: center;
}
.hero-scroll span {
  width: 4px; height: 8px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--orange);
  animation: scrolly 1.8s ease-in-out infinite;
}
@keyframes scrolly {
  0%,100% { transform: translateY(0); opacity:1; }
  50%      { transform: translateY(10px); opacity:.25; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 96px 0; position: relative; }
.section-alt {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(232,163,61,0.05), transparent 55%),
    var(--surface);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.section-kicker {
  color: var(--orange);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.section-title { margin-top: 10px; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; }
.section-desc { margin-top: 12px; color: var(--muted); font-size: 1.02rem; }

/* ============================================================
   GRID + CARDS
   ============================================================ */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(232,163,61,0.4);
  box-shadow: 0 20px 56px rgba(0,0,0,0.55);
}

/* Value cards */
.value-card h3 { margin-top: 16px; font-size: 1.1rem; font-weight: 600; }
.value-card p  { margin-top: 8px; color: var(--muted); font-size: .93rem; line-height: 1.6; }
.value-icon { width: 52px; height: 52px; }
lord-icon:not(:defined) {
  display: inline-block; width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--orange-soft);
  border: 1px solid rgba(232,163,61,.3);
}

/* Product cards */
.product-card { display: flex; flex-direction: column; gap: 12px; }
.product-card--nexpa { border-color: rgba(232,163,61,0.25); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-name { font-size: 1.2rem; font-weight: 700; }
.product-card > p { color: var(--muted); font-size: .94rem; flex: 1; line-height: 1.6; }

.tag {
  font-size: 11px; font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.tag-live { background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.tag-soon { background: var(--orange-soft); color: var(--orange); border: 1px solid rgba(232,163,61,.3); }

.link-arrow {
  color: var(--orange);
  font-weight: 600;
  font-size: .92rem;
  transition: opacity .2s, gap .2s;
  align-self: flex-start;
}
.link-arrow:hover { opacity: .75; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  padding: 88px 0;
  background:
    radial-gradient(80% 160% at 50% 0%, rgba(232,163,61,0.14), transparent 55%),
    linear-gradient(180deg, #0a0a0a, #000);
  border-top: 1px solid var(--line);
}
.cta-inner { text-align: center; max-width: 600px; margin-inline: auto; }
.cta-inner h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; }
.cta-inner p  { margin-top: 12px; color: var(--muted); font-size: 1.02rem; }
.cta-inner .btn { margin-top: 28px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 44px;
}
.footer-brand { display: flex; flex-direction: column; gap: 0; }
.footer-tagline { margin-top: 14px; color: var(--muted); max-width: 300px; font-size: .95rem; line-height: 1.6; }
.footer-company { margin-top: 6px; color: var(--orange); font-weight: 600; font-size: .88rem; }

/* Social icons in footer */
.footer-social { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.social-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .9rem;
  transition: color .2s ease;
}
.social-icon:hover { color: var(--orange); }
.social-icon svg { flex-shrink: 0; }

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 16px;
  color: var(--white);
  font-weight: 600;
}
.footer-col a, .footer-col span {
  display: block;
  color: var(--muted);
  font-size: .93rem;
  margin-bottom: 10px;
  transition: color .2s ease;
  word-break: break-all;
}
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px;
}
.footer-bottom p { color: var(--muted); font-size: .85rem; text-align: center; }

/* ============================================================
   SUBPAGES (about / products / contact / nexpa)
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 72px) 0 8px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-kicker {
  color: var(--orange); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.page-title {
  margin-top: 12px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.06; letter-spacing: -1px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-sub { margin-top: 16px; color: var(--muted); max-width: 640px; font-size: 1.08rem; line-height: 1.7; }

.about-body { max-width: 780px; color: #d7d4de; font-size: 1.1rem; line-height: 1.85; }

.info-card h3 { font-size: 1.25rem; }
.info-card p { margin-top: 10px; color: var(--muted); line-height: 1.7; }

/* contact + waitlist forms */
.form { display: grid; gap: 16px; max-width: 520px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color .2s ease;
}
textarea.input { min-height: 130px; resize: vertical; }
.input:focus { border-color: var(--orange); }
.input::placeholder { color: #6c6976; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; }
.contact-card .label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.contact-card a { color: var(--text); font-weight: 600; font-size: 1.05rem; }
.contact-card a:hover { color: var(--orange); }

.nexpa-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(232,163,61,.35); background: rgba(232,163,61,.08);
  color: var(--orange); font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
}
.nexpa-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.back-link { display: inline-block; margin-top: 28px; color: var(--muted); font-weight: 500; }
.back-link:hover { color: var(--orange); }
.form-note { margin-top: 12px; font-size: .85rem; color: var(--muted); }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content { max-width: 100%; }
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 60px 40px;
  }
  .hero-content { max-width: 100%; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-actions .lang-toggle,
  .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 22px 28px;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .32s cubic-bezier(.22,1,.36,1);
    visibility: hidden;
    z-index: 99;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-link { font-size: 18px; padding: 10px 0; }
  .nav-link.active::after { display: none; }

  .nav-actions-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    width: 100%;
  }
  .nav-actions-mobile .btn { flex: 1; justify-content: center; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 72px 0; }
}

@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll span, .hero-glow-1 { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}
