/* ==========================================================================
   el7Agent - Modern Cybernetic Design System
   Theme: Graphite Backdrop + Fluorescent Green Gradients + Royal Purple Accents
   ========================================================================== */

:root {
  /* Graphite Base Palette */
  --bg-darkest: #07090e;
  --bg-graphite-950: #0a0d14;
  --bg-graphite-900: #0f131c;
  --bg-graphite-850: #141a26;
  --bg-graphite-800: #1a2232;
  --bg-graphite-700: #222c3f;
  --bg-graphite-card: rgba(15, 19, 28, 0.85);

  /* Vivid Royal Purple Palette */
  --purple-royal-dark: #3b0764;
  --purple-royal: #6d28d9;
  --purple-royal-bright: #7c3aed;
  --purple-royal-light: #8b5cf6;
  --purple-royal-glow: rgba(124, 58, 237, 0.45);
  --purple-royal-border: rgba(139, 92, 246, 0.35);
  --purple-royal-glass: rgba(109, 40, 217, 0.12);

  /* Fluorescent Green Neon Palette */
  --fluor-green: #00ff87;
  --fluor-green-bright: #10b981;
  --fluor-green-light: #6ee7b7;
  --fluor-green-glow: rgba(0, 255, 135, 0.5);
  --fluor-green-glow-subtle: rgba(0, 255, 135, 0.15);
  --fluor-green-border: rgba(0, 255, 135, 0.35);

  /* Alert / Accent Palette */
  --neon-cyan: #00e5ff;
  --neon-cyan-glow: rgba(0, 229, 255, 0.45);
  --neon-red: #ff3366;
  --neon-red-glow: rgba(255, 51, 102, 0.5);

  /* Typography Colors */
  --text-white: #ffffff;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Glassmorphism & UI Accents */
  --glass-bg: rgba(15, 19, 28, 0.78);
  --glass-border: rgba(139, 92, 246, 0.22);
  --glass-border-focus: rgba(0, 255, 135, 0.65);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-darkest);
  color: var(--text-main);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Background Layers (Graphite + Fluorescent Green Mesh & Grid)
   ========================================================================== */
.ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.background-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: 
    /* Fluorescent green ambient energy blooms */
    radial-gradient(ellipse 65% 45% at 50% 15%, rgba(0, 255, 135, 0.14) 0%, transparent 65%),
    radial-gradient(circle 500px at 85% 75%, rgba(0, 255, 135, 0.1) 0%, transparent 60%),
    /* Royal purple deep glow */
    radial-gradient(circle 600px at 15% 40%, rgba(109, 40, 217, 0.22) 0%, transparent 60%),
    radial-gradient(circle 550px at 80% 20%, rgba(124, 58, 237, 0.18) 0%, transparent 55%),
    /* Deep graphite base gradient */
    linear-gradient(180deg, #07090e 0%, #0d121b 45%, #0f1420 70%, #07090e 100%);
}

.cyber-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 255, 135, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.035) 1px, transparent 1px);
  background-size: 55px 55px;
  z-index: 1;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 40%, black 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 35%, transparent 85%);
}

/* ==========================================================================
   Page Container & Layout
   ========================================================================== */
.app-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.2rem 2.5rem 1.8rem 2.5rem;
}

/* ==========================================================================
   Header & Brand
   ========================================================================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.brand-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple-royal-bright), var(--purple-royal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px var(--purple-royal-glow), inset 0 0 12px rgba(255, 255, 255, 0.25);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-icon-box::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg-graphite-900);
  border-radius: 11px;
  z-index: 1;
}

.brand-icon-box svg {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--fluor-green);
  stroke-width: 2.3;
  filter: drop-shadow(0 0 8px var(--fluor-green-glow));
}

.brand-name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
}

.brand-name span.prefix {
  color: var(--text-white);
}

.brand-name span.highlight {
  background: linear-gradient(135deg, var(--purple-royal-light) 0%, var(--fluor-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 2px;
  filter: drop-shadow(0 0 14px rgba(0, 255, 135, 0.25));
}

/* ==========================================================================
   Main Hero Section
   ========================================================================== */
main {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  margin: auto 0;
  padding: 1.5rem 0 2.5rem 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* Status Development Badge */
.dev-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  width: fit-content;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  background: rgba(30, 18, 56, 0.85);
  border: 1px solid var(--purple-royal-border);
  box-shadow: 0 0 25px rgba(109, 40, 217, 0.28), inset 0 0 14px rgba(0, 255, 135, 0.08);
  backdrop-filter: blur(14px);
}

.dev-pulse-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.dev-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--fluor-green);
  opacity: 0.35;
  animation: ripple 2s infinite ease-out;
}

.dev-pulse-core {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fluor-green);
  box-shadow: 0 0 12px var(--fluor-green);
}

@keyframes ripple {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.85); opacity: 0; }
}

.dev-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-white);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.dev-text span.highlight-green {
  color: var(--fluor-green);
  text-shadow: 0 0 10px var(--fluor-green-glow);
}

