@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comfortaa', sans-serif;
}

body {
    background: #040404;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    animation: pageFadeIn 1s ease forwards;
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(900px, 140vw);
    height: min(900px, 140vw);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.10), rgba(255,255,255,0.03) 40%, transparent 70%);
    animation: glowPulse 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
}

.logo {
    width: clamp(56px, 14vw, 72px);
    height: auto;
    margin-bottom: 22px;
    opacity: 0.95;
    filter: drop-shadow(0 0 14px rgba(255,255,255,0.18));
}

.terminal-label {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    font-size: clamp(12px, 3vw, 13px);
    letter-spacing: 2px;
    opacity: 0.85;
}

.title {
    font-size: clamp(42px, 13vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 1px;
    margin-bottom: 18px;
    background: linear-gradient(180deg, #ffffff, rgba(255,255,255,0.65));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(15px, 4vw, 18px);
    opacity: 0.65;
    margin-bottom: 40px;
    max-width: min(420px, 85vw);
    line-height: 1.5;
}

.history-btn {
    padding: clamp(14px, 4vw, 16px) clamp(32px, 10vw, 44px);
    min-height: 48px;
    border: none;
    border-radius: 999px;
    background: white;
    color: black;
    font-family: inherit;
    font-size: clamp(16px, 4.5vw, 19px);
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 0 0 rgba(255,255,255,0);
    transition: all 0.3s ease;
}

.history-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 24px rgba(255,255,255,0.35);
}

.history-btn:focus-visible {
    outline: 2px solid rgba(255,255,255,0.7);
    outline-offset: 4px;
}

.corner-logo {
    position: fixed;
    right: 30px;
    bottom: 24px;
    z-index: 2;
    opacity: 0.85;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.corner-logo img {
    width: 22px;
    height: auto;
    display: block;
}

.corner-logo a {
    display: block;
}

.corner-logo:hover {
    opacity: 1;
    transform: scale(1.15);
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.5));
}

@media (max-width: 768px) {
    .hero { padding: 20px; }
    .corner-logo { right: 18px; bottom: 18px; }
    .corner-logo img { width: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}