:root {
  --bg: #f7f9fc;
  --bg-elev: #ffffff;
  --bg-soft: #eef3f9;
  --text: #1a2433;
  --text-soft: #4a5a72;
  --text-muted: #6b7a91;
  --accent: #1f6feb;
  --accent-2: #1aa6a0;
  --accent-soft: #e6f0ff;
  --accent-2-soft: #e0f5f3;
  --border: #d8e0ec;
  --border-strong: #b9c6d9;
  --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: 14px;
  --radius-sm: 8px;
  --maxw: 1140px;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.2rem 0 0.8rem; }
h3 { font-size: 1.25rem; margin: 1.4rem 0 0.5rem; }
p { margin: 0 0 1rem; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,249,252,.85); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); display: inline-flex; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav a { display: inline-block; padding: 8px 12px; color: var(--text-soft); border-radius: 8px; font-size: .95rem; font-weight: 500; }
.primary-nav a:hover { background: var(--bg-soft); text-decoration: none; color: var(--text); }
.primary-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 1px solid var(--border); padding: 10px; border-radius: 8px; cursor: pointer; }
.nav-toggle-bar { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav { position: fixed; inset: 68px 0 auto 0; background: var(--bg-elev); border-bottom: 1px solid var(--border); padding: 12px 24px 20px; box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s 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; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: .98rem; border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1858c4; text-decoration: none; }
.btn-secondary { background: var(--bg-elev); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-soft); text-decoration: none; }
.btn-accent2 { background: var(--accent-2); color: #fff; }
.btn-accent2:hover { background: #138a85; text-decoration: none; }

.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin: 0 0 16px; }
.hero .lead { font-size: 1.15rem; color: var(--text-soft); max-width: 52ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-illustration { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--bg-soft); aspect-ratio: 4 / 3; }
.hero-illustration img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero { padding: 40px 0 24px; } }

.section { padding: 56px 0; border-top: 1px solid var(--border); }
.section-alt { background: var(--bg-elev); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; font-size: .95rem; }
.eyebrow { color: var(--accent-2); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }

.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; color: inherit; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); text-decoration: none; }
.card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.card-img 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; align-items: center; font-size: .82rem; color: var(--text-muted); }
.card-tag { background: var(--accent-2-soft); color: #0d6e69; padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: .75rem; }
.card h3 { margin: 2px 0 0; font-size: 1.12rem; }
.card p { color: var(--text-soft); font-size: .95rem; margin: 0; }
.card-link { margin-top: auto; font-weight: 600; color: var(--accent); font-size: .92rem; }
.card-link::after { content: " →"; }

.article { padding: 40px 0 64px; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 48px; }
.article-body { max-width: 70ch; }
.article-hero { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin: 24px 0 32px; aspect-ratio: 16 / 7; background: var(--bg-soft); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { color: var(--text-muted); font-size: .9rem; display: flex; gap: 14px; flex-wrap: wrap; }
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 20px 0; }
.callout.note { border-color: var(--accent-2); background: var(--accent-2-soft); }
.callout.warn { border-color: #d97706; background: #fff5e6; }
.callout strong { display: block; margin-bottom: 4px; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); }
.diagram { margin: 24px 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-elev); }
.diagram-title { padding: 12px 18px; font-weight: 600; border-bottom: 1px solid var(--border); background: var(--bg-soft); font-size: .95rem; }
.diagram table { width: 100%; border-collapse: collapse; }
.diagram th, .diagram td { padding: 10px 18px; border-bottom: 1px solid var(--border); text-align: left; font-size: .92rem; }
.diagram th { background: var(--bg-soft); color: var(--text-soft); font-weight: 600; }
.diagram tr:last-child td { border-bottom: none; }
.sidebar { position: sticky; top: 92px; align-self: start; }
.sidebar h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 10px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.sidebar li:last-child { border-bottom: none; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .sidebar { position: static; } }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .feature-icon { 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: 1.1rem; }
.feature p { margin: 0; color: var(--text-soft); font-size: .95rem; }

.app-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px 0; }
.app-mock { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-elev); }
.app-mock img { width: 100%; display: block; }
@media (max-width: 860px) { .app-hero { grid-template-columns: 1fr; } }
.note-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.note-box strong { color: var(--text); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 10px; font: inherit; background: var(--bg-elev); color: var(--text); }
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.form-field .error-msg { color: #c2410c; font-size: .85rem; margin-top: 6px; display: none; }
.form-field.invalid input, .form-field.invalid textarea { border-color: #c2410c; }
.form-field.invalid .error-msg { display: block; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: .95rem; display: none; }
.form-status.success { display: block; background: var(--accent-2-soft); color: #0d6e69; border: 1px solid #b3e3df; }
.form-status.error { display: block; background: #fff0ee; color: #b42318; border: 1px solid #f3c9c1; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.legal { padding: 40px 0 64px; }
.legal-body { max-width: 72ch; }
.legal h2 { margin-top: 2rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.legal th, .legal td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: .92rem; }
.legal th { background: var(--bg-soft); }

.site-footer { background: var(--bg-elev); border-top: 1px solid var(--border); margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 48px 24px 32px; }
.footer-tagline { color: var(--text-soft); max-width: 48ch; margin: 0 0 14px; }
.footer-contact { color: var(--text-soft); font-size: .92rem; line-height: 1.7; }
.footer-nav-title { font-weight: 700; margin: 0 0 10px; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text); }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { padding: 5px 0; font-size: .92rem; }
.footer-bottom { padding: 20px 24px 28px; border-top: 1px solid var(--border); }
.footer-disclaimer { font-size: .85rem; color: var(--text-muted); margin: 0 0 8px; }
.footer-copy { font-size: .85rem; color: var(--text-muted); margin: 0; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--bg-elev); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(20,40,80,.08); }
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 24px; flex-wrap: wrap; }
.cookie-text { margin: 0; font-size: .92rem; color: var(--text-soft); }
.cookie-actions { display: flex; gap: 10px; }

.not-found { padding: 80px 0; text-align: center; }
.not-found .nf-code { font-family: var(--font-mono); font-size: clamp(3rem, 10vw, 6rem); color: var(--accent); margin: 0; letter-spacing: -0.04em; }
.not-found .nf-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }



