/* Local Vazirmatn Variable Font — Zero External CDN Dependencies */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-void: #05050A;
  --bg-elevated: #0B0D18;
  --surface-card: rgba(12, 15, 28, 0.72);
  --border-dim: rgba(148, 163, 184, 0.14);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --electric-blue: #3B82F6;
  --neon-cyan: #38BDF8;
  --cyber-violet: #A855F7;
  --indigo: #6366F1;
  --emerald: #34D399;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;

  --container-max: 1160px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  overflow-x: hidden;
  line-height: 1.75;
  position: relative;
}

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

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

/* Top Neon Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  z-index: 100;
  transform-origin: right center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyber-violet), var(--indigo), var(--neon-cyan));
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.75);
  will-change: transform;
  pointer-events: none;
}

/* Fullscreen Interactive Canvas */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Animated Mesh Aurora Orbs */
.aurora-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  will-change: transform, opacity;
  opacity: 0.28;
}

.orb-electric {
  width: 620px;
  height: 620px;
  top: -180px;
  right: 6%;
  background: radial-gradient(circle, #2563eb 0%, #38bdf8 45%, transparent 72%);
  animation: auroraDrift1 22s ease-in-out infinite alternate;
}

.orb-violet {
  width: 580px;
  height: 580px;
  bottom: -160px;
  left: 4%;
  background: radial-gradient(circle, #9333ea 0%, #6366f1 50%, transparent 72%);
  opacity: 0.24;
  animation: auroraDrift2 26s ease-in-out infinite alternate;
}

.orb-cyan {
  width: 440px;
  height: 440px;
  top: 42%;
  left: 46%;
  background: radial-gradient(circle, #06b6d4 0%, #3b82f6 50%, transparent 72%);
  opacity: 0.14;
  animation: auroraDrift3 19s ease-in-out infinite alternate;
}

@keyframes auroraDrift1 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-70px, 50px, 0) scale(1.12); }
  100% { transform: translate3d(40px, -30px, 0) scale(0.95); }
}

@keyframes auroraDrift2 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(80px, -60px, 0) scale(1.15); }
  100% { transform: translate3d(-40px, 40px, 0) scale(0.92); }
}

@keyframes auroraDrift3 {
  0%   { transform: translate3d(-50%, -50%, 0) scale(0.9); }
  100% { transform: translate3d(-35%, -65%, 0) scale(1.2); }
}

/* Subtle Architectural Grid */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 15%, #000 35%, transparent 100%);
  pointer-events: none;
}

/* Global Cursor Spotlight */
.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 580px;
  height: 580px;
  margin-left: -290px;
  margin-top: -290px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.13) 0%,
    rgba(99, 102, 241, 0.065) 35%,
    transparent 68%
  );
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 400ms ease;
}

.cursor-spotlight.active {
  opacity: 1;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 5, 10, 0.65);
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
  transition: background 280ms var(--ease-out), border-color 280ms var(--ease-out);
}

.navbar.scrolled {
  background: rgba(5, 5, 10, 0.88);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.25rem;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  flex-shrink: 0;
  transition: transform 280ms var(--ease-out);
}

.brand:hover .brand-mark {
  transform: scale(1.06) rotate(-3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-en {
  font-weight: 850;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 0%, #7dd3fc 55%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-fa {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

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

.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 240ms var(--ease-out);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--cyber-violet));
  transition: width 280ms var(--ease-out);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dim);
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
  padding: 0 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 240ms var(--ease-out);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0.75rem 1.5rem 1.25rem;
  gap: 0.45rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(5, 5, 10, 0.96);
}

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

.mobile-link {
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.mobile-link:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-primary);
}

/* Magnetic Buttons + Shimmer */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  will-change: transform;
  transition: box-shadow 280ms var(--ease-out), border-color 280ms var(--ease-out), background 280ms var(--ease-out);
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.84rem;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 52%, #a855f7 100%);
  color: #fff;
  box-shadow: 0 12px 34px -10px rgba(99, 102, 241, 0.7);
}

.btn-primary:hover {
  box-shadow: 0 18px 42px -8px rgba(56, 189, 248, 0.65);
}

.btn-secondary {
  background: rgba(15, 20, 38, 0.72);
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--text-primary);
  backdrop-filter: blur(14px);
}

