/* ==========================================================================
   Mintropia — cosmic tech minimalism
   ========================================================================== */

:root {
  /* Palette */
  --deep-space: #0B0614;
  --deep-space-2: #110A1F;
  --cosmic-violet: #7C3AED;
  --nebula-purple: #A78BFA;
  --cosmic-blue: #38BDF8;
  --star-white: #F8FAFC;
  --orbit-gray: #94A3B8;

  /* Surfaces */
  --glass: rgba(167, 139, 250, 0.05);
  --glass-strong: rgba(167, 139, 250, 0.09);
  --glass-border: rgba(167, 139, 250, 0.16);
  --glass-border-hover: rgba(167, 139, 250, 0.38);

  /* Type */
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Rhythm */
  --container: 1160px;
  --radius: 20px;
  --radius-sm: 12px;
  --section-pad: clamp(5rem, 12vw, 9rem);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--deep-space);
  color: var(--star-white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; }

::selection { background: rgba(124, 58, 237, 0.55); color: var(--star-white); }

/* ---------- Background layers ---------- */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.orb-a {
  width: 560px; height: 560px;
  top: -180px; right: -160px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 70%);
}

.orb-b {
  width: 640px; height: 640px;
  top: 38%; left: -260px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.13), transparent 70%);
}

.orb-c {
  width: 520px; height: 520px;
  bottom: -180px; right: -120px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.10), transparent 70%);
}

main { position: relative; z-index: 1; }

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.section-head h2 {
  font-size: clamp(1.85rem, 4.4vw, 2.9rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nebula-purple);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--cosmic-violet), var(--nebula-purple));
}

.section-sub {
  color: var(--orbit-gray);
  font-size: 1.05rem;
  margin-top: 1.1rem;
  max-width: 56ch;
}

.grad-text {
  background: linear-gradient(110deg, var(--nebula-purple), var(--cosmic-violet) 55%, var(--cosmic-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
              background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--cosmic-violet), #6D28D9);
  color: var(--star-white);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.25) inset,
              0 8px 28px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.4) inset,
              0 14px 42px rgba(124, 58, 237, 0.5);
}

.btn-ghost {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--star-white);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--glass-border-hover);
  background: var(--glass-strong);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--star-white);
  color: #2E1065;
  box-shadow: 0 10px 32px rgba(11, 6, 20, 0.35);
}

.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(11, 6, 20, 0.45); }

.btn-outline {
  border-color: rgba(248, 250, 252, 0.35);
  color: var(--star-white);
}

.btn-outline:hover { border-color: var(--star-white); transform: translateY(-2px); }

.btn-lg { padding: 1.05rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(11, 6, 20, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(167, 139, 250, 0.1);
}

.nav-inner {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark { width: 32px; height: 32px; }

.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav-links a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--orbit-gray);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active { color: var(--star-white); }

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--cosmic-violet), var(--nebula-purple));
  transition: right 0.3s var(--ease-out);
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after { right: 0; }

.nav-cta { margin-left: 0.4rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--star-white);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.nav-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(11, 6, 20, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: -1;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a:not(.btn) { font-size: 1.3rem; }
  .nav-cta { margin: 0.5rem 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 7.5rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(900px, 120vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.16) 0%, rgba(124, 58, 237, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tagline {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nebula-purple);
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2.3rem, 6.5vw, 4.4rem);
  font-weight: 700;
  max-width: 17ch;
  margin-top: 1.6rem;
}

.hero-sub {
  color: var(--orbit-gray);
  font-size: clamp(1rem, 2vw, 1.18rem);
  max-width: 58ch;
  margin-top: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

/* Dashboard preview */
.hero-dash {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  width: min(820px, 100%);
  perspective: 1400px;
  position: relative;
}

.dash-frame {
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(20, 12, 38, 0.92), rgba(13, 8, 26, 0.95));
  box-shadow: 0 0 0 1px rgba(11, 6, 20, 0.6),
              0 30px 80px rgba(11, 6, 20, 0.7),
              0 0 90px rgba(124, 58, 237, 0.18);
  transform: rotateX(8deg);
  transform-origin: center top;
  overflow: hidden;
}

.dash-topbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid rgba(167, 139, 250, 0.1);
}

