/* ── Morales Industries — Futuristic CSS ────────────────────────────────── */
:root {
  --bg: #080b14;
  --surface: #0d1120;
  --surface2: #111827;
  --border: rgba(255,255,255,0.07);
  --purple: #9945FF;
  --green: #14F195;
  --teal: #00C2FF;
  --gold: #F7931A;
  --red: #FF4D6D;
  --text: #e2e8f8;
  --muted: rgba(200,210,230,0.45);
  --muted2: rgba(200,210,230,0.22);
  --font: 'Space Grotesk', 'Inter', sans-serif;
  --mono: 'Space Mono', monospace;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── CANVAS BACKGROUND ─────────────────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

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

/* ── SCROLLBAR ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(153,69,255,0.4); border-radius: 2px; }

/* ── TYPOGRAPHY ────────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── NAV ───────────────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,11,20,0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

#nav.scrolled {
  background: rgba(8,11,20,0.95);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--purple), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
}

.logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-cta {
  background: linear-gradient(135deg, var(--purple), #7c2ee0) !important;
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

.nav-cta:hover {
  background: linear-gradient(135deg, #b060ff, var(--purple)) !important;
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin-left: auto;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  gap: 4px;
}

.mobile-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.mobile-menu a:last-child { border-bottom: none; }

.mobile-menu.open { display: flex; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
}

/* ── HERO ──────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 120px 24px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(153,69,255,0.1);
  border: 1px solid rgba(153,69,255,0.3);
  font-size: 12px;
  font-weight: 600;
  color: rgba(180,140,255,0.9);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -3px;
  color: #fff;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--purple), #7c2ee0);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s;
  box-shadow: 0 0 30px rgba(153,69,255,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(153,69,255,0.55);
}

.btn-primary.large { padding: 16px 32px; font-size: 16px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border);
  transition: all 0.25s;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}

.btn-ghost.large { padding: 16px 32px; font-size: 16px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat {
  padding: 0 24px 0 0;
}

.stat:first-child { padding-left: 0; }

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--muted2);
  margin-top: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  margin-right: 24px;
  flex-shrink: 0;
}

/* ── HERO VISUAL ───────────────────────────────────────────────────────── */
.hero-visual {
  width: 420px;
  height: 420px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(153,69,255,0.2);
  animation: rotate linear infinite;
}

.ring-1 { width: 160px; height: 160px; animation-duration: 8s; border-color: rgba(153,69,255,0.35); }
.ring-2 { width: 280px; height: 280px; animation-duration: 14s; animation-direction: reverse; border-color: rgba(20,241,149,0.2); }
.ring-3 { width: 400px; height: 400px; animation-duration: 22s; border-color: rgba(0,194,255,0.15); }

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.orbit-core {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  z-index: 2;
  position: relative;
}

.core-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153,69,255,0.4) 0%, transparent 70%);
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.orbit-node {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  animation: float-node 4s ease-in-out infinite;
}

.n1 { top: 10%;  left: 50%;  animation-delay: 0s; }
.n2 { top: 30%;  right: 5%;  animation-delay: 0.6s; }
.n3 { bottom: 20%; right: 10%; animation-delay: 1.2s; }
.n4 { bottom: 10%; left: 50%; animation-delay: 1.8s; }
.n5 { top: 30%;  left: 5%;   animation-delay: 2.4s; }
.n6 { top: 50%;  left: 50%;  animation-delay: 3.0s; }

@keyframes float-node {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  #hero { flex-direction: column; padding-top: 100px; align-items: flex-start; }
  .hero-visual { width: 280px; height: 280px; margin: 0 auto; }
  .ring-3 { width: 260px; height: 260px; }
  .ring-2 { width: 190px; height: 190px; }
  .ring-1 { width: 110px; height: 110px; }
}

