:root {
    --primary-color: #ffffff;
    --bg-color: #1a1a1a;
    --card-bg: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-color);
    min-height: 100vh;
    line-height: 1.5;
    font-size: clamp(14px, 1vw, 16px);
    overflow-x: hidden;
}


@font-face {
    font-family: "HarmonyOS_M";
    src: url("./files/web_font.woff2") format("woff2");
    font-display: swap;
}

:root {
    --primary-color: #ffffff;
    --bg-color: #1a1a1a;
    --card-bg: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: "HarmonyOS_M", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-color);
    min-height: 100vh;
    line-height: 1.5;
    font-size: clamp(14px, 1vw, 16px);
    overflow-x: hidden;
}

h1, h2, h3, p, span, a, div {
    font-family: "HarmonyOS_M", sans-serif;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    gap: 1rem;
    transform: rotate(-15deg) scale(1.5);
    pointer-events: none;
    z-index: 0;
}

.waterfall-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.column-wrapper {
    position: absolute;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    will-change: transform;
}

.waterfall-column:nth-child(2) {
    animation-delay: -20s;
}

.waterfall-column:nth-child(3) {
    animation-delay: -40s;
}

.waterfall-column img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 1.25rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    width: 100%;
    max-width: 56.25rem;
}

.logo img {
    height: 1.5rem;
}

.mobile-toggle {
    display: none;
}

.greeting {
    margin: 3.125rem 0;
    text-align: left;
    width: 100%;
    max-width: 56.25rem;
}

.wave-icon {
    font-size: clamp(2rem, 4vw, 2.25rem);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 500;
}

.subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    opacity: 0.8;
    font-weight: 400;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
    gap: 0.75rem;
    position: relative;
    z-index: 1;
    max-width: 56.25rem;
    width: 100%;
}

.card {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    height: 100%;
    min-height: 4rem;
}

.card:hover {
    transform: translateY(-0.3125rem);
}

.card-main {
    flex-grow: 1;
}

.card-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.card h3 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    margin-bottom: 0.375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card h3 img {
    width: 1.5rem;
    height: 1.5rem;
}

.card p {
    opacity: 0.8;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-footer {
    margin-top: auto;
}

.try-button {
    color: var(--primary-color);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.card:hover .arrow {
    transform: translateX(0.3125rem);
}

.sphere-bg {
    position: fixed;
    bottom: -30%;
    right: -10%;
    width: 50rem;
    height: 50rem;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    border-radius: 50%;
    opacity: 0.5;
    z-index: 0;
}

@media (max-width: 48rem) {
    .container {
        padding: 1rem;
    }

    header {
        max-width: 100%;
    }

    .greeting {
        margin: 2.5rem 0;
        max-width: 100%;
    }

    .cards {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .card {
        padding: 1rem;
    }

    .mobile-toggle {
        display: block;
    }

    .sphere-bg {
        width: 25rem;
        height: 25rem;
        bottom: -20%;
        right: -20%;
    }

    .card:active {
        transform: scale(0.98);
        transition: transform 0.2s ease;
    }
    
    .card:hover {
        transform: none;
    }
    
    .card:hover .arrow {
        transform: none;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.greeting, .card {
    animation: fadeInUp 0.8s ease forwards;
}



@media (prefers-reduced-motion: reduce) {
    .greeting, .card {
        animation: none;
    }
    
    .card:hover .arrow {
        transform: none;
    }
    
    .card:hover {
        transform: none;
    }

    .waterfall-column {
        animation: none;
    }
}