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

:root {
    --ink: #000000;
    --paper: #ffffff;
    --slate: #6b6b6b;
    --slate-lt: #a0a0a0;
    --border: #d8d2c6;
}

html,
body {
    background: var(--paper);
    color: var(--ink);
    font-family: "Inter", system-ui, sans-serif;
    overflow-x: hidden;
}

#starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.star-letter {
    position: absolute;
    left: 50%;
    top: 50%;
    opacity: 0;
    color: var(--ink);
    font-weight: 700;
    transform-origin: center center;
    animation: star-drift linear infinite;
    pointer-events: none;
    user-select: none;
}

@keyframes star-drift {
    0%   { opacity: 0;    transform: translate(-50%, -50%) scale(0.04); }
    8%   { opacity: 0.14; }
    88%  { opacity: 0.10; }
    100% { opacity: 0;    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .star-letter { animation: none; opacity: 0; }
}

.stage {
    position: relative;
    z-index: 1;
    height: 100dvh;
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 0 clamp(1.2rem, 5vw, 3rem);
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vh, 2rem) 0 clamp(0.8rem, 2vh, 1.5rem);
    text-align: center;
    gap: 0;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    margin-bottom: clamp(0.8rem, 2.5vh, 2rem);
    text-decoration: none;
    color: inherit;
    animation: fadeUp 0.5s ease both;
}

.logo-img {
    width: clamp(62px, 12vw, 98px);
    height: clamp(62px, 12vw,98px);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25em;
}

.logo-deutsch {
    display: block;
    font-family: "Inter", sans-serif;
    font-weight: 900;
    font-size: clamp(3.1rem, 8vw, 5.5rem);
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1;
}

.logo-pronun {
    display: block;
    font-family: "Noto Serif Devanagari", serif;
    font-weight: 400;
    font-size: clamp(1rem, 2.8vw, 1.78rem);
    color: var(--slate);
    letter-spacing: 0.02em;
    line-height: 1.3;
    opacity: 0.85;
}

.tagline-en {
    font-family: "Inter", sans-serif;
    font-size: clamp(0.65rem, 1.8vw, 1.05rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 0.35rem;
    animation: fadeUp 0.5s 0.1s ease both;
}

.tagline-hi {
    font-family: "Noto Serif Devanagari", serif;
    font-size: clamp(0.85rem, 2.2vw, 1.25rem);
    color: var(--ink);
    font-weight: 400;
    opacity: 0.82;
    animation: fadeUp 0.5s 0.15s ease both;
}

.divider {
    width: 1px;
    height: clamp(20px, 4dvw, 48px);
    background: var(--border);
    margin: clamp(0.7rem, 2vh, 1.5rem) auto;
    animation: fadeUp 0.5s 0.2s ease both;
}

.description {
    max-width: 440px;
    font-size: clamp(0.78rem, 1.8vw, 0.98rem);
    line-height: 1.65;
    color: var(--slate);
    margin-bottom: clamp(1rem, 2.5vh, 2rem);
    padding: 0 0.5rem;
    animation: fadeUp 0.5s 0.25s ease both;
}

.buttons {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 0.5s 0.3s ease both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(0.55rem, 1.5vh, 0.72rem) clamp(1rem, 3vw, 1.5rem);
    font-family: "Inter", sans-serif;
    font-size: clamp(0.78rem, 1.5vw, 0.88rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.12s, box-shadow 0.12s;
    cursor: pointer;
    border: none;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
}

.btn-secondary:hover { background: rgba(0, 0, 0, 0.05); }

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(0.6rem, 1.5vh, 1rem) 0 clamp(0.7rem, 1.5vh, 1.2rem);
    border-top: 1px solid var(--border);
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-left {
    font-size: clamp(0.65rem, 1.3vw, 0.75rem);
    color: var(--slate-lt);
    font-family: "Inter", sans-serif;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: clamp(0.65rem, 1.3vw, 0.75rem);
    color: var(--slate);
    text-decoration: none;
    font-family: "Inter", sans-serif;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.1s;
}

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

.gh-icon {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

@media (max-width: 480px) {
    .logo-block {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .logo-text { align-items: center; text-align: center; }

    .buttons {
        flex-direction: column;
        width: 100%;
        max-width: 260px;
    }

    .btn { width: 100%; }

    .footer-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.4rem;
    }

    .footer-links { justify-content: center; gap: 0.8rem; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .logo-block, .tagline-en, .tagline-hi,
    .divider, .description, .buttons, .footer-row {
        animation: none;
    }
    .btn { transition: none; }
}