/* Brand Colors */
:root {
  /* TurtleTracks */
  --turtletracks-primary: #4A7C59;
  --turtletracks-primary-dark: #3a6247;
  --turtletracks-primary-light: #5a8c69;

  /* TurtleTable */
  --turtletable-primary: #C77D58;
  --turtletable-primary-dark: #b76d48;
  --turtletable-primary-light: #d78d68;

  /* Neutral colors */
  --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;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Site primary color */
  --primary-color: var(--turtletracks-primary);
  --primary-color-dark: var(--turtletracks-primary-dark);
  --primary-color-light: var(--turtletracks-primary-light);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--gray-50);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: var(--spacing-sm); }

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Utility classes */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.py-sm { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-md { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-lg { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-xl { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }
.py-2xl { padding-top: var(--spacing-2xl); padding-bottom: var(--spacing-2xl); }

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-primary:hover {
  opacity: 0.9;
}

/* Hero section */
.hero {
  padding: var(--spacing-2xl) 0;
  text-align: center;
}

.hero h1 { margin-bottom: var(--spacing-md); }

.hero p {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  padding: var(--spacing-2xl) 0;
}

.feature {
  padding: var(--spacing-lg);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.feature h3 { margin-bottom: var(--spacing-sm); }
.feature p { color: var(--gray-600); margin-bottom: 0; }

/* Header */
.header {
  background: white;
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-sm) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav a {
  color: var(--gray-600);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--primary-color); }

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-2xl);
}

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

.footer a {
  color: var(--gray-300);
  transition: color 0.2s ease;
}

.footer a:hover { color: white; }

/* Company site specific */

/* Hero large */
.hero-large {
  padding: var(--spacing-2xl) 0 var(--spacing-xl);
  background: linear-gradient(135deg, #4A7C59 0%, #3a6247 100%);
  color: white;
}

.hero-large h1 {
  color: white;
  font-size: 3rem;
  max-width: 700px;
  margin: 0 auto var(--spacing-md);
}

.hero-subtitle {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* Values section */
.values {
  background: var(--gray-50);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.value-card {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.value-card h3 {
  color: var(--gray-900);
  margin-bottom: var(--spacing-sm);
}

.value-card p {
  color: var(--gray-600);
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* App showcase */
.app-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

.app-card-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.app-card-large.reverse {
  direction: rtl;
}

.app-card-large.reverse > * {
  direction: ltr;
}

.app-card-content h3 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-xs);
}

.app-tagline {
  font-size: 1.1rem;
  color: var(--gray-500);
  font-style: italic;
  margin-bottom: var(--spacing-md);
}

.app-highlights {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0;
}

.app-highlights li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-700);
}

.app-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.app-card-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.app-card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.app-card-placeholder {
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: var(--gray-400);
  font-size: 1.25rem;
}

/* Commitment section */
.commitment {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  color: white;
}

.commitment h2 {
  color: white;
}

.commitment-content p {
  color: var(--gray-300);
  margin-bottom: var(--spacing-md);
  font-size: 1.05rem;
  line-height: 1.7;
}

.commitment-content strong {
  color: white;
}

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

/* Screenshot */
.screenshot {
  max-width: 400px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--gray-200);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* CTA section */
.cta h2 { color: white; }
.cta p { color: rgba(255, 255, 255, 0.9); font-size: 1.125rem; }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero p { font-size: 1.125rem; }
  .features { grid-template-columns: 1fr; }
  .nav { gap: var(--spacing-sm); }

  .hero-large h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1.1rem; }

  .values-grid { grid-template-columns: 1fr; }

  .app-card-large {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-card-large.reverse {
    direction: ltr;
  }

  .app-highlights {
    text-align: left;
    max-width: 280px;
    margin: var(--spacing-md) auto;
  }

  .app-card-image {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }
}
