:root {
  --bg-dark: #19102D;
  --bg-paper: #FCFCFD;
  --text: #191523;
  --brand: #5214EB;
  --accent: #D66EED;
  --radius-card: 0;
  --radius-btn: 0;
  --card-border: 2px solid var(--text);
  --card-shadow: 4px 4px 0 var(--text);
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 960px;
  --line-height-body: 1.75;
  --font-weight-h1: 500;
  --font-size-h1: clamp(2.6rem, 6.4vw, 5rem);
  --font-size-h2: clamp(1.8rem, 3.5vw, 2.8rem);
  --font-size-body: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background-color: var(--bg-paper);
  color: var(--text);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gap);
  padding-right: var(--gap);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section.dark {
  background-color: var(--bg-dark);
  color: var(--bg-paper);
}

.section.dark .label,
.section.dark .hl {
  color: var(--accent);
}

.section.dark .btn-outline {
  border-color: var(--bg-paper);
  color: var(--bg-paper);
}

.section.dark .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.hl {
  color: var(--brand);
}

.section.dark .hl {
  color: var(--accent);
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-h1);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-h1);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
  max-width: 38em;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-paper);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav a:hover {
  color: var(--brand);
}

.nav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-btn);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg-dark);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background-color: #c95ee0;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background-color: rgba(0,0,0,0.03);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.8;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: rgba(82, 20, 235, 0.06);
  border: 1px solid rgba(82, 20, 235, 0.15);
  font-size: 0.8rem;
  font-weight: 500;
}

.hero-pill svg {
  width: 16px;
  height: 16px;
  stroke: var(--brand);
}

.panel {
  background-color: var(--bg-dark);
  padding: var(--gap);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  position: relative;
  overflow: hidden;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}

.card {
  background-color: var(--bg-paper);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  border-radius: var(--radius-card);
}

.card-group-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background-color: rgba(0,0,0,0.12);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: attr(data-step);
  position: absolute;
  left: -2rem;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-btn);
}

.tips-list {
  counter-reset: tip;
  list-style: none;
  padding: 0;
}

.tips-list li {
  counter-increment: tip;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.5rem;
}

.tips-list li::before {
  content: counter(tip);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(82, 20, 235, 0.08);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-btn);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

.news-card {
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem;
  border-radius: var(--radius-card);
}

.news-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.news-card p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
}

.news-date {
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

th {
  font-weight: 600;
  background-color: rgba(0,0,0,0.02);
}

td:first-child {
  font-weight: 600;
  width: 40%;
}

details {
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  margin-bottom: 1rem;
  border-radius: var(--radius-card);
  background-color: var(--bg-paper);
}

summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--brand);
}

details[open] summary::after {
  content: "−";
}

details > div {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer {
  background-color: var(--bg-dark);
  color: var(--bg-paper);
  padding: 3rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-copy {
  opacity: 0.6;
  font-size: 0.8rem;
}

.svg-panel {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.anim-orbit {
  animation: orbit-breathe 8s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.anim-float {
  animation: float-up 6s ease-in-out infinite;
}

.anim-input {
  animation: breathe-dots 3s ease-in-out infinite;
}

.anim-slide-in {
  animation: slide-enter 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stroke-path {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw-line 4s ease forwards;
}

@keyframes orbit-breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.06); opacity: 0.9; }
}

@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes breathe-dots {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes slide-enter {
  0% { transform: translateX(-24px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes draw-line {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
  .header-inner {
    justify-content: space-between;
  }
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
