/* ============ NUVEX LANDING ============ */
:root {
  --accent-1: #0066ff;
  --accent-2: #7b2cff;
  --accent-3: #00e5ff;
  --grad: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  --grad-soft: linear-gradient(135deg, color-mix(in srgb, var(--accent-1) 8%, transparent), color-mix(in srgb, var(--accent-2) 8%, transparent));

  --bg: #ffffff;
  --bg-2: #f6f7fb;
  --bg-3: #eceff7;
  --fg: #0a0a1a;
  --fg-2: #2a2a3e;
  --fg-3: #6b6b82;
  --fg-4: #9b9bad;
  --line: #e5e7ef;
  --line-2: #f0f2f8;

  --density: 1;
  --sp-1: calc(8px * var(--density));
  --sp-2: calc(16px * var(--density));
  --sp-3: calc(24px * var(--density));
  --sp-4: calc(32px * var(--density));
  --sp-5: calc(48px * var(--density));
  --sp-6: calc(64px * var(--density));
  --sp-7: calc(96px * var(--density));
  --sp-8: calc(128px * var(--density));

  --font-display: 'Inter Tight', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --anim: 1; /* 0..1 intensity */
}

[data-theme="dark"] {
  --bg: #07070d;
  --bg-2: #0d0d17;
  --bg-3: #141424;
  --fg: #f4f5fb;
  --fg-2: #d0d2e0;
  --fg-3: #8e91a6;
  --fg-4: #5a5d75;
  --line: #1c1d2e;
  --line-2: #15162440;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; transition: background .4s ease, color .4s ease; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1360px; margin: 0 auto; padding: 0 var(--sp-4); }

/* ---------- NAVBAR ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  transition: background .3s ease, border-color .3s ease;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--grad); position: relative; overflow: hidden; }
.brand-mark::after { content: 'N'; position: absolute; inset: 0; display: grid; place-items: center; color: white; font-weight: 700; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.04em; }
.nav-links { display: flex; gap: var(--sp-4); font-size: 14px; color: var(--fg-2); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 500; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all .25s ease;
  font-family: inherit; line-height: 1;
}
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--fg) 50%, transparent); }
.btn-accent {
  background: var(--grad); color: white; border: none;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent-2) 60%, transparent);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--accent-2) 70%, transparent); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-lg { padding: 16px 26px; font-size: 15px; }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- HERO ---------- */
.hero { position: relative; padding-top: calc(72px + var(--sp-7)); padding-bottom: var(--sp-7); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-5); align-items: center;
  position: relative; z-index: 2;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; color: var(--fg-2); font-family: var(--font-mono);
  background: var(--bg);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px color-mix(in srgb, #22c55e 25%, transparent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, #22c55e 0%, transparent); } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 0.98; letter-spacing: -0.04em; font-weight: 500;
  margin-top: var(--sp-3); margin-bottom: var(--sp-3);
  text-wrap: balance;
}
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; font-weight: 600; }
.hero h1 .thin { font-weight: 300; color: var(--fg-3); }

.hero p.lede { font-size: 19px; line-height: 1.55; color: var(--fg-3); max-width: 540px; text-wrap: pretty; }
.hero-cta { margin-top: var(--sp-4); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-meta { margin-top: var(--sp-5); display: flex; gap: var(--sp-4); flex-wrap: wrap; color: var(--fg-3); font-size: 13px; }
.hero-meta > div { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--accent-2); }

.hero-visual { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-orb {
  position: absolute; inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent-3) 40%, transparent), transparent 60%),
              radial-gradient(circle at 70% 70%, color-mix(in srgb, var(--accent-2) 40%, transparent), transparent 60%);
  filter: blur(40px); opacity: calc(0.7 * var(--anim)); pointer-events: none;
}

/* ---------- MARQUEE ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--sp-3) 0; overflow: hidden; position: relative; }
.marquee-track { display: flex; gap: var(--sp-6); white-space: nowrap; animation: scroll calc(40s / var(--anim, 1)) linear infinite; }
.marquee-item { font-family: var(--font-mono); font-size: 13px; color: var(--fg-3); display: inline-flex; align-items: center; gap: 10px; }
.marquee-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
section { padding: var(--sp-8) 0; position: relative; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); margin-bottom: var(--sp-6); align-items: end; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(36px, 4.5vw, 60px); line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance; margin-top: var(--sp-2);
}
.section-head h2 em { font-style: italic; color: var(--fg-3); font-weight: 400; }
.section-head p { color: var(--fg-3); font-size: 17px; line-height: 1.55; max-width: 480px; }

/* ---------- SERVICES ---------- */
.services { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; background: var(--bg); }
.service {
  grid-column: span 6;
  padding: var(--sp-5);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: background .3s;
  min-height: 340px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.service:nth-child(2n) { border-right: none; }
.service:nth-child(n+3) { border-bottom: none; }
.service:hover { background: var(--bg-2); }
.service-num { font-family: var(--font-mono); font-size: 12px; color: var(--fg-4); }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); color: var(--fg); margin-top: var(--sp-2); }
.service-icon svg { width: 26px; height: 26px; }
.service h3 { font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin-top: var(--sp-3); }
.service p { color: var(--fg-3); font-size: 15px; line-height: 1.55; margin-top: 10px; max-width: 440px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-3); }
.service-tag { font-family: var(--font-mono); font-size: 11px; padding: 5px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--fg-2); }
.service .accent-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform .4s ease; }
.service:hover .accent-bar { transform: scaleY(1); }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--sp-6); align-items: center; }
.about-copy h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4vw, 54px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.about-copy h2 em { font-style: italic; color: var(--fg-3); }
.about-copy p { color: var(--fg-3); font-size: 17px; line-height: 1.6; margin-top: var(--sp-3); max-width: 540px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-5); }
.stat { border-top: 1px solid var(--line); padding-top: var(--sp-3); }
.stat-num { font-family: var(--font-display); font-size: 44px; font-weight: 500; letter-spacing: -0.03em; }
.stat-num .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 13px; color: var(--fg-3); margin-top: 4px; }