.dev-text span.divider {
  color: rgba(255, 255, 255, 0.25);
}

.dev-text span.highlight-blue {
  color: var(--purple-royal-light);
  text-shadow: 0 0 10px var(--purple-royal-glow);
}

/* Main Typography */
.main-title {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.title-gradient {
  background: linear-gradient(135deg, #ffffff 15%, var(--fluor-green) 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 20px rgba(0, 255, 135, 0.25));
}

.title-purple {
  background: linear-gradient(135deg, var(--purple-royal-light) 0%, #d8b4fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 20px var(--purple-royal-glow));
}

.explanation-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 640px;
}

.main-description {
  font-size: 1.2rem;
  color: #e2e8f0;
  line-height: 1.65;
  font-weight: 400;
}

.main-description strong {
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(90deg, #ffffff, var(--fluor-green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub-description {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 1.1rem;
  border-left: 3px solid var(--purple-royal-bright);
}

/* ==========================================================================
   Royal Purple Action / Early Access Form Fields
   ========================================================================== */
.action-zone {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.8rem;
  margin-bottom: 2rem;
}

.form-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(26, 18, 46, 0.85);
  border: 1.5px solid var(--purple-royal-border);
  border-radius: 16px;
  padding: 0.85rem;
  max-width: 530px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), 0 0 20px rgba(109, 40, 217, 0.22);
  backdrop-filter: blur(14px);
  transition: var(--transition-smooth);
}

.form-box:focus-within {
  border-color: var(--fluor-green);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 28px var(--fluor-green-glow), 0 0 10px rgba(124, 58, 237, 0.4);
}

.form-inputs-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  width: 100%;
}

.form-input {
  width: 100%;
  background: rgba(15, 19, 28, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--fluor-green);
  box-shadow: 0 0 12px var(--fluor-green-glow-subtle);
}

.form-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-input::placeholder {
  color: rgba(226, 232, 240, 0.45);
}

.btn-notify {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple-royal) 0%, var(--purple-royal-bright) 60%, #9333ea 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  outline: none;
  padding: 0.9rem 1.75rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px var(--purple-royal-glow);
  white-space: nowrap;
}

.btn-notify:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--purple-royal-bright) 0%, #9333ea 50%, var(--purple-royal) 100%);
  border-color: var(--fluor-green);
  box-shadow: 0 6px 26px var(--purple-royal-glow), 0 0 16px var(--fluor-green-glow);
}

.btn-notify:active:not(:disabled) {
  transform: translateY(0);
}

.btn-notify:disabled {
  opacity: 0.75;
  cursor: wait;
}

.btn-notify svg {
  width: 16px;
  height: 16px;
  stroke: var(--fluor-green);
  stroke-width: 2.5;
  transition: transform 0.2s ease;
}

.btn-notify:hover:not(:disabled) svg {
  transform: translateX(2px);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--fluor-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.feedback-msg {
  font-size: 0.88rem;
  font-family: 'JetBrains Mono', monospace;
  display: none;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.feedback-msg.success {
  color: var(--fluor-green);
  display: flex;
  animation: fadeIn 0.3s ease;
}

.feedback-msg.error {
  color: var(--neon-red);
  display: flex;
  animation: fadeIn 0.3s ease;
}

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

/* ==========================================================================
   Royal Purple Animated Robot Agent & Hologram Effects
   ========================================================================== */
.robot-stage-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.glow-disc-behind {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--purple-royal) 0%, rgba(0, 255, 135, 0.16) 45%, transparent 70%);
  filter: blur(55px);
  opacity: 0.85;
  animation: pulse-aura 6s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes pulse-aura {
  0% {
    transform: scale(0.9) rotate(0deg);
    filter: blur(45px);
  }
  100% {
    transform: scale(1.15) rotate(180deg);
    filter: blur(65px);
  }
}

.robot-svg-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 450px;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.85));
  animation: float-bot 4s ease-in-out infinite;
}

@keyframes float-bot {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-16px) rotate(1.2deg);
  }
}

/* Floating Status Pills */
.floating-pill {
  position: absolute;
  z-index: 4;
  background: rgba(22, 14, 38, 0.88);
  border: 1px solid var(--purple-royal-border);
  backdrop-filter: blur(14px);
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 15px rgba(109, 40, 217, 0.2);
  animation: float-pill 5s ease-in-out infinite;
}

.pill-1 {
  top: 8%;
  left: -6%;
  border-color: rgba(139, 92, 246, 0.55);
  animation-delay: 0s;
}

.pill-2 {
  bottom: 12%;
  right: -6%;
  border-color: rgba(0, 255, 135, 0.5);
  animation-delay: 1.5s;
}

.pill-3 {
  top: 14%;
  right: -2%;
  border-color: rgba(139, 92, 246, 0.55);
  animation-delay: 3s;
}

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

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pill-dot.purple {
  background: var(--purple-royal-light);
  box-shadow: 0 0 9px var(--purple-royal-light);
}
.pill-dot.blue {
  background: var(--neon-cyan);
  box-shadow: 0 0 9px var(--neon-cyan);
}
.pill-dot.green {
  background: var(--fluor-green);
  box-shadow: 0 0 9px var(--fluor-green);
}

