/* =========================================================
   TYTMATOWICE.PL
   ========================================================= */

:root {
    --bg: #07090d;
    --bg-soft: #0b0e13;
    --card: #10141b;
    --card-hover: #141922;

    --text: #f5f5f7;
    --text-soft: #c5c8d0;
    --muted: #858b98;
    --muted-dark: #555b68;

    --purple: #8b5cf6;
    --purple-dark: #7c3aed;
    --purple-light: #a78bfa;

    --border: rgba(255, 255, 255, 0.075);
    --border-light: rgba(255, 255, 255, 0.12);

    --container: 1180px;

    --radius: 18px;

    --transition: 180ms ease;
}


/* =========================================================
   RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background: var(--bg);

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

::selection {
    color: white;
    background: var(--purple);
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(7, 9, 13, 0.86);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-container {
    width: min(calc(100% - 48px), var(--container));

    min-height: 76px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* LOGO */

.logo {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: var(--text);

    font-size: 19px;
    font-weight: 850;

    letter-spacing: -0.5px;

    white-space: nowrap;
}

.logo-dot {
    width: 9px;
    height: 9px;

    flex: 0 0 9px;

    background: var(--purple);

    border-radius: 50%;

    box-shadow:
        0 0 14px rgba(139, 92, 246, 0.8);
}

.logo-extension {
    color: var(--purple-light);
}


/* NAV */

.main-nav {
    display: flex;
    align-items: center;

    gap: 3px;
}

.main-nav a {
    position: relative;

    padding: 9px 13px;

    color: var(--muted);

    border-radius: 9px;

    font-size: 13px;
    font-weight: 650;

    transition:
        color var(--transition),
        background var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);

    background: rgba(255, 255, 255, 0.045);
}

.main-nav a.active::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -1px;

    width: 18px;
    height: 2px;

    transform: translateX(-50%);

    background: var(--purple);

    border-radius: 999px;
}


/* HEADER ACTIONS */

.header-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}

.login-link {
    padding: 9px 12px;

    color: var(--muted);

    font-size: 13px;
    font-weight: 650;

    transition: color var(--transition);
}

.login-link:hover {
    color: var(--text);
}

.register-button {
    padding: 9px 15px;

    color: white;

    background: var(--purple);

    border-radius: 9px;

    font-size: 13px;
    font-weight: 750;

    transition:
        background var(--transition),
        transform var(--transition);
}

.register-button:hover {
    background: var(--purple-dark);

    transform: translateY(-1px);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 625px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    text-align: center;
}

.hero-background {
    position: absolute;

    width: 650px;
    height: 650px;

    top: -190px;
    left: 50%;

    transform: translateX(-50%);

    background:
        radial-gradient(
            circle,
            rgba(139, 92, 246, 0.19) 0%,
            rgba(139, 92, 246, 0.08) 35%,
            transparent 70%
        );

    filter: blur(15px);

    pointer-events: none;
}

.hero-grid {
    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.9),
            transparent 85%
        );

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(calc(100% - 40px), 850px);

    margin-top: -20px;
}


/* BADGE */

.hero-badge {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 25px;
    padding: 7px 13px;

    color: var(--purple-light);

    background: rgba(139, 92, 246, 0.08);

    border: 1px solid rgba(139, 92, 246, 0.22);

    border-radius: 999px;

    font-size: 10px;
    font-weight: 850;

    letter-spacing: 1.8px;
}

.status-dot {
    width: 6px;
    height: 6px;

    background: #8b5cf6;

    border-radius: 50%;

    box-shadow:
        0 0 9px rgba(139, 92, 246, 0.9);
}


/* HERO H1 */

.hero h1 {
    margin-bottom: 25px;

    color: white;

    font-size: clamp(52px, 8vw, 88px);

    line-height: 0.98;

    letter-spacing: -5px;

    font-weight: 900;
}

