* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #f6f8fc;
    --bg-soft: #eef3ff;
    --surface: #ffffff;
    --surface-strong: #f7fbff;
    --text: #162235;
    --text-muted: #516278;
    --line: #dbe5f1;
    --primary: #1d4ed8;
    --primary-strong: #133aa4;
    --secondary: #f97316;
    --secondary-strong: #c24e07;
    --success: #0f766e;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-sm: 0 6px 16px rgba(18, 38, 63, 0.08);
    --shadow-md: 0 18px 38px rgba(18, 38, 63, 0.12);
    --shadow-lg: 0 28px 60px rgba(18, 38, 63, 0.16);

    --ease: 220ms cubic-bezier(0.2, 0.65, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.65;
    background:
        radial-gradient(circle at 10% 0%, #dbeafe 0%, rgba(219, 234, 254, 0) 50%),
        radial-gradient(circle at 95% 10%, #ffedd5 0%, rgba(255, 237, 213, 0) 52%),
        var(--bg-main);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
    border-radius: 6px;
}

.container {
    width: min(1200px, calc(100% - 2.5rem));
    margin-inline: auto;
}

.section {
    padding: clamp(3.5rem, 6vw, 6rem) 0;
    position: relative;
}

.page-main {
    padding-top: clamp(6.5rem, 12vw, 8rem);
}

.section:nth-of-type(even)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(241, 246, 255, 0.72));
    z-index: -1;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.9rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-text {
    color: var(--text-muted);
    max-width: 78ch;
    font-size: 1.05rem;
}

.card {
    border: 1px solid var(--line);
    background: linear-gradient(165deg, #ffffff, #f8fbff);
    border-radius: var(--radius-md);
    padding: clamp(1.25rem, 2vw, 1.8rem);
    box-shadow: var(--shadow-sm);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #bdd1ea;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.directory-card {
    color: inherit;
    display: block;
    min-height: 168px;
    text-decoration: none;
}

.directory-card p {
    color: var(--text-muted);
}

.card-title {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
    line-height: 1.25;
    margin-bottom: 0.85rem;
}

.problem-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.problem-list li {
    position: relative;
    padding-left: 1.1rem;
    color: #2c3a4c;
}

.problem-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    position: absolute;
    top: 0.55rem;
    left: 0;
}

.problem-list strong {
    color: #10213a;
}

.game-showcase {
    display: grid;
    gap: 1.1rem;
    margin: clamp(1.5rem, 4vw, 2.4rem) 0;
    border: 1px solid #bcd2ee;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 246, 255, 0.9)),
        linear-gradient(90deg, rgba(29, 78, 216, 0.12), rgba(249, 115, 22, 0.14));
    box-shadow: var(--shadow-md);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.game-showcase-header {
    max-width: 780px;
}

.showcase-kicker {
    color: var(--success);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.showcase-title {
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2.2rem);
    line-height: 1.12;
    margin-top: 0.25rem;
}

.showcase-text {
    color: var(--text-muted);
    margin-top: 0.55rem;
    max-width: 72ch;
}

.game-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.game-card {
    min-height: 210px;
    border: 1px solid #d5e2f1;
    border-radius: var(--radius-md);
    background: #fff;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.game-card h3 {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    line-height: 1.2;
    margin: 0.75rem 0 0.45rem;
}

.game-card p {
    color: #3f526a;
    font-size: 0.94rem;
    line-height: 1.5;
}

.game-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: var(--radius-pill);
    background: #eaf3ff;
    color: #123c7a;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.62rem;
}

.showcase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.navbar {
    position: fixed;
    top: 0.85rem;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
}

.nav-container {
    width: min(1230px, calc(100% - 1.5rem));
    margin-inline: auto;
    pointer-events: auto;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(185, 206, 232, 0.65);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 32px rgba(20, 36, 62, 0.1);
}

.logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: linear-gradient(140deg, var(--primary), #36a3ff 70%, #8ad7ff);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.45);
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.1;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logo-company {
    font-size: 0.65rem;
    font-weight: 500;
    color: #6b84a0;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.nav-links a,
.mobile-menu-content a,
.footer-links a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.93rem;
    color: #2b3f5b;
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.75rem;
    transition: background-color var(--ease), color var(--ease);
}

.nav-links a:hover,
.nav-links a.active,
.mobile-menu-content a:hover,
.mobile-menu-content a.active,
.footer-links a:hover {
    color: #0e2a54;
    background: #dce9fb;
}

.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button,
.button {
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.68rem 1.15rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease), color var(--ease);
}

.cta-button,
.button-primary {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.28);
}

