@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root {
    --accent: #1769e0;
    --accent-hover: #0f57c7;
    --text: #111827;
    --text-secondary: #4b5563;
    --muted: #6b7280;
    --border: #e5e7eb;
    --border-light: #eef0f3;
    --background: #ffffff;
    --surface: #f8fafc;
    --surface-dark: #f1f5f9;
    --radius: 12px;
    --container: 1160px;
}


/* ==============================
   RESET
   ============================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}


/* ==============================
   HEADER
   ============================== */

header.dark-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 10;
}

header .nav-container {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 170px;
    height: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

nav a {
    padding: 9px 13px;
    border-radius: 7px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease, background 0.15s ease;
}

nav a:hover {
    color: var(--accent);
    background: #f5f7fa;
}

.language {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: 10px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
}

.language a {
    color: #4b5563;
}

.language a:hover {
    color: var(--accent);
}


/* ==============================
   HERO
   ============================== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0 125px;
    background: linear-gradient( 180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-light);
}


/* subtle background decoration */

.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    top: -300px;
    right: -180px;
    background: rgba(23, 105, 224, 0.055);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    bottom: -220px;
    left: -120px;
    background: rgba(23, 105, 224, 0.035);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    max-width: 850px;
    margin: 0 0 24px;
    color: #0f172a;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -2.8px;
    font-weight: 800;
}

.hero p {
    max-width: 680px;
    margin: 0 0 34px;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.75;
}

.buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* ==============================
   BUTTONS
   ============================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 21px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: var(--accent);
    color: white;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(23, 105, 224, 0.18);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(23, 105, 224, 0.20);
}

.button:active {
    transform: translateY(0);
}

.button.secondary {
    background: #ffffff;
    color: #374151;
    border-color: #d9dee7;
    box-shadow: none;
}

.button.secondary:hover {
    background: #f8fafc;
    border-color: #c8ced8;
    color: var(--text);
}


/* ==============================
   SECTIONS
   ============================== */

.section {
    padding: 90px 0;
    background: #ffffff;
}

.section.gray {
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.8px;
    font-weight: 750;
}

.section>.container>p {
    max-width: 720px;
    margin: 0 0 38px;
    color: var(--text-secondary);
    font-size: 16px;
}


/* ==============================
   CARDS
   ============================== */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card {
    position: relative;
    min-height: 205px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: #d5dce7;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
}


/* small accent indicator */

.card::before {
    content: "";
    display: block;
    width: 30px;
    height: 3px;
    margin-bottom: 22px;
    border-radius: 10px;
    background: var(--accent);
}

.card:nth-child(2)::before {
    background: #6b5ce7;
}

.card:nth-child(3)::before {
    background: #13a8e8;
}

.card h3 {
    margin: 0 0 9px;
    color: #172033;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}


/* ==============================
   TAGS
   ============================== */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.tags span:hover {
    color: var(--accent);
    border-color: #b9cdef;
    background: #f8fbff;
}


/* ==============================
   WARNING
   ============================== */

.warning {
    background: #fffbeb;
    border-top: 1px solid #f4e7bd;
    border-bottom: 1px solid #f4e7bd;
}

.warning h2 {
    color: #6b4f16;
}

.warning p {
    color: #76623c;
}


/* ==============================
   CONTACT
   ============================== */

.contact-box {
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

.contact-box .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-box h2 {
    margin-bottom: 12px;
}

.contact-box p {
    margin-bottom: 26px !important;
}


/* ==============================
   FOOTER
   ============================== */

footer.dark-header {
    background: #f8fafc;
    border-top: 1px solid var(--border);
    border-bottom: 0;
    box-shadow: none;
}

footer .container {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer p {
    margin: 0;
    color: #8a94a3;
    font-size: 13px;
}


/* ==============================
   TABLET
   ============================== */

@media (max-width: 850px) {
    header .nav-container {
        min-height: auto;
        padding: 15px 0;
        flex-wrap: wrap;
        gap: 10px 18px;
    }
    nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }
    nav::-webkit-scrollbar {
        display: none;
    }
    .language {
        margin-left: auto;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .card {
        min-height: auto;
    }
    .hero {
        padding: 85px 0 90px;
    }
    .hero h1 {
        letter-spacing: -2px;
    }
    .section {
        padding: 72px 0;
    }
}


/* ==============================
   MOBILE
   ============================== */

@media (max-width: 520px) {
    .container {
        width: calc(100% - 32px);
    }
    .logo img {
        width: 150px;
    }
    nav a {
        padding: 8px 10px;
        font-size: 13px;
    }
    .hero {
        padding: 68px 0 72px;
    }
    .hero h1 {
        font-size: 38px;
        letter-spacing: -1.4px;
    }
    .hero p {
        font-size: 16px;
        line-height: 1.65;
    }
    .buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .button {
        width: 100%;
    }
    .section {
        padding: 58px 0;
    }
    .section h2 {
        font-size: 26px;
    }
    .card {
        padding: 25px;
    }
}