:root {
  --color-bg: #f9fafb;
  --color-card-bg: #ffffff;
  --color-text-main: #1f2937;
  --color-text-muted: #4b5563;
  --color-border: #e5e7eb;
  --color-primary: #0d8bfa;
  --color-secondary: #f04068;
  --color-link: #2563eb;
  --gradient-brand: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --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);
  --border-radius: 8px;
  --transition-speed: 0.2s;
}

[data-theme="dark"] {
  --color-bg: #111827;
  --color-card-bg: #1f2937;
  --color-text-main: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-border: #374151;
  --color-link: #60a5fa;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.8), 0 2px 4px -1px rgba(0, 0, 0, 0.6);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.theme-toggle-wrapper {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.theme-toggle-btn {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
  color: var(--color-primary);
  transform: scale(1.05);
}

.sun-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: block;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

.logo-dark {
  display: none;
}

[data-theme="dark"] .logo-dark {
  display: block;
  margin: 0 auto;
}

[data-theme="dark"] .logo-light {
  display: none;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography elements */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
  color: var(--color-text-main);
}

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

/* Header / Hero Section */
.hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
}

.hero-logo img {
  max-width: 300px;
  max-height: 250px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.announcement-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
}

/* Servers Section */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.server-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.server-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.server-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.server-card-header h3 {
  font-size: 1.5rem;
  margin: 0;
}

.server-card-header img {
  width: 40px;
  height: 40px;
}

.server-details {
  list-style: none;
}

.server-details li {
  margin-bottom: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  background-color: var(--color-bg);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.server-details li span {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-left: 8px;
  border-radius: 4px;
  transition: color var(--transition-speed), background-color var(--transition-speed);
}

.copy-btn:hover {
  color: var(--color-primary);
  background-color: rgba(13, 139, 250, 0.1);
}

.copy-btn:active {
  transform: scale(0.95);
}

.server-details li strong {
  font-family: inherit;
  color: var(--color-primary);
  margin-right: 0.5rem;
}

.server-footer {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
}

/* Features (Why Us) Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.feature-card {
  background: var(--color-card-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  text-align: center;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-text-main);
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Configuration Tool */
.config-tool {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 0 auto 4rem;
  max-width: 600px;
  box-shadow: var(--shadow-sm);
}

.config-tool-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text-main);
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 139, 250, 0.1);
}

.config-output {
  margin-top: 2rem;
  background-color: #282c34;
  color: #abb2bf;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* About Section */
.about-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  padding: 2rem 0;
  margin-bottom: 3rem;
  border-top: 1px solid var(--color-border);
}

.about-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.about-card p {
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

/* Footer Section */
.site-footer {
  text-align: center;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

.site-footer .disclaimer {
  color: #c53030;
  margin-bottom: 0.5rem;
}