/* ==========================
   TypeRush v1.0
========================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #f5f7fb;
    color: #222;
}

.container {
    width: min(1100px, 92%);
    margin: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ==========================
   Header
========================== */

.header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e5e5;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: #2563eb;
}

.navbar {
    display: flex;
    gap: 12px;
}

.navbar a {
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    transition: .25s;
}

.navbar a:hover,
.navbar a.active {
    background: #2563eb;
    color: white;
}

/* ==========================
   HOME
========================== */

.hero {
    padding: 90px 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: #e8f0ff;
    color: #2563eb;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 72px;
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 25px;
}

.hero p {
    font-size: 22px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* ==========================
   Hero Buttons
========================== */

.hero-buttons {
    display: flex;
    gap: 18px;
    margin-top: 10px;
}

.hero-buttons button {
    padding: 16px 30px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    transition: all .25s ease;
}

#playButton{

    background:linear-gradient(135deg,#2563eb,#3b82f6);

    color:white;

    border:none;

    box-shadow:0 12px 35px rgba(37,99,235,.35);

}

#playButton:hover{

    transform:translateY(-4px) scale(1.02);

    box-shadow:0 18px 45px rgba(37,99,235,.45);

}

.secondary {
    background: #fff;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.secondary:hover {
    background: #2563eb;
    color: #fff;
}

/* ==========================
   Today's Stats Card
========================== */

.hero-card {
    background: #fff;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

.hero-card h2 {
    font-size: 28px;
    margin-bottom: 25px;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #ececec;
}

.stat:last-child {
    border-bottom: none;
}

.stat span {
    color: #666;
}

.stat strong {
    color: #2563eb;
    font-size: 22px;
}

/* ==========================
   Background
========================== */

body{
    background:
        radial-gradient(circle at top right,#dbeafe 0%,transparent 35%),
        radial-gradient(circle at bottom left,#bfdbfe 0%,transparent 30%),
        #f5f7fb;
}

/* ==========================
   Hero Animation
========================== */

.hero{
    min-height:calc(100vh - 75px);
    display:flex;
    align-items:center;
}

.hero-text{
    animation:fadeUp .8s ease;
}

.hero-card{
    animation:fadeUp 1s ease;
}

@keyframes fadeUp{

    from{

        opacity:0;
        transform:translateY(40px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

/* ==========================
   Game
========================== */

.game-section{

    display:none;

    padding:90px 0;

}

.game-header{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:20px;

    margin-bottom:40px;

}

.game-card{

    background:white;

    border-radius:18px;

    padding:25px;

    text-align:center;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.game-card span{

    color:#666;

}

.game-card h2{

    margin-top:10px;

    color:#2563eb;

    font-size:38px;

}

.typing-card{

    background:white;

    padding:50px;

    border-radius:25px;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

}

#word{

    font-size:46px;

    font-weight:700;

    margin-bottom:30px;

    text-align:center;

}

#typingInput{

    width:100%;

    padding:20px;

    font-size:24px;

    border-radius:14px;

    border:2px solid #d1d5db;

    outline:none;

}

#typingInput:focus{

    border-color:#2563eb;

}