/* --- CSS Variables & Reset --- */
:root {
  --bg-main: #080808;
  /* Deeper, richer black */
  --bg-card: #121212;
  /* Subtle contrast for cards */
  --bg-input: #1a1a1a;
  --text-white: #ffffff;
  --text-grey: #a3a3a3;
  /* Smooth, legible grey */
  --accent-glow: rgba(255, 255, 255, 0.7);
  --font-main: 'Inter', sans-serif;
  --section-spacing: 120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* Deepened Atmosphere: Radial Gradient */
  background: radial-gradient(circle at center top, #1a1a1a, #080808 80%);
  color: var(--text-white);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Typography Utilities --- */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  /* Responsive font sizing */
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

p.lead {
  font-size: 1.25rem;
  color: var(--text-grey);
  max-width: 600px;
  margin-inline: auto;
  font-weight: 300;
}

p.sub-text {
  color: var(--text-grey);
  font-weight: 400;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Navigation --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  position: relative;
  z-index: 100;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text-white);
  text-decoration: none;
  z-index: 101;
  /* Above mobile menu overlay */
}

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

.nav-links a {
  color: var(--text-grey);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* Icon Base */
.nav-links a::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* 1. Main: Broken Torus */
.nav-links a[href="./"]::before,
.nav-links a[href="../"]::before,
.mobile-menu-overlay a[href="./"]::before,
.mobile-menu-overlay a[href="../"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='9' stroke-dasharray='40 16' transform='rotate(-45 12 12)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='9' stroke-dasharray='40 16' transform='rotate(-45 12 12)'/%3E%3C/svg%3E");
}

/* 2. Philosophy: Impossible Lattice */
.nav-links a[href*="philosophy"]::before,
.mobile-menu-overlay a[href*="philosophy"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2L2 7v10l10 5 10-5V7l-10-5zM12 12l10-5M12 12v10M12 12L2 7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2L2 7v10l10 5 10-5V7l-10-5zM12 12l10-5M12 12v10M12 12L2 7'/%3E%3C/svg%3E");
}

/* 3. Vision: Horizon Prism */
.nav-links a[href*="vision"]::before,
.mobile-menu-overlay a[href*="vision"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3v18M3 21h18L12 6zM2 15h20'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3v18M3 21h18L12 6zM2 15h20'/%3E%3C/svg%3E");
}

/* 4. Explore: Constellation */
.nav-links a[href*="explore"]::before,
.mobile-menu-overlay a[href*="explore"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='5' cy='5' r='1.5'/%3E%3Ccircle cx='19' cy='19' r='1.5'/%3E%3Ccircle cx='19' cy='5' r='1.5'/%3E%3Cpath d='M5 5l14 14M5 5l14 0'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='5' cy='5' r='1.5'/%3E%3Ccircle cx='19' cy='19' r='1.5'/%3E%3Ccircle cx='19' cy='5' r='1.5'/%3E%3Cpath d='M5 5l14 14M5 5l14 0'/%3E%3C/svg%3E");
}

/* 5. Signal/Unfolding: Frequency Anomaly */
.nav-links a[href*="signal"]::before,
.nav-links a[href*="unfolding"]::before,
.mobile-menu-overlay a[href*="signal"]::before,
.mobile-menu-overlay a[href*="unfolding"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 12c2 0 2-3 4-3s2 3 4 3 2-8 2-8 2 14 2 14 2-6 4-6 2 3 4 3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 12c2 0 2-3 4-3s2 3 4 3 2-8 2-8 2 14 2 14 2-6 4-6 2 3 4 3'/%3E%3C/svg%3E");
}

/* 6. Contact: Encrypted Node */
.nav-links a[href*="contact"]::before,
.mobile-menu-overlay a[href*="contact"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2l9 5v10l-9 5-9-5V7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 15v3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2l9 5v10l-9 5-9-5V7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 15v3'/%3E%3C/svg%3E");
}



/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
  padding: 10px;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-white);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  /* Align to right */
  padding-right: 2rem;
  /* Spacing from edge */
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-overlay a {
  font-size: 1.5rem;
  /* Smaller text */
  color: var(--text-white);
  text-decoration: none;
  margin: 0.5rem 0;
  /* Tighter list spacing */
  font-weight: 500;
  /* Slightly lighter weight */
  opacity: 0;
  transform: translateX(20px);
  /* Slide in from right */
  transition: all 0.3s ease;
  text-align: right;
  width: auto;
  /* Allow natural width */
}

.mobile-menu-overlay.active a {
  opacity: 1;
  transform: translateY(0);
}

/* Hamburger Animation */
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

  .mobile-toggle {
    display: block;
  }
}

