/* 
   TimePop - Modern, Elegant Time Tracking Website
   Design Philosophy: Simple, Clean, Professional
*/

/* CSS Custom Properties (Variables) */
:root {
  /* Colors */
  --primary-color: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #10b981;
  
  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  
  /* Layout */
  --max-width: 1200px;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: 700;
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: var(--space-4);
  max-width: 65ch;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* Utility Classes */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: all var(--transition-base);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo {
  /* Slightly larger navbar icon */
  height: 2.5rem;
  width: auto;
}

.brand-text {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--gray-900);
}

.nav-menu {
  display: flex;
  gap: var(--space-8);
}

.nav-link {
  color: var(--gray-600);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.language-selector {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.lang-btn {
  background: none;
  border: 1px solid var(--gray-300);
  color: var(--gray-600);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  background: var(--gray-100);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.lang-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.bar {
  width: 1.5rem;
  height: 2px;
  background: var(--gray-600);
  transition: all var(--transition-fast);
}

/* Release Banner */
.release-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: var(--space-4) 0;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.release-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="20" cy="20" r="2"/></g></svg>');
  pointer-events: none;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

.banner-text {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex: 1;
}

.banner-badge {
  background: var(--accent-color);
  color: var(--white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--border-radius);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse 2s infinite;
}

.banner-text h3 {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.banner-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-sm);
}

.banner-text a {
  color: var(--white);
  text-decoration: underline;
  font-weight: 500;
}

.banner-text a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.banner-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Hero Section */
.hero {
  padding: calc(4rem + 4rem) 0 var(--space-20) 0;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%232563eb" fill-opacity="0.03"><circle cx="30" cy="30" r="4"/></g></g></svg>');
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: var(--font-size-6xl);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  margin-bottom: var(--space-8);
  max-width: 90%;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--gray-700);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.feature-tag .icon {
  color: var(--accent-color);
  flex-shrink: 0;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 0.8s ease-out 0.2s both;
}

.app-mockup {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.mockup-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  /* Thicker dark border to strongly frame carousel images */
  border: 12px solid #000000;
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-slow);
}

.mockup-image:hover {
  transform: scale(1.02);
}

.mockup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  z-index: -1;
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  width: 100%;
  /* Let the content (images) define the height */
}

.carousel {
  position: relative;
  width: 100%;
  /* Let the content (images) define the height */
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

.carousel-slide {
  /* Use normal flow so the image sets the height */
  position: relative;
  width: 100%;
  opacity: 0;
  transition: opacity var(--transition-slow);
  z-index: 1;
  display: none;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
  display: block;
}

.carousel-dots {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dot.active {
  background: var(--white);
  transform: scale(1.2);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  color: var(--gray-700);
  font-size: var(--font-size-xl);
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 3;
  box-shadow: var(--shadow-md);
}

.carousel-arrow:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.carousel-prev {
  left: var(--space-4);
}

.carousel-next {
  right: var(--space-4);
}

/* Responsive carousel adjustments */
@media (max-width: 768px) {
  .carousel-arrow {
    width: 32px;
    height: 32px;
    font-size: var(--font-size-lg);
  }

  .carousel-prev {
    left: var(--space-2);
  }

  .carousel-next {
    right: var(--space-2);
  }

  .dot {
    width: 10px;
    height: 10px;
  }
}

/* Features Section */
.features {
  padding: var(--space-24) 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  margin: 0 auto;
  max-width: 60%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
}

.feature-card {
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--white);
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-card h3 {
  margin-bottom: var(--space-3);
  color: var(--gray-900);
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
  padding: var(--space-24) 0;
  background: var(--gray-50);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.screenshot-item {
  position: relative;
}

.screenshot-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base);
}

.screenshot-card:hover {
  transform: scale(1.02);
}

.screenshot-image {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  padding: var(--space-6);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.screenshot-card:hover .screenshot-overlay {
  transform: translateY(0);
}

.screenshot-overlay h4 {
  margin-bottom: var(--space-2);
  color: var(--white);
}

.screenshot-overlay p {
  margin: 0;
  opacity: 0.9;
}

/* Comparison Section */
.comparison {
  padding: var(--space-24) 0;
  background: var(--white);
}

.comparison-table {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: var(--gray-100);
  font-weight: 600;
}

.comparison-column {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--gray-200);
  text-align: center;
}

.comparison-column.header {
  text-align: left;
  background: var(--gray-100);
}

.comparison-column.timepop {
  background: var(--primary-color);
  color: var(--white);
}

.comparison-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}

