@import url('../style.css');

:root {
    --theme-primary: #14b8a6;
    --theme-secondary: #e0f2fe;
    --theme-accent: #facc15;
    --theme-coral: #fb7185;
    --bg-dark: #09111f;
}

body {
    background:
        radial-gradient(circle at 15% 20%, rgba(20, 184, 166, 0.2) 0%, transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(250, 204, 21, 0.15) 0%, transparent 22%),
        linear-gradient(135deg, #07111f 0%, #0f172a 55%, #111827 100%);
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    display: none;
}

.letter-field {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
}

.letter-field span {
    position: absolute;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.035);
    font-size: clamp(4rem, 10vw, 10rem);
    animation: driftLetters 18s infinite ease-in-out;
}

.letter-field span:nth-child(1) { top: 12%; left: 7%; animation-delay: 0s; }
.letter-field span:nth-child(2) { top: 68%; left: 12%; animation-delay: 1s; }
.letter-field span:nth-child(3) { top: 22%; left: 28%; animation-delay: 2s; }
.letter-field span:nth-child(4) { top: 75%; left: 32%; animation-delay: 3s; }
.letter-field span:nth-child(5) { top: 10%; left: 54%; animation-delay: 4s; }
.letter-field span:nth-child(6) { top: 58%; left: 56%; animation-delay: 5s; }
.letter-field span:nth-child(7) { top: 30%; left: 73%; animation-delay: 6s; }
.letter-field span:nth-child(8) { top: 78%; left: 78%; animation-delay: 7s; }
.letter-field span:nth-child(9) { top: 8%; left: 88%; animation-delay: 8s; }
.letter-field span:nth-child(10) { top: 50%; left: 90%; animation-delay: 9s; }

@keyframes driftLetters {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.matrix-glow {
    position: fixed;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: rgba(250, 204, 21, 0.75);
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.8);
    z-index: -1;
    animation: riseMatrix 11s infinite ease-in;
}

.mg1 { bottom: -12px; left: 22%; animation-duration: 12s; }
.mg2 { bottom: -12px; left: 52%; animation-duration: 15s; animation-delay: 2s; background: rgba(20, 184, 166, 0.75); }
.mg3 { bottom: -12px; left: 82%; animation-duration: 13s; animation-delay: 4s; background: rgba(251, 113, 133, 0.7); }

@keyframes riseMatrix {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    35% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(180deg);
        opacity: 0;
    }
}

header.hero.word-hero {
    min-height: 92vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: center;
    gap: 4rem;
    text-align: left;
    padding-top: 8rem;
}

.hero-copy {
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--theme-accent);
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 1rem;
}

header.hero h1 {
    background: linear-gradient(135deg, #f8fafc 0%, #67e8f9 42%, #facc15 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 34px rgba(20, 184, 166, 0.18);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.secondary-action {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    padding: 0.95rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.2s, border-color 0.2s;
}

.secondary-action:hover {
    transform: translateY(-2px);
    border-color: rgba(250, 204, 21, 0.45);
}

.app-preview {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 17, 31, 0.78);
    backdrop-filter: blur(18px);
    padding: 1.25rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), 0 0 45px rgba(20, 184, 166, 0.15);
}

.preview-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.preview-top strong {
    color: var(--theme-accent);
    font-size: 1.35rem;
}

.word-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.word-board span {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    font-size: 1.6rem;
    font-weight: 800;
}

.word-board span.active {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.95), rgba(250, 204, 21, 0.9));
    color: #06111f;
    box-shadow: 0 12px 30px rgba(20, 184, 166, 0.22);
}

.found-words {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.found-words span {
    padding: 0.45rem 0.65rem;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.28);
    color: #99f6e4;
    font-size: 0.78rem;
    font-weight: 800;
}

.feature-icon {
    color: var(--theme-accent);
}

.modes-section {
    padding: 5rem 10%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.22));
}

.modes-grid {
    max-width: 900px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.pricing-card.premium {
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 0 45px rgba(250, 204, 21, 0.1);
}

.privacy-note {
    padding: 3rem 10%;
    text-align: center;
}

.privacy-note p {
    color: var(--text-secondary);
    margin: 1rem auto 0;
    max-width: 780px;
}

@media (max-width: 900px) {
    header.hero.word-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-copy {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .app-preview {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }
}