/* ── MARQUEE ────────────────────────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(153,69,255,0.04);
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.marquee-track span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 20px;
}

.marquee-track .dot { color: var(--purple); opacity: 0.5; padding: 0; }

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

/* ── SECTIONS ───────────────────────────────────────────────────────────── */
.section {
  padding: 100px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.dark-section {
  max-width: 100%;
  background: rgba(13,17,32,0.6);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dark-section > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.dark-section.section { padding: 100px 24px; }

.section-label {
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.25em;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 56px;
  max-width: 540px;
  line-height: 1.6;
}

/* ── PRODUCTS GRID ──────────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
}

.product-card.featured {
  grid-column: span 1;
  background: linear-gradient(145deg, rgba(153,69,255,0.08), var(--surface));
  border-color: rgba(153,69,255,0.2);
}

.card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow, #9945FF) 0%, transparent 70%);
  opacity: 0.12;
  pointer-events: none;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c, #9945FF) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, #9945FF) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.card-tag {
  font-size: 9px;
  font-family: var(--mono);
  letter-spacing: 0.2em;
  color: var(--green);
  background: rgba(20,241,149,0.08);
  border: 1px solid rgba(20,241,149,0.2);
  padding: 3px 8px;
  border-radius: 4px;
}

.product-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.product-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.card-features span {
  font-size: 11px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 9px;
  color: var(--muted);
  font-family: var(--mono);
}

.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.card-link:hover { gap: 8px; }

@media (max-width: 900px) { .products-grid { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1100px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── ECOSYSTEM GRID ─────────────────────────────────────────────────────── */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 56px;
}

.eco-node {
  background: var(--surface);
  padding: 28px 24px;
  transition: background 0.2s;
}

.eco-node:hover {
  background: rgba(153,69,255,0.06);
}

.eco-icon { font-size: 28px; margin-bottom: 12px; }
.eco-name { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.eco-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

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

/* ── TECHNOLOGY ─────────────────────────────────────────────────────────── */
.tech-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 56px;
}

.tech-block {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.tech-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.tech-num {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--purple);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.tech-block h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.tech-block p { font-size: 15px; color: var(--muted); line-height: 1.7; }

/* Code window */
.code-window {
  background: #0a0d18;
  border: 1px solid rgba(153,69,255,0.25);
  border-radius: 16px;
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(153,69,255,0.07);
  border-bottom: 1px solid rgba(153,69,255,0.15);
}

.code-bar .dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.dot.r { background: #FF5F57; }
.dot.y { background: #FEBC2E; }
.dot.g { background: #28C840; }

.code-file {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--muted2);
  margin-left: 8px;
  letter-spacing: 0.04em;
}

.code-body {
  padding: 24px;
  overflow-x: auto;
}

code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: #a8b8d0;
  display: block;
}

.c { color: rgba(100,130,160,0.65); font-style: italic; }
.k { color: #c792ea; }
.fn { color: #82aaff; }
.s { color: #c3e88d; }

@media (max-width: 900px) { .tech-split { grid-template-columns: 1fr; } .code-window { position: static; } }

/* ── AGENTS ─────────────────────────────────────────────────────────────── */
.agents-list {
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.agent-row {
  display: grid;
  grid-template-columns: 24px 200px 1fr 200px;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.2s;
}

.agent-row:last-child { border-bottom: none; }
.agent-row:hover { background: rgba(153,69,255,0.04); }

.agent-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.agent-status.live {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s infinite;
}

.agent-status.building {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.agent-name { font-weight: 700; font-size: 15px; color: #fff; }
.agent-desc { font-size: 14px; color: var(--muted); line-height: 1.5; }
.agent-stack { font-size: 11px; font-family: var(--mono); color: var(--muted2); text-align: right; }

@media (max-width: 900px) {
  .agent-row { grid-template-columns: 16px 1fr; grid-template-rows: auto auto; gap: 8px; }
  .agent-desc { grid-column: 2; }
  .agent-stack { grid-column: 2; text-align: left; }
}

/* ── CTA ────────────────────────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(153,69,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -2.5px;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  background: rgba(8,11,20,0.9);
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.2em;
  color: var(--muted2);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted2);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── AOS (scroll reveal) ────────────────────────────────────────────────── */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}

[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}