.comparison-row:not(:last-child) {
  border-bottom: 1px solid var(--gray-200);
}

.comparison-row:hover {
  background: var(--gray-50);
}

.comparison-column {
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-column.feature {
  justify-content: flex-start;
  font-weight: 500;
}

.comparison-column.advantage {
  color: var(--accent-color);
  font-weight: 600;
}

/* Transposed comparison table (rows are features, columns are products) */
.comp-table-wrapper {
  overflow-x: auto;
  padding: var(--space-4);
}

.comp-table.transposed {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  text-align: center;
  min-width: 720px;
}

.comp-table.transposed thead th {
  background: var(--gray-100);
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}

.comp-table.transposed thead th.feature-col {
  text-align: left;
  padding-left: var(--space-6);
}

.comp-table.transposed tbody td,
.comp-table.transposed tbody th {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--gray-100);
}

/* Make the feature column stand out */
.comp-table.transposed tbody td.feature,
.comp-table.transposed tbody th.feature {
  text-align: left;
  font-weight: 600;
  padding-left: var(--space-6);
  color: var(--gray-800);
}

/* Star rating control using unicode stars and overlay for partial widths */
.star-rating {
  --rating: 0; /* 0..5 */
  --max-stars: 5;
  display: inline-block;
  position: relative;
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  line-height: 1;
  color: var(--gray-300);
  letter-spacing: 3px;
  padding: 0;
  margin: 0;
}

/* base (empty) stars */
.star-rating::before {
  content: "★★★★★";
  display: block;
  color: var(--gray-300);
}

/* filled stars overlay — width controlled by --rating */
.star-rating::after {
  content: "★★★★★";
  display: block;
  color: #ffc107; /* star color (gold) */
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  width: calc(var(--rating) / var(--max-stars) * 100%);
  -webkit-text-stroke: 0;
}

/* Hover effect to slightly enlarge stars for discoverability */
.star-rating:hover {
  transform: translateY(-2px);
  transition: transform var(--transition-fast);
  cursor: default;
}

/* Ensure accessibility focus */
.star-rating:focus {
  outline: 2px dashed rgba(255, 193, 7, 0.6);
  outline-offset: 3px;
}

/* Small screens — make table stack for readability */
@media (max-width: 768px) {
  .comp-table.transposed {
    min-width: 100%;
    font-size: 0.95rem;
  }

  .star-rating {
    font-size: 0.95rem;
  }
}

/* Download Section */
.download {
  padding: var(--space-24) 0;
  background: var(--gray-900);
  color: var(--white);
}

.download-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.download-text h2 {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.download-text > p {
  color: var(--gray-300);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-8);
}

.download-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.download-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--gray-300);
}

.download-feature .icon {
  color: var(--accent-color);
  flex-shrink: 0;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.system-requirements h4 {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
}

.requirement {
  color: var(--gray-300);
  font-size: var(--font-size-sm);
}

.download-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.download-mockup {
  text-align: center;
  background: var(--gray-800);
  padding: var(--space-8);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--gray-700);
}

.download-logo {
  width: 4rem;
  height: 4rem;
  margin-bottom: var(--space-4);
}

.download-mockup h3 {
  color: var(--white);
  margin-bottom: var(--space-2);
}

.download-mockup p {
  color: var(--gray-400);
  margin-bottom: var(--space-4);
}

.version-info {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

/* Contact Section */
.contact {
  padding: var(--space-24) 0;
  background: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}

.contact-info h2 {
  margin-bottom: var(--space-4);
}

.contact-info > p {
  color: var(--gray-600);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-8);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-details h4 {
  margin-bottom: var(--space-1);
  color: var(--gray-900);
}

.contact-details a {
  color: var(--gray-600);
  font-weight: 500;
}

.contact-form {
  background: var(--gray-50);
  padding: var(--space-8);
  border-radius: var(--border-radius-lg);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-16) 0 var(--space-8) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-logo {
  height: 2rem;
  width: auto;
}

.footer-brand-text {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--white);
}

