/* 🎀 PROJECT LEXI • Light Editorial Craft Design System (Matching Reference Screenshot) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-card: rgba(0, 0, 0, 0.08);
  --accent-lime: #84cc16;
  --accent-lime-dark: #65a30d;
  --accent-lime-light: #ecfccb;
  --accent-pink: #ec4899;
  --accent-purple: #8b5cf6;
  --text-main: #111827;
  --text-body: #4b5563;
  --text-muted: #9ca3af;
  --sky-blue: #7caed0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.font-editorial {
  font-family: 'Instrument Serif', Georgia, serif;
}

/* Outer Card from Screenshot */
.editorial-hero-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 44px;
  box-shadow: 0 25px 70px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

@media (min-width: 640px) {
  .editorial-hero-card {
    border-radius: 52px;
  }
}

/* Carved Hero Frame Architecture (Exact 1-on-1 Match with Reference Screenshot) */
.hero-frame-container {
  aspect-ratio: 673 / 965;
}

.sky-shaped-frame {
  clip-path: url(#hero-frame-clip);
  -webkit-clip-path: url(#hero-frame-clip);
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.avatar-portrait-wrap {
  overflow: hidden;
}

.avatar-portrait-img {
  width: 185%;
  max-width: none;
  height: auto;
  object-fit: cover;
  transform: translate(0%, 30%);
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.25));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-frame-container:hover .avatar-portrait-img {
  transform: translate(0%, 28%) scale(1.02);
}

.kiwi-slot-card {
  position: absolute;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.kiwi-slot-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 35px -6px rgba(0, 0, 0, 0.16);
}

/* Light Glass Pill (Navbar & Badges) */
.light-glass-pill {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
}

/* Light Glass Panel (Bento & Sections) */
.light-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 28px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.light-card:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Signature Lime Pill Button from Screenshot */
.btn-lime-pill {
  background-color: var(--accent-lime);
  color: #111827;
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 20px -4px rgba(132, 204, 22, 0.4);
}

.btn-lime-pill:hover {
  background-color: #74b816;
  transform: translateY(-1px);
  box-shadow: 0 12px 25px -4px rgba(132, 204, 22, 0.5);
}

/* Keycap Hotkey */
.keycap-light {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 7px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 2px 0 #cbd5e1;
  color: #334155;
}

/* Soundboard Equalizer Bars (Light) */
.eq-bar-light {
  width: 3px;
  background: var(--accent-lime-dark);
  border-radius: 2px;
  animation: eq-bounce-light 1.2s ease-in-out infinite alternate;
}

.eq-bar-light:nth-child(1) { height: 14px; animation-delay: 0.1s; }
.eq-bar-light:nth-child(2) { height: 22px; animation-delay: 0.3s; }
.eq-bar-light:nth-child(3) { height: 10px; animation-delay: 0.5s; }
.eq-bar-light:nth-child(4) { height: 18px; animation-delay: 0.2s; }
.eq-bar-light:nth-child(5) { height: 12px; animation-delay: 0.4s; }

@keyframes eq-bounce-light {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1.3); }
}

.playing .eq-bar-light {
  animation-play-state: running;
}

.paused .eq-bar-light {
  animation-play-state: paused;
  transform: scaleY(0.3);
}

/* ======================================================== */
/* REVONE.APP NOIR TOKENS & APPLE SWIFT CRAFT ARCHITECTURE   */
/* ======================================================== */
:root {
  --revone-dark-bg: #000000;
  --revone-card-bg: #0d0d0f;
  --revone-card-border: rgba(255, 255, 255, 0.08);
  --revone-card-hover: rgba(255, 255, 255, 0.16);
  --revone-accent: #3b82f6;
  --revone-accent-glow: rgba(59, 130, 246, 0.35);
  --silver-glow: rgba(220, 225, 235, 0.18);
}

/* Liquid Silver / Charcoal Header Spotlight */
.revone-silver-spotlight {
  background: radial-gradient(140% 32% at 50% 0%, rgba(225, 230, 240, 0.22) 0%, rgba(60, 65, 80, 0.45) 28%, rgba(15, 16, 20, 0.95) 60%, #000000 85%);
  position: relative;
  overflow: hidden;
}

.revone-glass-pill {
  background: rgba(18, 18, 22, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Apple Swift Primary Button (Blue / Dark) */
.btn-apple-primary {
  background: #3b82f6;
  color: #ffffff;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 8px 24px -4px rgba(59, 130, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-apple-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -4px rgba(59, 130, 246, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-apple-dark {
  background: #18181b;
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-apple-dark:hover {
  background: #27272a;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.app-icon-3d {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-icon-3d:hover {
  transform: translateY(-3px) scale(1.03);
}

/* Apple Swift Style Dark Card (Revone Style) */
.apple-card-dark {
  background: #0d0d0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 36px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.apple-card-dark:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
}

/* Master Showcase Container */
.revone-showcase-container {
  background: #0d0d0f;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 40px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
  position: relative;
  overflow: hidden;
}

/* Liquid Cobalt Blue Pricing Container (Matching Screenshot 2 Exactly) */
.revone-pricing-container {
  background: radial-gradient(120% 110% at 15% 25%, #4651f6 0%, #3037be 35%, #1e247e 70%, #101347 100%);
  border-radius: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 35px 90px -20px rgba(48, 55, 190, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.revone-pricing-container::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -15%;
  width: 70%;
  height: 120%;
  background: radial-gradient(circle, rgba(110, 130, 255, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
}

/* Clean Apple Frame / Media Slot (Uncluttered, Sleek) */
.clean-media-slot {
  background: #08080a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.clean-media-slot:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* macOS Window Mockup Frame */
.macos-window-frame {
  background: #121216;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

/* Giant Typographic Backdrop in Footer */
.giant-footer-text {
  font-size: clamp(50px, 13vw, 180px);
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.01) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  user-select: none;
  line-height: 0.85;
}

/* Marquee Animation */
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* 🌸 Interactive Live Speech Bubble (Lower Torso Placement to NEVER cover face) */
.alexia-live-bubble {
  position: absolute;
  bottom: 16%;
  left: 50%;
  transform: translate(-50%, 15px) scale(0.92);
  z-index: 40;
  background: rgba(13, 13, 16, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 12px 18px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
  max-width: 90%;
  width: max-content;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .alexia-live-bubble {
    font-size: 13px;
    bottom: 18%;
    max-width: 85%;
  }
}

.alexia-live-bubble.visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.alexia-live-bubble .bubble-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alexia-live-bubble .bubble-emoji {
  font-size: 16px;
  animation: wave 1.5s infinite;
}

.alexia-live-bubble .bubble-arrow {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(13, 13, 16, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

/* ⚡ Carved Slot Stats & Engine Badge Card (Replaces Kiwi) */
.stats-slot-card {
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(145deg, #11141a 0%, #0d0f14 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 28px;
  box-sizing: border-box;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .stats-slot-card {
    border-radius: 32px;
    padding: 14px 16px;
  }
}

.stats-slot-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.45), 0 0 20px rgba(59, 130, 246, 0.15);
}

/* 🪟 Tally Modal Enhancement */
[data-tally-layout="modal"] {
  border-radius: 28px !important;
}

iframe[data-tally-src] {
  border-radius: 24px !important;
  box-shadow: 0 35px 100px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

