:root {
  --color-dark: #21163C;
  --color-paper: #E9E8EA;
  --color-text: #191523;
  --color-brand: #5214EB;
  --color-accent: #ED926E;
  --radius-card: 20px;
  --radius-btn: 12px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(25, 21, 35, 0.3);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1120px;
  --font-main: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background: var(--color-paper); color: var(--color-text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--color-brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
section { padding-block: var(--section-y); }

header { position: sticky; top: 0; z-index: 100; background: var(--color-paper); border-bottom: 1px solid rgba(25,21,35,0.08); height: var(--header-h); display: flex; align-items: center; }
header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 800; font-size: 1.25rem; color: var(--color-text); }
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { font-weight: 600; color: var(--color-text); }
.nav-links a[aria-current="page"] { color: var(--color-brand); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0 1.5rem; height: 52px; border-radius: var(--radius-btn); font-weight: 700; font-size: 1rem; cursor: pointer; transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; border: 2px solid transparent; }
.btn:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.btn-icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }
.btn-primary { background: var(--color-accent); color: var(--color-dark); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(237, 146, 110, 0.4); }
.btn-secondary { background: transparent; border-color: var(--color-text); color: var(--color-text); }
.btn-secondary:hover { background: rgba(25,21,35,0.05); transform: translateY(-1px); }

.dark-bg { background: var(--color-dark); color: var(--color-paper); }
.dark-bg a:not(.btn):not(.btn-secondary) { color: var(--color-accent); }
.dark-bg .btn-secondary { border-color: var(--color-paper); color: var(--color-paper); }
.dark-bg .btn-secondary:hover { background: rgba(233, 232, 234, 0.1); }

.light-card { background: var(--color-paper); color: var(--color-text); border-radius: var(--radius-card); padding: 1.5rem; box-shadow: var(--card-shadow); border: var(--card-border); }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: var(--gap); }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.subtitle { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.5rem; color: var(--color-brand); }
.dark-bg .subtitle { color: var(--color-accent); }
.hl { color: var(--color-brand); }
.dark-bg .hl { color: var(--color-accent); }
p { margin-bottom: 1rem; max-width: 38em; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.timeline { position: relative; padding-left: 2rem; border-left: 2px solid var(--color-brand); }
.timeline-item { position: relative; margin-bottom: var(--gap); padding-left: 1rem; }
.timeline-item::before { content: ''; position: absolute; left: -2.4rem; top: 0.3rem; width: 10px; height: 10px; background: var(--color-brand); border-radius: 50%; }

.feature-panel { position: relative; }
.feature-list { display: flex; flex-direction: column; gap: var(--gap); }
.feature-step { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.step-num { flex-shrink: 0; width: 24px; height: 24px; background: var(--color-accent); color: var(--color-dark); font-weight: 700; font-size: 0.8rem; border-radius: 6px; display: flex; align-items: center; justify-content: center; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid rgba(25,21,35,0.1); }
th { font-weight: 700; }

details { margin-bottom: 1rem; border-bottom: 1px solid rgba(25,21,35,0.1); padding-bottom: 1rem; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-weight: 300; }
details[open] summary::after { content: '−'; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.news-card { background: var(--color-paper); color: var(--color-text); border-radius: var(--radius-card); padding: 1.25rem; box-shadow: var(--card-shadow); }
.news-date { font-size: 0.8rem; color: var(--color-brand); margin-bottom: 0.5rem; display: block; }
.dark-bg .news-date { color: var(--color-accent); }

.checklist { list-style: none; counter-reset: check; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: 0.75rem; }
.checklist li::before { counter-increment: check; content: counter(check); position: absolute; left: 0; top: 0; width: 24px; height: 24px; background: var(--color-brand); color: var(--color-paper); border-radius: 6px; font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dark-bg .checklist li::before { background: var(--color-accent); color: var(--color-dark); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes breathe { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes flow { to { stroke-dashoffset: -20; } }

.svg-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3s ease forwards; }
.svg-float { animation: float 4s ease-in-out infinite; }
.svg-breathe { animation: breathe 3s ease-in-out infinite; }
.svg-flow { stroke-dasharray: 10 5; animation: flow 2s linear infinite; }

.hero-svg, .feature-svg { width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: flex; gap: 0.75rem; font-size: 0.9rem; flex-wrap: wrap; }
}
