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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--fg, #0f172a);
    background: var(--bg, #ffffff);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--strong, #0f172a);
}

.logo {
    margin: 0 0 1.5rem;
    display: flex;
    justify-content: center;
    line-height: 0;
}

.logo-img {
    max-width: min(420px, 80vw);
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.logo-img.is-ready {
    opacity: 1;
}

[data-theme='light'] .logo-img-dark { display: none; }
[data-theme='dark'] .logo-img-light { display: none; }

p {
    color: var(--muted, #64748b);
    font-size: 1.125rem;
    max-width: 36rem;
}

.partnership {
    margin-top: 3.0rem;
}

.rotating-text {
    margin-bottom: 1rem;
    min-height: 1.5em;
    color: var(--strong, #0f172a);
    font-weight: 500;
    opacity: 0;
    transition: opacity var(--rotating-fade-ms, 400ms) ease;
}

.rotating-text.is-visible {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .rotating-text {
        transition: none;
    }
}

strong {
    color: var(--strong, #0f172a);
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 0.2em;
    transition: text-decoration-color 0.15s ease;
}

a:hover {
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--muted, #64748b) 60%, transparent);
}

footer {
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted, #64748b);
    border-top: 1px solid var(--border, #e2e8f0);
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--btn-border, #e2e8f0);
    background: var(--btn-bg, #f8fafc);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.theme-toggle:hover {
    background: var(--btn-bg-hover, #eef2f7);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--strong, #0f172a);
    outline-offset: 2px;
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle img {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 9999; }

::view-transition-new(root) {
    animation: theme-reveal 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes theme-reveal {
    from {
        clip-path: circle(0 at var(--reveal-x, 50%) var(--reveal-y, 50%));
    }
    to {
        clip-path: circle(var(--reveal-r, 150vmax) at var(--reveal-x, 50%) var(--reveal-y, 50%));
    }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none !important;
    }
}
