:root {
  --color-dark: #271231;
  --color-paper: #F5F0E5;
  --color-text: #1F1523;
  --color-brand: #9B12D8;
  --color-accent: #ED6EC0;
  --color-btn-text: #1F1523;
  --color-border: rgba(31, 21, 35, 0.16);
  --radius-card: 0;
  --radius-btn: 0;
  --section-y: clamp(2.5rem, 5vw, 4rem);
  --gap: clamp(0.75rem, 1.5vw, 1.25rem);
  --content-max: 960px;
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --lh-body: 1.55;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); font-size: 16px; line-height: var(--lh-body); color: var(--color-text); background: var(--color-paper); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: calc(var(--gap) * 2); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); margin-bottom: var(--gap); }
p { max-width: 38em; margin-bottom: var(--gap); }
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
.section { padding-block: var(--section-y); }
.surface-dark { background-color: var(--color-dark); color: var(--color-paper); }
.surface-dark .hl { color: var(--color-accent); }
.surface-dark .badge { color: var(--color-accent); }
.surface-dark .btn-secondary { border-color: var(--color-paper); color: var(--color-paper); }
.surface-dark table th, .surface-dark table td { border-color: rgba(245, 240, 229, 0.16); }
.surface-paper { background-color: var(--color-paper); color: var(--color-text); }
.surface-paper .hl { color: var(--color-brand); }
.surface-paper .badge { color: var(--color-brand); }
.surface-paper table th, .surface-paper table td { border-color: var(--color-border); }

.badge { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: var(--gap); }
.card { border: var(--card-border, 1px solid var(--color-border)); background: transparent; padding: var(--gap); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: transform 0.2s ease, opacity 0.2s ease; border: none; border-radius: var(--radius-btn); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.btn-primary { background-color: var(--color-accent); color: var(--color-btn-text); }
.btn-primary:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-secondary { background: transparent; border: 1px solid var(--color-text); color: var(--color-text); }
.btn-icon { width: 20px; height: 20px; }

table { width: 100%; border-collapse: collapse; margin-bottom: var(--gap); }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--color-border); }
th { font-weight: 600; }
tr:last-child td { border-bottom: none; }

details { border-bottom: 1px solid var(--color-border); padding: 16px 0; }
summary { font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 24px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); transition: transform 0.2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin-top: var(--gap); color: inherit; }

.svg-wrap { width: 100%; height: auto; }
.flow-line { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: dashFlow 6s linear infinite; }
@keyframes dashFlow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.bubble-float { animation: floatBubble 8s ease-in-out infinite alternate; }
@keyframes floatBubble { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.input-breathe { animation: breathe 5s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: 0.4; } to { opacity: 1; } }
.slide-panel { animation: slidePanel 10s ease-in-out infinite alternate; }
@keyframes slidePanel { from { transform: translateX(12px); opacity: 0.6; } to { transform: translateX(0); opacity: 1; } }
.anim-center { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

header { position: sticky; top: 0; z-index: 100; background: var(--color-paper); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.2rem; }
.logo img { width: 32px; height: 32px; }
nav { display: flex; gap: 24px; }
nav a { font-weight: 500; padding: 8px 0; position: relative; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-brand); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.steps-bar { display: flex; justify-content: space-between; gap: var(--gap); margin-top: var(--gap); }
.step-item { flex: 1; text-align: center; padding: 16px; border: 1px solid var(--color-border); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--color-accent); color: var(--color-btn-text); font-weight: 700; border-radius: var(--radius-card); margin-bottom: 8px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.news-card { border: 1px solid var(--color-border); padding: var(--gap); }
.news-card time { display: block; font-size: 0.85rem; color: var(--color-brand); margin-bottom: 8px; }
footer { background: var(--color-dark); color: var(--color-paper); padding-block: var(--section-y); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 16px; color: var(--color-accent); }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a:hover { text-decoration: underline; }
.copyright { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(245, 240, 229, 0.16); text-align: center; font-size: 0.9rem; opacity: 0.8; }

@media (max-width: 768px) {
  .header-inner { flex-direction: column; height: auto; padding: 16px 0; gap: 16px; }
  nav { flex-wrap: wrap; justify-content: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .steps-bar { flex-direction: column; }
}
