:root {
  --bg-primary: #f3f6fb;
  --bg-secondary: #e9edf5;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-hover: rgba(255, 255, 255, 0.96);
  --surface-card: rgba(255, 255, 255, 0.86);
  --text: #121c33;
  --text-secondary: #46536e;
  --text-muted: #8b97ae;
  --primary: #3b6bf2;
  --primary-light: #6f9bff;
  --primary-dark: #1f45c8;
  --primary-glow: rgba(59, 107, 242, 0.22);
  --primary-soft: rgba(59, 107, 242, 0.08);
  --accent: #06b6d4;
  --accent-2: #6366f1;
  --border: rgba(18, 28, 51, 0.09);
  --border-primary: rgba(59, 107, 242, 0.25);
  --shadow: 0 24px 80px rgba(24, 39, 75, 0.1);
  --shadow-soft: 0 8px 32px rgba(24, 39, 75, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 32px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 107, 242, 0.09), transparent),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(6, 182, 212, 0.07), transparent),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(99, 102, 241, 0.07), transparent),
    radial-gradient(ellipse 70% 35% at 50% 50%, rgba(255, 255, 255, 0.55), transparent);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(37, 60, 130, 0.22), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(59, 107, 242, 0.16), transparent),
    radial-gradient(1px 1px at 50% 10%, rgba(18, 28, 51, 0.14), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(59, 107, 242, 0.18), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(6, 182, 212, 0.16), transparent),
    radial-gradient(1px 1px at 15% 85%, rgba(18, 28, 51, 0.12), transparent),
    radial-gradient(1px 1px at 60% 95%, rgba(99, 102, 241, 0.18), transparent);
  pointer-events: none;
  z-index: 0;
}

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

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 107, 242, 0.09) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseRed {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

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

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
  50% { box-shadow: 0 0 40px var(--primary-glow), 0 0 60px rgba(59, 107, 242, 0.14); }
}

@keyframes borderGlow {
  0%, 100% {
    border-color: var(--border-primary);
  }
  50% {
    border-color: rgba(59, 107, 242, 0.5);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@keyframes pulseScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes borderPulse {
  0%, 100% {
    border-color: var(--border-primary);
    box-shadow: 0 0 0 0 rgba(59, 107, 242, 0);
  }
  50% {
    border-color: rgba(59, 107, 242, 0.5);
    box-shadow: 0 0 20px rgba(59, 107, 242, 0.14);
  }
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
  animation: fadeIn 0.8s ease;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  animation: slideDown 0.6s ease;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--primary-light), var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.brand::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.brand:hover::after {
  transform: scaleX(1);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: var(--border-primary);
}

.hero {
  display: grid;
  gap: 24px;
}

.hero-content {
  position: relative;
  overflow: hidden;
  padding: 80px 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(59, 107, 242, 0.05), transparent);
  box-shadow: var(--shadow);
  animation: scaleIn 0.7s ease;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(59, 107, 242, 0.08), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.06), transparent 40%);
  pointer-events: none;
}

.hero-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.6;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--border-primary);
  animation: fadeInUp 0.6s ease 0.2s both;
}

h1 {
  max-width: 800px;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text);
  animation: fadeInUp 0.6s ease 0.3s both;
}

h1 .highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  max-width: 640px;
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  animation: fadeInUp 0.6s ease 0.5s both;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary), var(--accent));
  box-shadow: 0 8px 32px var(--primary-glow);
  background-size: 200% 200%;
  animation: gradientFlow 3s ease infinite;
}

.button.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 48px var(--primary-glow);
}

.button.primary:active {
  transform: translateY(-1px) scale(0.98);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-primary);
  color: var(--primary);
}

.button.secondary:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(59, 107, 242, 0.14);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.info-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-card);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: fadeInUp 0.6s ease both;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.info-card:hover::before {
  opacity: 1;
}

.info-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-primary);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 60px rgba(24, 39, 75, 0.12);
}

.info-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(59, 107, 242, 0.03));
  pointer-events: none;
}

.wide-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(59, 107, 242, 0.06), rgba(255, 255, 255, 0.85));
  border: 1px solid var(--border-primary);
}

.wide-card::before {
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: 0.5;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--border-primary);
}

.info-card h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.info-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.text-link:hover {
  gap: 10px;
  color: var(--primary-dark);
}

.policy-wrapper {
  display: grid;
  gap: 24px;
  margin-top: 28px;
  animation: fadeIn 0.8s ease;
}

.topbar-inner {
  margin-top: 8px;
}

.policy-header {
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(59, 107, 242, 0.05), rgba(255, 255, 255, 0.85));
  box-shadow: var(--shadow);
  animation: fadeInUp 0.6s ease;
}

.policy-header h1 {
  animation: none;
}

.updated-at {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--border-primary);
}

.policy-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-card);
  box-shadow: var(--shadow);
  animation: fadeInUp 0.6s ease 0.2s both;
}

.policy-card p {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.policy-card h2 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  border-left: 3px solid var(--primary);
  padding-left: 16px;
  margin-top: 32px;
  margin-bottom: 16px;
}

.policy-card h2:first-of-type {
  margin-top: 20px;
}

.policy-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.policy-card ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

.policy-card li {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 4px;
}

.contact-box {
  padding: 24px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(59, 107, 242, 0.06), rgba(255, 255, 255, 0.85));
  margin-top: 16px;
  animation: borderGlow 3s ease-in-out infinite;
}

.contact-box p {
  margin-bottom: 8px;
}

.contact-box strong {
  color: var(--primary);
  font-size: 1.05rem;
}

.contact-box a {
  color: var(--primary);
  transition: color 0.3s ease;
}

.contact-box a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

@media (max-width: 800px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 14px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 18px;
  }

  .hero-content {
    padding: 48px 24px;
  }

  .hero-content,
  .policy-header,
  .policy-card,
  .info-card {
    border-radius: var(--radius);
  }

  .policy-header,
  .policy-card,
  .info-card {
    padding: 24px;
  }

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

  .wide-card {
    grid-column: auto;
  }

  h1 {
    line-height: 1.05;
  }

  .brand {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