/* Robot SVG Animation Components */
.bot-eye {
  animation: eye-glow 2.5s infinite alternate ease-in-out;
}
@keyframes eye-glow {
  0% { filter: drop-shadow(0 0 4px var(--fluor-green)) drop-shadow(0 0 10px var(--fluor-green)); opacity: 0.85; }
  100% { filter: drop-shadow(0 0 8px var(--fluor-green)) drop-shadow(0 0 20px var(--fluor-green)); opacity: 1; }
}

.bot-reactor {
  animation: reactor-spin 6s linear infinite, reactor-pulse 2s ease-in-out infinite alternate;
  transform-origin: 200px 318px;
}
@keyframes reactor-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes reactor-pulse {
  0% { filter: drop-shadow(0 0 6px var(--fluor-green)); }
  100% { filter: drop-shadow(0 0 20px var(--fluor-green)) drop-shadow(0 0 30px var(--fluor-green)); }
}

.antenna-wave {
  animation: wave-expand 2s infinite ease-out;
  transform-origin: 200px 65px;
}
.wave-2 {
  animation-delay: 0.6s;
}
@keyframes wave-expand {
  0% {
    r: 12;
    opacity: 0.85;
    stroke: var(--fluor-green);
  }
  100% {
    r: 34;
    opacity: 0;
    stroke: var(--purple-royal-light);
  }
}

.circuit-pulse {
  stroke-dasharray: 8 6;
  animation: dash-move 3s linear infinite;
}
@keyframes dash-move {
  to {
    stroke-dashoffset: -40;
  }
}

.orbit-ring {
  transform-origin: 200px 220px;
  animation: rotate-ring 14s linear infinite;
}
.orbit-ring-rev {
  transform-origin: 200px 220px;
  animation: rotate-ring 18s linear infinite reverse;
}
@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2.4rem;
  padding-bottom: 1.2rem;
  margin-top: auto;
  border-top: 1px solid rgba(139, 92, 246, 0.16);
  font-size: 0.88rem;
  color: var(--text-dim);
  text-align: center;
}

footer p {
  margin: 0;
  color: var(--text-muted);
}

footer strong {
  color: var(--text-white);
  font-weight: 600;
}

.footer-link {
  color: var(--text-white);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-block;
}

.footer-link:hover {
  color: var(--fluor-green);
  text-shadow: 0 0 12px var(--fluor-green-glow);
  transform: translateY(-1px);
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */
@media (max-width: 1024px) {
  .app-container {
    padding: 2rem 1.8rem;
  }

  main {
    grid-template-columns: 1fr;
    gap: 2.8rem;
    text-align: center;
    padding: 1rem 0;
  }

  .hero-content {
    align-items: center;
  }

  .sub-description {
    border-left: none;
    padding-left: 0;
  }

  .explanation-wrapper {
    align-items: center;
  }

  .action-zone {
    align-items: center;
    width: 100%;
  }

  .form-box {
    max-width: 520px;
    width: 100%;
  }

  .robot-stage-wrapper {
    min-height: 380px;
  }

  .glow-disc-behind {
    width: 320px;
    height: 320px;
  }

  .floating-pill {
    display: none;
  }
}

@media (max-width: 768px) {
  .app-container {
    padding: 1.4rem 1.1rem;
  }

  header {
    justify-content: center;
    padding-bottom: 1.2rem;
  }

  .brand-name {
    font-size: 1.55rem;
  }

  .brand-icon-box {
    width: 42px;
    height: 42px;
  }

  main {
    gap: 2.2rem;
    margin: 0.5rem 0;
  }

  .dev-banner {
    padding: 0.5rem 1rem;
  }

  .dev-text {
    font-size: 0.78rem;
  }

  .main-title {
    font-size: 2.15rem;
    line-height: 1.2;
  }

  .main-description {
    font-size: 1.05rem;
  }

  .sub-description {
    font-size: 0.95rem;
  }

  .form-box {
    background: rgba(26, 18, 46, 0.95);
    border: 1.5px solid var(--purple-royal-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(109, 40, 217, 0.3);
    padding: 0.75rem;
    gap: 0.65rem;
    border-radius: 14px;
  }

  .form-inputs-wrap {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    text-align: left;
    background: rgba(15, 19, 28, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 10px;
  }

  .form-input:focus {
    border-color: var(--fluor-green);
  }

  .btn-notify {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
  }

  .robot-stage-wrapper {
    min-height: 320px;
  }

  .robot-svg-container {
    max-width: 320px;
  }

  .glow-disc-behind {
    width: 260px;
    height: 260px;
  }

  footer {
    padding-top: 1.2rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 1.95rem;
  }

  .dev-text {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
  }

  .robot-svg-container {
    max-width: 280px;
  }
}