.dash-topbar .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.25);
}

.dash-url {
  margin-left: 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--orbit-gray);
  background: rgba(167, 139, 250, 0.07);
  border-radius: 6px;
  padding: 0.2rem 0.7rem;
}

.dash-body {
  display: flex;
  min-height: 250px;
}

.dash-side {
  display: none;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.1rem 0.9rem;
  border-right: 1px solid rgba(167, 139, 250, 0.08);
}

@media (min-width: 640px) {
  .dash-side { display: flex; }
}

.side-item {
  width: 64px;
  height: 9px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.16);
}

.side-item.active {
  background: linear-gradient(90deg, var(--cosmic-violet), var(--nebula-purple));
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.5);
}

.dash-main {
  flex: 1;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.kpi {
  background: rgba(167, 139, 250, 0.05);
  border: 1px solid rgba(167, 139, 250, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  text-align: left;
}

.kpi-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orbit-gray);
}

.kpi-value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-weight: 700;
  margin-top: 0.25rem;
  background: linear-gradient(110deg, var(--star-white), var(--nebula-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dash-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  flex: 1;
}

@media (min-width: 640px) {
  .dash-panels { grid-template-columns: 2fr 1fr; }
}

.dash-chart {
  position: relative;
  background: rgba(167, 139, 250, 0.04);
  border: 1px solid rgba(167, 139, 250, 0.1);
  border-radius: var(--radius-sm);
  padding: 1rem 0.9rem 0.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.dash-chart svg { width: 100%; height: 90px; }

.chart-line {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
}

.hero-dash.visible .chart-line {
  animation: drawLine 2.2s var(--ease-out) 0.5s forwards;
}

.chart-area { opacity: 0; }
.hero-dash.visible .chart-area { animation: fadeIn 1.4s ease 1.4s forwards; }

@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.chart-label {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orbit-gray);
  margin-top: 0.5rem;
}

.dash-tasks {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(167, 139, 250, 0.04);
  border: 1px solid rgba(167, 139, 250, 0.1);
  border-radius: var(--radius-sm);
  padding: 1rem 0.9rem;
  justify-content: center;
}

.task {
  height: 10px;
  border-radius: 5px;
  background: rgba(148, 163, 184, 0.16);
  position: relative;
  overflow: hidden;
}

.task.done::after,
.task.active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cosmic-violet), var(--nebula-purple));
}

.task.active::after {
  right: 35%;
  background: linear-gradient(90deg, var(--cosmic-blue), var(--nebula-purple));
}

.dash-reflection {
  position: absolute;
  inset-inline: 10%;
  bottom: -38px;
  height: 60px;
  background: radial-gradient(ellipse at center top, rgba(124, 58, 237, 0.3), transparent 70%);
  filter: blur(22px);
  pointer-events: none;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  z-index: 2;
  width: 1.5px;
  height: 52px;
  overflow: hidden;
  opacity: 0.7;
}

.scroll-hint-line {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--nebula-purple));
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease,
              background 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(124, 58, 237, 0.13), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 18px 48px rgba(11, 6, 20, 0.55), 0 0 50px rgba(124, 58, 237, 0.12);
}

.card:hover::before { opacity: 1; }

.card h3 {
  font-size: 1.22rem;
  margin-bottom: 0.55rem;
}

.card p {
  color: var(--orbit-gray);
  font-size: 0.95rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 1.3rem;
  color: var(--nebula-purple);
  background: linear-gradient(140deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.05));
  border: 1px solid rgba(167, 139, 250, 0.22);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.15);
}

.card-icon svg { width: 23px; height: 23px; }

/* ---------- Before / After ---------- */
.ba-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .ba-wrap { grid-template-columns: 1fr auto 1fr; gap: 1.6rem; }
}

.ba-panel {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 1.6rem;
  text-align: center;
}

.ba-panel p {
  color: var(--orbit-gray);
  font-size: 0.92rem;
  margin-top: 0.8rem;
}