.about-visual {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-xl);
  background: var(--bg-2); border: 1px solid var(--line);
  overflow: hidden;
}
.about-visual .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 75%); opacity: 0.6; }
.about-visual .logo-float { position: absolute; inset: 0; display: grid; place-items: center; padding: 8%; }
.about-visual .logo-float img { filter: drop-shadow(0 20px 60px color-mix(in srgb, var(--accent-2) 30%, transparent)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.about-visual .ring { position: absolute; border: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent); border-radius: 50%; }
.about-visual .ring.r1 { inset: 8%; animation: spin calc(30s / var(--anim, 1)) linear infinite; }
.about-visual .ring.r2 { inset: 18%; border-color: color-mix(in srgb, var(--accent-3) 30%, transparent); animation: spin calc(22s / var(--anim, 1)) linear infinite reverse; }
.about-visual .ring.r3 { inset: 28%; border-color: color-mix(in srgb, var(--accent-1) 30%, transparent); animation: spin calc(18s / var(--anim, 1)) linear infinite; }
.about-visual .ring::before { content: ''; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- PROCESS ---------- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.step { padding: var(--sp-4) var(--sp-3); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); position: relative; }
.step-num { font-family: var(--font-mono); font-size: 11px; color: var(--fg-4); }
.step h4 { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin-top: var(--sp-3); }
.step p { font-size: 14px; color: var(--fg-3); line-height: 1.5; margin-top: 10px; }

/* ---------- CONTACT ---------- */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: var(--sp-6); align-items: start;
}
.contact h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4vw, 54px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.contact h2 em { font-style: italic; color: var(--fg-3); }
.contact-copy p { color: var(--fg-3); font-size: 16px; line-height: 1.55; margin-top: var(--sp-3); }
.contact-methods { margin-top: var(--sp-4); display: flex; flex-direction: column; gap: 12px; }
.contact-method { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); transition: all .2s; }
.contact-method:hover { border-color: var(--fg); transform: translateX(2px); }
.contact-method-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center; color: var(--fg); flex-shrink: 0; }
.contact-method-label { font-size: 12px; color: var(--fg-4); font-family: var(--font-mono); }
.contact-method-value { font-size: 15px; color: var(--fg); margin-top: 2px; }

form.contact-form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--fg-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; }
.field input, .field textarea, .field select {
  padding: 14px 16px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); font-family: inherit; font-size: 15px; color: var(--fg);
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 15%, transparent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-msg { font-size: 13px; color: var(--fg-3); margin-top: 4px; min-height: 18px; }
.form-msg.success { color: #22c55e; }

/* ---------- FOOTER ---------- */
footer { padding: var(--sp-6) 0 var(--sp-4); border-top: 1px solid var(--line); margin-top: var(--sp-4); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-4); }
.footer-brand p { color: var(--fg-3); font-size: 14px; margin-top: var(--sp-2); line-height: 1.55; max-width: 340px; }
.footer-col h5 { font-size: 12px; color: var(--fg-4); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--sp-2); }
.footer-col a { display: block; font-size: 14px; color: var(--fg-2); padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--sp-4); margin-top: var(--sp-5); border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-3); }
.social { display: flex; gap: 10px; }
.social a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--fg-2); transition: all .2s; }
.social a:hover { border-color: var(--fg); color: var(--fg); }

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: white; display: grid; place-items: center;
  box-shadow: 0 12px 32px -8px rgba(37, 211, 102, 0.5);
  transition: transform .25s, box-shadow .25s;
}
.wa-float:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 18px 40px -8px rgba(37, 211, 102, 0.6); }
.wa-float::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #25D366; opacity: 0.4;
  animation: wa-pulse calc(2.4s / var(--anim, 1)) ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(0.95); opacity: 0.6; } 100% { transform: scale(1.4); opacity: 0; } }

/* ---------- TWEAKS PANEL ---------- */
.tweaks-panel {
  position: fixed; bottom: 96px; right: 24px; z-index: 60;
  width: 300px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px; box-shadow: 0 20px 60px -20px rgba(10, 10, 26, 0.25);
  display: none; font-size: 13px;
}
.tweaks-panel.open { display: block; }
.tweaks-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tweaks-head h4 { font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.tweak { margin-bottom: 14px; }
.tweak-label { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; display: flex; justify-content: space-between; }
.tweak-opts { display: flex; gap: 4px; flex-wrap: wrap; }
.tweak-opt {
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
  font-size: 12px; color: var(--fg-2); cursor: pointer; transition: all .15s;
  font-family: inherit;
}
.tweak-opt.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tweak-opt:hover:not(.active) { border-color: var(--fg); }
.tweak-swatch { width: 28px; height: 28px; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: transform .15s; }
.tweak-swatch.active { border-color: var(--fg); transform: scale(1.05); }
.tweak input[type="range"] { width: 100%; accent-color: var(--accent-2); }

.close-x { background: none; border: none; cursor: pointer; color: var(--fg-3); font-size: 18px; line-height: 1; padding: 4px; }

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-grid, .about, .contact, .section-head { grid-template-columns: 1fr; gap: var(--sp-4); }
  .service { grid-column: span 12; border-right: none; }
  .service:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .process-steps, .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