.btn-secondary:hover {
  background: rgba(24, 32, 58, 0.85);
  border-color: rgba(56, 189, 248, 0.45);
}

.btn-glass {
  background: rgba(56, 189, 248, 0.09);
  border-color: rgba(56, 189, 248, 0.28);
  color: #bae6fd;
}

.btn-glass:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.55);
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -120%;
  width: 65%;
  height: 140%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.32) 50%, transparent 80%);
  transform: skewX(-20deg);
  pointer-events: none;
}

.btn-shimmer:hover::after {
  animation: shimmerSweep 780ms var(--ease-out);
}

@keyframes shimmerSweep {
  0% { left: -120%; }
  100% { left: 160%; }
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Cinematic Hero */
.hero {
  padding: 4.5rem 0 4rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.26);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.65rem;
  backdrop-filter: blur(12px);
}

.badge-code {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--neon-cyan);
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.8);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.hero-title {
  margin: 0 0 1.45rem;
  font-size: clamp(2.1rem, 4.4vw, 3.45rem);
  font-weight: 850;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.blur-word {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translate3d(0, 18px, 0);
  animation: blurReveal 760ms var(--ease-out) forwards;
  animation-delay: calc(var(--w, 0) * 65ms + 80ms);
  margin-left: 0.16em;
}

@keyframes blurReveal {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

.text-gradient-animated {
  background: linear-gradient(110deg, #38bdf8 0%, #818cf8 32%, #c084fc 64%, #38bdf8 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: blurReveal 760ms var(--ease-out) forwards, gradientFlow 6s linear infinite;
  animation-delay: calc(var(--w, 0) * 65ms + 80ms), 0s;
}

@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 240% 50%; }
}

.hero-brand-line {
  display: block;
  margin-top: 0.25rem;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #cbd5e1;
}

.brand-glow-word {
  display: inline-block;
  font-weight: 900;
  background: linear-gradient(110deg, #e0f2fe 0%, #38bdf8 40%, #a855f7 80%, #e0f2fe 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.35));
  animation: gradientFlow 5s linear infinite;
}

.hero-subtitle {
  margin: 0 0 2.2rem;
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  color: var(--text-secondary);
  max-width: 580px;
}

.hero-subtitle strong {
  color: var(--text-primary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.hero-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyber-violet);
  box-shadow: 0 0 8px var(--cyber-violet);
}

/* Interactive 3D Orbital Core / Geometric Prism */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbital-stage {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
}

.orbital-rig {
  position: relative;
  width: 280px;
  height: 280px;
  transform-style: preserve-3d;
  will-change: transform;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.32);
  transform-style: preserve-3d;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.08) inset;
}

.ring-1 {
  transform: rotateX(68deg) rotateY(18deg);
  animation: orbitSpin1 14s linear infinite;
}

.ring-2 {
  inset: 22px;
  border-color: rgba(168, 85, 247, 0.38);
  transform: rotateX(66deg) rotateY(-42deg);
  animation: orbitSpin2 19s linear infinite;
}

.ring-3 {
  inset: 46px;
  border-style: dashed;
  border-color: rgba(99, 102, 241, 0.45);
  transform: rotateX(75deg) rotateY(65deg);
  animation: orbitSpin3 11s linear infinite;
}

@keyframes orbitSpin1 {
  from { transform: rotateX(68deg) rotateY(18deg) rotateZ(0deg); }
  to   { transform: rotateX(68deg) rotateY(18deg) rotateZ(360deg); }
}

@keyframes orbitSpin2 {
  from { transform: rotateX(66deg) rotateY(-42deg) rotateZ(360deg); }
  to   { transform: rotateX(66deg) rotateY(-42deg) rotateZ(0deg); }
}

@keyframes orbitSpin3 {
  from { transform: rotateX(75deg) rotateY(65deg) rotateZ(0deg); }
  to   { transform: rotateX(75deg) rotateY(65deg) rotateZ(360deg); }
}

.orbit-byte {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: -5px;
  left: 50%;
  margin-left: -5px;
}

.byte-cyan {
  background: var(--neon-cyan);
  box-shadow: 0 0 16px 3px var(--neon-cyan);
}

.byte-blue {
  top: auto;
  bottom: -5px;
  background: var(--electric-blue);
  box-shadow: 0 0 14px 2px var(--electric-blue);
}