.ba-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orbit-gray);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.ba-tag-after {
  color: var(--nebula-purple);
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(124, 58, 237, 0.1);
}

.ba-svg { width: 100%; height: auto; margin-top: 1.4rem; }

.chaos-dots circle {
  opacity: 0.75;
  animation: jitter 3.6s ease-in-out infinite;
}

.chaos-dots circle:nth-child(2n) { animation-duration: 4.4s; animation-delay: 0.6s; }
.chaos-dots circle:nth-child(3n) { animation-duration: 5s; animation-delay: 1.2s; }

@keyframes jitter {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(5px, -7px); }
  50% { transform: translate(-6px, 5px); }
  75% { transform: translate(4px, 7px); }
}

.order-grid rect {
  fill: rgba(124, 58, 237, 0.1);
  stroke: rgba(167, 139, 250, 0.35);
  stroke-width: 1;
}

.order-dots circle {
  animation: corePulse 2.6s ease-in-out infinite;
}

.ba-after {
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.12);
}

.ba-arrow {
  width: 90px;
  margin-inline: auto;
  transform: rotate(90deg);
}

@media (min-width: 880px) {
  .ba-arrow { transform: none; }
}

.entropy-path {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
}

.ba-wrap.visible .entropy-path {
  animation: drawLine 1.6s var(--ease-out) 0.4s forwards;
}

@keyframes corePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ---------- Services ---------- */
.service-card { padding-top: 2rem; }

.service-cat {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cosmic-blue);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.service-card h3 { font-size: 1.45rem; }

.service-badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.badge {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--nebula-purple);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--nebula-purple);
  transition: color 0.25s ease, gap 0.25s var(--ease-out);
}

.link-arrow span { transition: transform 0.25s var(--ease-out); }
.link-arrow:hover { color: var(--star-white); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 880px) {
  .products-grid { grid-template-columns: 1.7fr 1fr; align-items: stretch; }
}

.product-main {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

@media (min-width: 640px) {
  .product-main { flex-direction: row; align-items: center; }
}

.product-visual {
  flex: 0 0 38%;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at 50% 40%, rgba(124, 58, 237, 0.22), rgba(124, 58, 237, 0.02) 70%);
  border: 1px solid rgba(167, 139, 250, 0.18);
  min-height: 190px;
  align-self: stretch;
}

.qr-mock {
  color: var(--nebula-purple);
  width: 84px;
  filter: drop-shadow(0 0 18px rgba(124, 58, 237, 0.55));
  animation: qrFloat 5s ease-in-out infinite;
}

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

.product-info h3 {
  font-size: 1.6rem;
  margin-top: 0.9rem;
}

.product-highlight {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--nebula-purple);
}

.badge-live {
  color: #6EE7B7;
  background: rgba(110, 231, 183, 0.08);
  border-color: rgba(110, 231, 183, 0.3);
}

.badge-soon {
  color: var(--orbit-gray);
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.25);
}

.product-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.7rem;
  background: rgba(167, 139, 250, 0.03);
  border-style: dashed;
}

.product-preview h3 { opacity: 0.85; }
.product-preview p { opacity: 0.7; }

/* ---------- Pricing ---------- */
.pricing-grid { align-items: stretch; }

.price-card {
  display: flex;
  flex-direction: column;
  padding: 2.1rem 1.8rem;
  overflow: visible; /* the "Mais popular" badge sits above the card edge */
}

.price-card h3 {
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

.price-for {
  margin-top: 0.6rem;
  min-height: 3em;
}

.price-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--star-white) !important;
  margin-top: 1.3rem;
}

.price-from {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--orbit-gray);
  display: block;
  margin-bottom: 0.1rem;
}

.price-month {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--nebula-purple);
}

.price-list {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.price-list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.93rem;
  color: var(--orbit-gray);
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A78BFA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 9px no-repeat;
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.price-featured {
  border-color: rgba(167, 139, 250, 0.45);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.13), rgba(124, 58, 237, 0.04));
  box-shadow: 0 0 70px rgba(124, 58, 237, 0.18);
}

