:root {
  --deep-purple: #4B167D;
  --deep-purple-alt: #5B2590;
  --bright-purple: #7A35C9;
  --soft-dark: #241033;
  --card-bg: #2E1548;
  --card-border: rgba(107, 58, 168, 0.35);
  --text-primary: #FFFFFF;
  --text-secondary: #B8A4D4;
  --max-width: 960px;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, var(--deep-purple) 0%, var(--deep-purple-alt) 50%, var(--bright-purple) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  padding: 24px 16px 48px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(36, 16, 51, 0.55);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  margin-bottom: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bright-purple), var(--deep-purple-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 6px 20px rgba(122, 53, 201, 0.4);
}

.nav-brand span {
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(122, 53, 201, 0.25);
  color: var(--text-primary);
}

/* Header */
.header {
  text-align: center;
  padding: 24px 0 36px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--bright-purple), var(--deep-purple-alt));
  box-shadow: 0 12px 40px rgba(122, 53, 201, 0.45);
  margin-bottom: 20px;
  font-size: 40px;
  font-weight: 800;
  color: #fff;
}

.brand {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 3vw, 1.15rem);
  max-width: 560px;
  margin: 16px auto 0;
}

/* Card */
.card {
  background: linear-gradient(145deg, #3A1A5E 0%, var(--card-bg) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 48px);
}

.card-header {
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.card-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.updated {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Sections */
.section {
  margin-bottom: 32px;
}

.section:last-child {
  margin-bottom: 0;
}

.section h2 {
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section h2::before {
  content: "";
  width: 4px;
  height: 1.1em;
  background: linear-gradient(to bottom, var(--bright-purple), var(--deep-purple-alt));
  border-radius: 4px;
  flex-shrink: 0;
}

.section p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
}

.section p + p {
  margin-top: 12px;
}

.highlight-box {
  background: rgba(122, 53, 201, 0.15);
  border: 1px solid rgba(122, 53, 201, 0.35);
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 12px;
}

.highlight-box p {
  margin: 0;
  font-size: 0.95rem;
}

/* Features grid (home) */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.feature {
  background: rgba(36, 16, 51, 0.5);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 53, 201, 0.6);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(90deg, var(--bright-purple), var(--deep-purple-alt));
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(122, 53, 201, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(122, 53, 201, 0.55);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--card-border);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(122, 53, 201, 0.15);
  box-shadow: none;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.contact-item {
  background: rgba(36, 16, 51, 0.5);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.contact-item-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.contact-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(90deg, var(--bright-purple), var(--deep-purple-alt));
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(122, 53, 201, 0.35);
}

.contact-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(122, 53, 201, 0.5);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 16px 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.footer a {
  color: var(--bright-purple);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .page {
    padding: 16px 12px 32px;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .nav-brand {
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
  }

  .logo {
    width: 64px;
    height: 64px;
    font-size: 32px;
  }

  .btn-row {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .contact-links {
    flex-direction: column;
  }

  .contact-links a {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn, .contact-links a, .feature {
    transition: none;
  }
}