.hero h1 span {
    display: block;

    background:
        linear-gradient(
            135deg,
            #ffffff 15%,
            #bfa9ff 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


/* HERO DESCRIPTION */

.hero-description {
    max-width: 650px;

    margin: 0 auto 34px;

    color: var(--muted);

    font-size: 17px;
}


/* BUTTONS */

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    flex-wrap: wrap;
}

.button {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 0 20px;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 750;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.button-primary {
    color: white;

    background: var(--purple);

    box-shadow:
        0 12px 35px rgba(124, 58, 237, 0.24);
}

.button-primary:hover {
    background: var(--purple-dark);

    transform: translateY(-2px);
}

.button-arrow {
    font-size: 17px;
}

.button-secondary {
    color: var(--text-soft);

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid var(--border);
}

.button-secondary:hover {
    color: white;

    background: rgba(255, 255, 255, 0.07);

    border-color: var(--border-light);

    transform: translateY(-2px);
}

.hero-bottom-fade {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 130px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            var(--bg)
        );

    pointer-events: none;
}


/* =========================================================
   COMMON
   ========================================================= */

.section-container {
    width: min(calc(100% - 48px), var(--container));

    margin: 0 auto;
}

.section-label {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 13px;

    color: var(--purple-light);

    font-size: 10px;
    font-weight: 850;

    letter-spacing: 1.8px;
}

.section-label-line {
    width: 22px;
    height: 2px;

    background: var(--purple);

    border-radius: 999px;
}

h2 {
    color: white;

    font-size: clamp(31px, 4vw, 46px);

    line-height: 1.05;

    letter-spacing: -2px;

    font-weight: 850;
}

h2 span {
    color: var(--purple-light);
}


/* =========================================================
   SERVER SECTION
   ========================================================= */

.server-section {
    padding: 20px 0 75px;
}

.server-card {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 38px 40px;

    background:
        linear-gradient(
            135deg,
            rgba(139, 92, 246, 0.07),
            rgba(255, 255, 255, 0.02)
        );

    border: 1px solid rgba(139, 92, 246, 0.15);

    border-radius: var(--radius);

    overflow: hidden;
}

.server-card::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -180px;
    top: -190px;

    background: rgba(139, 92, 246, 0.12);

    filter: blur(60px);

    border-radius: 50%;
}

.server-card-left,
.server-card-right {
    position: relative;
    z-index: 2;
}

.server-card-left {
    max-width: 560px;
}

.server-card-left h2 {
    margin-bottom: 13px;
}

.server-card-left p {
    color: var(--muted);

    font-size: 14px;
}

.server-card-right {
    display: flex;
    align-items: stretch;

    gap: 10px;
}

.server-address {
    min-width: 220px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 12px 17px;

    background: rgba(0, 0, 0, 0.22);

    border: 1px solid var(--border);

    border-radius: 11px;
}

.server-address-label {
    margin-bottom: 3px;

    color: var(--muted-dark);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.3px;
}

.server-address strong {
    color: white;

    font-size: 14px;
    font-weight: 800;
}

.copy-button {
    min-width: 125px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 0 15px;

    color: white;

    background: var(--purple);

    border: 0;

    border-radius: 11px;

    cursor: pointer;

    font-size: 12px;
    font-weight: 750;

    transition:
        background var(--transition),
        transform var(--transition);
}

.copy-button:hover {
    background: var(--purple-dark);

    transform: translateY(-1px);
}

.copy-icon {
    font-size: 15px;
}


/* =========================================================
   CONTENT
   ========================================================= */

.content-section {
    padding: 70px 0;

    border-top: 1px solid var(--border);
}

.two-column {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 100px;

    align-items: start;
}

.content-text {
    padding-top: 38px;
}

.content-text p {
    margin-bottom: 20px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.85;
}

.text-link,
.heading-link,
.feature-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--purple-light);

    font-size: 13px;
    font-weight: 750;

    transition:
        color var(--transition),
        gap var(--transition);
}

.text-link:hover,
.heading-link:hover,
.feature-link:hover {
    color: white;

    gap: 11px;
}


/* =========================================================
   NEWS
   ========================================================= */

.news-section {
    padding: 70px 0;

    border-top: 1px solid var(--border);
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 30px;
}

.empty-news {
    display: flex;
    align-items: center;

    gap: 22px;

    padding: 30px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);
}

.empty-news-icon {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--purple-light);

    background: rgba(139, 92, 246, 0.09);

    border: 1px solid rgba(139, 92, 246, 0.17);

    border-radius: 13px;

    font-size: 25px;
    font-weight: 300;
}

