/* ===================================================================
 * NÜMAP — Modern Restyle
 * Dark, professional, techie landing
 * =================================================================== */

:root {
  --bg: #07070d;
  --bg-soft: #0c0c16;
  --surface: #11111d;
  --surface-2: #161628;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f7;
  --text-dim: #a4a4b3;
  --text-faint: #71717f;

  --accent: #a855f7;
  --accent-2: #6366f1;
  --accent-3: #06b6d4;
  --grad: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(6, 182, 212, 0.12));

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --max-w: 1200px;
  --shadow-glow: 0 0 60px rgba(168, 85, 247, 0.18);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg) !important;
  color: var(--text);
  font-family: "Inter", "muli-regular", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html { font-size: 16px !important; }

body {
  font-feature-settings: "ss01", "cv11";
  position: relative;
  min-height: 100vh;
}

/* Hide legacy preloader */
#preloader { display: none !important; }

/* Reset legacy header / sections */
section { padding: 0; background: transparent !important; }
.row { width: auto; max-width: none; padding: 0; margin: 0; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", "montserrat-regular", sans-serif;
  color: var(--text);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p { margin: 0; color: var(--text-dim); }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.85em; }

/* Background decorations */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}

.bg-glow {
  position: fixed; pointer-events: none; z-index: 0;
  width: 720px; height: 720px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
}
.bg-glow--1 {
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.5), transparent 60%);
}
.bg-glow--2 {
  top: 30%; right: -250px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent 60%);
}

main, .nav, .footer { position: relative; z-index: 1; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* =============================
 * NAV
 * ============================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(7, 7, 13, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.nav__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--grad);
  color: white;
  box-shadow: 0 4px 24px rgba(168, 85, 247, 0.4);
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.nav__links a {
  position: relative;
  padding: 6px 0;
}
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--grad);
  transition: width .25s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* =============================
 * BUTTONS
 * ============================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn--sm { padding: 9px 16px; font-size: 0.88rem; }

.btn--primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 8px 30px rgba(168, 85, 247, 0.25);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 14px 40px rgba(168, 85, 247, 0.45);
  color: var(--bg);
}

.btn--ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* =============================
 * BADGE / EYEBROW
 * ============================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #d8b4fe;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* =============================
 * HERO
 * ============================= */
.hero {
  position: relative;
  padding: 180px 24px 100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100vh;
}

#particles-js {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.hero__inner { position: relative; z-index: 2; }

.hero__title {
  margin-top: 22px;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero__subtitle {
  margin-top: 22px;
  font-size: 1.12rem;
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.65;
}

.hero__cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__meta {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 540px;
}
.hero__meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero__meta-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero__meta-label {
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}

.hero__device {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-frame {
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 30px 80px rgba(168, 85, 247, 0.35));
  animation: float 6s ease-in-out infinite;
}
.device-frame img {
  max-width: 100%;
  height: auto;
  display: block;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.floating-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(17, 17, 29, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  z-index: 3;
  animation: float 7s ease-in-out infinite;
}
.floating-card--top { top: 10%; left: -10%; animation-delay: 0.4s; }
.floating-card--mid { top: 48%; right: -12%; animation-delay: 0.9s; }
.floating-card--bottom { bottom: 10%; left: -6%; animation-delay: 1.5s; }

.floating-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--grad-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.floating-card__icon--ok {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
.floating-card__icon--alert {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.floating-card__pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: ringPulse 2s ease-out infinite;
}
@keyframes ringPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  100% { box-shadow: 0 0 0 14px rgba(34, 197, 94, 0); }
}
.floating-card__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}
.floating-card__sub {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin: 2px 0 0;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 140px 24px 60px;
    text-align: center;
    min-height: auto;
  }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__meta { margin-left: auto; margin-right: auto; }
  .hero__device { order: -1; }
  .floating-card--top { left: 0; }
  .floating-card--bottom { right: 0; }
}
@media (max-width: 560px) {
  .hero__meta { grid-template-columns: 1fr; gap: 16px; }
  .floating-card { display: none; }
}

/* =============================
 * USECASES MARQUEE
 * ============================= */