/* --- Hero Section & The Ring --- */
.hero-section {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: var(--section-spacing);
}

.ring-container {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}

/* The glowing ring implementation */
.glowing-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid white;
  /* Using box-shadow to create the glow layers */
  box-shadow:
    0 0 20px 0px var(--accent-glow),
    inset 0 0 20px 0px var(--accent-glow),
    0 0 60px 10px rgba(255, 255, 255, 0.2);
  /* Adding a subtle breathing animation */
  animation: pulse 6s ease-in-out infinite alternate;
  transition: transform 0.1s ease-out;
  /* For parallax */
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 20px 0px var(--accent-glow), inset 0 0 20px 0px var(--accent-glow);
    opacity: 0.8;
    scale: 0.98;
  }

  100% {
    box-shadow: 0 0 40px 5px var(--accent-glow), inset 0 0 40px 5px var(--accent-glow);
    opacity: 1;
    scale: 1;
  }
}

/* --- Scroll Animations --- */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Feature Cards Grid --- */
.cards-section {
  padding-bottom: var(--section-spacing);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-card {
  background-color: var(--bg-card);
  padding: 3rem 2.5rem;
  border-radius: 24px;
  /* Subtle border for definition */
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Smooth transition for hover effects */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Hover enhancement for cards */
.feature-card:hover {
  transform: translateY(-8px);
  background-color: #161616;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}

/* --- Info Section --- */
.info-section {
  padding-bottom: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 4rem;
}

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

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

@media (max-width: 768px) {

  .align-left,
  .align-right {
    text-align: left;
    /* Reset to left on mobile for readability */
  }
}

/* --- CTA / Email Section --- */
.cta-section {
  padding-bottom: 6rem;
}

.email-container {
  background-color: var(--bg-input);
  padding: 0.75rem;
  border-radius: 100px;
  /* Pill shape */
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 700px;
  margin: 0 auto;
  /* Centered */
  transition: all 0.3s ease;
}

.email-container.success {
  background-color: rgba(0, 255, 0, 0.1);
  border-color: rgba(0, 255, 0, 0.3);
  justify-content: center;
}

.email-label {
  padding: 0 2rem;
  font-weight: 500;
  white-space: nowrap;
}

.input-wrapper {
  flex-grow: 1;
  display: flex;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  padding: 0.5rem;
  align-items: center;
}

input[type="email"] {
  background: none;
  border: none;
  color: var(--text-white);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  flex-grow: 1;
  font-family: var(--font-main);
  outline: none;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.submit-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  /* Magnetic feel simulation */
}

/* Mobile adjustments for email section */
@media (max-width: 768px) {
  .email-container {
    flex-direction: column;
    align-items: flex-start;
    background: none;
    border: none;
    padding: 0;
  }

  .email-label {
    padding: 0 0 1rem 0;
  }

  .input-wrapper {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    /* Ensure pill shape on mobile */
    padding: 0.5rem;
    /* Reduced from 0.75rem to match desktop balance */
  }

  .input-wrapper input[type="email"] {
    padding: 0.5rem 1rem;
    /* Adjust input padding for mobile */
    font-size: 16px;
    /* Prevent zoom on iOS */
  }
}

/* =========================================
   Page-Specific Identities
   ========================================= */

/* --- Philosophy: The Foundation (Architectural Grid) --- */
#page-philosophy {
  background-color: #050505;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100px 100px;
  background-position: center top;
}

#page-philosophy .hero-section {
  position: relative;
}

#page-philosophy .hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, transparent 30%, #050505 80%);
  pointer-events: none;
}

/* --- Vision: The Horizon (Fog & Light) --- */
#page-vision {
  background: #020202;
  overflow-x: hidden;
}

#page-vision .hero-section {
  background: linear-gradient(to bottom, #000000 0%, #111 100%);
  position: relative;
  overflow: hidden;
}

#page-vision .hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, #020202, transparent);
  pointer-events: none;
}

/* The Beam */
#page-vision .ring-container {
  display: none;
  /* Hide default ring */
}

#page-vision .hero-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100vh;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent 80%);
  box-shadow: 0 0 50px 5px rgba(255, 255, 255, 0.1);
  opacity: 0.6;
  animation: beam-pulse 8s infinite ease-in-out;
}

