:root {
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-50: #eff6ff;
    --navy: #0f172a;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--navy);
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 28%);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--blue-600);
    text-decoration: none;
}

a:hover { text-decoration: underline; }

.container {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand strong {
    display: block;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.brand span {
    font-size: 0.8rem;
    color: var(--slate-500);
}

.nav-main {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.nav-main a {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--slate-600);
    text-decoration: none;
}

.nav-main a:hover {
    background: var(--blue-50);
    color: var(--blue-700);
    text-decoration: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
    background: var(--blue-600);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background: var(--blue-700);
    transform: translateY(-1px);
}

/* Hero */
.hero {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hero .lead {
    margin: 0 auto 1.75rem;
    max-width: 42rem;
    font-size: 1.12rem;
    color: var(--slate-600);
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: var(--white);
    color: var(--blue-700);
    border: 2px solid var(--blue-600);
}

/* Flow */
.flow {
    padding: 2rem 0 3rem;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.flow-step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.flow-step .num {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    background: var(--blue-600);
    color: var(--white);
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
}

.flow-step h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.flow-step p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--slate-500);
}

/* Platform sections */
.platform {
    padding: 3rem 0;
    scroll-margin-top: 5rem;
}

.platform:nth-child(even) {
    background: var(--slate-100);
}

.platform-header {
    text-align: center;
    margin-bottom: 2rem;
}

.platform-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.65rem;
}

.badge-web { background: #dbeafe; color: #1e40af; }
.badge-android { background: #dcfce7; color: #166534; }
.badge-wpf { background: #ede9fe; color: #5b21b6; }

.platform-header h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.platform-header p {
    margin: 0 auto;
    max-width: 36rem;
    color: var(--slate-600);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.platform:nth-child(even) .feature-card {
    box-shadow: var(--shadow);
}

.feature-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--slate-500);
}

/* Screenshots */
.gallery {
    display: grid;
    gap: 1.5rem;
}

.shot {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.shot figcaption {
    padding: 1rem 1.25rem;
    font-size: 0.92rem;
    color: var(--slate-600);
    border-top: 1px solid var(--slate-100);
}

.shot figcaption strong {
    display: block;
    color: var(--navy);
    margin-bottom: 0.2rem;
}

.shot img {
    width: 100%;
    border-bottom: 1px solid var(--slate-100);
}

.gallery-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Benefits */
.benefits {
    padding: 3rem 0;
}

.benefits h2 {
    text-align: center;
    margin: 0 0 1.75rem;
    font-size: 1.75rem;
    font-weight: 800;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.benefit {
    padding: 1.25rem;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.benefit h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.benefit p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--slate-500);
}

/* Contact */
.contact {
    padding: 3rem 0;
    background: var(--white);
    scroll-margin-top: 5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.contact-card {
    background: var(--slate-100);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
}

.contact-card--main {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--blue-50), var(--white));
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.contact-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
}

.contact-card--main h3 {
    font-size: 1.15rem;
}

.contact-legal,
.contact-phones,
.contact-emails {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-legal li,
.contact-phones li,
.contact-emails li {
    margin-bottom: 0.45rem;
    font-size: 0.92rem;
    color: var(--slate-600);
}

.contact-legal span {
    display: inline-block;
    min-width: 7.5rem;
    font-weight: 600;
    color: var(--navy);
}

.contact-phones a,
.contact-emails a {
    font-weight: 700;
    font-size: 1rem;
    color: var(--blue-700);
    text-decoration: none;
}

.contact-phones a:hover,
.contact-emails a:hover {
    text-decoration: underline;
}

.contact-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--slate-500);
    margin-left: 0.25rem;
}

.contact-caen {
    margin: 1rem 0 0;
    font-size: 0.88rem;
    color: var(--slate-500);
    line-height: 1.5;
}

.contact-card address {
    font-style: normal;
    font-size: 0.92rem;
    color: var(--slate-600);
    line-height: 1.55;
}

.contact-hours {
    margin: 0.85rem 0 0;
    font-size: 0.9rem;
    color: var(--slate-600);
}

.site-footer__company {
    margin-top: 0.65rem;
    font-size: 0.82rem;
    line-height: 1.6;
}

/* CTA */
.cta {
    padding: 3rem 0 4rem;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: var(--white);
    border-radius: calc(var(--radius) + 4px);
    padding: 2.5rem 1.5rem;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.35);
}

.cta-box h2 {
    margin: 0 0 0.75rem;
    font-size: 1.65rem;
}

.cta-box p {
    margin: 0 0 1.5rem;
    opacity: 0.95;
    max-width: 32rem;
    margin-inline: auto;
}

.cta-box .btn-primary {
    background: var(--white);
    color: var(--blue-700);
    box-shadow: none;
}

/* Footer */
.site-footer {
    padding: 1.5rem 0 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--slate-500);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.site-footer a {
    font-weight: 600;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 200;
    padding: 0.5rem 1rem;
    background: var(--navy);
    color: var(--white);
    border-radius: 6px;
}

@media (max-width: 640px) {
    .nav-main { display: none; }
    .hero { padding-top: 2rem; }
}
