:root {
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-text-primary: #1a1d23;
  --color-text-secondary: #5a6275;
  --color-accent-start: #ff7eb3;
  --color-accent-end: #ff758c;
  --color-accent-warm: #ffb347;
  --color-border: #e5e9ef;
  --color-code-bg: #f1f5f9;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --container-max: 1120px;
  --header-h: 72px;
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 600; letter-spacing: -0.01em; margin-bottom: var(--space-md); text-wrap: balance; }
h3 { font-size: clamp(1.125rem, 2vw, 1.35rem); font-weight: 600; margin-bottom: var(--space-sm); }
a { color: inherit; text-decoration: none; }
button, [role="button"], input, textarea, select { font-family: inherit; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-sm); }
section { padding: var(--space-lg) 0; position: relative; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }

/* Header & Nav */
header { position: sticky; top: 0; z-index: 100; background: rgba(247, 248, 250, 0.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--color-border); height: var(--header-h); }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: var(--space-xs); font-weight: 700; font-size: 1.125rem; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
nav ul { display: flex; list-style: none; gap: var(--space-md); }
nav a { font-size: 0.95rem; font-weight: 500; color: var(--color-text-secondary); transition: color var(--transition-base); }
nav a:hover, nav a[aria-current="page"] { color: var(--color-text-primary); }
@media (max-width: 768px) { nav ul { display: none; } }

/* Footer */
footer { background: #0f1115; color: #9aa1b0; padding: var(--space-xl) 0 var(--space-md); margin-top: var(--space-xl); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-lg); margin-bottom: var(--space-lg); }
.footer-col h4 { color: #e5e7eb; font-size: 1rem; margin-bottom: var(--space-sm); font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: #a1a8ba; font-size: 0.9rem; transition: color var(--transition-base); }
.footer-col a:hover { color: #fff; }
.copyright { text-align: center; font-size: 0.85rem; color: #5a6275; border-top: 1px solid #1e222a; padding-top: var(--space-md); margin-top: var(--space-md); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.6rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem; transition: all var(--transition-base); border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end)); color: #fff; box-shadow: 0 4px 14px rgba(255, 117, 140, 0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255, 117, 140, 0.35); }
.btn-secondary { background: var(--color-surface); color: var(--color-text-primary); border-color: var(--color-border); }
.btn-secondary:hover { background: #f8f9fb; }

/* Cards & Components */
.card { background: var(--color-surface); border-radius: var(--radius-md); padding: var(--space-md); box-shadow: var(--shadow-card); border: 1px solid var(--color-border); transition: transform var(--transition-base), box-shadow var(--transition-base); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: linear-gradient(135deg, #fff0f3, #ffe8cc); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-sm); }
.feature-icon svg { width: 24px; height: 24px; stroke: var(--color-text-primary); stroke-width: 1.5; fill: none; }
table { width: 100%; border-collapse: collapse; margin: var(--space-md) 0; font-size: 0.95rem; }
th, td { padding: 0.85rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #f8fafc; font-weight: 600; }
tr:hover td { background: #fcfcfd; }
code { font-family: var(--font-mono); background: var(--color-code-bg); padding: 0.2em 0.4em; border-radius: 4px; font-size: 0.9em; }

/* FAQ */
details { margin-bottom: var(--space-sm); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); overflow: hidden; }
summary { padding: 1rem; cursor: pointer; font-weight: 500; list-style: none; position: relative; padding-right: 2.5rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.25rem; transition: transform var(--transition-base); }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details > div { padding: 0 1rem 1rem; color: var(--color-text-secondary); }

/* SVG Animations */
.svg-container { width: 100%; height: auto; overflow: visible; }
.flow-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: dashFlow 10s linear infinite; }
.pulse-ring { animation: ringPulse 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes dashFlow { to { stroke-dashoffset: 1; } }
@keyframes ringPulse { 0%, 100% { opacity: 0.2; transform: scale(0.95); } 50% { opacity: 0.7; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .flow-path, .pulse-ring { animation: none !important; }
  .btn-primary:hover { transform: none; box-shadow: 0 4px 14px rgba(255, 117, 140, 0.25); }
  .card:hover { transform: none; }
}

/* Focus & Utilities */
:focus-visible { outline: 2px solid var(--color-accent-end); outline-offset: 2px; border-radius: 4px; }
.bg-soft-glow { background: radial-gradient(circle at 85% 15%, rgba(255, 126, 179, 0.06) 0%, transparent 45%), radial-gradient(circle at 15% 85%, rgba(255, 179, 71, 0.05) 0%, transparent 45%); }
.mono { font-family: var(--font-mono); }
.gradient-text { background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-warm)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-accent-start); color: #fff; font-weight: 600; font-size: 0.85rem; margin-right: 0.5rem; flex-shrink: 0; }
.step-item { display: flex; align-items: flex-start; gap: var(--space-xs); margin-bottom: var(--space-sm); }
.step-content { padding-top: 0.35rem; }
.blog-date { display: inline-block; font-family: var(--font-mono); font-size: 0.85rem; color: var(--color-text-secondary); margin-bottom: 0.5rem; }
.related-link { display: flex; align-items: baseline; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); gap: 1rem; }
.related-link:last-child { border-bottom: none; }
.related-desc { color: var(--color-text-secondary); font-size: 0.95rem; }
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}
