:root {
  /* Grata Labs Brand Colors */
  --teal-light: #4FD1C7;
  --teal-primary: #38B2AC;
  --teal-dark: #2D7A7A;
  --teal-deep: #234E52;
  
  /* Supporting Colors */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-900: #111827;
  
  /* Legacy mappings for compatibility */
  --primary-color: var(--teal-primary);
  --primary-hover: var(--teal-dark);
  --text-primary: var(--gray-900);
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --background: var(--white);
  --surface: var(--gray-50);
  --border: var(--gray-100);
  --success: #10b981;
  --error: #ef4444;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

/* Navigation */
.top-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.container .top-nav {
  background: none;
  position: static;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.main-logo {
  height: 50px;
  width: auto;
  transition: transform 0.2s ease;
}

.main-logo:hover {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: var(--surface);
  color: var(--teal-primary);
}

/* Header & Hero */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, 
    var(--white) 0%, 
    rgba(79, 209, 199, 0.06) 30%, 
    rgba(56, 178, 172, 0.08) 70%, 
    var(--gray-50) 100%
  );
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(79, 209, 199, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.tagline-inline {
  color: var(--teal-dark);
  font-weight: 600;
}

.hero-content {
  margin-top: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.hero-content h2 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--teal-primary) 50%, var(--teal-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Email Form */
.cta-section {
  margin-top: 3rem;
}

.install-section {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}

.install-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.install-command {
  display: flex;
  align-items: center;
  background: var(--gray-900);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.install-command code {
  flex: 1;
  color: var(--teal-light);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  background: none;
  border: none;
}

.copy-btn {
  background: var(--teal-primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.usage-examples {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.usage-examples p {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.usage-examples code {
  display: block;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  color: var(--teal-dark);
  background: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin: 0.5rem 0;
  border: 1px solid var(--gray-100);
}

.version-info {
  text-align: center;
  margin-top: 1rem;
}

.version-info a {
  color: var(--teal-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.version-info a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.email-form {
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
  align-items: stretch;
}

.form-group input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--background);
  transition: all 0.3s ease;
  position: relative;
}

.form-group input:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px rgba(79, 209, 199, 0.1);
  transform: translateY(-1px);
}

.form-group button {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-dark) 50%, var(--teal-deep) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 150px;
  box-shadow: 0 4px 14px 0 rgba(56, 178, 172, 0.3);
}

.form-group button:hover {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-deep) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(56, 178, 172, 0.4);
}

.form-group button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-group button.loading {
  position: relative;
  overflow: hidden;
}

.form-group button.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.form-note {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.success-message {
  background: #ecfdf5;
  border: 1px solid var(--teal-light);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: var(--teal-deep);
  font-weight: 500;
}

.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: #991b1b;
  font-weight: 500;
}

/* Features */
.features, .roadmap {
  padding: 6rem 0;
  background: var(--background);
}

.features h3, .roadmap h3 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4rem;
  color: var(--gray-900);
}

.roadmap {
  background: var(--gray-50);
}

.roadmap h3 {
  color: var(--text-secondary);
}

.roadmap .feature {
  background: var(--white);
  border: 1px solid var(--gray-100);
  opacity: 0.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(56, 178, 172, 0.15), 0 10px 10px -5px rgba(56, 178, 172, 0.08);
  border-color: var(--teal-primary);
  background: linear-gradient(135deg, var(--white) 0%, rgba(79, 209, 199, 0.03) 100%);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.feature h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.feature p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* How it works */
.how-it-works {
  padding: 6rem 0;
  background: var(--background);
}

.how-it-works h3 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--gray-900);
}

.how-description {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border: 1px solid var(--gray-100);
}

.how-description strong {
  background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Add subtitle detail styling */
.subtitle-detail {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  opacity: 0.9;
}

/* Status */
.status {
  padding: 4rem 0;
  text-align: center;
  background: var(--surface);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-dark) 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 1rem;
  border: none;
  box-shadow: 0 4px 14px 0 rgba(56, 178, 172, 0.3);
}

.status-badge.available {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: var(--teal-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-indicator.available {
  background: #a7f3d0;
  animation: none;
}

.badges {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.badges img {
  height: 20px;
  border-radius: 4px;
}

@keyframes pulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.1);
  }
}

.status p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.status a {
  background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
}

.status a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-dark) 100%);
  transition: width 0.3s ease;
}

.status a:hover::after {
  width: 100%;
}

/* Footer */
footer {
  padding: 3rem 0;
  background: var(--gray-900);
  color: white;
}

.footer-content {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
  transform: translateY(-1px);
}

.copyright {
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .top-nav {
    padding: 1rem 0;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .main-logo {
    height: 40px;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .install-section {
    padding: 1.5rem;
  }
  
  .install-command {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .install-command code {
    font-size: 0.8rem;
  }
  
  .usage-examples code {
    font-size: 0.8rem;
    overflow-x: auto;
  }
  
  .form-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .features h3, .roadmap h3 {
    font-size: 2rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .badges {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}