@keyframes beam-pulse {

  0%,
  100% {
    opacity: 0.4;
    height: 80vh;
  }

  50% {
    opacity: 0.7;
    height: 90vh;
  }
}

/* --- Explore: The Noise Field (Particles) --- */
#page-explore {
  background: #080808;
}

#noise-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

#page-explore .ring-container {
  display: none;
}

opacity: 1;
transform: scale(1);
}

100% {
  opacity: 0;
  transform: scale(3);
}
}

/* --- Contact: The Gateway (Terminal) --- */
#page-contact {
  background: #0a0a0a;
}

#page-contact .hero-section h1,
#page-contact .hero-section p,
#page-contact input,
#page-contact button {
  font-family: 'Courier New', Courier, monospace;
}

#page-contact .input-wrapper {
  border: 1px solid #333;
  background: #000;
}

#page-contact input {
  color: #0f0;
}

#page-contact input::placeholder {
  color: rgba(0, 255, 0, 0.3);
}

/* --- Explore: Orbiting Icons --- */
.explore-title-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.explore-title-wrapper h1 {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.orbit-path {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  /* Adjust diameter */
  height: 200px;
  border-radius: 50%;
  /* border: 1px dashed rgba(255, 255, 255, 0.1); Optional: show path */
  pointer-events: none;
  animation: orbit-rotate 10s linear infinite;
}

.orbiter {
  position: absolute;
  width: 24px;
  height: 24px;
  color: var(--text-white);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.orbiter svg {
  width: 100%;
  height: 100%;
}

.orbiter.plane {
  top: -12px;
  /* Half of height to center on line */
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
  /* Adjust orientation */
}

.orbiter.earth {
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
}

@keyframes orbit-rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

#page-contact .submit-btn {
  color: var(--text-white);
}

#page-contact .submit-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.terminal-log {
  font-family: 'Courier New', Courier, monospace;
  color: var(--text-grey);
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: left;
  min-height: 60px;
}

.log-entry {
  opacity: 0;
  animation: type-in 0.3s forwards;
}

@keyframes type-in {
  to {
    opacity: 1;
  }
}

/* --- Footer --- */
/* --- Footer --- */
footer {
  text-align: center;
  padding: 4rem 0;
  font-size: 0.8rem;
  line-height: 1.6;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;

  /* Gradient Text Effect */
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.8;
  /* Adjusted since text is already dim via gradient */
}

footer p {
  margin: 0;
}

