@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

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

:root {
    --lego-navy: #1C1C2E;
    --lego-navy-dark: #12122a;
    --lego-navy-light: #2A2A3E;
    --lego-yellow: #FFD700;
    --text-primary: #FFFFFF;
    --text-secondary: #ACACAC;
}

h1, h2, h3 {
    outline: none;
}

html, body {
    height: 100%;
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    background-color: var(--lego-navy);
    color: var(--text-primary);
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 64px;
    background: linear-gradient(180deg, var(--lego-navy-dark) 0%, var(--lego-navy) 100%);
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--lego-yellow);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.hero .tagline {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 12px;
    max-width: 520px;
    line-height: 1.6;
}

.hero .description {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-secondary);
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Download buttons */
.download-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--lego-yellow);
    color: #1C1C2E;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.2s, transform 0.15s;
    white-space: nowrap;
}

.store-btn:hover {
    background-color: #ffe033;
    transform: translateY(-2px);
    color: #1C1C2E;
    text-decoration: none;
}

.store-btn svg {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
}

.store-btn .btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.store-btn .btn-text small {
    font-size: 0.68rem;
    font-weight: 400;
}

.store-btn .btn-text strong {
    font-size: 1rem;
    font-weight: 700;
}

/* Screenshots carousel */
.screenshots {
    padding: 64px 24px 48px;
    text-align: center;
    background: var(--lego-navy-dark);
}

.screenshots h2 {
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    font-weight: 700;
    color: var(--lego-yellow);
    margin-bottom: 36px;
}

.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.carousel-track-wrapper {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    flex: 1;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    min-width: 100%;
}

.carousel-slide img {
    width: 100%;
    display: block;
    border-radius: 24px;
}

.carousel-btn {
    background: var(--lego-yellow);
    color: var(--lego-navy);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: #ffe033;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #404040;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s, transform 0.2s;
}

.dot.active {
    background: var(--lego-yellow);
    transform: scale(1.3);
}

/* Features */
.features {
    padding: 72px 24px;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

.features h2 {
    text-align: center;
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    font-weight: 700;
    color: var(--lego-yellow);
    margin-bottom: 48px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--lego-navy-light);
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid rgba(255, 215, 0, 0.08);
}

.feature-card .icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lego-yellow);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: var(--lego-navy-dark);
    padding: 36px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

footer a {
    color: var(--lego-yellow);
    text-decoration: none;
    font-weight: 600;
}

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

.footer-copy {
    margin-top: 16px;
    font-size: 0.78rem;
    color: #6E6E6E;
}

/* Blazor loading */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #2A2A3E;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #FFD700;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: #FFD700;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

#blazor-error-ui {
    display: none;
}
