@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

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

:root {
  color-scheme: dark;
  --bg: #05060b;
  --bg-alt: #0d0f1a;
  --text: #eef0ff;
  --muted: #b7bddb;
  --accent: #9333ea; /* Logo purple */
  --accent-2: #a855f7; /* Lighter logo purple */
  --accent-3: #c084fc; /* Even lighter purple */
  --card: rgba(18, 22, 38, 0.85);
  --border: rgba(147, 51, 234, 0.15); /* Purple border */
  --shadow: 0 24px 80px rgba(147, 51, 234, 0.3); /* Purple shadow */
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: radial-gradient(circle at top, rgba(147, 51, 234, 0.15), rgba(168, 85, 247, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.09'/></svg>");
  mix-blend-mode: soft-light;
  z-index: 1;
}

.aurora {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 60%;
  background: radial-gradient(circle at 20% 30%, rgba(73, 240, 255, 0.25), transparent 50%),
    radial-gradient(circle at 70% 20%, rgba(107, 123, 255, 0.3), transparent 45%),
    radial-gradient(circle at 40% 60%, rgba(180, 130, 255, 0.2), transparent 55%);
  filter: blur(40px);
  z-index: 0;
}

.gridlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
      rgba(73, 240, 255, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(73, 240, 255, 0.06) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.18;
  z-index: 0;
  animation: grid-float 18s linear infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 6vw;
  backdrop-filter: blur(16px);
  background: rgba(7, 8, 16, 0.88);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  position: relative;
  box-shadow: 0 1px 0 0 var(--accent), 0 2px 0 0 transparent;
  animation: headerGlow 3s ease-in-out infinite;
}

@keyframes headerGlow {
  0%, 100% {
    box-shadow: 0 1px 0 0 var(--accent), 0 2px 0 0 transparent;
  }
  50% {
    box-shadow: 0 1px 0 0 var(--accent), 0 2px 0 0 rgba(147, 51, 234, 0.3);
  }
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 500px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.98), rgba(5, 6, 11, 0.9), rgba(5, 6, 11, 0.7), transparent);
  pointer-events: none;
  z-index: -1;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 8% 50%, rgba(147, 51, 234, 0.25), transparent 40%),
    linear-gradient(
      90deg,
      rgba(147, 51, 234, 0.08) 0,
      rgba(147, 51, 234, 0.08) 1px,
      transparent 1px,
      transparent 24px
    );
  opacity: 0.8;
  pointer-events: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.logo img {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(147, 51, 234, 0.6));
}

.main-nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  color: var(--muted);
}

.main-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a:hover {
  color: var(--accent);
  background: rgba(147, 51, 234, 0.1);
  box-shadow: 0 8px 18px rgba(147, 51, 234, 0.15);
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid rgba(147, 51, 234, 0.2);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.2);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(147, 51, 234, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.social-links a:hover::before {
  width: 120%;
  height: 120%;
}

.social-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.3);
}


.lang-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  gap: 4px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-btn.is-active {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0d0f1a;
}

.cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  color: rgba(147, 51, 234, 0.7);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(147, 51, 234, 0.5);
  animation: trail-fade 2s ease-out forwards;
  mix-blend-mode: screen;
}

.cursor-core {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.8);
  animation: core-pulse 1.5s ease-in-out infinite;
  transition: transform 0.1s ease-out;
}

.cursor-glow {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  animation: glow-expand 3s ease-out infinite;
  transition: all 0.15s ease-out;
}

@media (hover: none) {
  body {
    cursor: auto;
  }
  .cursor-trail,
  .cursor-core,
  .cursor-glow {
    display: none !important;
  }
}

.flag {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.flag-ro {
  background-image: linear-gradient(90deg, #0039a6 33%, #fcd116 33% 66%, #ce1126 66%);
}

.flag-en {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='40' viewBox='0 0 60 40'><rect width='60' height='40' fill='%23b22234'/><g fill='%23fff'><rect y='3' width='60' height='3'/><rect y='9' width='60' height='3'/><rect y='15' width='60' height='3'/><rect y='21' width='60' height='3'/><rect y='27' width='60' height='3'/><rect y='33' width='60' height='3'/></g><rect width='26' height='16' fill='%233c3b6e'/></svg>");
}

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

section {
  padding: 96px 6vw;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 64px;
  min-height: 85vh;
  padding-top: 120px;
}

.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  margin-bottom: 18px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  line-height: 1.02;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.25rem;
  max-width: 600px;
  line-height: 1.6;
}

.hero-rotator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-size: 1.2rem;
  color: var(--muted);
}