@media (min-width: 980px) {
  .price-featured { transform: translateY(-14px); }
  .price-featured:hover { transform: translateY(-19px); }
}

.badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cosmic-violet), #6D28D9);
  color: var(--star-white);
  border: none;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

.pricing-note {
  text-align: center;
  margin-top: 2.6rem;
  color: var(--orbit-gray);
  font-size: 0.95rem;
}

.pricing-note a {
  color: var(--nebula-purple);
  border-bottom: 1px solid rgba(167, 139, 250, 0.4);
  transition: color 0.2s ease;
}

.pricing-note a:hover { color: var(--star-white); }

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  position: relative;
  counter-reset: step;
}

@media (min-width: 880px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

  .timeline::before {
    content: "";
    position: absolute;
    top: 23px;
    left: 6%;
    right: 6%;
    height: 1px;
    background: linear-gradient(90deg, transparent,
                rgba(167, 139, 250, 0.35) 12%, rgba(167, 139, 250, 0.35) 88%, transparent);
  }
}

.timeline-step {
  position: relative;
  padding-left: 3.4rem;
}

@media (min-width: 880px) {
  .timeline-step { padding-left: 0; padding-top: 4rem; }
}

.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nebula-purple);
  background: var(--deep-space-2);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(124, 58, 237, 0.25);
  z-index: 1;
}

.timeline-step h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.timeline-step p { color: var(--orbit-gray); font-size: 0.93rem; }

/* Vertical connector on mobile */
@media (max-width: 879px) {
  .timeline-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 52px;
    bottom: -2.2rem;
    width: 1px;
    background: linear-gradient(180deg, rgba(167, 139, 250, 0.35), rgba(167, 139, 250, 0.08));
  }
}

/* ---------- Why ---------- */
.why-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.why-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.why-item:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(11, 6, 20, 0.4), 0 0 30px rgba(124, 58, 237, 0.12);
}

.why-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nebula-purple), var(--cosmic-violet));
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.7);
}

/* ---------- Portfolio ---------- */
.folio-card { padding: 1.1rem 1.1rem 1.6rem; }

.folio-card h3 { margin-top: 1.3rem; padding-inline: 0.5rem; font-size: 1.12rem; }
.folio-card p { padding-inline: 0.5rem; margin-top: 0.35rem; font-size: 0.9rem; }

.folio-visual {
  position: relative;
  height: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 139, 250, 0.12);
}

.folio-visual .badge { position: absolute; bottom: 0.9rem; right: 0.9rem; }

.folio-a { background: radial-gradient(circle at 25% 30%, rgba(124, 58, 237, 0.4), rgba(17, 10, 31, 0.9) 70%); }
.folio-b { background: radial-gradient(circle at 75% 25%, rgba(56, 189, 248, 0.28), rgba(17, 10, 31, 0.9) 70%); }
.folio-c { background: radial-gradient(circle at 50% 80%, rgba(167, 139, 250, 0.32), rgba(17, 10, 31, 0.9) 70%); }
.folio-d { background: radial-gradient(circle at 30% 70%, rgba(124, 58, 237, 0.34), rgba(56, 189, 248, 0.1) 60%, rgba(17, 10, 31, 0.9)); }

.folio-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(248, 250, 252, 0.18) 1px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 75%);
}

/* ---------- CTA ---------- */
.cta-panel {
  position: relative;
  text-align: center;
  border-radius: calc(var(--radius) * 1.4);
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, #4C1D95 0%, var(--cosmic-violet) 45%, #5B21B6 100%);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(124, 58, 237, 0.35);
}

.cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(167, 139, 250, 0.45), transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(56, 189, 248, 0.25), transparent 45%),
    radial-gradient(circle at 60% 0%, rgba(248, 250, 252, 0.12), transparent 35%);
  pointer-events: none;
}

.cta-panel h2 {
  position: relative;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  max-width: 20ch;
  margin-inline: auto;
}

.cta-panel p {
  position: relative;
  color: rgba(248, 250, 252, 0.82);
  max-width: 52ch;
  margin: 1.2rem auto 0;
  font-size: 1.05rem;
}

.cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 980px) {
  .contact-wrap { grid-template-columns: 1fr 1.2fr; gap: 4.5rem; align-items: start; }
}

.contact-info h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.channel:hover { border-color: var(--glass-border-hover); transform: translateX(4px); }

.channel-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--nebula-purple);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.channel-icon svg { width: 20px; height: 20px; }

.channel strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.97rem;
}

.channel small { color: var(--orbit-gray); font-size: 0.82rem; }

.contact-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field label {
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--star-white);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--star-white);
  background: rgba(11, 6, 20, 0.55);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}

.form-field textarea { resize: vertical; min-height: 110px; }

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(148, 163, 184, 0.55); }

.form-field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}

.form-field select:invalid { color: rgba(148, 163, 184, 0.55); }
.form-field select option { background: var(--deep-space-2); color: var(--star-white); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--cosmic-violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.form-status {
  font-size: 0.88rem;
  color: var(--nebula-purple);
  text-align: center;
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(167, 139, 250, 0.1);
  background: rgba(11, 6, 20, 0.6);
  backdrop-filter: blur(10px);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
}

.footer-slogan {
  margin-top: 1.1rem;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--star-white);
}

.footer-slogan-en {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--orbit-gray);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orbit-gray);
  margin-bottom: 0.4rem;
}

.footer-col a {
  font-size: 0.93rem;
  color: var(--orbit-gray);
  transition: color 0.2s ease;
  width: fit-content;
}

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

.footer-social {
  display: flex;
  gap: 0.7rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--orbit-gray);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.footer-social a:hover {
  color: var(--nebula-purple);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
}

.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(167, 139, 250, 0.08);
  padding-block: 1.4rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.83rem;
  color: rgba(148, 163, 184, 0.7);
}

/* ---------- Starfield ---------- */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.stars b {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--star-white);
  opacity: var(--o, 0.5);
  animation: twinkle var(--d, 4s) ease-in-out var(--dl, 0s) infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: var(--o, 0.5); transform: scale(1); }
  50% { opacity: calc(var(--o, 0.5) * 0.2); transform: scale(0.7); }
}

.shooting-star {
  position: absolute;
  width: 130px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(248, 250, 252, 0), rgba(167, 139, 250, 0.9), #F8FAFC);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.6);
  transform: rotate(145deg);
  opacity: 0;
  animation: shoot 12s linear infinite;
}

@keyframes shoot {
  0% { opacity: 0; translate: 0 0; }
  2% { opacity: 0.9; }
  7% { opacity: 0; translate: -300px 210px; }
  100% { opacity: 0; translate: -300px 210px; }
}

/* ---------- Hero light beams ---------- */
.hero-beams {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.beam {
  position: absolute;
  top: -25%;
  height: 150%;
  filter: blur(34px);
  background: linear-gradient(180deg,
              transparent 0%,
              rgba(124, 58, 237, 0.13) 30%,
              rgba(56, 189, 248, 0.05) 62%,
              transparent 100%);
}

.beam-1 {
  left: 10%;
  width: 220px;
  transform: rotate(16deg);
  animation: beamDrift 11s ease-in-out infinite alternate;
}

.beam-2 {
  left: 52%;
  width: 320px;
  transform: rotate(-12deg);
  opacity: 0.75;
  animation: beamDrift 15s ease-in-out infinite alternate-reverse;
}

.beam-3 {
  left: 82%;
  width: 160px;
  transform: rotate(20deg);
  opacity: 0.6;
  animation: beamDrift 18s ease-in-out infinite alternate;
}

@keyframes beamDrift {
  from { translate: 0 0; opacity: 0.45; }
  to { translate: 48px 0; opacity: 1; }
}

/* ---------- Glow dividers ---------- */
.glow-divider {
  position: relative;
  z-index: 1;
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
  height: 1px;
  background: linear-gradient(90deg,
              transparent, rgba(167, 139, 250, 0.22) 30%,
              rgba(167, 139, 250, 0.22) 70%, transparent);
}

.glow-divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 70px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.35), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.glow-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.5px;
  transform: translateX(-50%);
  width: 150px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--nebula-purple) 35%, var(--cosmic-blue) 65%, transparent);
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.8);
}

