:root {
  /* Material 3 Design Tokens (Light Scheme) */
  --md-sys-color-primary: #6a47af;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #8361ca;
  --md-sys-color-on-primary-container: #fffbff;
  --md-sys-color-secondary: #655781;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #deccfd;
  --md-sys-color-on-secondary-container: #62547e;
  --md-sys-color-tertiary: #983772;
  --md-sys-color-on-tertiary: #ffffff;
  --md-sys-color-tertiary-container: #b6508c;
  --md-sys-color-surface: #fff8f3;
  --md-sys-color-on-surface: #1e1b17;
  --md-sys-color-surface-container: #f4ede6;
  --md-sys-color-outline: #84746c;

  --font-family-base: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --border-radius: 16px;
  --nav-height: 80px;
}

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

body {
  font-family: var(--font-family-base);
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Navigation */
.navbar {
  height: var(--nav-height);
  background-color: var(--md-sys-color-surface);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.navbar .container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--md-sys-color-on-surface);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  box-shadow: 0 4px 8px rgba(106, 71, 175, 0.25);
}

.btn-primary:hover {
  background-color: #583a96; /* Darker shade of primary */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(106, 71, 175, 0.3);
}

.btn-secondary {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.btn-secondary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 60px 0 100px;
  background: linear-gradient(180deg, var(--md-sys-color-surface) 0%, var(--md-sys-color-surface-container) 100%);
  overflow: hidden;
}

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

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-text h1 span {
  color: var(--md-sys-color-primary);
}

.hero-text .tagline {
  font-size: 1.5rem;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 40px;
  opacity: 0.8;
  max-width: 500px;
}

.hero-image {
  position: relative;
}

.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #8361ca 0%, #6a47af 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 20px 40px rgba(106, 71, 175, 0.25);
  position: relative;
  z-index: 1;
}

/* Decorative elements */
.hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background-color: var(--md-sys-color-secondary-container);
  border-radius: 24px;
  z-index: 0;
  opacity: 0.5;
}

/* Features Section */
.features {
  padding: 100px 0;
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--md-sys-color-outline);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background-color: var(--md-sys-color-surface);
  padding: 40px;
  border-radius: 24px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: var(--md-sys-color-secondary-container);
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--md-sys-color-on-secondary-container);
}

.feature-card h3 {
  color: var(--md-sys-color-primary);
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.feature-card p {
  color: var(--md-sys-color-on-surface);
  opacity: 0.8;
}

/* Download Section */
.download {
  padding: 100px 0;
  text-align: center;
  background-color: var(--md-sys-color-surface-container);
}

.download-content {
  max-width: 600px;
  margin: 0 auto;
}

.download h2 {
  margin-bottom: 24px;
  font-size: 2.5rem;
  color: var(--md-sys-color-on-surface);
}

.download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.store-btn {
  background-color: var(--md-sys-color-on-surface);
  color: var(--md-sys-color-surface);
  border-radius: 12px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.2s;
  min-width: 160px;
}

.store-btn:hover {
  transform: translateY(-2px);
}

.store-icon {
  width: 24px;
  height: 24px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-text small {
  font-size: 0.7rem;
  opacity: 0.8;
}

.store-text span {
  font-weight: bold;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: #1e1b17; /* Dark background for footer */
  padding: 60px 0 40px;
  color: #ffffff;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.footer-logo {
  height: 40px;
  filter: brightness(0) invert(1); /* Make logo white */
}

.footer-links {
  display: flex;
  gap: 32px;
}

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

.footer-links a:hover {
  opacity: 1;
}

.copyright {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text .tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .navbar .container {
    padding: 0 16px;
  }

  .nav-links {
    display: none; /* Simple mobile hide for now */
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
  }
}

/* Parity Page Specifics */
.parity-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background-color: var(--md-sys-color-surface-container);
  padding: 24px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
}

.parity-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--md-sys-color-surface);
  border-radius: 8px; /* Slightly smaller radius for tables */
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 24px;
}

.parity-table th, .parity-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--md-sys-color-surface-container);
}

.parity-table th {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.parity-table th:hover {
  background-color: #d1bbf9; /* Slightly darker container */
}

/* Sort indicators could be added via CSS ::after */

.parity-table tr:last-child td {
  border-bottom: none;
}

.parity-table tr:hover {
  background-color: rgba(106, 71, 175, 0.04); /* Primary with low opacity */
}

.table-responsive {
  overflow-x: auto;
  border-radius: 8px;
}

/* Parity Score Colors */
.parity-good {
  color: #1b5e20; /* Green */
  font-weight: 500;
}

.parity-warn {
  color: #f57f17; /* Orange/Yellow */
  font-weight: 500;
}

.parity-bad {
  color: #b71c1c; /* Red */
  font-weight: 700;
}

/* Material Web Component Customization (if needed) */
md-outlined-select {
  --md-sys-color-primary: #6a47af;
}