.rotator-word {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.rotator-cursor {
  animation: cursor-blink 1s steps(2, start) infinite;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0d0f1a;
  box-shadow: 0 12px 30px rgba(147, 51, 234, 0.4);
}

.btn.primary:hover,
.btn.ghost:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.btn.link {
  padding: 0;
  border: none;
  color: var(--accent-2);
}

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-stats strong {
  font-size: 1.2rem;
}

.hero-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  display: grid;
  place-items: center;
  position: relative;
}

.imagination-engine {
  position: relative;
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imagine-sphere {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sphere-core {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff, #6b7bff 40%, #49f0ff 80%);
  box-shadow: 0 0 60px rgba(73, 240, 255, 0.7), 0 0 120px rgba(107, 123, 255, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.3);
  animation: sphere-pulse 4s ease-in-out infinite;
}

.sphere-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: ring-orbit 8s linear infinite;
}

.sphere-ring.ring-1 {
  width: 160px;
  height: 160px;
  border-color: rgba(73, 240, 255, 0.4);
  animation-duration: 12s;
}

.sphere-ring.ring-2 {
  width: 240px;
  height: 240px;
  border-color: rgba(107, 123, 255, 0.3);
  border-style: dashed;
  animation-duration: 18s;
  animation-direction: reverse;
}

.sphere-ring.ring-3 {
  width: 320px;
  height: 320px;
  border-color: rgba(180, 130, 255, 0.2);
  animation-duration: 25s;
}

.imagine-orbit {
  position: absolute;
  inset: 0;
  animation: orbit-spin 30s linear infinite;
}

.orbit-item {
  position: absolute;
  font-size: 1.4rem;
  color: var(--accent-2);
  text-shadow: 0 0 20px rgba(73, 240, 255, 0.8);
  animation: orbit-item-float 3s ease-in-out infinite;
}

.orbit-item.orbit-code {
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  font-family: monospace;
  font-weight: bold;
  color: #49f0ff;
}

.orbit-item.orbit-design {
  top: 25%;
  right: 8%;
  color: #b099ff;
  animation-delay: 0.5s;
}

.orbit-item.orbit-pixel {
  bottom: 25%;
  right: 12%;
  color: #6b7bff;
  animation-delay: 1s;
}

.orbit-item.orbit-idea {
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  animation-delay: 1.5s;
}

.orbit-item.orbit-star {
  bottom: 25%;
  left: 12%;
  color: #ffd700;
  animation-delay: 2s;
}

.orbit-item.orbit-wave {
  top: 25%;
  left: 8%;
  color: #49f0ff;
  animation-delay: 2.5s;
}

.imagine-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(73, 240, 255, 0.8);
  box-shadow: 0 0 8px rgba(73, 240, 255, 0.6);
  animation: particle-drift 8s ease-in-out infinite;
}

.imagine-particles span:nth-child(1) { top: 15%; left: 20%; animation-delay: 0s; }
.imagine-particles span:nth-child(2) { top: 25%; right: 25%; animation-delay: 0.5s; }
.imagine-particles span:nth-child(3) { top: 35%; left: 15%; animation-delay: 1s; }
.imagine-particles span:nth-child(4) { top: 45%; right: 18%; animation-delay: 1.5s; }
.imagine-particles span:nth-child(5) { top: 55%; left: 22%; animation-delay: 2s; }
.imagine-particles span:nth-child(6) { top: 65%; right: 20%; animation-delay: 2.5s; }
.imagine-particles span:nth-child(7) { top: 75%; left: 18%; animation-delay: 3s; }
.imagine-particles span:nth-child(8) { top: 85%; right: 22%; animation-delay: 3.5s; }
.imagine-particles span:nth-child(9) { top: 20%; left: 45%; animation-delay: 4s; }
.imagine-particles span:nth-child(10) { top: 80%; left: 50%; animation-delay: 4.5s; }
.imagine-particles span:nth-child(11) { top: 30%; right: 45%; animation-delay: 5s; }
.imagine-particles span:nth-child(12) { top: 70%; right: 48%; animation-delay: 5.5s; }
.imagine-particles span:nth-child(13) { top: 40%; left: 35%; animation-delay: 6s; }
.imagine-particles span:nth-child(14) { top: 60%; right: 35%; animation-delay: 6.5s; }
.imagine-particles span:nth-child(15) { top: 50%; left: 8%; animation-delay: 7s; }