/* ---------- Section dot grid ---------- */
.section-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(167, 139, 250, 0.13) 1px, transparent 1.5px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 38%, black 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 38%, black 25%, transparent 78%);
}

/* ---------- Gradient text shimmer ---------- */
.grad-text {
  background-size: 220% 100%;
  animation: shimmer 7s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Brand mark halo pulse ---------- */
.mark-halo {
  animation: haloPulse 3.6s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

@keyframes haloPulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.25); }
}

/* ---------- Marquee product names ---------- */
.mq-product {
  color: var(--star-white) !important;
  font-weight: 600 !important;
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  background: linear-gradient(90deg, var(--cosmic-violet), var(--nebula-purple), var(--cosmic-blue));
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
}

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  z-index: 2;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.07), transparent 60%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.8s ease;
  mix-blend-mode: screen;
}

body.cursor-on .cursor-glow { opacity: 1; }

@media (hover: none) {
  .cursor-glow { display: none; }
}

/* ---------- Hero headline stagger ---------- */
.hero-title .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  filter: blur(8px);
  animation: wordIn 0.9s var(--ease-out) forwards;
  animation-delay: calc(180ms + var(--i) * 85ms);
}

@keyframes wordIn {
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- Hero orbital rings ---------- */
.hero-rings {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) scaleY(0.78);
  z-index: 0;
  pointer-events: none;
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.1);
}

.ring::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nebula-purple);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.9);
}

.ring-1 { width: 340px; height: 340px; animation: ringSpin 28s linear infinite; }
.ring-2 { width: 540px; height: 540px; animation: ringSpin 44s linear infinite reverse; border-color: rgba(167, 139, 250, 0.07); }
.ring-3 { width: 780px; height: 780px; animation: ringSpin 64s linear infinite; border-color: rgba(56, 189, 248, 0.06); }
.ring-2::before { background: var(--cosmic-blue); box-shadow: 0 0 14px rgba(56, 189, 248, 0.9); width: 5px; height: 5px; }
.ring-3::before { width: 4px; height: 4px; opacity: 0.8; }

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

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-block: 1.15rem;
  border-top: 1px solid rgba(167, 139, 250, 0.09);
  border-bottom: 1px solid rgba(167, 139, 250, 0.09);
  background: rgba(17, 10, 31, 0.45);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee-track span,
.marquee-track i {
  margin-right: 2.6rem;
  white-space: nowrap;
}

.marquee-track span {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orbit-gray);
}

.marquee-track i {
  font-style: normal;
  font-size: 0.65rem;
  color: var(--cosmic-violet);
}

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

/* ---------- Button shine ---------- */
.btn-primary,
.btn-light {
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-light::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(248, 250, 252, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  pointer-events: none;
}

.btn-light::before { background: linear-gradient(105deg, transparent, rgba(124, 58, 237, 0.18), transparent); }

.btn-primary:hover::before,
.btn-light:hover::before { left: 130%; }

/* ---------- Service card animated border ---------- */
@property --spin {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--spin),
              transparent 0%, transparent 62%,
              rgba(56, 189, 248, 0.5) 76%,
              rgba(167, 139, 250, 0.95) 85%,
              transparent 96%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
  animation: borderSpin 3.2s linear infinite;
}

@keyframes borderSpin { to { --spin: 360deg; } }

/* ---------- Timeline draw ---------- */
@media (min-width: 880px) {
  .timeline::before {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.6s var(--ease-out) 0.25s;
  }

  .timeline.visible::before { transform: scaleX(1); }
}

@media (max-width: 879px) {
  .timeline-step:not(:last-child)::before {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.9s var(--ease-out) calc(var(--reveal-delay, 0) * 140ms + 0.3s);
  }

  .timeline.visible .timeline-step:not(:last-child)::before { transform: scaleY(1); }
}