.cta-button:hover,
.button-primary:hover {
    background: var(--secondary-strong);
    transform: translateY(-2px);
}

.button-secondary {
    background: #dbeafe;
    color: #0d2f66;
    box-shadow: inset 0 0 0 1px #bfd4f8;
}

.button-secondary:hover {
    background: #bfd7ff;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: #edf4ff;
    border-radius: 12px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 18px;
    height: 2px;
    background: #16345f;
    transition: transform var(--ease), opacity var(--ease);
}

.mobile-menu {
    display: none;
    margin-top: 0.5rem;
    border-radius: 20px;
    border: 1px solid #c7daef;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-content {
    display: grid;
    padding: 0.85rem;
    gap: 0.3rem;
}

.hero {
    min-height: min(96vh, 920px);
    display: grid;
    align-items: center;
    position: relative;
    overflow: clip;
    padding-top: clamp(7rem, 14vh, 9rem);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.hero-orb-a {
    width: clamp(280px, 34vw, 520px);
    height: clamp(280px, 34vw, 520px);
    left: -8%;
    top: 8%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35), rgba(56, 189, 248, 0.04) 70%);
}

.hero-orb-b {
    width: clamp(330px, 35vw, 560px);
    height: clamp(330px, 35vw, 560px);
    right: -14%;
    top: -8%;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.28), rgba(251, 146, 60, 0.03) 72%);
}

