/* ============================================================================
 * ORYNXIA - FRAMER MOTION LUXURY DESIGN SYSTEM
 * Powered by AXD SAFE HOUSE | Lead Architect: Alin-Remus Petrea
 * Desktop, Tablet & Mobile Next-Gen Responsive Glassmorphism
 * ============================================================================ */

:root {
  --framer-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --framer-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --framer-spotlight: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 240, 255, 0.12), transparent 45%);
  --framer-border-beam: linear-gradient(90deg, transparent 0%, #00F0FF 50%, #8A2BE2 100%, transparent 100%);
}

/* ----------------------------------------------------------------------------
 * 1. FRAMER MOUSE SPOTLIGHT & BORDER BEAM
 * ---------------------------------------------------------------------------- */
.framer-card {
  position: relative;
  background: rgba(10, 15, 29, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.4s var(--framer-ease),
              box-shadow 0.4s var(--framer-ease),
              border-color 0.4s var(--framer-ease);
  will-change: transform;
}

/* Luminous Radial Spotlight tracking mouse */
.framer-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(450px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(0, 240, 255, 0.22), transparent 45%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

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

/* Specular Inner Glare */
.framer-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  pointer-events: none;
  z-index: 2;
}

.framer-card:hover {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8),
              0 0 30px -5px rgba(0, 240, 255, 0.18),
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
}

/* ----------------------------------------------------------------------------
 * 2. ANIMATED BORDER BEAM (Aceternity / Framer style)
 * ---------------------------------------------------------------------------- */
.border-beam-card {
  position: relative;
}

.border-beam-card .beam-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, transparent 20%, #00F0FF 50%, #8A2BE2 80%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
  animation: borderRotate 8s linear infinite;
}

@keyframes borderRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* ----------------------------------------------------------------------------
 * 3. BENTO GRID ARCHITECTURE (Specialized Services)
 * ---------------------------------------------------------------------------- */
.framer-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

.bento-card-inner {
  position: relative;
  z-index: 3;
  padding: 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan-neon);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  width: fit-content;
}

.bento-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.bento-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.bento-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bento-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.bento-pill:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--cyan-neon);
  color: var(--cyan-neon);
  transform: translateY(-2px);
}

/* Interactive Mini Preview inside Bento Cards */
.bento-interactive-visual {
  background: rgba(4, 7, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  margin: 1.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #94A3B8;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.visual-pulse-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.visual-pulse-line:last-child {
  border-bottom: none;
}

/* ----------------------------------------------------------------------------
 * 4. HERO SECTION FRAMER MOTION ENHANCEMENT
 * ---------------------------------------------------------------------------- */
.hero-glow-sphere {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 750px;
  height: 450px;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.15) 0%, rgba(138, 43, 226, 0.08) 50%, transparent 75%);
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
  animation: heroPulse 10s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1.4rem;
  border-radius: 9999px;
  background: rgba(10, 15, 29, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
  transition: all 0.3s var(--framer-spring);
  cursor: default;
}

.hero-pill-badge:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--cyan-neon);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-neon);
  box-shadow: 0 0 12px var(--cyan-neon);
  animation: pulseNeon 2s infinite ease-in-out;
}

.hero-badge-text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.hero-title-framer {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.75rem;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(180deg, #FFFFFF 30%, #A5F3FC 75%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----------------------------------------------------------------------------
 * 5. MAGNETIC BUTTONS & SPRING PHYSICS
 * ---------------------------------------------------------------------------- */
.btn-framer-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.05rem 2.25rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 9999px;
  color: #05070D;
  background: linear-gradient(135deg, #00F0FF 0%, #38BDF8 40%, #A855F7 85%, #D946EF 100%);
  background-size: 200% 200%;
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px -5px rgba(0, 240, 255, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.3s var(--framer-spring),
              box-shadow 0.3s ease,
              background-position 0.5s ease;
  will-change: transform;
}

.btn-framer-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 40px -2px rgba(0, 240, 255, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.9);
  background-position: 100% 100%;
}

.btn-framer-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-framer-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.05rem 2.25rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.3s var(--framer-spring),
              border-color 0.3s ease,
              background-color 0.3s ease,
              box-shadow 0.3s ease;
  will-change: transform;
}

.btn-framer-glass:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan-neon);
  box-shadow: 0 12px 35px -5px rgba(0, 240, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-framer-glass:active {
  transform: translateY(0) scale(0.98);
}

/* Hero Video Presentation Button */
.btn-framer-video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.05rem 2.25rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  color: #FFFFFF;
  background: rgba(217, 70, 239, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(217, 70, 239, 0.35);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.3s var(--framer-spring),
              border-color 0.3s ease,
              background-color 0.3s ease,
              box-shadow 0.3s ease;
  will-change: transform;
}

.btn-framer-video:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.22) 0%, rgba(138, 43, 226, 0.3) 100%);
  border-color: #D946EF;
  box-shadow: 0 12px 35px -5px rgba(217, 70, 239, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-framer-video:active {
  transform: translateY(0) scale(0.98);
}

.video-play-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(217, 70, 239, 0.25);
  color: #D946EF;
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.5);
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn-framer-video:hover .video-play-pulse {
  transform: scale(1.15);
  background: #D946EF;
  color: #05070D;
  box-shadow: 0 0 18px rgba(217, 70, 239, 0.8);
}

