:root {
  --md-sys-color-primary: #a1c9fd;
  --md-sys-color-on-primary: #00315f;
  --md-sys-color-primary-container: #004785;
  --md-sys-color-on-primary-container: #d3e4ff;
  
  --md-sys-color-secondary: #bec7d8;
  --md-sys-color-on-secondary: #28313e;
  --md-sys-color-secondary-container: #3e4755;
  --md-sys-color-on-secondary-container: #dae3f5;
  
  --md-sys-color-tertiary: #d8bee5;
  --md-sys-color-on-tertiary: #3c2948;
  --md-sys-color-tertiary-container: #543f60;
  --md-sys-color-on-tertiary-container: #f5d9ff;

  --md-sys-color-background: #111318;
  --md-sys-color-on-background: #e2e2e9;
  
  --md-sys-color-surface: #111318;
  --md-sys-color-on-surface: #e2e2e9;
  --md-sys-color-surface-variant: #43474e;
  --md-sys-color-on-surface-variant: #c3c6cf;
  
  --md-sys-color-surface-container-low: #191c20;
  --md-sys-color-surface-container: #1d2024;
  --md-sys-color-surface-container-high: #272a2f;
  --md-sys-color-surface-container-highest: #32353a;
  
  --md-sys-color-outline: #8d9199;
  --md-sys-color-outline-variant: #43474e;
  
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-extra-large: 28px;
  --md-sys-shape-corner-full: 9999px;
  
  --font-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container-max: 1140px;
}

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

html {
  font-size: 16px;
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  font-family: var(--font-sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--md-sys-color-background);
  position: relative;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.m3-top-app-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--md-sys-color-surface);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  height: 64px;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.m3-top-app-bar.scrolled {
  background-color: var(--md-sys-color-surface-container);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.m3-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.m3-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
}

.m3-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m3-nav-pill {
  padding: 8px 16px;
  border-radius: var(--md-sys-shape-corner-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
  transition: all 0.2s ease;
}

.m3-nav-pill:hover {
  background-color: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
}

.m3-nav-pill.active {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  font-weight: 600;
}

.m3-btn-filled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  padding: 10px 20px;
  border-radius: var(--md-sys-shape-corner-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.m3-btn-filled:hover {
  box-shadow: 0 4px 12px rgba(161, 201, 253, 0.3);
  transform: translateY(-1px);
}

.m3-btn-tonal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  padding: 10px 20px;
  border-radius: var(--md-sys-shape-corner-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.m3-btn-tonal:hover {
  background-color: var(--md-sys-color-surface-container-highest);
  transform: translateY(-1px);
}

.m3-card {
  background-color: var(--md-sys-color-surface-container-low);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-large);
  padding: 28px;
  transition: all 0.2s ease;
}

.m3-card:hover {
  background-color: var(--md-sys-color-surface-container);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.m3-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  padding: 4px 12px;
  border-radius: var(--md-sys-shape-corner-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.m3-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface-variant);
  padding: 4px 12px;
  border-radius: var(--md-sys-shape-corner-small);
  font-size: 0.8rem;
  font-weight: 500;
}

.m3-footer {
  margin-top: auto;
  border-top: 1px solid var(--md-sys-color-outline-variant);
  background-color: var(--md-sys-color-surface-container-low);
  padding-block: 48px 32px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .m3-nav {
    display: none;
  }
}