.footer-description {
  color: var(--gray-400);
  max-width: 80%;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--space-8);
  text-align: center;
  color: var(--gray-500);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content,
  .download-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  
  .hero-visual {
    order: -1;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  
  .banner-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
  
  .banner-text {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
  }
  
  .banner-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-6xl: 3rem;
    --space-20: 4rem;
    --space-16: 3rem;
    --space-12: 2rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero {
    padding: calc(4rem + 3rem) 0 var(--space-16) 0;
  }
  
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison-header,
  .comparison-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .comparison-column {
    border-bottom: none;
  }
  
  .comparison-row {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-4);
    overflow: hidden;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .download-buttons {
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-3);
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .section-header p {
    max-width: 100%;
  }
  
  .feature-card {
    padding: var(--space-6);
  }
  
  .contact-form {
    padding: var(--space-6);
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer {
    display: none;
  }
  
  .hero {
    padding: var(--space-4) 0;
  }
  
  .section {
    padding: var(--space-8) 0;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.btn:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --gray-600: #000000;
    --gray-700: #000000;
    --gray-500: #333333;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* Releases Page Styles */
.releases {
  padding: calc(4rem + 4rem) 0 var(--space-20) 0;
  background: var(--white);
}

.release-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-8);
  overflow: hidden;
  transition: all var(--transition-base);
}

.release-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.release-card.latest {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color), var(--shadow-lg);
}

.release-header {
  background: var(--gray-50);
  padding: var(--space-6);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.release-header h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: var(--font-size-2xl);
}

.release-date {
  color: var(--gray-500);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.release-badge {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--border-radius);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.latest-badge {
  background: var(--accent-color);
  color: var(--white);
}

.release-badge:not(.latest-badge) {
  background: var(--gray-200);
  color: var(--gray-600);
}

.release-content {
  padding: var(--space-6);
}

.release-highlights h3,
.release-features h3,
.release-technical h3,
.release-details h3 {
  color: var(--gray-900);
  margin-bottom: var(--space-3);
  margin-top: var(--space-6);
  font-size: var(--font-size-lg);
}

.release-highlights h3:first-child,
.release-features h3:first-child,
.release-technical h3:first-child,
.release-details h3:first-child {
  margin-top: 0;
}

.release-content ul {
  margin: 0;
  padding-left: var(--space-6);
}

.release-content li {
  margin-bottom: var(--space-2);
  color: var(--gray-700);
  line-height: 1.6;
}

.back-to-home {
  text-align: center;
  margin-top: var(--space-12);
}

.nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Responsive adjustments for releases page */
@media (max-width: 768px) {
  .release-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  
  .release-content {
    padding: var(--space-4);
  }
  
  .release-highlights h3,
  .release-features h3,
  .release-technical h3,
  .release-details h3 {
    font-size: var(--font-size-base);
  }
}

/* Release notes table styles (for future use) */
.release-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-6);
}

.release-table th,
.release-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.release-table th {
  background: var(--gray-100);
  font-weight: 600;
  color: var(--gray-900);
}

.release-table tbody tr:hover {
  background: var(--gray-50);
}

/* Code blocks for technical details */
.release-content code {
  background: var(--gray-100);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--border-radius);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: var(--font-size-sm);
  color: var(--gray-800);
}

/* Links within release notes */
.release-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.release-content a:hover {
  color: var(--primary-dark);
}
/* ============================================
   Dashboard Page Styles
   ============================================ */

.dashboard-content {
    padding: 8rem 0 4rem 0;
    background: var(--gray-50);
}

.dashboard-hero {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: left;
}

.dashboard-hero h1 {
    margin-bottom: 1rem;
}

.dashboard-subtitle {
    color: var(--gray-600);
    font-size: var(--font-size-lg);
    margin-bottom: 1.5rem;
}

.dashboard-auth {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2.5rem;
}

.dashboard-auth-header h2 {
    margin-bottom: 0.5rem;
}

