/* ==========================================================================
   JarMind — Autonomous Agentic Intelligence | Stylesheet
   ========================================================================== */

:root {
  --bg-primary: #060913;
  --bg-surface: rgba(13, 20, 38, 0.7);
  --bg-surface-elevated: rgba(22, 33, 62, 0.75);
  --bg-surface-glass: rgba(15, 23, 42, 0.65);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(0, 240, 255, 0.35);
  --border-glow: rgba(168, 85, 247, 0.4);

  --accent-cyan: #00f0ff;
  --accent-cyan-dim: #00bcd4;
  --accent-violet: #a855f7;
  --accent-pink: #ec4899;
  --accent-emerald: #10b981;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-glow-cyan: 0 0 45px -5px rgba(0, 240, 255, 0.35);
  --shadow-glow-violet: 0 0 45px -5px rgba(168, 85, 247, 0.35);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Canvas & Ambient Backdrops */
#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-primary {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.28), transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.orb-secondary {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22), transparent 70%);
  bottom: 0%;
  left: 20%;
}

@keyframes floatOrb {
  0% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-45%, 40px) scale(1.1); }
  100% { transform: translate(-55%, -30px) scale(0.95); }
}

/* Page Layout */
.page-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid var(--border-bright);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.core-pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--accent-cyan);
  opacity: 0.8;
  animation: corePing 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes corePing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.domain-tld {
  color: var(--accent-cyan);
  font-weight: 600;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #34d399;
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0 3rem;
}

/* Trust / Engineering Badge */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.trust-icon {
  font-size: 0.95rem;
}

.trust-dot {
  color: var(--text-muted);
}

.trust-highlight {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
}

/* Teaser Badge Pill */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.08), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.12);
  backdrop-filter: blur(10px);
}

.pill-spark {
  color: var(--accent-violet);
  animation: sparkTwinkle 2s ease-in-out infinite;
}

@keyframes sparkTwinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  max-width: 860px;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #00f0ff 0%, #a855f7 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtext {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.65;
  margin-bottom: 2.75rem;
  font-weight: 400;
}

.hero-subtext strong {
  color: #fff;
  font-weight: 600;
}

/* Hero Centerpiece Visual */
.hero-visual-wrapper {
  perspective: 1200px;
  width: 100%;
  max-width: 580px;
  margin: 0 auto 3.5rem;
}

.visual-tilt-card {
  position: relative;
  border-radius: var(--radius-lg);
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

.card-glow-halo {
  position: absolute;
  inset: -12px;
  border-radius: calc(var(--radius-lg) + 12px);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.4), rgba(168, 85, 247, 0.4));
  filter: blur(28px);
  opacity: 0.65;
  z-index: 0;
  transition: opacity 0.4s ease;
}

.visual-tilt-card:hover .card-glow-halo {
  opacity: 0.9;
}

.visual-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #090e1a;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.video-crossfade-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #090e1a;
}

.hero-image,
.hero-video,
.hero-media {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-video-a,
.hero-video-b {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.18s ease-out;
}

.hero-video-a {
  opacity: 1;
  z-index: 2;
}

.hero-video-b {
  opacity: 0;
  z-index: 1;
}

.hero-image-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.visual-tilt-card:hover .hero-image,
.visual-tilt-card:hover .hero-video,
.visual-tilt-card:hover .hero-media {
  transform: scale(1.03);
}

/* Holographic HUD Overlays */
.hud-tag {
  position: absolute;
  background: rgba(6, 11, 25, 0.82);
  border: 1px solid rgba(0, 240, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  text-align: left;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.hud-top-left {
  top: 18px;
  left: 18px;
}

.hud-top-right {
  top: 18px;
  right: 18px;
}

.hud-bottom-center {
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border-color: rgba(16, 185, 129, 0.4);
}

.hud-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.hud-val {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.hud-indicator {
  width: 6px;
  height: 6px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: dotPulse 1.5s infinite;
}

.hud-status {
  font-size: 0.68rem;
  color: #a7f3d0;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Action / Waitlist Card */
.action-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-violet), transparent);
}

.card-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(135deg, #00f0ff, #7c3aed);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.card-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* Form Styles */
.waitlist-form {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  flex-direction: column;
}

@media (min-width: 540px) {
  .waitlist-form {
    flex-direction: row;
  }
}

.input-wrapper {
  position: relative;
  flex: 1;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.email-input {
  width: 100%;
  height: 52px;
  padding: 0.75rem 1rem 0.75rem 2.85rem;
  background: rgba(6, 11, 25, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
}

.email-input::placeholder {
  color: var(--text-muted);
}

.email-input:focus {
  border-color: var(--accent-cyan);
  background: rgba(6, 11, 25, 0.95);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.18);
}

.submit-btn {
  height: 52px;
  padding: 0 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #00f0ff 0%, #7000ff 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 240, 255, 0.45);
  filter: brightness(1.1);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Feedback message */
.form-feedback {
  min-height: 24px;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.form-feedback.success {
  color: #34d399;
  font-weight: 500;
}

.form-feedback.error {
  color: #f87171;
}

/* Capability Pills */
.capability-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.cap-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 3rem 1rem 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 2rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

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

.copyright {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.copyright strong {
  color: var(--text-secondary);
}

.subtle-tribute {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.45);
  letter-spacing: 0.05em;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .page-wrapper {
    padding: 1rem 1rem 2rem;
  }

  .site-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .hud-tag {
    transform: scale(0.85);
  }

  .hud-top-left { top: 8px; left: 8px; }
  .hud-top-right { top: 8px; right: 8px; }
  .hud-bottom-center { bottom: 8px; }

  .action-card {
    padding: 2rem 1.25rem;
  }
}