.byte-violet {
  background: var(--cyber-violet);
  box-shadow: 0 0 16px 3px var(--cyber-violet);
}

.byte-white {
  background: #fff;
  width: 7px;
  height: 7px;
  box-shadow: 0 0 12px 2px #bae6fd;
}

/* 3D Rotating Glass Prism Cube */
.prism-cube {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  margin-top: -48px;
  margin-left: -48px;
  transform-style: preserve-3d;
  animation: cubeRotate 16s linear infinite;
}

@keyframes cubeRotate {
  0%   { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  100% { transform: rotateX(360deg) rotateY(720deg) rotateZ(360deg); }
}

.prism-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(168, 85, 247, 0.14));
  backdrop-filter: blur(6px);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.25) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: #e0f2fe;
}

.face-front  { transform: translateZ(48px); }
.face-back   { transform: rotateY(180deg) translateZ(48px); }
.face-right  { transform: rotateY(90deg) translateZ(48px); }
.face-left   { transform: rotateY(-90deg) translateZ(48px); }
.face-top    { transform: rotateX(90deg) translateZ(48px); }
.face-bottom { transform: rotateX(-90deg) translateZ(48px); }

.core-singularity {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.85), rgba(168, 85, 247, 0.45) 55%, transparent 75%);
  filter: blur(18px);
  pointer-events: none;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(11, 13, 24, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(14px);
  font-size: 0.74rem;
  font-weight: 600;
  color: #e2e8f0;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.chip-1 {
  top: 24px;
  right: -4px;
  animation: floatChip 5.5s ease-in-out infinite alternate;
}

.chip-2 {
  bottom: 26px;
  left: -4px;
  animation: floatChip 6.5s ease-in-out infinite alternate-reverse;
}

@keyframes floatChip {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -10px, 0); }
}

.chip-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.led-cyan {
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

.led-violet {
  background: var(--cyber-violet);
  box-shadow: 0 0 8px var(--cyber-violet);
}

/* Infinite Kinetic Marquee */
.marquee-section {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(11, 13, 24, 0.42);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.marquee-mask {
  direction: ltr;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  flex-direction: row;
  width: max-content;
  will-change: transform;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
}

.marquee-item {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cbd5e1;
  white-space: nowrap;
}

.marquee-sep {
  color: var(--neon-cyan);
  font-size: 0.65rem;
  opacity: 0.7;
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 0.6rem;
}

.section-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  font-weight: 850;
  line-height: 1.35;
}

.section-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Linear/Vercel Spotlight Border + 3D Tilt Cards */
.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px solid var(--border-dim);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

/* Reactive Glowing Border around cursor */
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    360px circle at var(--mx, -200px) var(--my, -200px),
    rgba(56, 189, 248, 0.9),
    rgba(168, 85, 247, 0.55) 45%,
    transparent 75%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
  z-index: 3;
}

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

.bento-card:hover {
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.9), 0 0 36px -18px rgba(56, 189, 248, 0.25);
}

/* Specular Glass Glare */
.card-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.08),
    rgba(56, 189, 248, 0.04) 35%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
  z-index: 1;
}

.bento-card:hover .card-glare {
  opacity: 1;
}

.bento-inner {
  position: relative;
  z-index: 2;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Bento Grid Layout */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}

.bento-ideafy {
  grid-column: span 7;
  background: linear-gradient(155deg, rgba(14, 165, 233, 0.09) 0%, rgba(12, 15, 28, 0.8) 45%, rgba(99, 102, 241, 0.08) 100%);
}

.bento-toolito {
  grid-column: span 5;
  background: linear-gradient(155deg, rgba(168, 85, 247, 0.09) 0%, rgba(12, 15, 28, 0.8) 48%, rgba(56, 189, 248, 0.06) 100%);
}

.bento-mini {
  grid-column: span 6;
}

.mini-inner {
  padding: 1.75rem 2rem;
}

.mini-metric {
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.6rem;
  background: linear-gradient(120deg, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mini-metric span {
  font-size: 1.1rem;
  margin-inline-start: 2px;
}

.mini-inner h4 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 750;
}

.mini-inner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Product Card Internals */
.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.product-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-icon svg {
  width: 28px;
  height: 28px;
}

.icon-ideafy {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.36);
  color: #7dd3fc;
}