/* --- Refined Email Capture --- */
/* --- Refined Email Capture --- */
.email-container {
  background-color: var(--bg-input);
  padding: 0.75rem;
  border-radius: 100px;
  /* Pill shape initially */
  display: flex;
  flex-wrap: wrap;
  /* Allow wrapping */
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 700px;
  margin: 0 auto;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.email-container.expanded {
  border-radius: 24px;
  /* Card shape when expanded */
  padding: 1.5rem;
  background-color: rgba(20, 20, 20, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.email-label {
  padding: 0 1rem 0 0;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-white);
  font-size: 0.9rem;
}

.input-wrapper {
  flex-grow: 1;
  display: flex;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  padding: 0.5rem;
  align-items: center;
}

input[type="email"] {
  background: none;
  border: none;
  color: var(--text-white);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  flex-grow: 1;
  font-family: var(--font-main);
  outline: none;
}

/* --- Progressive Form Styles --- */
.hidden-fields {
  flex-basis: 100%;
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.6s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0;
}

.hidden-fields.reveal {
  max-height: 300px;
  opacity: 1;
  margin-top: 1.5rem;
}

.secondary-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.secondary-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.message-box {
  min-height: 100px;
  resize: vertical;
}

.final-submit-btn {
  width: 100%;
  padding: 0.8rem;
  background: var(--text-white);
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.final-submit-btn:hover {
  background: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Robust Placeholder Styling */
input::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  color: var(--text-grey) !important;
  opacity: 0.7 !important;
}

input::-moz-placeholder {
  /* Firefox 19+ */
  color: var(--text-grey) !important;
  opacity: 0.7 !important;
}

input:-ms-input-placeholder {
  /* IE 10+ */
  color: var(--text-grey) !important;
  opacity: 0.7 !important;
}

input:-moz-placeholder {
  /* Firefox 18- */
  color: var(--text-grey) !important;
  opacity: 0.7 !important;
}

input::placeholder {
  color: var(--text-grey) !important;
  opacity: 0.7 !important;
}

.submit-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--text-white);
  color: #000;
  transform: translateX(2px);
}


/* =========================================
   Distinct Hero Graphics
   ========================================= */

/* --- Philosophy: The Tesseract (Hypercube) --- */
/* --- Philosophy: The Tesseract (Hypercube) --- */
.tesseract-container {
  perspective: 1000px;
  width: 200px;
  height: 200px;
  margin: 0 auto 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tesseract {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: tesseract-spin 20s linear infinite;
}

.cube {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
}

.cube.outer {
  width: 160px;
  height: 160px;
}

.cube.inner {
  width: 80px;
  height: 80px;
  animation: inner-spin 10s linear infinite reverse;
}

.cube .face {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Outer Cube Faces */
.cube.outer .face.front {
  transform: translateZ(80px);
}

.cube.outer .face.back {
  transform: rotateY(180deg) translateZ(80px);
}

.cube.outer .face.right {
  transform: rotateY(90deg) translateZ(80px);
}

.cube.outer .face.left {
  transform: rotateY(-90deg) translateZ(80px);
}

.cube.outer .face.top {
  transform: rotateX(90deg) translateZ(80px);
}

.cube.outer .face.bottom {
  transform: rotateX(-90deg) translateZ(80px);
}

/* Inner Cube Faces */
.cube.inner .face {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.cube.inner .face.front {
  transform: translateZ(40px);
}

.cube.inner .face.back {
  transform: rotateY(180deg) translateZ(40px);
}

.cube.inner .face.right {
  transform: rotateY(90deg) translateZ(40px);
}

.cube.inner .face.left {
  transform: rotateY(-90deg) translateZ(40px);
}

.cube.inner .face.top {
  transform: rotateX(90deg) translateZ(40px);
}

.cube.inner .face.bottom {
  transform: rotateX(-90deg) translateZ(40px);
}

@keyframes tesseract-spin {
  0% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }

  100% {
    transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}

@keyframes inner-spin {
  0% {
    transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotateX(360deg) rotateY(-360deg);
  }
}

/* --- Contact: The Cipher Keyhole --- */
.keyhole-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.keyhole-shape {
  position: relative;
  z-index: 10;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
  animation: keyhole-pulse 4s ease-in-out infinite alternate;
}

.keyhole-top {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  margin: 0 auto -10px;
  /* Overlap */
  position: relative;
  z-index: 2;
}

.keyhole-bottom {
  width: 26px;
  height: 40px;
  background: #fff;
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
  margin: 0 auto;
}

.keyhole-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: glow-pulse 3s ease-in-out infinite alternate;
}

.keyhole-rings {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.keyhole-rings .ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-left-color: rgba(255, 255, 255, 0.5);
  border-right-color: rgba(255, 255, 255, 0.5);
}

.keyhole-rings .r1 {
  width: 140px;
  height: 140px;
  animation: spin-ring 10s linear infinite;
}

.keyhole-rings .r2 {
  width: 170px;
  height: 170px;
  animation: spin-ring 15s linear infinite reverse;
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.keyhole-rings .r3 {
  width: 200px;
  height: 200px;
  animation: spin-ring 20s linear infinite;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

@keyframes keyhole-pulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
  }

  100% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.6));
  }
}