.usecases {
  padding: 50px 0 60px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
  position: relative;
  overflow: hidden;
}
.usecases__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 0 24px;
}
.usecases__prompt {
  color: var(--accent);
  font-size: 0.95rem;
}
.usecases__label {
  color: var(--text-faint);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.marquee {
  display: flex;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.marquee__track {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  padding-right: 14px;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.usecase-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all .25s var(--ease);
  flex-shrink: 0;
}
.usecase-chip svg {
  color: var(--accent);
  opacity: 0.85;
  flex-shrink: 0;
}
.usecase-chip:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.35);
  color: var(--text);
}
.usecase-chip--more {
  background: var(--grad-soft);
  border-color: rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; flex-wrap: wrap; justify-content: center; padding: 0 24px; }
  .marquee__track:nth-child(2) { display: none; }
}

/* =============================
 * SECTION HEADS
 * ============================= */
#features, #showcase, #demos, #contacto { padding: 110px 0; }

.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.section-lead {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* =============================
 * FEATURES GRID
 * ============================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  position: relative;
  padding: 36px 30px 32px;
  background: var(--bg-soft);
  transition: background .3s var(--ease);
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(168, 85, 247, 0.1), transparent 40%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.feature-card:hover { background: var(--surface); }
.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--accent);
  margin-bottom: 22px;
}

.feature-card h3 {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.feature-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-card__index {
  position: absolute;
  top: 22px; right: 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* =============================
 * SHOWCASE
 * ============================= */
.showcase__frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), var(--shadow-glow);
}
.showcase__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(168, 85, 247, 0.12), transparent 50%);
  pointer-events: none;
}
.showcase__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}
.showcase__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.showcase__dot:nth-child(1) { background: #ff5f57; }
.showcase__dot:nth-child(2) { background: #febc2e; }
.showcase__dot:nth-child(3) { background: #28c840; }
.showcase__url {
  margin-left: 14px;
  color: var(--text-faint);
  font-size: 0.78rem;
}
.showcase__frame img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

/* =============================
 * DEMOS
 * ============================= */
.demos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.demo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .35s var(--ease);
  color: var(--text);
}
.demo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(168, 85, 247, 0.2);
  color: var(--text);
}

.demo-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}
.demo-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) brightness(0.85);
  transition: all .5s var(--ease);
}
.demo-card:hover .demo-card__media img {
  filter: grayscale(0) brightness(1);
  transform: scale(1.04);
}
.demo-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 7, 13, 0.85));
}

.demo-card__body {
  padding: 24px 26px 26px;
  position: relative;
  z-index: 2;
}
.demo-card__tag {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.demo-card__title {
  margin: 8px 0 6px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.demo-card__sub {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.demo-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}
.demo-card__cta svg { transition: transform .25s var(--ease); }
.demo-card:hover .demo-card__cta svg { transform: translateX(4px); }

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

/* =============================
 * CONTACT
 * ============================= */
.contact-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at top, rgba(168, 85, 247, 0.18), transparent 60%),
    var(--bg-soft);
  overflow: hidden;
  text-align: center;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}
.contact-card__inner {
  position: relative;
  z-index: 1;
  padding: 80px 32px;
  max-width: 720px;
  margin: 0 auto;
}
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 32px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  color: var(--text);
  transition: all .25s var(--ease);
}
.contact-mail:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--text);
}
.contact-card__cta { margin-top: 8px; }

/* =============================
 * FOOTER
 * ============================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 60px;
  background: rgba(0,0,0,0.3);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--text);
}
.footer__copy {
  font-size: 0.85rem;
  color: var(--text-faint);
}
.footer__top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all .25s var(--ease);
}
.footer__top:hover {
  background: var(--grad);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* =============================
 * MISC overrides for legacy CSS
 * ============================= */
header#header { display: none; }
.overlay { display: none; }
.home-content { display: none; }
.about-bottom-image { display: none; }
.demos-content { display: none; }
.about-intro, .about-features { display: none; }

/* Scrollbar (subtle) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(168, 85, 247, 0.4); }

/* Selection */
::selection { background: rgba(168, 85, 247, 0.35); color: var(--text); }