.icon-toolito {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.16));
  border: 1px solid rgba(192, 132, 252, 0.36);
  color: #d8b4fe;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-releasing {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.34);
  color: #6ee7b7;
}

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

.status-soon {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.32);
  color: #e9d5ff;
}

.status-soon .status-dot {
  background: var(--cyber-violet);
}

.product-name-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.product-name {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.product-fa {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.product-desc {
  margin: 0 0 1.4rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Visual Previews inside Product Cards */
.visual-preview {
  border-radius: 16px;
  background: rgba(5, 7, 15, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.win-dots {
  display: inline-flex;
  gap: 5px;
}

.win-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
}

.win-dots i:first-child { background: #38bdf8; }
.win-dots i:nth-child(2) { background: #818cf8; }

.preview-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
}

.prompt-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 0.78rem;
  color: #e2e8f0;
  margin-bottom: 0.9rem;
  overflow: hidden;
  white-space: nowrap;
}

.prompt-tag {
  color: #38bdf8;
  font-weight: 700;
}

.typing-caret {
  width: 2px;
  height: 14px;
  background: var(--neon-cyan);
  animation: blinkCaret 1s step-end infinite;
}

@keyframes blinkCaret {
  50% { opacity: 0; }
}

.prompt-pulse-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 36px;
  margin-bottom: 0.9rem;
}

.prompt-pulse-bars span {
  flex: 1;
  height: var(--h, 60%);
  border-radius: 4px;
  background: linear-gradient(180deg, #38bdf8, #6366f1);
  transform-origin: bottom;
  animation: eqPulse 1.8s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}

@keyframes eqPulse {
  0%   { transform: scaleY(0.38); opacity: 0.55; }
  100% { transform: scaleY(1); opacity: 1; }
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.prompt-chips span {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: #c7d2fe;
}

/* Toolito SVG Progress Preview */
.preview-toolito {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.toolito-ring-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.habit-ring {
  width: 88px;
  height: 88px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(148, 163, 184, 0.15);
  stroke-width: 7;
}

.ring-progress {
  fill: none;
  stroke: url(#ring-grad);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 28;
  animation: ringBreathe 4.5s ease-in-out infinite alternate;
}

@keyframes ringBreathe {
  0%   { stroke-dashoffset: 62; }
  100% { stroke-dashoffset: 24; }
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.ring-center strong {
  font-size: 1.05rem;
  color: #f8fafc;
}

.ring-center span {
  font-size: 0.66rem;
  color: var(--text-secondary);
}

.habit-list {
  flex: 1;
  min-width: 0;
}

.habit-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: #cbd5e1;
  margin-bottom: 0.35rem;
}

.habit-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  flex-shrink: 0;
}

.habit-row.done .habit-check {
  background: rgba(52, 211, 153, 0.18);
  color: #6ee7b7;
}

.habit-row.active .habit-check {
  background: rgba(168, 85, 247, 0.22);
  color: #e9d5ff;
}

.sparkline {
  width: 100%;
  height: 30px;
  margin-top: 0.35rem;
}

.spark-path {
  stroke-dasharray: 220;
  stroke-dashoffset: 0;
  animation: sparkDraw 3.6s ease-in-out infinite alternate;
}

@keyframes sparkDraw {
  0%   { stroke-dashoffset: 110; }
  100% { stroke-dashoffset: 0; }
}

/* Product Footer */
.product-footer {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.product-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-weight: 650;
  font-size: 0.94rem;
  color: #7dd3fc;
  transition: color 240ms ease;
}

.product-link:hover {
  color: #fff;
}

.product-link .icon {
  transition: transform 240ms var(--ease-out);
}

.product-link:hover .icon {
  transform: translate(-3px, -3px);
}

.product-link-muted {
  color: var(--text-muted);
  cursor: default;
}

.coming-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card .bento-inner {
  padding: 1.65rem;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  margin-bottom: 1.1rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.03rem;
  font-weight: 750;
}

.feature-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Contact Banner */
.contact-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(12, 15, 28, 0.85) 50%, rgba(168, 85, 247, 0.11) 100%);
}

.contact-inner {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 2.75rem;
}

.contact-content h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 850;
}

.contact-content p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 560px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 2.5rem 0 3rem;
  background: rgba(5, 5, 10, 0.72);
  backdrop-filter: blur(10px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.footer-dot {
  color: var(--text-muted);
}

.footer-domain {
  font-size: 0.9rem;
  color: var(--neon-cyan);
  font-weight: 650;
}

.footer-tagline {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.footer-meta {
  text-align: left;
}

.footer-email {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 650;
  color: #cbd5e1;
  margin-bottom: 0.25rem;
  transition: color 240ms ease;
}

.footer-email:hover {
  color: var(--neon-cyan);
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.footer-legal-links a {
  color: #cbd5e1;
  font-weight: 500;
  transition: color 240ms ease;
}

.footer-legal-links a:hover {
  color: var(--neon-cyan);
}

/* =========================================================================
   Legal Pages (/terms & /privacy)
   ========================================================================= */
.nav-links a.nav-active {
  color: var(--text-primary);
}

.nav-links a.nav-active::after {
  width: 100%;
}

.legal-main {
  padding: 3.5rem 0 5.5rem;
}

.legal-hero {
  max-width: 820px;
  margin-bottom: 3rem;
}

.legal-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.legal-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #bae6fd;
  font-size: 0.8rem;
  font-weight: 600;
}

.legal-updated {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.legal-title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 850;
  line-height: 1.35;
}

.legal-lead {
  margin: 0 0 1.65rem;
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.legal-lead strong {
  color: var(--text-primary);
}

.legal-lead code,
.legal-article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  direction: ltr;
  display: inline-block;
}

.legal-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.35rem;
  border-radius: var(--radius-full);
  background: rgba(12, 15, 28, 0.78);
  border: 1px solid var(--border-dim);
}

.switch-tab {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background 240ms ease, color 240ms ease;
}

.switch-tab:hover {
  color: var(--text-primary);
}

.switch-tab.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(168, 85, 247, 0.24));
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #f8fafc;
}

.legal-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 100px;
}

.toc-card {
  padding: 1.4rem;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--border-dim);
  backdrop-filter: blur(18px);
}

