:root {
  /* MD3 Color Tokens - Dark Theme */
  --md-sys-color-primary: #A8C7FA;
  --md-sys-color-on-primary: #062E6F;
  --md-sys-color-primary-container: #1B4694;
  --md-sys-color-on-primary-container: #D8E2FF;
  --md-sys-color-secondary: #BEC6DC;
  --md-sys-color-on-secondary: #283141;
  --md-sys-color-surface: #1A1C1E;
  --md-sys-color-on-surface: #E2E2E6;
  --md-sys-color-surface-variant: #43474E;
  --md-sys-color-on-surface-variant: #C3C6CF;
  --md-sys-color-outline: #8D9199;
  --md-sys-color-background: #1A1C1E;
  --md-sys-color-on-background: #E2E2E6;
  --md-sys-color-surface-1: #22252a;
  --md-sys-color-surface-2: #272a2f;

  /* MD3 Elevation */
  --md-sys-elevation-1: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
  --md-sys-elevation-2: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: 'Roboto', sans-serif;
  background: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  min-height: 100vh;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #1A1C1E 0%, #2A2D32 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(168, 199, 250, 0.1) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.logo-container {
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease-out;
}

.logo {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.logo-image {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(168, 199, 250, 0.3));
}

.hero-title {
  font-size: 56px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 8px;
  line-height: 1.2;
  animation: fadeInDown 0.8s ease-out 0.2s both;
}

.hero-server-name {
  font-size: 18px;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 16px;
  font-weight: 400;
  animation: fadeInDown 0.8s ease-out 0.3s both;
}

.hero-subtitle {
  font-size: 24px;
  color: var(--md-sys-color-primary);
  margin-bottom: 24px;
  font-weight: 400;
  animation: fadeInDown 0.8s ease-out 0.4s both;
}

.hero-description {
  font-size: 18px;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.md3-button {
  padding: 14px 32px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: 'Roboto', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: var(--md-sys-elevation-1);
}

.md3-button.filled {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.md3-button.outlined {
  background: transparent;
  color: var(--md-sys-color-primary);
  border: 1px solid var(--md-sys-color-outline);
  box-shadow: none;
}

.md3-button:hover {
  box-shadow: var(--md-sys-elevation-2);
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.md3-button.outlined:hover {
  background: var(--md-sys-color-surface-1);
}

.md3-button:active {
  transform: translateY(0);
}

.md3-button .material-icons {
  font-size: 18px;
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 64px;
  animation: fadeInUp 0.8s ease-out 1s both;
}

.feature-card {
  background: var(--md-sys-color-surface-1);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--md-sys-elevation-1);
  transition: all 0.3s;
}

.feature-card:hover {
  box-shadow: var(--md-sys-elevation-2);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--md-sys-color-primary-container);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon .material-icons {
  font-size: 28px;
  color: var(--md-sys-color-on-primary-container);
}

.feature-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 8px;
}

.feature-description {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.5;
}

.feature-description code {
  background: var(--md-sys-color-surface-2);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  word-break: break-all;
  overflow-wrap: break-word;
  display: inline-block;
  max-width: 100%;
}

/* Footer Links */
.footer-links {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--md-sys-color-outline);
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 1.2s both;
}

.footer-link {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-link:hover {
  color: var(--md-sys-color-primary);
}

.footer-link .material-icons {
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-description {
    font-size: 16px;
  }

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

  .action-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .md3-button {
    justify-content: center;
  }
}
