/* Base (minimal) */
:root { --bg: 0 0% 0%; --fg: 0 0% 100%; --muted: 0 0% 100% / 0.65; }
* { box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }
body { margin: 0; padding: 0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji'; color: hsl(var(--fg)); background: #000; min-height: 100vh; }

/* Disable radial glows */
.bg::before, .bg::after { display: none; }

/* Hide background video */
.bg-video { display: none; }

/* White Dot Pattern Background - Full Coverage */
.dot-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  pointer-events: none;
  z-index: 1;
}

.center { width: min(720px, 92vw); max-width: 100vw; text-align: center; padding: 200px 16px 20px 16px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }

/* Jarvis Title Block - Exact input field style */
.jarvis-title-block {
  background: rgba(128, 128, 128, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  padding: 12px 20px;
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 85vw);
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
}

.jarvis-title-block::before {
  content: '+';
  color: white;
  font-size: 22px;
  font-weight: 300;
  opacity: 0.9;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.jarvis-title-block:hover::before {
  transform: rotate(90deg);
}

.jarvis-title-block::after {
  content: '';
  width: 10px;
  height: 15px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(2, 2px);
  grid-template-rows: repeat(3, 2px);
  gap: 2px;
  opacity: 0.7;
}

/* Create the 6 dots using radial gradients */
.jarvis-title-block::after {
  background: 
    radial-gradient(circle at center, white 60%, transparent 60%) 0 1px / 3px 3px no-repeat,
    radial-gradient(circle at center, white 60%, transparent 60%) 5px 1px / 3px 3px no-repeat,
    radial-gradient(circle at center, white 60%, transparent 60%) 0 6px / 3px 3px no-repeat,
    radial-gradient(circle at center, white 60%, transparent 60%) 5px 6px / 3px 3px no-repeat,
    radial-gradient(circle at center, white 60%, transparent 60%) 0 11px / 3px 3px no-repeat,
    radial-gradient(circle at center, white 60%, transparent 60%) 5px 11px / 3px 3px no-repeat;
}

.title { 
  font-size: clamp(16px, 3.5vw, 20px); 
  letter-spacing: -0.02em; 
  margin: 0; 
  font-weight: 400; 
  flex: 1;
  text-align: center;
  color: white;
}

/* Menu Dropdown */
.menu-dropdown {
  position: fixed;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(128, 128, 128, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 8px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.menu-dropdown.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.menu-item {
  color: white;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.2s ease;
  text-align: center;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}
.subtitle { color: hsl(var(--muted)); margin: 0 0 20px; font-size: clamp(16px, 2.2vw, 18px); }

/* Minimal form */
.signup { width: min(360px, 92vw); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 0; }
.signup input { 
  width: 100%; 
  padding: 12px 16px; 
  border-radius: 20px; 
  border: 1px solid rgba(51, 51, 51, 0.8); 
  background: rgba(17, 17, 17, 0.8); 
  backdrop-filter: blur(20px);
  color: #fff; 
  outline: none; 
  font-size: 14px; 
  transition: border-color 0.2s ease;
}
.signup input:focus {
  border-color: rgba(255, 255, 255, 0.2);
}
.signup input::placeholder { color: #888; }
.primary-cta { 
  padding: 12px 20px; 
  border-radius: 20px; 
  border: none; 
  background: linear-gradient(45deg, #ffffff, #f8f8f8, #ffffff);
  background-size: 200% 200%;
  color: #000; 
  font-weight: 600; 
  letter-spacing: 0.02em; 
  cursor: pointer; 
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.primary-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.primary-cta:hover::before {
  left: 100%;
}

.primary-cta:hover {
  background: linear-gradient(45deg, #f8f8f8, #ffffff, #f8f8f8);
  background-size: 200% 200%;
  animation: shimmer 2s ease-in-out infinite;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.primary-cta:active { 
  transform: translateY(0);
  opacity: 0.9;
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.form-hint { grid-column: 1 / -1; color: hsl(var(--muted)); font-size: 12px; margin-top: -2px; }
.form-feedback { grid-column: 1 / -1; min-height: 20px; font-size: 14px; }

.micro { 
  color: hsl(var(--muted)); 
  font-size: 12px; 
  text-align: center; 
  margin: 40px auto 0 auto; 
  padding: 20px 16px;
}

.made-by {
  color: hsl(var(--muted));
  font-size: 11px;
  text-align: center;
  margin: 0 auto;
  padding: 0 16px 40px 16px;
}

.made-by a {
  color: hsl(var(--muted));
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.made-by a:hover {
  opacity: 1;
}

.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.tagline {
  color: white;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 600;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.powered-by-tagline {
  color: white;
  font-size: 16px;
  margin: 0 0 20px 0;
  opacity: 0.7;
}

.ai-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0 0 40px 0;
}

.ai-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.ai-logo:hover {
  opacity: 1;
}

.powered-by {
  color: white;
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 0;
  opacity: 0.8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
}

.demo-video {
  width: min(600px, 90vw);
  height: auto;
  border-radius: 12px;
  margin: 0;
  display: block;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.5);
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .center {
    padding: 20px 16px;
    width: min(90vw, 400px);
  }
  
  .jarvis-title-block {
    padding: 12px 18px;
    top: 30px;
    width: min(85vw, 380px);
  }
  
  .jarvis-title-block::before {
    font-size: 24px;
  }
  
  .jarvis-title-block::after {
    width: 10px;
    height: 15px;
  }
  
  .title {
    font-size: clamp(17px, 4vw, 19px);
  }
  
  .signup {
    width: 100%;
    gap: 8px;
  }
  
  .signup input {
    padding: 14px 18px;
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 22px;
  }
  
  .primary-cta {
    padding: 14px 22px;
    font-size: 15px;
    border-radius: 22px;
  }
  
  .powered-by {
    font-size: 14px;
    margin-top: 16px;
  }
  
  .demo-video {
    width: min(90vw, 500px);
    margin: 0;
  }
  
  .micro {
    font-size: 11px;
    padding: 20px 16px;
  }
  
  .made-by {
    font-size: 10px;
    padding: 0 16px 40px 16px;
  }
}

@media (max-width: 480px) {
  .jarvis-title-block {
    padding: 10px 16px;
    top: 20px;
    width: min(90vw, 320px);
  }
  
  .jarvis-title-block::before {
    font-size: 22px;
  }
  
  .jarvis-title-block::after {
    width: 10px;
    height: 15px;
  }
  
  .title {
    font-size: clamp(17px, 4vw, 19px);
  }
  
  .signup {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .signup input {
    padding: 15px 18px;
    font-size: 16px;
    border-radius: 24px;
  }
  
  .primary-cta {
    width: 100%;
    padding: 15px 20px;
    font-size: 15px;
    border-radius: 24px;
  }
  
  .demo-video {
    margin: 0;
  }
}

/* Features Page */
.features-page {
  padding-top: 150px;
  padding-bottom: 60px;
}

.page-title {
  color: white;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  margin: 0 0 48px 0;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 0 0 60px 0;
  width: 100%;
  max-width: 900px;
}

.feature-card {
  background: rgba(128, 128, 128, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(128, 128, 128, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-title {
  color: white;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.feature-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.cta-section {
  text-align: center;
  margin-top: 40px;
}

.back-home-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 20px;
  background: linear-gradient(45deg, #ffffff, #f8f8f8, #ffffff);
  background-size: 200% 200%;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.back-home-btn:hover {
  background: linear-gradient(45deg, #f8f8f8, #ffffff, #f8f8f8);
  animation: shimmer 2s ease-in-out infinite;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .features-page {
    padding-top: 120px;
  }
  
  .page-title {
    font-size: clamp(32px, 8vw, 42px);
    margin-bottom: 32px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .feature-card {
    padding: 24px 20px;
  }
}

/* OAuth Callback Styles */
.oauth-container {
  background: rgba(128, 128, 128, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
}

.loading-spinner {
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #00E5FF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.success-message, .error-message {
  text-align: center;
}

.success-message h2 {
  color: #6de4a6;
  margin-bottom: 16px;
  font-size: 1.5rem;
  font-weight: 600;
}

.error-message h2 {
  color: #ff7a7a;
  margin-bottom: 16px;
  font-size: 1.5rem;
  font-weight: 600;
}

.success-message p, .error-message p {
  color: hsl(var(--muted));
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Google OAuth Login Styles */
.oauth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: hsl(var(--muted));
  font-size: 0.875rem;
}

.oauth-divider::before,
.oauth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.oauth-divider span {
  padding: 0 16px;
}

.google-login-btn {
  width: min(360px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.google-login-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

/* OAuth Callback Additional Styles */
.redirect-notice {
  font-size: 0.875rem;
  color: hsl(var(--muted));
  margin-bottom: 20px;
  font-style: italic;
}

.app-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.secondary-cta {
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.secondary-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .app-links {
    flex-direction: column;
    align-items: center;
  }
  
  .secondary-cta {
    width: 100%;
    max-width: 200px;
  }
}