.toc-title {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--neon-cyan);
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.toc-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  border-right: 2px solid transparent;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.toc-nav a:hover {
  background: rgba(56, 189, 248, 0.08);
  color: var(--text-primary);
  border-right-color: var(--neon-cyan);
}

.legal-article {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.legal-section {
  scroll-margin-top: 98px;
  padding: 2rem 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px solid var(--border-dim);
  backdrop-filter: blur(18px);
}

.section-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--neon-cyan);
  padding: 0.18rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  margin-bottom: 0.75rem;
}

.legal-section h2 {
  margin: 0 0 0.9rem;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-primary);
}

.legal-section p {
  margin: 0 0 0.95rem;
  color: #cbd5e1;
  font-size: 0.96rem;
  line-height: 1.95;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  margin: 0.5rem 0 1rem;
  padding-right: 1.35rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.95;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.legal-section li strong {
  color: var(--text-primary);
}

.legal-callout {
  margin-top: 1rem;
  padding: 1.2rem 1.35rem;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.09);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-right: 3px solid var(--neon-cyan);
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.9;
}

.legal-callout strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #bae6fd;
}

.legal-callout a {
  color: var(--neon-cyan);
  text-decoration: underline;
}

.callout-important {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.28);
  border-right-color: var(--emerald);
}

.data-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.data-card {
  padding: 1.2rem;
  border-radius: 14px;
  background: rgba(5, 7, 15, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.data-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 750;
  color: #e0f2fe;
}

.data-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-contact-box {
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: rgba(5, 7, 15, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.contact-email-link {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--neon-cyan);
}

@media (max-width: 960px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .data-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .legal-section {
    padding: 1.45rem 1.35rem;
  }

  .footer-legal-links {
    justify-content: flex-start;
  }
}

/* Staggered Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 90ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .bento-ideafy,
  .bento-toolito,
  .bento-mini {
    grid-column: span 12;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn-glass {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .orbital-stage {
    width: 270px;
    height: 270px;
  }

  .orbital-rig {
    width: 220px;
    height: 220px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .preview-toolito {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 3.75rem 0;
  }

  .footer-meta {
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .blur-word {
    opacity: 1;
    filter: none;
    transform: none;
  }
  .bg-canvas, .cursor-spotlight {
    display: none;
  }
}