@keyframes glow-pulse {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.8);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@keyframes spin-ring {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* --- Unfolding: The Quantum Lotus --- */
.lotus-container {
  perspective: 1000px;
  width: 200px;
  height: 200px;
  margin: 0 auto 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lotus {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: lotus-rotate 20s linear infinite;
}

.petal-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.petal {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 40px;
  height: 80px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50% 50% 0 0;
  transform-origin: bottom center;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  margin-left: -20px;
  /* Center horizontally */
}

/* Layer 1 (Inner) */
.layer-1 .petal {
  height: 60px;
  background: rgba(255, 200, 255, 0.1);
  border-color: rgba(255, 200, 255, 0.3);
}

.layer-1 .p1 {
  transform: rotateY(0deg);
  animation: bloom-1-p1 6s ease-in-out infinite alternate;
}

.layer-1 .p2 {
  transform: rotateY(90deg);
  animation: bloom-1-p2 6s ease-in-out infinite alternate;
}

.layer-1 .p3 {
  transform: rotateY(180deg);
  animation: bloom-1-p3 6s ease-in-out infinite alternate;
}

.layer-1 .p4 {
  transform: rotateY(270deg);
  animation: bloom-1-p4 6s ease-in-out infinite alternate;
}

@keyframes bloom-1-p1 {
  from {
    transform: rotateY(0deg) rotateX(10deg);
  }

  to {
    transform: rotateY(0deg) rotateX(60deg);
  }
}

@keyframes bloom-1-p2 {
  from {
    transform: rotateY(90deg) rotateX(10deg);
  }

  to {
    transform: rotateY(90deg) rotateX(60deg);
  }
}

@keyframes bloom-1-p3 {
  from {
    transform: rotateY(180deg) rotateX(10deg);
  }

  to {
    transform: rotateY(180deg) rotateX(60deg);
  }
}

@keyframes bloom-1-p4 {
  from {
    transform: rotateY(270deg) rotateX(10deg);
  }

  to {
    transform: rotateY(270deg) rotateX(60deg);
  }
}

/* Layer 2 (Middle) */
.layer-2 .petal {
  height: 80px;
}

.layer-2 {
  transform: rotateY(45deg);
}

.layer-2 .p1 {
  transform: rotateY(0deg);
  animation: bloom-2-p1 6s ease-in-out infinite alternate;
}

.layer-2 .p2 {
  transform: rotateY(90deg);
  animation: bloom-2-p2 6s ease-in-out infinite alternate;
}

.layer-2 .p3 {
  transform: rotateY(180deg);
  animation: bloom-2-p3 6s ease-in-out infinite alternate;
}

.layer-2 .p4 {
  transform: rotateY(270deg);
  animation: bloom-2-p4 6s ease-in-out infinite alternate;
}

@keyframes bloom-2-p1 {
  from {
    transform: rotateY(0deg) rotateX(20deg);
  }

  to {
    transform: rotateY(0deg) rotateX(70deg);
  }
}

@keyframes bloom-2-p2 {
  from {
    transform: rotateY(90deg) rotateX(20deg);
  }

  to {
    transform: rotateY(90deg) rotateX(70deg);
  }
}

@keyframes bloom-2-p3 {
  from {
    transform: rotateY(180deg) rotateX(20deg);
  }

  to {
    transform: rotateY(180deg) rotateX(70deg);
  }
}

@keyframes bloom-2-p4 {
  from {
    transform: rotateY(270deg) rotateX(20deg);
  }

  to {
    transform: rotateY(270deg) rotateX(70deg);
  }
}

/* Layer 3 (Outer) */
.layer-3 .petal {
  height: 100px;
  opacity: 0.7;
}

.layer-3 .p1 {
  transform: rotateY(0deg);
  animation: bloom-3-p1 6s ease-in-out infinite alternate;
}

.layer-3 .p2 {
  transform: rotateY(90deg);
  animation: bloom-3-p2 6s ease-in-out infinite alternate;
}

.layer-3 .p3 {
  transform: rotateY(180deg);
  animation: bloom-3-p3 6s ease-in-out infinite alternate;
}

.layer-3 .p4 {
  transform: rotateY(270deg);
  animation: bloom-3-p4 6s ease-in-out infinite alternate;
}

@keyframes bloom-3-p1 {
  from {
    transform: rotateY(0deg) rotateX(30deg);
  }

  to {
    transform: rotateY(0deg) rotateX(80deg);
  }
}

@keyframes bloom-3-p2 {
  from {
    transform: rotateY(90deg) rotateX(30deg);
  }

  to {
    transform: rotateY(90deg) rotateX(80deg);
  }
}

@keyframes bloom-3-p3 {
  from {
    transform: rotateY(180deg) rotateX(30deg);
  }

  to {
    transform: rotateY(180deg) rotateX(80deg);
  }
}

@keyframes bloom-3-p4 {
  from {
    transform: rotateY(270deg) rotateX(30deg);
  }

  to {
    transform: rotateY(270deg) rotateX(80deg);
  }
}

.lotus-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px #fff;
  animation: pulse 3s ease-in-out infinite alternate;
}

@keyframes lotus-rotate {
  to {
    transform: rotateY(360deg);
  }
}

/* --- Vision: Lens Array (The Piercing Sight) --- */
.lens-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 600px;
  /* Depth for the lenses */
}

.lens {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 60%, transparent 100%);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(2px);
  /* Glass effect */
}

.lens-1 {
  width: 200px;
  height: 200px;
  transform: translateZ(0px);
  opacity: 0.3;
}

