/* Main Layout */
.pricing-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 4rem 0 4rem;
  opacity: 0;
  visibility: hidden;
}

.pricing-page.loaded {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
}

/* Hero Section */
.hero-section {
  text-align: left;
  padding-top: 4rem;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8rem;
  text-align: left;
}

.hero-text-container {
  margin-bottom: 4rem;
  text-align: left;
  max-width: 1000px;
  margin-left: 0;
}

.hero-text {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 1);
  margin-bottom: 1rem;
  text-align: left;
  display: block;
  width: 100%;
}

.split-line {
  display: none;
}

.inline-logo {
  height: 3rem;
  width: auto;
  vertical-align: middle;
  margin: 0 0.5rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.hero-details {
  max-width: 800px;
}

.fade-in-text {
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.5;
  margin: 1.5rem 0;
  transition: opacity 0.3s ease;
}

/* AI Section */
.ai-section {
  padding: 3rem 0;
}

.ai-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Animations */
.word {
  display: inline-block;
  opacity: 0;
  text-align: left;
  transform: translateY(20px);
  transition: opacity 0.3s ease;
  will-change: opacity, transform;
}

.word.visible {
  opacity: 1;
}

.word.initial {
  opacity: 0.3;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .pricing-page {
    padding: 1rem;
  }

  .split-text {
    font-size: 2.5rem;
  }

  .hero-text {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .pricing-page {
    padding: 1rem;
  }

  .split-text {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 1.75rem;
  }

  .pricing-card {
    width: 100%;
    max-width: 100%;
  }

  .pricing-cards-container {
    padding: 8rem 0 2rem 0;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    justify-content: flex-start;
  }

  /* Centered column; Optimal + laser first on small screens */
  .pricing-cards-container > .pricing-card,
  .pricing-cards-container > .pricing-card-featured-shell {
    width: 100%;
    max-width: min(380px, 100%);
  }

  .pricing-card-featured-shell {
    order: -1;
  }

  .hero-content {
    padding: 0 2rem;
  }

  .pricing-cards-container .pricing-card:nth-child(4) {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .card-hover-text {
    font-size: 0.75rem;
    padding: 0 0.5rem;
  }

  .hero-content {
    padding: 0 1rem;
  }
}

/* Add new style for the first hero text container */
.hero-text-container:first-child .hero-text:nth-child(-n + 2) {
  color: rgba(255, 255, 255, 1);
}

@keyframes glowRotate {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

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

/* Pricing Cards Section */
.pricing-cards-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 2rem;
  padding: 6rem 0 2rem 0;
  perspective: 800px;
  justify-items: center;
  align-items: center;
}

.pricing-card {
  position: relative;
  width: 300px;
  height: 450px;
  transition: all 0.3s ease;
  background: linear-gradient(45deg, #1a1a1a, #262626);
  border-radius: 20px;
  padding: 2rem;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 153, 255, 0.15);
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.pricing-cards-container .pricing-card:nth-child(4) {
  grid-column: 2;
}

.pricing-card:hover:not(.pricing-card--featured) {
  --glow-color: #4db5ff;
  --glow-spread-color: rgba(115, 192, 255, 0.6);
  --enhanced-glow-color: #8ccfff;
  box-shadow:
    0 0 0.5em 0.15em var(--glow-color),
    0 0 2em 1em var(--glow-spread-color),
    inset 0 0 0.4em 0.15em var(--glow-color);
}

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

.pricing-card::before {
  content: "";
  background: radial-gradient(
    circle at center,
    rgba(0, 153, 255, 0.1) 0%,
    rgba(0, 221, 255, 0.05) 50%,
    transparent 100%
  );
  filter: blur(20px);
  opacity: 0;
  width: 150%;
  height: 150%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.card-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
}

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

.cyber-lines span {
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 153, 255, 0.2),
    transparent
  );
}

.cyber-lines span:nth-child(1) {
  top: 20%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineGrow 3s linear infinite;
}

.cyber-lines span:nth-child(2) {
  top: 40%;
  right: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  animation: lineGrow 3s linear infinite 1s;
}

.cyber-lines span:nth-child(3) {
  top: 60%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineGrow 3s linear infinite 2s;
}

.corner-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.corner-elements span {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(0, 153, 255, 0.3);
  transition: all 0.3s ease;
}

.corner-elements span:nth-child(1) {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.corner-elements span:nth-child(2) {
  top: 10px;
  right: 10px;
  border-left: 0;
  border-bottom: 0;
}

.corner-elements span:nth-child(3) {
  bottom: 10px;
  left: 10px;
  border-right: 0;
  border-top: 0;
}

.corner-elements span:nth-child(4) {
  bottom: 10px;
  right: 10px;
  border-left: 0;
  border-top: 0;
}

.pricing-card:hover .corner-elements span {
  border-color: rgba(0, 153, 255, 0.8);
  box-shadow: 0 0 10px rgba(0, 153, 255, 0.5);
}

.scan-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 153, 255, 0.1),
    transparent
  );
  transform: translateY(-100%);
  animation: none;
  pointer-events: none;
}