.supabase-status {
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.dashboard-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.email-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.email-input-group input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    min-width: 250px;
}

.dashboard-orgs h3 {
    margin-bottom: 0.5rem;
}

.create-org-btn {
    margin-top: 0.75rem;
    display: none;
}

.org-table-wrapper {
    overflow-x: auto;
}

.org-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.org-table th,
.org-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
    white-space: nowrap;
}

.org-table th {
    background: var(--gray-100);
    font-weight: 600;
}

.dashboard-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-warning {
    background: #f97316;
    color: white;
}

.badge-info {
    background: #0ea5e9;
    color: white;
}

.dashboard-note {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.dashboard-card h2 {
    margin-bottom: 0.75rem;
    font-size: var(--font-size-xl);
}

.dashboard-card p {
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.dashboard-card ul {
    padding-left: 1.25rem;
    color: var(--gray-700);
}

.dashboard-future {
    max-width: 800px;
    margin: 0 auto;
}

.dashboard-future h2 {
    margin-bottom: 0.75rem;
}

.dashboard-future p {
    color: var(--gray-700);
}

.dashboard-future ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

/* Dashboard responsive styles */
@media (max-width: 768px) {
    .dashboard-content {
        padding: 6rem 0 3rem 0;
    }

    .dashboard-hero {
        padding: 0 1rem;
    }

    .dashboard-grid {
        padding: 0 1rem;
    }

    .dashboard-future {
        padding: 0 1rem;
    }
    
    .email-input-group {
        flex-direction: column;
        width: 100%;
    }
    
    .email-input-group input {
        width: 100%;
    }
}


/* ============================================
   About Page Styles
   ============================================ */

.about-content {
    padding: 8rem 0 4rem 0;
    background: var(--white);
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-header h1 {
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.about-subtitle {
    color: var(--gray-600);
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-section {
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-section h2 {
    color: var(--gray-900);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.about-section p {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--gray-200);
}

.why-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon .icon {
    width: 30px;
    height: 30px;
    fill: white;
}

.why-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.why-card p {
    color: var(--gray-700);
    margin: 0;
    font-size: var(--font-size-sm);
}

.contact-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* About page responsive */
@media (max-width: 768px) {
    .about-content {
        padding: 6rem 0 3rem 0;
    }

    .about-section {
        padding: 0 1rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   Legal Pages Styles (Privacy, Terms)
   ============================================ */

.legal-content {
    padding: 8rem 0 4rem 0;
    background: var(--white);
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header h1 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
}

.legal-section {
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.legal-section h2 {
    color: var(--gray-900);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.legal-section h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.highlight-box {
    background: var(--gray-50);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box h3 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
}

.highlight-box p {
    margin: 0;
    color: var(--gray-700);
}

/* Legal pages responsive */
@media (max-width: 768px) {
    .legal-content {
        padding: 6rem 0 3rem 0;
    }

    .legal-section {
        padding: 0 1rem;
    }
}

/* ============================================
   Pricing Section Styles
   ============================================ */

.pricing {
    padding: var(--space-24) 0;
    background: var(--gray-50);
}

.pricing .section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.pricing .section-header h2 {
    margin-bottom: var(--space-4);
}

.pricing .section-header p {
    color: var(--gray-600);
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-8);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: var(--space-1) var(--space-4);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-2);
    color: var(--gray-900);
}

.pricing-price {
    margin-bottom: var(--space-6);
}

.pricing-price .amount {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-price .period {
    color: var(--gray-500);
    font-size: var(--font-size-lg);
}

.pricing-description {
    color: var(--gray-600);
    margin-bottom: var(--space-6);
    min-height: 48px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-8) 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .icon {
    color: var(--accent-color);
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}

.pricing-features .icon.disabled {
    color: var(--gray-300);
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.pricing-note {
    text-align: center;
    margin-top: var(--space-8);
    color: var(--gray-500);
    font-size: var(--font-size-sm);
}

/* Pricing responsive */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-6);
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 768px) {
    .pricing {
        padding: var(--space-16) 0;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pricing-card {
        padding: var(--space-6);
    }
    
    .pricing-price .amount {
        font-size: var(--font-size-4xl);
    }
}