.lens-2 {
  width: 150px;
  height: 150px;
  transform: translateZ(40px);
  opacity: 0.5;
}

.lens-3 {
  width: 100px;
  height: 100px;
  transform: translateZ(80px);
  opacity: 0.7;
}

.lens-beam {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #fff 20%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  box-shadow: 0 0 40px 10px rgba(255, 255, 255, 0.8);
  opacity: 0.8;
  animation: beam-intensify 4s infinite ease-in-out;
  z-index: 10;
  /* In front of lenses */
}

/* The "Beam" shooting out is simulated by the glow expanding */
@keyframes beam-intensify {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
    box-shadow: 0 0 30px 5px rgba(255, 255, 255, 0.5);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.5);
    /* "Approaching" */
    opacity: 1;
    box-shadow: 0 0 60px 20px rgba(255, 255, 255, 0.9);
    /* Intense flare */
  }
}

/* --- Signal: Event Horizon Ripple --- */
.ripple-container {
  perspective: 600px;
  width: 300px;
  height: 200px;
  margin: 0 auto 4rem;
  overflow: hidden;
}

.ripple-plane {
  width: 100%;
  height: 100%;
  transform: rotateX(60deg);
  transform-style: preserve-3d;
  position: relative;
}

.ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  opacity: 0;
  width: 0;
  height: 0;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.r-1 {
  animation: ripple-expand 3s infinite ease-out 0s;
}

.r-2 {
  animation: ripple-expand 3s infinite ease-out 1s;
}

.r-3 {
  animation: ripple-expand 3s infinite ease-out 2s;
}

@keyframes ripple-expand {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
    border-width: 2px;
  }

  100% {
    width: 400px;
    height: 400px;
    opacity: 0;
    border-width: 0;
  }
}

/* --- Contact: Cipher Gate (Enhanced) --- */
.cipher-container {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cipher-ring {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Outer Heavy Ring */
.ring-1 {
  width: 260px;
  height: 260px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid rgba(255, 255, 255, 0.8);
  border-bottom: 2px solid rgba(255, 255, 255, 0.8);
  animation: cipher-spin 12s linear infinite;
}

/* Middle Dashed Ring */
.ring-2 {
  width: 200px;
  height: 200px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  animation: cipher-spin 8s linear infinite reverse;
}

/* Inner Detail Ring */
.ring-3 {
  width: 140px;
  height: 140px;
  border: 1px dotted rgba(255, 255, 255, 0.5);
  animation: cipher-spin 4s linear infinite;
}

/* Central Lock Mechanism */
.cipher-lock {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Crosshairs / Lock Bars */
.lock-bar {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px white;
}

.lock-bar.vertical {
  width: 2px;
  height: 100%;
  animation: lock-pulse 2s infinite ease-in-out;
}

.lock-bar.horizontal {
  width: 100%;
  height: 2px;
  animation: lock-pulse 2s infinite ease-in-out 1s;
}

/* The Keyhole Slot */
.keyhole-slot {
  position: absolute;
  width: 12px;
  height: 30px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5) inset, 0 0 10px rgba(255, 255, 255, 0.5);
  animation: keyhole-breathe 1.5s infinite alternate;
}

@keyframes cipher-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes lock-pulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes keyhole-breathe {
  from {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2) inset, 0 0 5px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
  }

  to {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8) inset, 0 0 15px rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 1);
  }
}

/* --- Explore: Nebula Spacer --- */
.nebula-spacer {
  /* Just keeps space for the canvas behind it */
  pointer-events: none;
}

/* --- Global Input Overrides --- */
input[type="email"]:focus,
input[type="email"]:active,
input[type="text"]:focus,
input[type="text"]:active,
.secondary-input:focus,
.secondary-input:active {
  color: var(--text-white) !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-text-fill-color: var(--text-white) !important;
}

/* Force Autofill & Validation styles to match theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
input:valid,
input:invalid {
  /* Use a transparent shadow or match the background exactly */
  -webkit-box-shadow: 0 0 0 30px #000 inset !important;
  -webkit-text-fill-color: var(--text-white) !important;
  color: var(--text-white) !important;
  background-color: transparent !important;
  background-clip: content-box !important;
  transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
  caret-color: var(--text-white);
  color-scheme: dark;
  border-radius: 100px;
  /* Ensure input itself is rounded */
}

input[type="email"],
input[type="text"] {
  border-radius: 100px;
  /* Match wrapper */
}