/* Indian tricolor + newspaper ink — black & white newsprint theme */
:root {
    --ink: #0a0a0a;
    --ink-soft: #1a1a1a;
    --paper: #faf9f6;
    --newsprint: #e8e6e0;
    --newsprint-dark: #d4d2cb;
    --saffron: #ff9933;
    --tricolor-white: #ffffff;
    --india-green: #138808;
    --muted: #4a4a4a;
    --card-pad: 3rem;
}

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

body {
    font-family: Georgia, "Times New Roman", Times, serif;
    overflow-x: hidden;
    background-color: var(--newsprint);
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 27px,
            rgba(0, 0, 0, 0.04) 27px,
            rgba(0, 0, 0, 0.04) 28px
        );
    min-height: 100vh;
    position: relative;
    color: var(--ink);
}

/* Page frame — saffron top, green bottom, ink sides (newspaper + tricolor) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    box-shadow:
        inset 0 5px 0 var(--saffron),
        inset 0 -5px 0 var(--india-green),
        inset 5px 0 0 var(--ink),
        inset -5px 0 0 var(--ink);
    opacity: 0.95;
}

.flags-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.06;
    overflow: hidden;
}

.flag {
    position: absolute;
    width: 120px;
    height: 80px;
    border-radius: 2px;
    animation: float 6s ease-in-out infinite;
}

.dmk-flag {
    background: linear-gradient(to bottom, #dc2626 50%, #000000 50%);
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.admk-flag {
    background: linear-gradient(to bottom, #dc2626 33%, #ffffff 33%, #ffffff 66%, #000000 66%);
    top: 25%;
    right: 15%;
    animation-delay: 2s;
}

.tvk-flag {
    background: linear-gradient(to bottom, #dc2626 50%, #fbbf24 50%);
    bottom: 25%;
    left: 15%;
    animation-delay: 4s;
}

.ntk-flag {
    background: linear-gradient(to bottom, #000000 50%, #ffffff 50%);
    bottom: 15%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.tricolor-bar {
    height: 6px;
    margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) 1.5rem calc(-1 * var(--card-pad));
    background: linear-gradient(
        90deg,
        var(--saffron) 0%,
        var(--saffron) 33.33%,
        var(--tricolor-white) 33.33%,
        var(--tricolor-white) 66.66%,
        var(--india-green) 66.66%,
        var(--india-green) 100%
    );
    border-bottom: 2px solid var(--ink);
}

.announcement-card {
    --card-pad: 3rem;
    background: var(--paper);
    padding: var(--card-pad);
    padding-bottom: calc(var(--card-pad) + 12px);
    max-width: 800px;
    width: 100%;
    border: 2px solid var(--ink);
    box-shadow:
        4px 4px 0 var(--newsprint-dark),
        8px 8px 0 rgba(0, 0, 0, 0.08);
    animation: slideUp 0.85s ease-out;
    position: relative;
}

.announcement-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--saffron),
        var(--tricolor-white),
        var(--india-green)
    );
    opacity: 0.9;
}

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

.logo {
    width: 80px;
    height: 80px;
    background: var(--ink);
    border: 3px solid var(--ink);
    box-shadow:
        inset 0 0 0 3px var(--saffron),
        inset 0 0 0 6px var(--tricolor-white),
        inset 0 0 0 9px var(--india-green);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--paper);
    font-weight: bold;
}

.logo::before {
    content: "P";
    font-size: 2rem;
    font-family: "Newsreader", Georgia, serif;
}

h1 {
    font-family: "Newsreader", Georgia, "Times New Roman", serif;
    font-size: 2.35rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-transform: uppercase;
    padding-bottom: 0.5rem;
    display: inline-block;
    max-width: 100%;
}

h1::after {
    content: "";
    display: block;
    height: 4px;
    margin-top: 0.5rem;
    background: linear-gradient(
        90deg,
        var(--saffron),
        var(--tricolor-white),
        var(--india-green)
    );
    border: 1px solid var(--ink);
}

.subtitle {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.65;
    font-style: italic;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.announcement-banner {
    background: var(--ink);
    color: var(--paper);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border-top: 4px solid var(--saffron);
    border-bottom: 4px solid var(--india-green);
    border-left: 2px solid var(--ink);
    border-right: 2px solid var(--ink);
}

.announcement-text {
    font-family: "Newsreader", Georgia, serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--saffron);
}

.launch-date {
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.load-hint {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
    min-height: 1.2em;
    font-style: italic;
}

.load-hint.is-error {
    color: var(--ink);
    border-left: 3px solid var(--saffron);
    padding-left: 0.5rem;
    text-align: left;
}

.highlights-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.25rem 0 0.5rem;
}

.highlight-pill {
    background: var(--paper);
    border: 1px solid var(--ink);
    border-top: 2px solid var(--saffron);
    border-radius: 0;
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: Georgia, serif;
}

.highlight-pill strong {
    color: var(--ink);
    font-weight: 700;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 0;
    text-align: left;
}

.info-card {
    background: var(--paper);
    border: 1px solid var(--ink);
    border-left: 4px solid var(--india-green);
    border-top: 2px solid var(--saffron);
    border-radius: 0;
    padding: 1rem 1.1rem;
    box-shadow: 2px 2px 0 var(--newsprint-dark);
}

.info-card h3 {
    font-family: "Newsreader", Georgia, serif;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 0.45rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--newsprint-dark);
    padding-bottom: 0.35rem;
}

.info-card p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.55;
}

.countdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem 0;
}

.countdown-item {
    background: var(--paper);
    color: var(--ink);
    padding: 0.85rem 0.75rem;
    min-width: 78px;
    border: 2px solid var(--ink);
    border-top: 3px solid var(--saffron);
    border-bottom: 3px solid var(--india-green);
    border-radius: 0;
    box-shadow: 3px 3px 0 var(--newsprint-dark);
}

.countdown-number {
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.85rem;
    font-weight: 700;
    display: block;
    line-height: 1.1;
}

.countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.countdown-live-message {
    flex: 1 1 100%;
    text-align: center;
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.2rem;
    color: var(--ink);
    font-weight: 700;
    padding: 0.75rem 0.5rem;
    border: 2px dashed var(--ink);
    border-top: 3px solid var(--india-green);
    background: var(--newsprint);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.85rem;
    margin: 2rem 0;
}

.feature {
    background: var(--paper);
    padding: 1rem;
    border-radius: 0;
    border: 1px solid var(--ink);
    border-left: 4px solid var(--saffron);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--newsprint-dark);
}

.feature-icon {
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--ink);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--india-green);
    display: inline-block;
    padding-bottom: 0.2rem;
}

.feature-text {
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
}

.notify-section {
    background: var(--newsprint);
    padding: 1.5rem;
    border: 1px solid var(--ink);
    border-top: 3px solid var(--saffron);
    margin-top: 2rem;
}

.notify-input {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.email-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--ink);
    border-radius: 0;
    font-size: 1rem;
    font-family: Georgia, serif;
    background: var(--paper);
    transition: border-color 0.2s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--india-green);
    box-shadow: inset 0 0 0 1px var(--india-green);
}

.notify-btn {
    background: var(--ink);
    color: var(--paper);
    border: 2px solid var(--ink);
    padding: 0.75rem 1.35rem;
    border-radius: 0;
    font-weight: 700;
    font-family: Georgia, serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    cursor: pointer;
    border-top: 3px solid var(--saffron);
    border-bottom: 3px solid var(--india-green);
    transition: transform 0.15s ease;
}

.notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 var(--newsprint-dark);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 80px;
    height: 50px;
    background: var(--ink);
    border-radius: 0;
    border: 2px solid var(--ink);
    border-top: 3px solid var(--saffron);
    border-bottom: 3px solid var(--india-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--paper);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    transition: transform 0.15s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 var(--newsprint-dark);
}

@media (max-width: 768px) {
    .announcement-card {
        --card-pad: 1.75rem;
        padding: var(--card-pad);
        margin: 0.5rem;
    }

    .tricolor-bar {
        margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) 1.25rem calc(-1 * var(--card-pad));
    }

    h1 {
        font-size: 1.65rem;
    }

    .countdown {
        gap: 0.45rem;
    }

    .countdown-item {
        padding: 0.65rem 0.5rem;
        min-width: 64px;
    }

    .countdown-number {
        font-size: 1.45rem;
    }

    .notify-input {
        flex-direction: column;
    }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(10, 10, 10, 0.12);
    border-radius: 0;
    animation: particleFloat 8s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

.site-footer {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 2.5rem;
    text-align: center;
}

.site-footer::before {
    content: "";
    display: block;
    height: 4px;
    margin: 0 auto 1rem;
    max-width: 200px;
    background: linear-gradient(
        90deg,
        var(--saffron),
        var(--tricolor-white),
        var(--india-green)
    );
    border: 1px solid var(--ink);
}

.site-footer p {
    font-size: 0.82rem;
    color: var(--ink-soft);
    line-height: 1.6;
    border: 1px solid var(--ink);
    padding: 1rem 1.25rem;
    background: var(--paper);
    box-shadow: 2px 2px 0 var(--newsprint-dark);
}

.site-footer strong {
    font-family: "Newsreader", Georgia, serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--saffron);
}

.site-footer a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--india-green);
}

.site-footer a:hover {
    color: var(--india-green);
}

/* Noscript notice — matches newspaper styling */
.noscript-banner {
    padding-top: 2rem;
}

.noscript-banner__text {
    max-width: 40rem;
    margin: 0 auto;
    background: var(--paper);
    padding: 1rem 1.25rem;
    border: 2px solid var(--ink);
    border-top: 3px solid var(--saffron);
    border-bottom: 3px solid var(--india-green);
    color: var(--ink);
    box-shadow: 3px 3px 0 var(--newsprint-dark);
    line-height: 1.5;
}
