/* -------------------------------------------------------------------------- */
/*                                 Variables                                  */
/* -------------------------------------------------------------------------- */
:root {
  /* Colors - "Premium Dark & Clean" */
  --bg-dark: #050507;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.04);

  --primary-glow: #00f0ff;
  /* Electric Cyan */
  --text-main: #ffffff;
  --text-muted: #888899;

  --border-color: rgba(255, 255, 255, 0.05);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 8rem 2rem;
}

/* -------------------------------------------------------------------------- */
/*                                   Reset                                    */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.logo {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-body);
}

/* -------------------------------------------------------------------------- */
/*             High-End Visual FX (Spotlight, Tilt)                           */
/* -------------------------------------------------------------------------- */

/* Background Effects */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: #050507;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--primary-glow);
  top: -200px;
  left: 20%;
  animation: float 15s ease-in-out infinite alternate;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: #ffffff;
  bottom: -100px;
  right: 10%;
  opacity: 0.05;
  animation: float 20s ease-in-out infinite alternate-reverse;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }

  100% {
    transform: translateY(40px) translateX(20px);
  }
}

/* Text Shimmer */
.text-shimmer {
  background: linear-gradient(110deg,
      #939393 45%,
      #ffffff 50%,
      #939393 55%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s infinite linear;
}

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }

  100% {
    background-position: 130% 0;
  }
}

/* -------------------------------------------------------------------------- */
/*                                   Utils                                    */
/* -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 20%, var(--primary-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-highlight {
  color: var(--primary-glow);
}

.tag-soon {
  font-size: 0.6em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  color: var(--text-muted);
  font-weight: 500;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Navbar (Floating Island - Absolute) */