.hero-grid {
    position: absolute;
    inset: 10% 0 0;
    background-image: linear-gradient(rgba(78, 116, 170, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(78, 116, 170, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black 45%, transparent);
}

.hero-content {
    display: grid;
    gap: 1.1rem;
    max-width: 980px;
}

.hero-company-name {
    font-family: var(--font-heading);
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #0a3769;
    text-transform: uppercase;
}

.hero-company-reg {
    font-size: 0.82rem;
    font-weight: 500;
    color: #516278;
    letter-spacing: 0.04em;
    margin-top: -0.5rem;
}

.hero-kicker {
    justify-self: start;
    font-size: 0.83rem;
    font-weight: 600;
    color: #0a3769;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(219, 234, 254, 0.9);
    border: 1px solid #b7cff1;
    border-radius: var(--radius-pill);
    padding: 0.4rem 0.75rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
    max-width: 10ch;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
    color: #304764;
    max-width: 65ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 0.9rem;
}

.metric-card {
    border-radius: var(--radius-md);
    border: 1px solid #c9daef;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 0.9rem 1rem;
    min-height: 124px;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 1rem + 1vw, 2rem);
    line-height: 1;
    margin-bottom: 0.45rem;
}

.metric-label {
    color: #4a5f77;
    font-size: 0.92rem;
    line-height: 1.45;
}

.highlight-card {
    background: linear-gradient(135deg, #123c99, #1e4ec8 55%, #3a73df);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.highlight-card .section-title,
.highlight-card .section-text {
    color: #fff;
}

.problems-grid,
.audiences-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.card-wide {
    grid-column: 1 / -1;
}

#approach .card,
#impact .card,
.demo-content {
    border-radius: var(--radius-lg);
}

#impact .card {
    background: linear-gradient(155deg, #ffffff, #f4f8ff);
}

#testimonials .section-title {
    margin-bottom: 1.3rem;
}

.privacy-section {
    scroll-margin-top: 6.5rem;
}

.privacy-card {
    display: grid;
    gap: 1rem;
    max-width: 980px;
    margin-inline: auto;
}

.privacy-kicker {
    color: var(--success);
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.privacy-content {
    display: grid;
    gap: 1.15rem;
    margin-top: 0.4rem;
}

.privacy-item {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

.privacy-item h2,
.privacy-item h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.privacy-item p,
.privacy-address {
    color: #2c3a4c;
    font-size: 1rem;
    line-height: 1.65;
}

.privacy-item p + p {
    margin-top: 0.45rem;
}

.privacy-list {
    columns: 2;
    gap: 1.5rem;
    margin: 0.55rem 0 0.7rem;
    padding-left: 1.2rem;
    color: #2c3a4c;
}

.privacy-list li {
    break-inside: avoid;
    margin-bottom: 0.25rem;
}

.privacy-address {
    font-style: normal;
    margin-top: 0.4rem;
}

.privacy-address a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.privacy-address a:hover {
    text-decoration: underline;
}

.testimonials-grid {
    column-count: 3;
    column-gap: 1rem;
}

.testimonial-card {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: #fff;
    padding: 1.15rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--ease), box-shadow var(--ease);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.testimonial-quote p {
    color: #1c2f49;
    font-size: 1rem;
    line-height: 1.58;
}

.testimonial-author {
    margin-top: 0.95rem;
    padding-top: 0.8rem;
    border-top: 1px solid #deebfa;
}

.testimonial-author h2,
.testimonial-author h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.testimonial-title {
    color: #4f6178;
    font-size: 0.9rem;
    line-height: 1.42;
}

.demo-section {
    padding-top: clamp(4rem, 7vw, 7rem);
}

.demo-content {
    border: 1px solid #c4daf8;
    background: linear-gradient(135deg, #f0f6ff, #e8f1ff 40%, #fde6d3);
    padding: clamp(1.6rem, 3.4vw, 2.8rem);
    box-shadow: var(--shadow-md);
}

.demo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer {
    margin-top: 2rem;
    border-top: 1px solid #d2e0f2;
    background: linear-gradient(180deg, #f8fbff, #eef4ff);
}

.footer-content {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 0;
}

.footer-copyright {
    color: #456078;
    font-size: 0.92rem;
}

.footer-company {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-legal {
    color: #6b84a0;
    font-size: 0.82rem;
}

.footer-contact a {
    color: var(--primary);
    font-size: 0.88rem;
    text-decoration: none;
    font-weight: 500;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* Company Identity Section */
.company-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.company-card {
    border-left: 4px solid var(--primary);
}

.company-identity {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.company-legal-name {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary-strong);
}

.company-registration {
    font-size: 0.88rem;
    font-weight: 600;
    color: #516278;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.company-description {
    font-size: 1rem;
    color: #304764;
    line-height: 1.7;
    max-width: 72ch;
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 1.2rem 0;
    padding: 1rem 1.4rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    width: fit-content;
    margin-inline: auto;
}

.contact-company {
    font-size: 0.95rem;
    color: #162235;
}

.contact-email {
    font-size: 0.95rem;
}

.email-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.email-link:hover {
    text-decoration: underline;
}

.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: inline-flex;
    }

    .cta-button {
        display: none;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .directory-grid,
    .game-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testimonials-grid {
        column-count: 2;
    }
}

@media (max-width: 840px) {
    .container {
        width: min(1200px, calc(100% - 1.4rem));
    }

    .section {
        padding: 3.2rem 0;
    }

    .problems-grid,
    .audiences-grid,
    .directory-grid,
    .game-card-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 6.8rem;
        padding-bottom: 2.4rem;
    }

    .hero-title {
        max-width: none;
    }

    .testimonials-grid {
        column-count: 1;
    }

    .privacy-list {
        columns: 1;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal.in-view {
        opacity: 1;
        transform: none;
    }
}