/* ----------------------------------------------------------------------------
 * 7. CYBER GRID OVERLAY & AMBIENT VISUAL ENGINE
 * ---------------------------------------------------------------------------- */
.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 35%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ----------------------------------------------------------------------------
 * 8. HERO INTERACTIVE GLASS HUD DASHBOARD (CENTERPIECE)
 * ---------------------------------------------------------------------------- */
.hero-hud-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 3.5rem auto 0;
  z-index: 5;
}

.hero-hud-frame {
  background: rgba(8, 12, 24, 0.85);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 24px;
  box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.9),
              0 0 40px -5px rgba(0, 240, 255, 0.15),
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
  transition: all 0.4s var(--framer-ease);
}

.hero-hud-frame:hover {
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.95),
              0 0 50px -5px rgba(0, 240, 255, 0.25),
              inset 0 1px 2px 0 rgba(255, 255, 255, 0.35);
}

.hud-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(12, 18, 36, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.hud-window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-control-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.hud-title-tag {
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.hud-live-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #10B981;
  font-weight: 700;
}

.hud-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulseNeon 2s infinite ease-in-out;
}

.hud-body-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  padding: 2rem;
}

/* Architecture Mesh Visualization */
.hud-mesh-panel {
  background: rgba(4, 7, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hud-panel-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan-neon);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mesh-svg-wrapper {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mesh-svg-wrapper svg {
  width: 100%;
  height: 100%;
}

/* Real-time Telemetry Stats Panel */
.hud-telemetry-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.telemetry-stat-card {
  background: rgba(4, 7, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tele-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.tele-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.tele-val.neon-cyan { color: var(--cyan-neon); }
.tele-val.neon-purple { color: #D946EF; }
.tele-val.neon-green { color: #10B981; }

/* Real-time Agents Log Stream in HUD */
.hud-feed-container {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: #94A3B8;
  height: 110px;
  overflow: hidden;
}

.hud-feed-line {
  display: flex;
  gap: 10px;
  white-space: nowrap;
  animation: feedFadeIn 0.3s ease;
}

@keyframes feedFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating Glass Accent Chips Around HUD */
.floating-hud-chip {
  position: absolute;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  background: rgba(10, 15, 29, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 6;
  pointer-events: none;
}

.chip-top-left {
  top: -18px;
  left: 20px;
  animation: floatChip1 6s ease-in-out infinite;
  border-color: rgba(0, 240, 255, 0.4);
}

.chip-top-right {
  top: -18px;
  right: 20px;
  animation: floatChip2 7s ease-in-out infinite;
  border-color: rgba(138, 43, 226, 0.4);
}

.chip-bottom-left {
  bottom: -18px;
  left: 40px;
  animation: floatChip2 6.5s ease-in-out infinite;
  border-color: rgba(16, 185, 129, 0.4);
}

.chip-bottom-right {
  bottom: -18px;
  right: 40px;
  animation: floatChip1 7.5s ease-in-out infinite;
  border-color: rgba(217, 70, 239, 0.4);
}

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

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

/* ----------------------------------------------------------------------------
 * 9. RESPONSIVE BREAKPOINTS (DESKTOP, TABLET & MOBILE PERFECTION)
 * ---------------------------------------------------------------------------- */

/* TABLET (768px to 1024px) */
@media (max-width: 1024px) {
  .framer-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .bento-col-8, .bento-col-4, .bento-col-6, .bento-col-12 {
    grid-column: span 1;
  }

  .bento-col-8 {
    grid-column: span 2;
  }

  .bento-card-inner {
    padding: 2rem 1.75rem;
  }

  .bento-title {
    font-size: 1.4rem;
  }

  .hero-glow-sphere {
    width: 90vw;
    height: 350px;
  }

  .hud-body-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .floating-hud-chip {
    display: none; /* Hide floating chips on tablet to prevent clutter */
  }
}

/* MOBILE PHONE (< 768px) */
@media (max-width: 768px) {
  .framer-bento-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .bento-col-8, .bento-col-4, .bento-col-6, .bento-col-12 {
    grid-column: span 1 !important;
  }

  .bento-card-inner {
    padding: 1.75rem 1.25rem;
  }

  .bento-title {
    font-size: 1.25rem;
  }

  .bento-desc {
    font-size: 0.92rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .btn-framer-primary, .btn-framer-glass {
    width: 100%;
    min-height: 52px;
    padding: 0.95rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-pill-badge {
    padding: 0.45rem 1rem;
    font-size: 0.72rem;
    width: 100%;
    justify-content: center;
  }

  .hero-title-framer {
    font-size: clamp(1.75rem, 6.5vw, 2.35rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
    word-break: break-word;
  }

  /* Full Screen Liquid Mobile Menu */
  .nav-links.active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 7, 15, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: none;
    border-radius: 0;
    padding: 6rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }

  .showcase-featured,
  .estimator-wrapper,
  .form-card,
  .founder-identity-card {
    padding: 1.5rem 1.15rem !important;
  }

  .nav-links.active .nav-link {
    font-size: 1.35rem;
    font-weight: 700;
  }

  .hud-body-grid {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .mesh-svg-wrapper {
    height: 140px;
  }

  .hud-feed-container {
    height: 90px;
    font-size: 0.7rem;
  }

  .floating-hud-chip {
    display: none;
  }
}
