/* SwiftTime Landing Page Styles */
/* Colors from Tailwind config - Koi.ai Inspired Theme */

:root {
  --background: #FFFBF5;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text: #2D3142;
  --muted: #64748B;
  --brand-500: #FF6B4A;
  --brand-600: #E85A3A;
  --accent-500: #FFD166;
  --accent-600: #E6B84D;
}

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

/* Three.js Canvas Background */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Top Navigation */
.top-nav {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--text);
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

/* Sign In Button - Star Glare Effect */
.btn-signin-star {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid transparent;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background-image: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
                    conic-gradient(from 0deg, var(--brand-500), var(--accent-500), #fff, var(--brand-500));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  animation: star-glare 3s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(255, 107, 74, 0.3),
              0 0 30px rgba(255, 209, 102, 0.2);
}

@keyframes star-glare {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 107, 74, 0.3),
                0 0 30px rgba(255, 209, 102, 0.2),
                0 0 5px rgba(255, 255, 255, 0.8);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 107, 74, 0.5),
                0 0 50px rgba(255, 209, 102, 0.4),
                0 0 10px rgba(255, 255, 255, 1);
    filter: brightness(1.05);
  }
}

.btn-signin-star:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 107, 74, 0.6),
              0 0 60px rgba(255, 209, 102, 0.4),
              0 0 15px rgba(255, 255, 255, 1);
}


body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 2.5rem;
}

/* Main Input Bar */
.input-bar-wrapper {
  width: 100%;
  max-width: 770px;
}

.input-bar {
  background: white;
  border-radius: 9999px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border: 2px solid #FFE4E1;
  transition: all 0.3s ease;
}

.input-bar:focus-within {
  border-color: var(--brand-500);
  box-shadow: 0 25px 50px -12px rgba(255, 107, 74, 0.2);
}

/* Glowing Mic Button with Rotating Stroke */
.mic-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF5F0 0%, #FFFFFF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  border: none;
  color: var(--brand-500);
  box-shadow:
    0 4px 15px rgba(255, 107, 53, 0.2),
    0 2px 6px rgba(255, 107, 53, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.mic-btn::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(
    from 0deg,
    #FF6B35 0deg,
    #FFD166 60deg,
    #FF9F1C 120deg,
    transparent 180deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: mic-rotate 3s linear infinite;
  opacity: 0.8;
}

.mic-btn:hover {
  transform: scale(1.05);
  box-shadow:
    0 6px 20px rgba(255, 107, 53, 0.35),
    0 3px 10px rgba(255, 107, 53, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.mic-btn:hover::before {
  opacity: 1;
}

.mic-btn:active {
  transform: scale(0.98);
}

@keyframes mic-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Input wrapper for positioning rotating examples */
.input-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
}

.input-field {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  padding: 0 1rem;
  height: 48px;
  color: var(--text);
  font-family: inherit;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.input-field::placeholder {
  color: transparent;
}

.input-field:focus {
  outline: none;
  z-index: 3;
}

/* Rotating Examples - appears as placeholder */
.rotating-examples {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  perspective: 500px;
}

.rotating-examples.hidden {
  opacity: 0;
  pointer-events: none;
}

.example-text {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 107, 74, 0.08);
  border: 1px solid rgba(255, 107, 74, 0.15);
  border-radius: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
  transform-origin: center center;
  will-change: transform, opacity, filter;
}

/* "Try:" label styling */
.example-text::before {
  content: "Try";
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brand-500);
  opacity: 0.8;
}

/* Hover state - more obvious clickability */
.example-text:hover {
  background: rgba(255, 107, 74, 0.15);
  border-color: rgba(255, 107, 74, 0.3);
  color: var(--text);
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(255, 107, 74, 0.15);
}

.example-text:active {
  transform: scale(0.98);
}

/* Enter animation */
.example-text.entering {
  animation: exampleEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Exit animation */
.example-text.exiting {
  animation: exampleExit 0.3s ease-in forwards;
}

@keyframes exampleEnter {
  0% {
    opacity: 0;
    transform: translateY(-12px) rotateX(-30deg);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
  }
}

@keyframes exampleExit {
  0% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(12px) rotateX(30deg);
    filter: blur(4px);
  }
}

.start-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 107, 74, 0.4);
}

.input-helper {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.6;
}




/* Legal Links - Apple Liquid Glass Style */
.legal-glass {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.legal-glass a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.legal-glass a:hover {
  color: var(--brand-500);
}

.legal-divider {
  color: var(--border);
  font-weight: 300;
}

.contact-link {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--brand-500);
}

/* Contact Modal - Liquid Glass Design */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.contact-glass {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .contact-glass {
  transform: scale(1) translateY(0);
}

.contact-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.contact-close:hover {
  background: rgba(255, 107, 74, 0.1);
  color: var(--brand-500);
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem 0;
}

.contact-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.5rem 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.8);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-500);
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.04),
    0 0 0 3px rgba(255, 107, 74, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #a0aec0;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  margin-top: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow:
    0 4px 12px rgba(255, 107, 74, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.form-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 6px 16px rgba(255, 107, 74, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.form-submit:active:not(:disabled) {
  transform: translateY(0);
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.submit-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner {
  width: 18px;
  height: 18px;
}

.contact-status {
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.contact-status:empty {
  display: none;
}

.contact-status.success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.contact-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
  .top-nav {
    top: 1rem;
    right: 1rem;
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .btn-signin-star {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .input-bar-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .legal-glass {
    bottom: 1rem;
    left: 1rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }

  .contact-glass {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .contact-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  .logo {
    font-size: 3rem;
  }

  .tagline {
    font-size: 1rem;
  }
}
