:root {
    --background: #f8fafc;
    --surface: #fff;
    --surface-muted: #f1f5f9;
    --text: #172033;
    --text-muted: #5f6b7a;
    --border: #dfe5ec;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --shadow: 0 16px 45px rgba(15, 23, 42, .08);
    --radius: 18px;
    --max-width: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { min-width: 320px; background: var(--background); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.65; overflow-x: hidden; }
a { color: inherit; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--text); color: #fff; transform: translateY(-150%); transition: transform 160ms ease; }
.skip-link:focus { transform: translateY(0); }
.container, .header-inner { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(223, 229, 236, .9); background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo { text-decoration: none; font-size: 1.2rem; font-weight: 750; letter-spacing: -.02em; }
nav { display: flex; align-items: center; gap: 28px; }
nav a, footer a { color: var(--text-muted); font-size: .94rem; font-weight: 600; text-decoration: none; transition: color 160ms ease; }
nav a:hover, nav a:focus-visible, footer a:hover, footer a:focus-visible { color: var(--primary); }

.hero { min-height: calc(78vh - 74px); display: grid; align-items: center; overflow: hidden; background: radial-gradient(circle at 85% 30%, rgba(37, 99, 235, .12), transparent 28%), linear-gradient(180deg, #fff 0%, var(--background) 100%); }
.hero-content { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: clamp(48px, 7vw, 96px); align-items: center; padding-block: 86px; }
.hero-copy { min-width: 0; }
.eyebrow { margin-bottom: 12px; color: var(--primary); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.03em; }
h1 { max-width: 760px; font-size: clamp(2.7rem, 5.4vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
.hero-intro { max-width: 690px; margin-top: 24px; color: var(--text-muted); font-size: clamp(1.06rem, 2vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-portrait { width: min(100%, 350px); display: flex; align-items: center; flex-direction: column; justify-self: end; }
.hero-portrait-image { width: clamp(280px, 25vw, 320px); aspect-ratio: 1; overflow: hidden; border: 7px solid #fff; border-radius: 50%; background: var(--surface-muted); box-shadow: 0 0 0 4px rgba(37, 99, 235, .24), 0 18px 45px rgba(15, 23, 42, .18); }
.hero-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.hero-portrait-caption { padding: 24px 16px 0; text-align: center; }
.hero-portrait-caption strong { display: block; color: var(--text); font-size: 1.28rem; line-height: 1.25; letter-spacing: -.02em; }
.hero-portrait-caption span { display: block; margin-top: 6px; color: var(--primary); font-size: .94rem; font-weight: 650; line-height: 1.4; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 20px; border: 1px solid var(--primary); border-radius: 10px; background: var(--primary); color: #fff; font-size: .94rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.button:hover { border-color: var(--primary-dark); background: var(--primary-dark); box-shadow: 0 8px 18px rgba(37, 99, 235, .2); transform: translateY(-1px); }
.button:focus-visible, a:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 3px; }
.button-secondary { border-color: var(--border); background: var(--surface); color: var(--text); }
.button-secondary:hover { border-color: #cbd5e1; background: var(--surface-muted); color: var(--text); box-shadow: none; }

.section { padding-block: 96px; }
.section-muted { border-block: 1px solid var(--border); background: var(--surface-muted); }
.about-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 8vw, 110px); align-items: start; }
.about-copy { color: var(--text-muted); font-size: 1.05rem; }
.about-copy p + p { margin-top: 18px; }
.section-heading { max-width: 640px; margin-bottom: 40px; }
.section-heading > p:last-child { margin-top: 14px; color: var(--text-muted); }
.apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.app-card { min-height: 100%; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .03); transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.app-card:hover { border-color: #c7d2e2; box-shadow: var(--shadow); transform: translateY(-4px); }
.app-icon { width: 88px; height: 88px; margin-bottom: 22px; border-radius: 20px; object-fit: cover; box-shadow: 0 8px 20px rgba(15, 23, 42, .12); }
.app-card h3 { min-height: 2.32em; font-size: 1.18rem; overflow-wrap: anywhere; }
.app-card p { margin: 13px 0 22px; color: var(--text-muted); font-size: .94rem; }
.app-link { width: 100%; margin-top: auto; }

.contact-section { padding-top: 20px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: clamp(34px, 6vw, 62px); border-radius: 24px; background: var(--text); color: #fff; }
.contact-card > div { max-width: 680px; }
.contact-card .eyebrow { color: #93c5fd; }
.contact-card p:last-child { margin-top: 16px; color: #cbd5e1; }
.button-light { flex: 0 0 auto; border-color: #fff; background: #fff; color: var(--text); }
.button-light:hover { border-color: #e2e8f0; background: #e2e8f0; color: var(--text); }
footer { padding-block: 36px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--text-muted); font-size: .9rem; }

.policy-main { min-height: calc(100vh - 147px); }
.policy-hero { padding-block: 82px 42px; }
.policy-hero p:last-child { margin-top: 16px; color: var(--text-muted); }
.policy-content { max-width: 780px; padding-bottom: 96px; }
.policy-content section + section { margin-top: 34px; }
.policy-content h2 { margin-bottom: 10px; font-size: 1.35rem; }
.policy-content p { color: var(--text-muted); }
.policy-content a { color: var(--primary); }

@media (max-width: 980px) {
    .hero-content { grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr); gap: 40px; }
    .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .container, .header-inner { width: min(calc(100% - 32px), var(--max-width)); }
    .header-inner { min-height: 68px; gap: 18px; }
    .logo { font-size: 1.05rem; }
    nav { gap: 14px; }
    nav a { font-size: .84rem; }
    .hero { min-height: auto; }
    .hero-content { grid-template-columns: 1fr; gap: 52px; padding-block: 72px 86px; }
    .hero-portrait { width: min(100%, 350px); justify-self: center; }
    .hero-portrait-image { width: min(78vw, 300px); }
    .section { padding-block: 72px; }
    .about-grid { grid-template-columns: 1fr; gap: 28px; }
    .contact-section { padding-top: 8px; }
    .contact-card { align-items: flex-start; flex-direction: column; gap: 28px; }
}
@media (max-width: 540px) {
    .header-inner { min-height: 80px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; padding-block: 10px; }
    nav { width: 100%; justify-content: space-between; }
    .hero-content { padding-block: 62px 76px; }
    .hero-portrait-image { width: min(76vw, 280px); border-width: 6px; }
    .hero-portrait-caption { padding: 21px 12px 0; }
    .hero-actions, .hero-actions .button { width: 100%; }
    .apps { grid-template-columns: 1fr; }
    .app-card h3 { min-height: 0; }
    .contact-card .button { width: 100%; }
    .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
    .policy-hero { padding-block: 64px 32px; }
    .policy-content { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