.imagine-morph {
  position: absolute;
  inset: 10%;
  opacity: 0.4;
  animation: morph-rotate 20s linear infinite;
}

.imagine-morph svg {
  width: 100%;
  height: 100%;
}

.morph-path {
  animation: blob-morph 8s ease-in-out infinite;
}

.imagine-text {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.imagine-line {
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(10, 12, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.imagine-line.line-1 {
  color: var(--muted);
  animation: text-glow-1 3s ease-in-out infinite;
}

.imagine-line.line-2 {
  color: var(--accent-2);
  animation: text-glow-2 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

.imagine-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  animation: arrow-pulse 1.5s ease-in-out infinite;
}

.holo-caption {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.manifest-grid,
.services-grid,
.showcase-grid,
.tech-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.showcase-grid {
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.showcase-slider {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(8, 10, 20, 0.8) 0%, rgba(13, 15, 26, 0.9) 100%);
  box-shadow:
    var(--shadow),
    0 0 80px rgba(147, 51, 234, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 0;
  overflow: hidden;
  width: 100%;
  margin: 0 0 40px 0;
  backdrop-filter: blur(20px);
}

.slider-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.showcase-slide {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  flex: 0 0 100%;
  opacity: 0.4;
  transform: scale(0.92);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.showcase-slide .slide-meta {
  position: absolute;
  bottom: 24px;
  left: 24px;
  max-width: 380px;
  background: rgba(7, 10, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 20px;
  z-index: 3;
  backdrop-filter: blur(12px);
}

.slide-details {
  margin: 12px 0;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-label {
  color: var(--muted);
  font-weight: 500;
}

.detail-value {
  color: var(--text);
  font-weight: 600;
}

.showcase-slide .slide-preview {
  position: relative;
  height: min(90vh, 900px);
  overflow: hidden;
  background: rgba(7, 9, 20, 0.8);
}

.showcase-slide iframe {
  width: 100%;
  height: 100%;
  border: none;
  transform: scale(1.01);
  transition: opacity 0.3s ease;
}

.showcase-slide iframe.loading {
  opacity: 0.3;
}

.showcase-slide iframe.error {
  opacity: 0;
  pointer-events: none;
}

.showcase-slide .iframe-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(5, 6, 11, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  text-align: center;
  padding: 32px;
  z-index: 1;
}

.showcase-slide .iframe-error .error-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.showcase-slide .iframe-error h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.2rem;
}

.showcase-slide .iframe-error p {
  margin: 0 0 20px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.showcase-slide .iframe-retry {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.showcase-slide .iframe-retry:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-2);
}

/* Project Image Placeholder System */
.preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  z-index: 2;
}

.preview-screenshot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: all 0.3s ease;
}

.preview-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.preview-placeholder:hover .preview-screenshot {
  transform: scale(1.05);
}

.preview-placeholder:hover::before {
  background: linear-gradient(135deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.8) 100%);
}

.load-preview-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 18px 36px;
  background: rgba(147, 51, 234, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(147, 51, 234, 0.2);
  z-index: 3;
  backdrop-filter: blur(12px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.load-preview-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(168, 85, 247, 0.98);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(147, 51, 234, 0.3);
}

.btn.primary.small {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 16px;
}

.load-preview-btn .play-icon {
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 50%;
}

.slide-preview.loading .preview-placeholder {
  opacity: 0.6;
}

.slide-preview.loading .preview-screenshot {
  filter: brightness(0.3) blur(2px);
}

.slide-preview.loading .load-preview-btn {
  pointer-events: none;
}

.slide-preview.loading .load-preview-btn::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

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

.slide-preview.loaded .preview-placeholder {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.slide-preview.loaded iframe {
  opacity: 1;
}

.slide-preview iframe {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Thumbnail Navigation Grid */
.slider-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  padding: 40px 6vw;
  background: linear-gradient(135deg, rgba(7, 10, 18, 0.95) 0%, rgba(13, 15, 26, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
  .slider-thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 30px 4vw;
    gap: 20px;
  }

  .slider-thumbnails .thumb img {
    height: 200px;
  }

  .slider-thumbnails .thumb::before {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
}

@media (max-width: 480px) {
  .slider-thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    padding: 20px 3vw;
    gap: 16px;
  }

  .slider-thumbnails .thumb img {
    height: 180px;
  }

  .slider-thumbnails .thumb::before {
    font-size: 0.65rem;
    padding: 2px 5px;
  }
}

.slider-thumbnails .thumb {
  width: 100%;
  background: linear-gradient(135deg, rgba(10, 12, 24, 0.8) 0%, rgba(18, 22, 38, 0.9) 100%);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.slider-thumbnails .thumb {
  position: relative;
}

.slider-thumbnails .thumb::before {
  content: attr(data-category);
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(147, 51, 234, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.slider-thumbnails .thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  border-radius: 18px 18px 0 0;
  filter: grayscale(20%) brightness(0.9) contrast(1.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-thumbnails .thumb span {
  display: block;
  padding: 16px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(135deg, rgba(10, 12, 24, 0.95) 0%, rgba(18, 22, 38, 0.95) 100%);
  border-radius: 0 0 18px 18px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
}

.slider-thumbnails .thumb:hover {
  border-color: rgba(147, 51, 234, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(147, 51, 234, 0.3);
}

.slider-thumbnails .thumb:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

.slider-thumbnails .thumb:hover img {
  filter: grayscale(0%) brightness(1);
}

.slider-thumbnails .thumb:hover span {
  color: var(--text);
}

.slider-thumbnails .thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(147, 51, 234, 0.4);
}

.slider-thumbnails .thumb.is-active img {
  filter: grayscale(0%) brightness(1);
}

.slider-thumbnails .thumb.is-active span {
  color: var(--accent);
  background: rgba(147, 51, 234, 0.1);
}

.slider-thumbnails .thumb.is-active::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 4px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(8, 10, 20, 0.95) 0%, rgba(13, 15, 26, 0.95) 100%);
  color: var(--text);
  font-size: 2rem;
  font-weight: 300;
  backdrop-filter: blur(16px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  cursor: pointer;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.slider-btn.prev {
  left: 24px;
}

.slider-btn.next {
  right: 24px;
}

.slider-btn:hover {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(168, 85, 247, 0.3) 100%);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.15);
  box-shadow:
    0 8px 40px rgba(147, 51, 234, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: var(--accent);
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(8, 10, 20, 0.8);
  border-top: 1px solid var(--border);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot:hover {
  border-color: var(--accent-2);
  transform: scale(1.2);
}

.slider-dot.is-active {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 0 16px rgba(73, 240, 255, 0.6);
  transform: scale(1.2);
}

.slider-counter {
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.slider-counter strong {
  color: var(--accent-2);
  font-size: 1.1rem;
}

.manifest-card,
.services-grid article,
.showcase-card,
.tech-grid div,
.nexus-panel,
.console-card {
  padding: 24px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.manifest-card::after,
.services-grid article::after,
.showcase-card::after,
.tech-grid div::after {
  content: "";
  position: absolute;
  inset: -60% auto auto -60%;
  width: 160%;
  height: 160%;
  background: conic-gradient(from 180deg, transparent, rgba(73, 240, 255, 0.18), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.manifest-card:hover::after,
.services-grid article:hover::after,
.showcase-card:hover::after,
.tech-grid div:hover::after {
  opacity: 1;
}

.manifest-card h3,
.services-grid h3,
.showcase-card h3,
.tech-grid h3 {
  margin-bottom: 10px;
}

.services-grid article p,
.manifest-card p,
.showcase-card p,
.tech-grid p {
  color: var(--muted);
}

.showcase-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 9, 20, 0.8);
  height: 240px;
}

.preview-frame iframe {
  width: 125%;
  height: 125%;
  border: none;
  transform: scale(0.8);
  transform-origin: top left;
  filter: saturate(0.8) brightness(0.9);
}

.preview-overlay {
  position: absolute;
  inset: auto 12px 12px 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 12, 24, 0.8);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-card .tag,
.slide-meta .tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 8px;
}

.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.slide-meta h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.slide-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.process-steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.process-steps div {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(10, 12, 26, 0.6);
}

.process-steps span {
  color: var(--accent-2);
  font-weight: 600;
}

.nexus-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 32px;
}

.nexus-panel ul {
  padding-left: 16px;
  color: var(--muted);
}

.nexus-console {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(130deg, rgba(24, 29, 52, 0.9), rgba(12, 14, 26, 0.8));
  box-shadow: var(--shadow);
}

.console-head {
  display: flex;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.console-body {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 20px;
}

.admin-dashboard {
  margin-top: 36px;
  padding: 28px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(140deg, rgba(12, 16, 32, 0.92), rgba(6, 8, 18, 0.92));
  box-shadow: var(--shadow);
}

.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.dashboard-header .eyebrow {
  margin-bottom: 10px;
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 22px;
}

.stat-card {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(10, 12, 24, 0.6);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-card strong {
  display: block;
  font-size: 1.6rem;
  margin: 6px 0;
}

.stat-card em {
  color: var(--accent-2);
  font-style: normal;
  font-size: 0.85rem;
}

.dashboard-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dashboard-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(8, 10, 20, 0.7);
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  height: 120px;
  margin: 16px 0;
}

.chart-bars span {
  display: block;
  height: var(--h);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(73, 240, 255, 0.8), rgba(107, 123, 255, 0.6));
  box-shadow: 0 10px 20px rgba(73, 240, 255, 0.2);
}

.dashboard-card ul {
  padding-left: 16px;
  color: var(--muted);
}

.table-grid {
  display: grid;
  gap: 10px;
}

.table-grid .row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.6fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 12, 24, 0.55);
  color: var(--muted);
}

.table-grid .row.head {
  background: rgba(12, 16, 30, 0.8);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
}

.settings-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 12, 22, 0.65);
  color: var(--muted);
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(73, 240, 255, 0.2);
  color: var(--accent-2);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison .compare-table {
  display: grid;
  gap: 14px;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(8, 10, 20, 0.6);
}

.compare-row span:last-child {
  color: var(--accent-2);
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  padding: 0 6vw;
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 768px) {
  .contact-form {
    padding: 0 20px;
    gap: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .capabilities-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }

  .contact-form button[type="submit"] {
    padding: 16px 24px;
    font-size: 0.95rem;
  }
}

.contact-form label {
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
  position: relative;
}

.contact-form label span {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(8, 10, 20, 0.8) 0%, rgba(13, 15, 26, 0.6) 100%);
  padding: 16px 18px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(8, 10, 20, 0.9) 0%, rgba(13, 15, 26, 0.8) 100%);
  box-shadow:
    0 0 0 4px rgba(147, 51, 234, 0.15),
    0 8px 32px rgba(147, 51, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.contact-form button[type="submit"] {
  margin-top: 8px;
  padding: 18px 32px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0d0f1a;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 8px 24px rgba(147, 51, 234, 0.4),
    0 4px 12px rgba(147, 51, 234, 0.2);
  text-transform: uppercase;
}

.contact-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(147, 51, 234, 0.5),
    0 6px 16px rgba(147, 51, 234, 0.3);
}

.contact-form button[type="submit"]:active {
  transform: translateY(0);
  box-shadow:
    0 4px 16px rgba(147, 51, 234, 0.4),
    0 2px 8px rgba(147, 51, 234, 0.2);
}

.contact-form .full {
  grid-column: 1 / -1;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.capability-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(8, 10, 20, 0.5) 0%, rgba(13, 15, 26, 0.4) 100%);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.capability-checkbox:hover {
  border-color: var(--accent-3);
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(168, 85, 247, 0.08) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(147, 51, 234, 0.15);
}

.capability-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  border-radius: 4px;
}

.capability-checkbox input[type="checkbox"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.capability-checkbox span {
  color: var(--text);
  user-select: none;
  font-weight: 500;
}

.contact-info {
  margin-top: 24px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  padding: 60px 6vw 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: linear-gradient(180deg, rgba(6, 8, 18, 0.9), rgba(3, 4, 10, 0.98));
}

.footer-main {
  display: grid;
  gap: 48px;
  grid-template-columns: 1.5fr 2fr;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  width: 160px;
  margin-bottom: 20px;
  filter: drop-shadow(0 8px 20px rgba(107, 123, 255, 0.2));
}

.footer-brand p {
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: rgba(73, 240, 255, 0.1);
  border-color: var(--accent-2);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col h4 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 0.9rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-col a,
.footer-col span {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-legal {
  display: grid;
  gap: 8px;
}

.footer-legal p {
  margin: 0;
  font-size: 0.8rem;
}

.footer-anpc {
  font-size: 0.75rem !important;
  opacity: 0.7;
}

.footer-anpc a {
  color: var(--accent-2);
  text-decoration: none;
}

.footer-anpc a:hover {
  text-decoration: underline;
}

.footer-tagline {
  color: var(--accent);
  font-size: 0.9rem;
  margin-left: auto;
  text-align: right;
}

/* CTA Section */
.cta-section {
  padding: 100px 6vw;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(73, 240, 255, 0.03), transparent);
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(107, 123, 255, 0.15), transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

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

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

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .cta-content h2 {
    font-size: 1.8rem;
  }
  .slider-thumbnails {
    padding: 16px;
    gap: 16px;
  }
  .slider-thumbnails .thumb {
    width: 200px;
  }
  .slider-thumbnails .thumb img {
    height: 120px;
  }
  .slider-thumbnails .thumb span {
    padding: 10px 6px;
    font-size: 0.75rem;
  }
  .showcase-slide .slide-meta {
    bottom: 16px;
    left: 16px;
    max-width: 280px;
    padding: 16px;
  }
  .load-preview-btn {
    padding: 14px 24px;
    font-size: 0.95rem;
  }
  .load-preview-btn .play-icon {
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
  }
}

/* Contact Toast */
.contact-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 16px 28px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0d0f1a;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(73, 240, 255, 0.3);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}

.contact-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.preview-modal {
  width: min(980px, 90vw);
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(10, 12, 22, 0.95);
  color: var(--text);
  box-shadow: var(--shadow);
}

.preview-modal::backdrop {
  background: rgba(5, 7, 14, 0.7);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-body {
  padding: 16px 20px 26px;
}

.modal-body iframe {
  width: 100%;
  height: 60vh;
  border: none;
  border-radius: 12px;
  background: #101322;
  transition: opacity 0.3s ease;
}

.modal-body iframe.loading {
  opacity: 0.3;
}

.modal-body iframe.error {
  opacity: 0.1;
}

.modal-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

.close-modal {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}


@keyframes cursor-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.9;
  }
}

@keyframes pulse-line {
  0%,
  100% {
    transform: scaleX(0.9);
    opacity: 0.3;
  }
  50% {
    transform: scaleX(1.1);
    opacity: 0.8;
  }
}

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

@keyframes nebula {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.02);
  }
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

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


@keyframes grid-float {
  to {
    background-position: 120px 120px;
  }
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes core-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes stream {
  0% {
    transform: translateY(-16px);
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(16px);
    opacity: 0.3;
  }
}

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

@keyframes sphere-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 60px rgba(73, 240, 255, 0.7), 0 0 120px rgba(107, 123, 255, 0.5);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 80px rgba(73, 240, 255, 0.9), 0 0 160px rgba(107, 123, 255, 0.7);
  }
}

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

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

@keyframes orbit-item-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-10px) scale(1.1);
    opacity: 1;
  }
}

@keyframes particle-drift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translate(15px, -20px) scale(1.2);
    opacity: 0.9;
  }
  50% {
    transform: translate(-10px, -35px) scale(0.8);
    opacity: 0.6;
  }
  75% {
    transform: translate(20px, -15px) scale(1.1);
    opacity: 0.8;
  }
}

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

