:root {
    --sl-bg: #ffffff;
    --sl-blue: #0470a7;
    --sl-blue-dark: #035b88;
    --sl-mint: #01e0b4;
    --sl-mint-dark: #00b996;
    --sl-ink: #102a3a;
    --sl-muted: #647786;
    --sl-soft: #f4fbfd;
    --sl-line: #dcecf4;
    --sl-shadow: 0 1.5rem 4rem rgba(4, 112, 167, 0.12);
}

/* IBM Plex Sans - normal */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Sans - italic */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-Italic-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--sl-bg);
    color: var(--sl-ink);
    font-family: "IBM Plex Sans", system-ui, Arial, sans-serif;
    line-height: 1.7;
}

::selection {
    background: var(--sl-mint);
    color: var(--sl-ink);
}

h1{

}

.h4, h4,
.h5, h5{
    font-size: 1.2rem;
}

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

a:hover,
a:focus {
    color: var(--sl-blue-dark);
}

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

.site-header {
    padding: 15px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(220, 236, 244, 0.9);
}

.navbar-brand img {
    width: 132px;
    max-height: 64px;
    object-fit: contain;
}

.navbar-nav .nav-link {
    color: var(--sl-ink);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: var(--sl-blue);
    border-bottom: 1px solid var(--sl-blue);
}

.navbar-toggler {
    border: 0;
    box-shadow: none !important;
}

.btn {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 999px;
}

.btn-brand {
    background: var(--sl-blue);
    border-color: var(--sl-blue);
    color: #fff;
    box-shadow: 0 1rem 2rem rgba(4, 112, 167, 0.18);
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--sl-blue-dark);
    border-color: var(--sl-blue-dark);
    color: #fff;
}

.btn-mint {
    background: var(--sl-mint);
    border-color: var(--sl-mint);
    color: #083244;
}

.btn-mint:hover,
.btn-mint:focus {
    background: var(--sl-mint-dark);
    border-color: var(--sl-mint-dark);
    color: #083244;
}

.btn-outline-brand {
    border-color: rgba(4, 112, 167, 0.28);
    color: var(--sl-blue);
    background: #fff;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background: var(--sl-blue);
    color: #fff;
    border-color: var(--sl-blue);
}

.section-padding {
    padding: 6rem 0;
}

.section-padding-sm {
    padding: 4rem 0;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 5.25rem 0 5.25rem;
    background:
        radial-gradient(circle at top right, rgba(1, 224, 180, 0.15), transparent 30rem),
        radial-gradient(circle at 5% 18%, rgba(4, 112, 167, 0.10), transparent 24rem),
        var(--sl-bg);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.display-heading {
    font-size: 3rem;
    line-height: 0.96;
    letter-spacing: -0.06em;
    font-weight: 500;
}

.page-heading {
    font-size: 2rem;
    line-height: 1.02;
    letter-spacing: -0.025em;
    font-weight: 400;
}

.lead-large {
    font-size: 1rem;
    color: var(--sl-muted);
    max-width: 42rem;
}

.text-gradient {
    background: linear-gradient(120deg, var(--sl-blue), var(--sl-mint));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-card img {
    border-radius: 1.5rem;
}

.card-clean {
    background: #fff;
    border: 1px solid var(--sl-line);
    border-radius: 8px;
    box-shadow: 0 1rem 2.5rem rgba(16, 42, 58, 0.05);
    height: 100%;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card-clean:hover {
    transform: translateY(-4px);
    border-color: rgba(4, 112, 167, 0.25);
    box-shadow: 0 1.25rem 3rem rgba(4, 112, 167, 0.12);
}

.icon-pill {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 224, 180, 0.16);
    color: var(--sl-blue);
    font-weight: 900;
    font-size: 1.25rem;
}

.icon-pill.blue {
    background: rgba(4, 112, 167, 0.10);
}

.feature-strip {
    margin-top: -2.75rem;
    position: relative;
    z-index: 2;
}

.feature-strip-inner {
    background: #fff;
    border: 1px solid var(--sl-line);
    border-radius: 8px;
    box-shadow: var(--sl-shadow);
    padding: 1rem;
}

.stats-band {
    background: #e4f1f5;
    border-top: 1px solid var(--sl-line);
    border-bottom: 1px solid var(--sl-line);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--sl-blue);
    letter-spacing: -0.04em;
}

.stat-box{
    border-left: 1px solid #c1d5df;
}

.bg-soft {
    background: var(--sl-soft);
}

.bg-brand-dark {
    background:
        radial-gradient(circle at 80% 0%, rgba(1, 224, 180, 0.22), transparent 24rem),
        linear-gradient(135deg, #043e5e, #0470a7);
    color: #fff;
}

.bg-brand-dark .lead,
.bg-brand-dark p,
.bg-brand-dark .text-muted {
    color: rgba(255, 255, 255, 0.78) !important;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 1.5rem;
}

.service-list li {
    break-inside: avoid;
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--sl-muted);
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--sl-mint-dark);
    font-weight: 900;
}

.timeline-step {
    position: relative;
    padding-left: 3.4rem;
}

.timeline-step::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--sl-blue);
    font-weight: 800;
}

.contact-panel {
    background: #fff;
    border: 1px solid var(--sl-line);
    border-radius: 8px;
    box-shadow: var(--sl-shadow);
    padding: clamp(1.35rem, 3vw, 2.25rem);
}

.form-control,
.form-select {
    border-radius: 8px;
    border-color: var(--sl-line);
    padding: 0.9rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--sl-blue);
    box-shadow: 0 0 0 0.25rem rgba(4, 112, 167, 0.12);
}