.empty-news h3 {
    margin-bottom: 5px;

    color: white;

    font-size: 16px;
}

.empty-news p {
    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   FEATURE CARDS
   ========================================================= */

.cards-section {
    padding: 70px 0;

    border-top: 1px solid var(--border);
}

.feature-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.feature-card {
    position: relative;

    min-height: 300px;

    padding: 32px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012)
        );

    border: 1px solid var(--border);

    border-radius: var(--radius);

    overflow: hidden;

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.feature-card:hover {
    background: var(--card-hover);

    border-color: var(--border-light);

    transform: translateY(-3px);
}

.feature-card::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -120px;
    bottom: -130px;

    background: var(--purple);

    opacity: 0.05;

    filter: blur(50px);

    border-radius: 50%;
}

.feature-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    color: var(--purple-light);

    background: rgba(139, 92, 246, 0.08);

    border: 1px solid rgba(139, 92, 246, 0.17);

    border-radius: 12px;

    font-size: 20px;
}

.feature-label {
    margin-bottom: 8px;

    color: var(--muted-dark);

    font-size: 9px;
    font-weight: 850;

    letter-spacing: 1.5px;
}

.feature-card h3 {
    margin-bottom: 10px;

    color: white;

    font-size: 27px;

    letter-spacing: -0.8px;
}

.feature-card p {
    max-width: 470px;

    margin-bottom: 24px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.75;
}

.feature-link {
    position: relative;
    z-index: 2;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 20px;

    border-top: 1px solid var(--border);
}

.footer-container {
    width: min(calc(100% - 48px), var(--container));

    min-height: 120px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 30px;
}

.footer-brand p {
    margin-top: 7px;

    color: var(--muted-dark);

    font-size: 11px;
}

.footer-links {
    display: flex;
    align-items: center;

    gap: 20px;
}

.footer-links a {
    color: var(--muted-dark);

    font-size: 11px;
    font-weight: 650;

    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    justify-self: end;

    color: var(--muted-dark);

    font-size: 11px;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #272b34;

    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #373c47;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .header-container {
        flex-wrap: wrap;

        padding: 13px 0;
    }

    .main-nav {
        order: 3;

        width: 100%;

        justify-content: center;
    }

    .server-card {
        flex-direction: column;

        align-items: flex-start;
    }

    .server-card-right {
        width: 100%;
    }

    .server-address {
        flex: 1;
    }

    .two-column {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .content-text {
        padding-top: 0;
    }
}


@media (max-width: 700px) {

    .header-container {
        width: calc(100% - 30px);
    }

    .header-actions {
        margin-left: auto;
    }

    .login-link {
        display: none;
    }

    .main-nav {
        justify-content: flex-start;

        overflow-x: auto;

        padding-bottom: 2px;
    }

    .main-nav a {
        white-space: nowrap;
    }


    .section-container {
        width: calc(100% - 30px);
    }


    .hero {
        min-height: 540px;
    }

    .hero h1 {
        font-size: 52px;

        letter-spacing: -3px;
    }

    .hero-description {
        font-size: 14px;
    }


    .server-section,
    .content-section,
    .news-section,
    .cards-section {
        padding: 50px 0;
    }


    .server-card {
        padding: 28px 23px;
    }

    .server-card-right {
        flex-direction: column;
    }

    .server-address {
        width: 100%;
        min-width: 0;
    }

    .copy-button {
        width: 100%;
        min-height: 46px;
    }


    .section-heading-row {
        align-items: flex-start;

        flex-direction: column;
    }


    .feature-grid {
        grid-template-columns: 1fr;
    }


    .feature-card {
        min-height: auto;

        padding: 27px;
    }


    .footer-container {
        width: calc(100% - 30px);

        padding: 30px 0;

        grid-template-columns: 1fr;

        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        justify-content: center;

        flex-wrap: wrap;
    }

    .footer-copy {
        justify-self: center;
    }
}


@media (max-width: 430px) {

    .logo {
        font-size: 17px;
    }

    .register-button {
        padding: 8px 11px;

        font-size: 11px;
    }

    .hero h1 {
        font-size: 44px;

        letter-spacing: -2.5px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .empty-news {
        align-items: flex-start;

        flex-direction: column;
    }
}