.navbar {
  position: absolute;
  top: 20px;
  left: 2rem;
  right: auto;
  margin: 0;
  width: fit-content;
  min-width: 0;
  /* Remove min-width constraint */
  padding: 0.75rem 2rem;
  z-index: 100;
  background: rgba(5, 5, 7, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Right Side Floating Pill */
.beta-pill {
  position: absolute;
  top: 20px;
  right: 2rem;
  z-index: 100;
  background: rgba(5, 5, 7, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  padding: 0.75rem 1.5rem;

  display: flex;
  align-items: center;
  gap: 8px;

  font-size: 0.8rem;
  color: var(--text-main);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.beta-dot {
  width: 6px;
  height: 6px;
  background: var(--primary-glow);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4);
  }

  70% {
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(0, 240, 255, 0);
  }

  100% {
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
  }
}

/* -------------------------------------------------------------------------- */
/*                                    Hero                                    */
/* -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: var(--container-width);
  text-align: left;
}

.hero-text {
  max-width: 600px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

/* Holographic Card */
.holo-card {
  background: rgba(20, 20, 22, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
  animation: floatCard 6s ease-in-out infinite;
}

.holo-card:hover {
  transform: rotateY(0) rotateX(0) scale(1.02);
}

.holo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.holo-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.holo-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #00ff9d;
  /* Matrix Green */
  background: rgba(0, 255, 157, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #00ff9d;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff9d;
}

.holo-metric {
  margin-bottom: 1.5rem;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.metric-value.positive {
  color: #00ff9d;
  text-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}

.holo-chart {
  height: 60px;
  width: 100%;
  margin-top: 1rem;
}

.chart-line {
  fill: none;
  stroke: #00ff9d;
  stroke-width: 2;
  filter: drop-shadow(0 0 4px rgba(0, 255, 157, 0.5));
}

/* Terminal Card removed */

.code-keyword {
  color: #c678dd;
}

.code-func {
  color: #61afef;
}

.code-str {
  color: #98c379;
}

.code-num {
  color: #d19a66;
}

@keyframes floatCard {

  0%,
  100% {
    transform: rotateY(-10deg) rotateX(5deg) translateY(0);
  }

  50% {
    transform: rotateY(-10deg) rotateX(5deg) translateY(-15px);
  }
}

@keyframes floatTerminal {

  0%,
  100% {
    transform: rotateY(-10deg) rotateX(5deg) translateZ(-50px) translateY(0);
  }

  50% {
    transform: rotateY(-10deg) rotateX(5deg) translateZ(-50px) translateY(-10px);
  }
}

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text {
    margin: 0 auto;
  }

  /* On tablets/mobile, show visual but reset 3D */
  .hero-visual {
    display: flex;
    perspective: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .holo-card,
  .terminal-card {
    transform: none;
    animation: none;
    max-width: 100%;
    position: static;
    /* Stack them vertically on mobile */
    rotate: none;
  }

  .terminal-card {
    display: none;
    /* Simplify on mobile - hide terminal */
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

.badge-pill {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  color: var(--primary-glow);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  backdrop-filter: blur(5px);
}

.hero-title {
  font-size: 5rem;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

/* Buttons */
.btn {
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--primary-glow);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.4);
  transform: scale(1.02);
}


/* Waitlist Form */
.waitlist-form {
  max-width: 500px;
  margin: 0 auto 5rem;
  position: relative;
}

.input-group-wrapper {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.4rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.input-group-wrapper:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.input-group-wrapper:focus-within {
  border-color: var(--primary-glow);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
}

.input-group {
  display: flex;
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0 1.5rem;
  color: var(--text-main);
  font-size: 1.05rem;
  outline: none;
  font-family: var(--font-body);
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* Autofill Fix */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-main) !important;
  transition: background-color 5000s ease-in-out 0s;
  box-shadow: inset 0 0 20px 20px #23232329;
}

.form-message {
  position: absolute;
  top: 120%;
  left: 0;
  right: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-message.success {
  color: var(--primary-glow);
}

.hidden {
  display: none;
}

/* Hero Stats (Moved inside hero-text) */
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
}

/* -------------------------------------------------------------------------- */
/*                                  Features                                  */
/* -------------------------------------------------------------------------- */
.features-section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.25rem;
  font-weight: 300;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  padding: 1rem;
}

/* SPOTLIGHT CARD + 3D TILT */
.feature-card {
  background: rgba(20, 20, 22, 0.4);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Prep for 3D tilt */
  transform-style: preserve-3d;
  will-change: transform;
}

/* The Spotlight Glow */
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 2px;
  /* Border width */
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      rgba(0, 240, 255, 0.4),
      transparent 40%);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

/* Inner highlight glow */
.feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      rgba(0, 240, 255, 0.05),
      transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: -1;
}

.feature-card:hover::before,
.feature-card:hover::after {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

/* Parallax Icon effect */
.feature-card:hover .card-icon {
  transform: translateZ(20px);
}

.icon-cyan {
  color: var(--primary-glow);
}

.icon-white {
  color: #fff;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.feature-card:hover h3 {
  transform: translateZ(10px);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* -------------------------------------------------------------------------- */
/*                                   Vision                                   */
/* -------------------------------------------------------------------------- */
.vision-section {
  padding: 10rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

/* The Event Horizon Glow */
.vision-section::before {
  content: "";
  position: absolute;
  bottom: -20%;
  /* Moved up */
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.3) 0%, transparent 70%);
  /* Higher opacity */
  z-index: 0;
  pointer-events: none;
  filter: blur(50px);
  animation: horizonPulse 6s ease-in-out infinite alternate;
}

/* Subtle Grid Floor */
.vision-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center bottom;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, black 20%, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, black 20%, transparent 80%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.vision-section .container {
  position: relative;
  z-index: 1;
  /* Bring text above glow */
}

@keyframes horizonPulse {
  0% {
    opacity: 0.4;
    transform: translateX(-50%) scale(1);
  }

  100% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1.05);
  }
}

.vision-section h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.vision-section p {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.25rem;
}

/* -------------------------------------------------------------------------- */
/*                                   Footer                                   */
/* -------------------------------------------------------------------------- */
footer {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

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

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.25rem;
}

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

.footer-links {
  display: flex;
  gap: 2.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* -------------------------------------------------------------------------- */
/*                           Animations & Mobile                              */
/* -------------------------------------------------------------------------- */
.fade-in-down {
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typewriter Cursor */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background-color: var(--primary-glow);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 5rem 1.5rem;
  }

  /* Reset Navbar for Mobile */
  .navbar {
    top: 15px;
    left: 15px;
    right: auto;
    min-width: auto;
    /* Fix overflow bug */
    padding: 0.6rem 1.25rem;
  }

  .beta-pill {
    top: 15px;
    right: 15px;
    /* Symmetrical spacing */
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    /* Slightly smaller text */
  }

  .nav-content {
    gap: 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    margin-top: 4rem;
    /* Add space for header */
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    /* Center stats */
  }

  .stat-divider {
    display: none;
  }

  /* Form adjustments */
  .waitlist-form {
    padding: 0 1rem;
  }

  .input-group {
    flex-direction: column;
    gap: 1rem;
  }

  .input-group-wrapper {
    background: transparent;
    border: none;
    padding: 0;
  }

  .input-group input {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 0.85rem;
    width: 100%;
  }

  .btn-primary {
    justify-content: center;
    width: 100%;
  }

  .orb-1,
  .orb-2 {
    width: 300px;
    height: 300px;
    opacity: 0.3;
    /* Tone down glow on mobile */
  }
}