:root {
    --bg-top: #f8fafc;
    --bg-bottom: #f1f5f9;
    --surface: #ffffff;
    --text: #0f172a;
    --text-secondary: #334155;
    --muted: #64748b;
    --accent: #1457e6;
    --accent-soft: #dbeafe;
    --accent-dark: #0d3f9f;
    --accent-secondary: #07b2bd;
    --border: rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.08);
    --radius-lg: 20px;
    --radius-md: 14px;
    --max-width: 880px;
    --header-max: 960px;
    --icon-radius: 22%;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(20, 87, 230, 0.1), transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(7, 178, 189, 0.06), transparent 55%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    background-attachment: fixed;
}

a {
    color: var(--accent-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover { color: var(--accent); }

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 56px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, var(--shadow-sm);
}

.site-header-inner {
    max-width: var(--header-max);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.brand:hover { color: var(--text); }

.brand img {
    width: 44px;
    height: 44px;
    border-radius: var(--icon-radius);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.06),
        0 6px 16px rgba(20, 87, 230, 0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand-name {
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.brand-tag {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.site-nav a {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 9px;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.site-nav a:hover {
    background: #fff;
    color: var(--accent-dark);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.site-nav a[aria-current="page"] {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(20, 87, 230, 0.35);
}

@media (max-width: 640px) {
    .site-header-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
        gap: 12px;
    }

    .brand { justify-content: center; }

    .site-nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .site-nav a {
        padding: 8px 12px;
        font-size: 0.82rem;
    }
}

.card {
    margin-top: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-md);
}

@media (min-width: 640px) {
    .card { padding: 40px 44px; }
}

.card h1 {
    margin: 0 0 10px;
    font-size: clamp(1.65rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
}

.card h2 {
    margin: 32px 0 12px;
    padding-top: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    border-top: 1px solid #f1f5f9;
}

.card h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.card h3 {
    margin: 20px 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.card p, .card li {
    color: var(--text-secondary);
}

.card ul, .card ol {
    margin: 0;
    padding-left: 1.2rem;
}

.card li + li { margin-top: 8px; }

.card li strong { color: var(--text); }

.hero {
    text-align: center;
    padding: 12px 20px 8px;
}

@media (min-width: 640px) {
    .hero { padding: 40px 52px 8px; }
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: var(--icon-radius);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 20px 48px rgba(20, 87, 230, 0.22);
    margin-bottom: 24px;
}

.hero .badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero .lead {
    max-width: 560px;
    margin: 0 auto 32px;
    color: var(--muted);
    font-size: 1.05rem;
}

.grid {
    display: grid;
    gap: 16px;
    text-align: left;
}

@media (min-width: 700px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
}

.tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 22px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tile:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 10px 28px rgba(20, 87, 230, 0.12);
}

.tile-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 1.15rem;
}

.tile strong {
    font-size: 1rem;
    color: var(--text);
}

.tile span {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.tile .arrow {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-dark);
}

.contact-strip {
    margin-top: 32px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: #f8fafc;
    border: 1px solid var(--border);
    font-size: 0.92rem;
    color: var(--muted);
}

.info-box {
    margin: 20px 0;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    border: 1px solid #93c5fd;
    color: var(--accent-dark);
    font-size: 0.92rem;
}

.site-footer {
    max-width: var(--max-width);
    margin: 32px auto 0;
    padding: 0 20px 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .tile { transition: none; }
}
