/* TimeTracks Marketing Site - Professional Legal SaaS Design */

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

:root {
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Crimson Pro', Georgia, serif;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px 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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: white;
  -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--gray-900);
  font-weight: 700;
  line-height: 1.2;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gray-900);
}

.nav-download {
  color: var(--primary) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

.btn-text:hover {
  color: var(--gray-900);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.title-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 32px;
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proof-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.proof-label {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

/* App Preview */
.hero-visual {
  position: relative;
}

.app-preview {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.preview-dots {
  display: flex;
  gap: 8px;
}

.preview-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
}

.preview-dots span:first-child { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #ffbd2e; }
.preview-dots span:last-child { background: #28ca42; }

.preview-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.preview-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-entry {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--gray-100);
}

.preview-entry.active {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  border-color: rgba(30, 64, 175, 0.2);
}

.entry-time {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 60px;
}

.entry-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--success);
  font-family: 'SF Mono', Monaco, monospace;
}

.timer-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 1s infinite;
}

.entry-details {
  flex: 1;
}

.entry-desc {
  font-size: 0.9375rem;
  color: var(--gray-700);
  margin-bottom: 8px;
  line-height: 1.5;
}

.entry-desc.typing::after {
  content: '|';
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.entry-matter {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.entry-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent);
  border-radius: 4px;
}

.entry-badge.live {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

/* Section Labels */
.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

/* Problem Section */
.problem {
  padding: 100px 0;
  background: var(--gray-900);
  color: white;
}

.problem .section-label {
  color: var(--accent-light);
}

.problem .section-title {
  color: white;
  max-width: 600px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.problem-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.problem-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.problem-card h3 {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 0.9375rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* Features Section */
.features {
  padding: 100px 0;
}

.features-showcase {
  margin-top: 48px;
}

.feature-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 48px;
  background: var(--gray-50);
  border-radius: 24px;
  margin-bottom: 48px;
}

.feature-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  background: var(--primary);
  color: white;
  border-radius: 4px;
  margin-bottom: 16px;
}

.feature-main h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-main p {
  font-size: 1.0625rem;
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.feature-list svg {
  flex-shrink: 0;
}

/* AI Demo */
.ai-demo {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.ai-input, .ai-output {
  padding: 16px;
  border-radius: 12px;
}

.ai-input {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}

.ai-output {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  border: 1px solid rgba(30, 64, 175, 0.2);
}

.ai-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.ai-activity {
  font-size: 0.875rem;
  color: var(--gray-600);
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
}

.ai-activity:last-child {
  border-bottom: none;
}

.ai-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  color: var(--accent);
}

.ai-arrow span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-result {
  font-size: 0.9375rem;
  color: var(--gray-800);
  font-style: italic;
  line-height: 1.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 12px;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.feature-card h4 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Security Section */
.security {
  padding: 100px 0;
  background: var(--gray-50);
}

.security-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

.security-intro {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 40px;
}

.security-features {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.security-item {
  display: flex;
  gap: 20px;
}

.security-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  flex-shrink: 0;
}

.security-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.security-details h4 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.security-details p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.security-badges {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.badge-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}

.badge-icon {
  font-size: 1.5rem;
}

.badge-card span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* Pricing Section */
.pricing {
  padding: 100px 0;
}

.pricing-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  text-align: center;
  margin-top: -8px;
  margin-bottom: 40px;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.toggle-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--success);
  color: white;
  border-radius: 100px;
}

.toggle-switch {
  position: relative;
  width: 56px;
  height: 32px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 100px;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  left: 4px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: var(--shadow);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  padding: 40px 32px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 100px;
}

.pricing-header {
  margin-bottom: 24px;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
}

.pricing-amount {
  margin-bottom: 8px;
}

.pricing-amount .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-900);
}

.price-period {
  font-size: 1rem;
  color: var(--gray-500);
}

.annual-savings {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.pricing-features svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  background: var(--gray-900);
  color: white;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--gray-400);
  max-width: 280px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: var(--gray-400);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-proof {
    justify-content: center;
  }
  
  .feature-main {
    grid-template-columns: 1fr;
  }
  
  .security-content {
    grid-template-columns: 1fr;
  }
  
  .security-badges {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .problem-grid,
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-proof {
    flex-direction: column;
    gap: 24px;
  }
  
  .proof-divider {
    display: none;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .pricing-card {
    padding: 32px 24px;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}