.legal-content h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    font-weight: 500;
}

.legal-content p,
.legal-content li {
    color: var(--sl-muted);
}

.footer {
    background: #071f2e;
    color: #d9ebf2;
    padding: 5rem 0 2rem;
}

.footer a {
    color: #d9ebf2;
}

.footer a:hover,
.footer a:focus {
    color: var(--sl-mint);
}

.footer-logo {
    width: 132px;
    filter: brightness(1.12);
}

.footer .small,
.footer small,
.footer p {
    color: rgba(217, 235, 242, 0.75);
}

.footer-bottom {
    border-top: 1px solid rgba(217, 235, 242, 0.12);
    margin-top: 3rem;
    padding-top: 1.35rem;
}

.placeholder-box {
    min-height: 18rem;
    border-radius: 1.5rem;
    background:
        linear-gradient(135deg, rgba(4, 112, 167, 0.08), rgba(1, 224, 180, 0.12)),
        repeating-linear-gradient(45deg, rgba(4, 112, 167, 0.05) 0 10px, transparent 10px 20px);
    border: 1px solid var(--sl-line);
}

/* 404 page */

.error-hero {
    min-height: calc(100vh - 96px);
    display: flex;
    align-items: center;
}

.error-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid var(--sl-line);
    background: rgba(255, 255, 255, 0.76);
    color: var(--sl-blue);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 0.75rem 2rem rgba(16, 42, 58, 0.06);
}

.error-status-dot {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 50%;
    background: var(--sl-mint);
    box-shadow: 0 0 0 0.35rem rgba(1, 224, 180, 0.16);
}

.error-terminal {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(4, 112, 167, 0.18);
    background: #071f2e;
    box-shadow: 0 1.25rem 3rem rgba(7, 31, 46, 0.16);
    max-width: 34rem;
}

.error-terminal-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid rgba(217, 235, 242, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.error-terminal-header span {
    width: 0.66rem;
    height: 0.66rem;
    border-radius: 50%;
    background: rgba(217, 235, 242, 0.45);
}

.error-terminal-header span:first-child {
    background: #ff6b6b;
}

.error-terminal-header span:nth-child(2) {
    background: #ffd166;
}

.error-terminal-header span:nth-child(3) {
    background: var(--sl-mint);
}

.error-terminal pre {
    margin: 0;
    padding: 1rem;
    white-space: pre-wrap;
    color: #d9ebf2;
    font-size: 0.86rem;
    line-height: 1.65;
}

.error-terminal code {
    color: inherit;
}

.error-game-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--sl-line);
    border-radius: 8px;
    box-shadow: var(--sl-shadow);
    padding: clamp(1rem, 3vw, 1.4rem);
}

.error-game-card::before {
    content: "";
    position: absolute;
    inset: -10rem -8rem auto auto;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(1, 224, 180, 0.18), transparent 68%);
    pointer-events: none;
}

.error-game-card > * {
    position: relative;
    z-index: 1;
}

.error-game-label {
    color: var(--sl-blue);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.error-score-panel {
    min-width: 6.5rem;
    border: 1px solid var(--sl-line);
    border-radius: 8px;
    background: var(--sl-soft);
    padding: 0.65rem 0.85rem;
    text-align: right;
}

.error-score-panel span {
    display: block;
    color: var(--sl-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.error-score-panel strong {
    display: block;
    color: var(--sl-blue);
    font-size: 1.55rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.error-game-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--sl-line);
    border-radius: 8px;
    background:
        radial-gradient(circle at 15% 20%, rgba(1, 224, 180, 0.14), transparent 14rem),
        radial-gradient(circle at 90% 15%, rgba(4, 112, 167, 0.12), transparent 16rem),
        linear-gradient(180deg, #f7fcfd, #eef8fb);
}

.error-game-wrap canvas {
    display: block;
    width: 100%;
    min-height: 220px;
    cursor: pointer;
}

.error-game-overlay {
    position: absolute;
    inset: 1rem;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    gap: 0.35rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    color: var(--sl-ink);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.error-game-overlay.is-hidden {
    opacity: 0;
    transform: scale(0.98);
}

.error-game-overlay strong {
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: -0.04em;
}

.error-game-overlay span {
    max-width: 28rem;
    color: var(--sl-muted);
    font-size: 0.95rem;
}

.error-game-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.error-highscore {
    color: var(--sl-muted);
    font-size: 0.9rem;
}

.error-highscore strong {
    color: var(--sl-blue);
}

@media (max-width: 991.98px) {
    .error-hero {
        min-height: auto;
    }

    .error-game-wrap canvas {
        min-height: 190px;
    }
}

@media (max-width: 575.98px) {
    .error-game-controls .btn {
        width: 100%;
    }

    .error-highscore {
        width: 100%;
        text-align: center;
    }

    .error-score-panel {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 991.98px) {
    .hero {
        padding: 3rem 0 2rem 0;
    }

    .hero-card{
        margin-top: 3rem;
    }

    .hero.home{
        padding-top: 5.5rem;
    }

    .section-padding {
        padding: 4.5rem 0;
    }

    .stat-box:nth-child(3){
        border-left: 0;
    }

    .contact-intro.col-lg-6.pt-5.pb-4{
        padding-top: 0 !important;
    }

    .contact-panel{
        box-shadow: none;
    }
    footer .col-sm-6.col-lg-2{
        padding-top: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .service-list {
        columns: 1;
    }

    .feature-strip {
        margin-top: -1.25rem;
    }

}