/* ---------- Portfolio mini mockups ---------- */
.mini-browser,
.mini-dash {
  width: 68%;
  background: rgba(17, 10, 31, 0.78);
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 10px;
  padding: 0.65rem;
  box-shadow: 0 16px 36px rgba(11, 6, 20, 0.55);
}

.mini-bar { display: flex; gap: 4px; margin-bottom: 0.5rem; }
.mini-bar span { width: 5px; height: 5px; border-radius: 50%; background: rgba(167, 139, 250, 0.4); }

.mini-hero {
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.5), rgba(56, 189, 248, 0.25));
  margin-bottom: 0.45rem;
}

.mini-cols { display: flex; gap: 0.45rem; }
.mini-cols span { flex: 1; height: 22px; border-radius: 5px; background: rgba(148, 163, 184, 0.14); }

.mini-flow { display: flex; align-items: center; gap: 0.55rem; }

.node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(167, 139, 250, 0.6);
  background: rgba(124, 58, 237, 0.18);
}

.node-core {
  width: 22px;
  height: 22px;
  border: none;
  background: linear-gradient(135deg, var(--nebula-purple), var(--cosmic-violet));
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.8);
}

.flow-line {
  position: relative;
  width: 36px;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.15), rgba(167, 139, 250, 0.65));
}

.flow-line::after {
  content: "";
  position: absolute;
  top: -1.5px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cosmic-blue);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.9);
  animation: flowDot 1.7s linear infinite;
}

@keyframes flowDot { to { left: calc(100% - 4px); } }

.mini-kpis { display: flex; gap: 0.4rem; margin-bottom: 0.55rem; }
.mini-kpis span {
  flex: 1;
  height: 16px;
  border-radius: 4px;
  background: rgba(124, 58, 237, 0.22);
  border: 1px solid rgba(167, 139, 250, 0.18);
}

.mini-bars { display: flex; gap: 0.35rem; align-items: flex-end; height: 48px; }
.mini-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--nebula-purple), rgba(124, 58, 237, 0.3));
  opacity: 0.85;
  transition: height 0.6s var(--ease-out);
}

.folio-card:hover .mini-bars i { height: calc(var(--h) + 8%); }

.mini-phone {
  position: relative;
  width: 86px;
  height: 152px;
  border-radius: 16px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  background: rgba(17, 10, 31, 0.82);
  padding: 0.55rem;
  box-shadow: 0 16px 36px rgba(11, 6, 20, 0.55);
}

.mini-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.3);
}

.mini-menu { margin-top: 16px; display: flex; flex-direction: column; gap: 0.4rem; }
.mini-menu span {
  height: 17px;
  border-radius: 5px;
  background: rgba(148, 163, 184, 0.13);
  border: 1px solid rgba(167, 139, 250, 0.12);
}

.mini-cta {
  position: absolute;
  bottom: 0.55rem;
  left: 0.55rem;
  right: 0.55rem;
  height: 19px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cosmic-violet), #6D28D9);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.5);
}

/* ---------- CTA aurora ---------- */
.cta-panel::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 0deg,
              transparent 0%, rgba(56, 189, 248, 0.22) 12%,
              transparent 28%, rgba(167, 139, 250, 0.28) 55%, transparent 70%);
  filter: blur(46px);
  animation: ringSpin 16s linear infinite;
  pointer-events: none;
}

/* ---------- Focus styles ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--nebula-purple);
  outline-offset: 3px;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0) * 120ms);
}

.reveal[data-delay="1"] { --reveal-delay: 1; }
.reveal[data-delay="2"] { --reveal-delay: 2; }
.reveal[data-delay="3"] { --reveal-delay: 3; }
.reveal[data-delay="4"] { --reveal-delay: 4; }

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  .reveal { opacity: 1; transform: none; }
  .chart-line { stroke-dashoffset: 0; }
  .chart-area { opacity: 1; }
  .entropy-path { stroke-dashoffset: 0; }
  .cursor-glow { display: none; }
  .hero-title .w { opacity: 1; transform: none; filter: none; animation: none; }
  .timeline::before, .timeline-step::before { transform: none !important; }
}