@keyframes blob-morph {
  0%, 100% {
    d: path("M100,30 C140,30 170,60 170,100 C170,140 140,170 100,170 C60,170 30,140 30,100 C30,60 60,30 100,30");
  }
  25% {
    d: path("M100,20 C150,40 180,70 175,110 C170,150 130,180 90,175 C50,170 20,130 25,90 C30,50 50,20 100,20");
  }
  50% {
    d: path("M110,25 C160,35 185,80 175,120 C165,160 120,185 80,175 C40,165 15,120 25,80 C35,40 60,25 110,25");
  }
  75% {
    d: path("M95,30 C145,25 175,55 180,100 C185,145 155,175 105,180 C55,185 25,155 20,105 C15,55 45,30 95,30");
  }
}

@keyframes text-glow-1 {
  0%, 100% {
    opacity: 0.7;
    text-shadow: none;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 20px rgba(183, 189, 219, 0.5);
  }
}

@keyframes text-glow-2 {
  0%, 100% {
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(73, 240, 255, 0.5);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 30px rgba(73, 240, 255, 0.9);
  }
}

@keyframes arrow-pulse {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.6;
  }
  50% {
    transform: translateX(5px);
    opacity: 1;
  }
}

/* Mobile Navigation */
@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 8, 16, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
    z-index: 9;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
  }

  .mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    transform-origin: center;
  }

  .mobile-menu-toggle.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Hero Section Mobile */
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding: 60px 6vw 40px;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-rotator {
    justify-content: center;
    margin: 20px 0;
  }

  .hero-actions {
    justify-content: center;
    margin: 24px 0;
  }

  .hero-actions .btn {
    min-width: 160px;
  }

  .hero-stats {
    justify-content: center;
    gap: 20px;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 20px;
  }

  /* Services Section Mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-card {
    padding: 24px;
  }

  /* Showcase Section Mobile */
  .showcase-slider {
    border-radius: 12px;
  }

  .slider-thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px 4vw;
  }

  /* Contact Form Mobile */
  .contact-form {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .capability-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
  }

  .capability-checkbox:hover {
    border-color: var(--accent);
    background: rgba(147, 51, 234, 0.05);
  }

  .capability-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }

  /* Footer Mobile */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-col h4 {
    margin-bottom: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-tagline {
    order: -1;
    margin-bottom: 16px;
  }
}
  .site-header {
    padding: 18px 6vw;
  }
  section {
    padding: 72px 6vw;
  }
  .compare-row {
    grid-template-columns: 1fr;
  }
  .showcase-slide .slide-preview {
    height: 60vh;
  }
  .slider-btn {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
  .slider-btn.prev {
    left: 12px;
  }
  .slider-btn.next {
    right: 12px;
  }
  .imagination-engine {
    width: 300px;
    height: 300px;
  }
  .sphere-core {
    width: 60px;
    height: 60px;
  }
  .sphere-ring.ring-1 {
    width: 120px;
    height: 120px;
  }
  .sphere-ring.ring-2 {
    width: 180px;
    height: 180px;
  }
  .sphere-ring.ring-3 {
    width: 240px;
    height: 240px;
  }
  .imagine-text {
    font-size: 0.7rem;
    gap: 8px;
  }
  .imagine-line {
    padding: 6px 10px;
  }
  .orbit-item {
    font-size: 1rem;
  }
}

/* Code Trail Cursor Animations */
@keyframes trail-fade {
  0% {
    opacity: 0.8;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.8);
  }
}

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

@keyframes glow-expand {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  opacity: 1;
  animation: bounce 2s ease-in-out infinite 3s;
  z-index: 100;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-mouse {
  width: 24px;
  height: 36px;
  border: 2px solid var(--muted);
  border-radius: 12px;
  position: relative;
  background: transparent;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--muted);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(8px);
    opacity: 0.5;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}

.scroll-text {
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  backdrop-filter: blur(16px);
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}