.pricing-card:hover .scan-line {
  animation: scanMove 2s linear infinite;
}

@keyframes lineGrow {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(0);
    opacity: 0;
  }
}

@keyframes scanMove {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.card-title {
  font-size: 1.5rem;
  background: linear-gradient(45deg, #0099ff, #00ddff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  font-family: var(--montserrat-para);
  filter: drop-shadow(0 0 15px rgba(0, 153, 255, 0.3));
}

.card-price {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 1);
  font-weight: bold;
  font-family: var(--brand-header);
  text-shadow: 0 0 10px rgba(0, 153, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-price span {
  font-size: 1rem;
  opacity: 0.6;
  font-weight: normal;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

.card-details {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  font-family: var(--montserrat-para);
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.card-features li {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  font-family: var(--montserrat-para);
  display: flex;
  align-items: center;
}

/* Button Styles */
.button-container {
  position: relative;
  width: 100%;
  transition: transform 0.1s ease;
}

.real-button:hover ~ div {
  transform: translateY(-1px);
}

.button-border {
  padding: 3px;
  inset: 0;
  background: #0005;
  border-radius: 18px;
  clip-path: path(
    "M 270 0 C 300 0 300 5 300 33 C 300 61 300 66 270 66 L 30 66 C 0 66 0 61 0 33 C 0 5 0 0 30 0 Z"
  );
}

.card-button {
  position: relative;
  z-index: 2;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 0.875em;
  clip-path: path(
    "M 270 0 C 300 0 300 5 300 30 C 300 55 300 60 270 60 L 30 60 C 0 60 0 55 0 30 C 0 5 0 0 30 0 Z"
  );
  width: 100%;
  height: 60px;
  background: #111215;
  display: flex;
  flex-direction: column;
  color: #8ccfff;
  overflow: hidden;
  font-family: var(--brand-header);
  font-size: 1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.1s ease;
  text-shadow: 0 0 0px rgba(140, 207, 255, 0);
  transform: scale(1);
  font-weight: 900;
}

.real-button {
  position: absolute;
  width: 100%;
  height: 60px;
  z-index: 1;
  outline: none;
  border: none;
  border-radius: 17px;
  cursor: pointer;
  opacity: 0;
}

.backdrop {
  position: absolute;
  inset: -9900%;
  background: radial-gradient(
    circle at 50% 50%,
    #0000 0,
    #0000 20%,
    #111111aa 50%
  );
  background-size: 3px 3px;
  z-index: -1;
}

.spin {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.5;
  overflow: hidden;
  transition: all 0.1s ease;
}

.real-button:active ~ div .spin {
  opacity: 1;
}

.spin-blur {
  filter: blur(2em) url(#unopaq);
}

.spin-intense {
  inset: -0.125em;
  filter: blur(0.25em) url(#unopaq2);
  border-radius: 0.75em;
}

.spin-inside {
  inset: -2px;
  border-radius: inherit;
  filter: blur(2px) url(#unopaq3);
  z-index: 0;
}

.spin::before {
  content: "";
  position: absolute;
  inset: -150%;
  animation:
    speen 8s cubic-bezier(0.56, 0.15, 0.28, 0.86) infinite,
    woah 4s infinite;
  animation-play-state: paused;
  transition: all 0.1s ease;
}

.real-button:hover ~ div .spin::before {
  animation-play-state: running;
}

.spin-blur::before {
  background: linear-gradient(90deg, #0099ff 30%, #0000 50%, #00ddff 70%);
}

.spin-intense::before {
  background: linear-gradient(90deg, #0099ff 20%, #0000 45% 55%, #00ddff 80%);
}

.spin-inside::before {
  background: linear-gradient(90deg, #0099ff 30%, #0000 45% 55%, #00ddff 70%);
}

@keyframes speen {
  0% {
    rotate: 10deg;
  }
  50% {
    rotate: 190deg;
  }
  to {
    rotate: 370deg;
  }
}

@keyframes woah {
  0%,
  to {
    scale: 1;
  }
  50% {
    scale: 0.75;
  }
}

@keyframes rotate {
  from {
    --rotate: -70;
    --glow-translate-y: -65;
  }
  to {
    --rotate: 290;
    --glow-translate-y: -65;
  }
}

@keyframes hue-animation {
  0% {
    --hue: 260;
  }
  50% {
    --hue: 320;
  }
  100% {
    --hue: 260;
  }
}

/* Featured (Optimal) card constant glow */
.pricing-card--featured {
  --glow-color: #0099ff;
  --glow-spread-color: rgba(0, 153, 255, 0.6);
  --enhanced-glow-color: #00ddff;
  box-shadow:
    0 0 1em 0.25em var(--glow-color),
    0 0 4em 2em var(--glow-spread-color),
    inset 0 0 0.75em 0.25em var(--glow-color);
  position: relative;
  transform-style: preserve-3d;
}

.pricing-card--featured::after {
  pointer-events: none;
  content: "";
  position: absolute;
  top: 120%;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--glow-spread-color);
  filter: blur(2.5em);
  opacity: 0.9;
  transform: perspective(1.5em) rotateX(35deg) scale(1, 0.6);
}

.pricing-card--featured:hover {
  box-shadow:
    0 0 1em 0.25em var(--glow-color),
    0 0 4em 2em var(--glow-spread-color),
    inset 0 0 0.75em 0.25em var(--glow-color);
}

.pricing-card--featured:hover::after {
  opacity: 1;
  filter: blur(3em);
  transform: perspective(1.5em) rotateX(35deg) scale(1.1, 0.7);
}

.pricing-card--featured .scan-line {
  animation: scanMove 2s linear infinite;
}

/* Remove hover trigger for middle card since it's always animated */
.pricing-card--featured:hover .scan-line {
  animation: scanMove 2s linear infinite;
}

.card-hover-line {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(74, 168, 242, 0.3) 50%,
    transparent 100%
  );
}

.real-button:hover ~ div .card-button {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(140, 207, 255, 0.8);
  transform: scale(1.02);
  letter-spacing: 0.8px;
}

.card-header,
.card-details,
.card-features {
  position: relative;
  z-index: 55;
}

/* Add new styles for the pulsing neon dot */
.neon-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #0099ff;
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
  box-shadow:
    0 0 4px #0099ff,
    0 0 6px #0099ff,
    0 0 8px #00ddff;
  animation: pulse 2s ease-in-out infinite;
}

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

.card-features li {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  font-family: var(--montserrat-para);
  display: flex;
  align-items: center;
}

/* Add these styles */
.hero-section,
.hero-content,
.hero-text-container,
.hero-text {
  pointer-events: none;
}

/* Make sure links and interactive elements within text remain clickable */
.hero-text a,
.hero-text button {
  pointer-events: auto;
}

@media (max-width: 992px) and (min-width: 769px) {
  .pricing-cards-container {
    padding: 2rem 0 1rem 0;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }

  .pricing-cards-container .pricing-card:nth-child(4) {
    grid-column: auto;
  }
}

/* Add styles for the new background price display */
.bg-price {
  position: absolute;
  top: -1rem;
  right: 1.1rem;
  font-size: 6rem;
  font-weight: bold;
  font-family: var(--brand-header);
  color: rgba(0, 153, 255, 0.3);
  opacity: 0.7;
  pointer-events: none;
  z-index: 50;
  text-shadow: 0 0 15px rgba(0, 153, 255, 0.2);
  transform: translateZ(10px);
  will-change: transform;
  letter-spacing: -10px;
}

/* Add styling for the dollar sign */
.bg-price .dollar {
  font-size: 0.25em;
  color: rgba(0, 153, 255, 0.3);
  vertical-align: top;
  position: relative;
  top: 1rem;
  right: 0.5rem;
}

/* Laser flow (React Bits) mount: beam extends above the Optimal card */
.pricing-card-featured-shell {
  position: relative;
  width: 300px;
  max-width: 100%;
  justify-self: center;
  overflow: visible;
}

.pricing-card-featured-shell .laser-flow-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(172%, 520px);
  height: 100%;
  top: -48%;
  z-index: 0;
  pointer-events: none;
}

.pricing-card-featured-shell .pricing-card--featured {
  position: relative;
  z-index: 1;
}
