:root {
  --primary-color: #ffffff;
  --bg-color: #0b0a0a;
  --surface-color: rgba(255, 255, 255, 0.02);
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
  --radius: 20px;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-serif: 'Newsreader', 'Playfair Display', serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
}

h1, h2, .logo-text {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  background-color: transparent;
  border-bottom: none;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
}

main {
  margin-top: 16px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 24px;
  line-height: 1.1;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero .btn-group {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 32px;
  margin-bottom: 60px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Cards */
.card {
  background-color: var(--surface-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.card.animate-in {
  animation: fadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.grid > :nth-child(1).animate-in { animation-delay: 0.05s; }
.grid > :nth-child(2).animate-in { animation-delay: 0.15s; }
.grid > :nth-child(3).animate-in { animation-delay: 0.25s; }
.grid > :nth-child(4).animate-in { animation-delay: 0.35s; }
.grid > :nth-child(5).animate-in { animation-delay: 0.45s; }

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

.card:hover {
  background-color: rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
}

.card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text-main);
}

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

.card.document-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card.document-card h3 {
  margin-bottom: 8px;
}

.card.document-card p {
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Icons in Cards */
.card-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--text-main);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 99px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: #ffffff;
  color: #000000;
}

.btn-primary:hover {
  background-color: #f1f1f1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.bg-surface {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Page Headers (Legal/Static) */
.page-header {
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--surface-color);
  margin-bottom: 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Legal Content */
.legal-content {
  max-width: 800px;
  margin: 0 auto 80px;
  background: var(--surface-color);
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  opacity: 0;
  transform: translateY(20px);
}

.legal-content.animate-in {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
  color: var(--primary-color);
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.legal-content ul, .legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 8px;
}

/* Footer */
.footer {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--text-main);
}

.footer-brand p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
  }
  
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 16px 0;
  }
  
  .nav-link {
    font-size: 0.85rem;
  }
  
  .legal-content {
    padding: 24px;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}
