:root {
  --bg: #f7f9fc;
  --bg-elev: #ffffff;
  --bg-soft: #eef3f8;
  --text: #16233a;
  --text-soft: #41506a;
  --text-muted: #6b7a93;
  --border: #d8e1ec;
  --border-strong: #b9c6d8;
  --accent: #1f63d6;
  --accent-2: #16a394;
  --accent-soft: #e6efff;
  --accent-2-soft: #e1f5f1;
  --shadow: 0 1px 2px rgba(20,40,80,.04), 0 8px 24px rgba(20,40,80,.06);
  --shadow-sm: 0 1px 2px rgba(20,40,80,.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --maxw: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 16px; top: -64px; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100; transition: top .2s ease; }
.skip-link:focus { top: 16px; color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; }
.brand-name { letter-spacing: -.01em; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav a { display: inline-block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--text-soft); font-weight: 500; font-size: 15px; }
.primary-nav a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; cursor: pointer; }
.nav-toggle-bar { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .05s ease, background .15s ease, border-color .15s ease; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1a54b8; }
.btn-secondary { background: var(--bg-elev); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-soft); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-steam { background: #0b1a2b; color: #fff; }
.btn-steam:hover { background: #14233a; }

.hero { padding: 72px 0 56px; background: radial-gradient(1200px 400px at 80% -10%, var(--accent-2-soft), transparent 60%), radial-gradient(900px 360px at 0% 10%, var(--accent-soft), transparent 55%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.12; letter-spacing: -.02em; margin: 22px 0 18px; }
.hero p.lead { font-size: 19px; color: var(--text-soft); max-width: 560px; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-illustration { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }

.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.015em; margin: 0 0 12px; }
.section-lead { color: var(--text-soft); max-width: 720px; margin: 0 0 36px; }
.section-head { margin-bottom: 36px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card-media { aspect-ratio: 16/10; background: var(--bg-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent-2); background: var(--accent-2-soft); padding: 3px 10px; border-radius: 999px; }
.card h3 { margin: 4px 0 0; font-size: 19px; letter-spacing: -.01em; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); text-decoration: none; }
.card p { color: var(--text-soft); font-size: 15px; margin: 0; }
.card-link { margin-top: auto; font-weight: 600; color: var(--accent); font-size: 14px; }

.pathway { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.pathway-step { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.pathway-step .num { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 600; }
.pathway-step h3 { font-size: 17px; margin: 8px 0 8px; }
.pathway-step p { color: var(--text-soft); font-size: 14px; margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--text-soft); font-size: 15px; }

.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.015em; margin: 8px 0 14px; }
.article .meta { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.article h2 { font-size: 24px; margin: 36px 0 12px; letter-spacing: -.01em; }
.article h3 { font-size: 19px; margin: 26px 0 10px; }
.article p, .article li { color: var(--text); font-size: 17px; line-height: 1.75; }
.article ul, .article ol { padding-left: 1.4em; }
.article img { border-radius: var(--radius); border: 1px solid var(--border); margin: 22px 0; }
.callout { border: 1px solid var(--border); border-left: 4px solid var(--accent-2); background: var(--accent-2-soft); border-radius: var(--radius-sm); padding: 16px 18px; margin: 22px 0; }
.callout .label { font-weight: 700; color: var(--accent-2); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 4px; }
.callout p { margin: 0; font-size: 15px; color: var(--text); }
.callout.note { border-left-color: var(--accent); background: var(--accent-soft); }
.callout.note .label { color: var(--accent); }
.related { margin-top: 48px; padding: 24px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); }
.related h2 { font-size: 20px; margin: 0 0 12px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.related li:last-child { border-bottom: none; }

.diagram { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 26px 0; }
.diagram svg { width: 100%; height: auto; }
.diagram .caption { font-size: 13px; color: var(--text-muted); margin-top: 12px; text-align: center; }

.page-header { padding: 56px 0 8px; background: radial-gradient(900px 320px at 90% -20%, var(--accent-2-soft), transparent 60%), radial-gradient(700px 280px at 0% 0%, var(--accent-soft), transparent 55%), var(--bg); }
.page-header h1 { font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -.02em; margin: 10px 0 12px; }
.page-header p { color: var(--text-soft); max-width: 720px; margin: 0; font-size: 18px; }

.app-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.app-mockup { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.app-mockup .titlebar { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 10px 14px; display: flex; gap: 6px; }
.app-mockup .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.app-mockup .screen { padding: 22px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.stat { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.stat .k { font-size: 12px; color: var(--text-muted); font-family: var(--mono); }
.stat .v { font-size: 17px; font-weight: 600; color: var(--text); font-family: var(--mono); }
.note-banner { border: 1px solid var(--border); background: var(--accent-soft); border-radius: var(--radius); padding: 16px 18px; margin: 22px 0; color: var(--text); font-size: 15px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info address { font-style: normal; line-height: 1.9; color: var(--text); }
.contact-info .row { display: flex; gap: 10px; margin-bottom: 8px; }
.contact-info .row .k { font-weight: 600; min-width: 80px; color: var(--text-soft); }
.form { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; color: var(--text); }
.field input, .field textarea { font-family: var(--font); font-size: 15px; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-elev); color: var(--text); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .err { color: #b3261e; font-size: 13px; min-height: 16px; }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 15px; }
.form-status.ok { background: var(--accent-2-soft); color: #0c5a4f; border: 1px solid #9ad3c8; }
.form-status.err { background: #fdecea; color: #8a1c15; border: 1px solid #f3c2bd; }

.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.015em; margin: 8px 0 14px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--text); font-size: 16px; line-height: 1.75; }
.legal ul, .legal ol { padding-left: 1.4em; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.legal th { background: var(--bg-soft); font-weight: 600; }

.site-footer { background: var(--bg-elev); border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-brand { font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.footer-tagline { color: var(--text-soft); font-size: 14px; max-width: 360px; }
.footer-contact address { font-style: normal; font-size: 14px; color: var(--text-soft); line-height: 1.8; }
.footer-nav-title { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 0 0 10px; }
.footer-links { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer-links li a { color: var(--text-soft); font-size: 14px; }
.footer-links.legal li a { color: var(--text-muted); }
.footer-base { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; }
.footer-disclaimer { font-size: 13px; color: var(--text-muted); max-width: 760px; }
.footer-copy { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; z-index: 80; }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cookie-text { margin: 0; font-size: 14px; color: var(--text-soft); max-width: 520px; }
.cookie-actions { display: flex; gap: 10px; }

.center { text-align: center; }
.muted { color: var(--text-muted); }
.list-plain { list-style: none; padding: 0; margin: 0; }

.cta-band { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.cta-band h2 { margin: 0; font-size: 24px; letter-spacing: -.01em; }
.cta-band p { margin: 8px 0 0; color: var(--text-soft); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.hero-stat .k { font-family: var(--mono); font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.hero-stat .v { font-size: 22px; font-weight: 700; color: var(--text); }

.breadcrumb { font-size: 13px; color: var(--text-muted); margin: 18px 0 0; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

.not-found { text-align: center; padding: 96px 0; }
.not-found .code { font-family: var(--mono); font-size: clamp(56px, 10vw, 120px); font-weight: 700; color: var(--accent); letter-spacing: -.04em; line-height: 1; }
.not-found h1 { font-size: 28px; margin: 16px 0 12px; }
.not-found p { color: var(--text-soft); max-width: 540px; margin: 0 auto 28px; }
.not-found .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .primary-nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--bg-elev); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 12px 24px 20px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .15s ease, opacity .15s ease; }
  .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .primary-nav a { display: block; padding: 12px 14px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .app-showcase { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
  .cta-band { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
