/* Irai Isai homepage v8 — custom Tamil fonts + hero card + split download */

@font-face {
    font-family: 'Tamil017';
    src: url('/uploads/fonts/Tamil017.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tamil039';
    src: url('/uploads/fonts/Tamil039.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.font-tamil-title {
    font-family: 'Tamil017', 'Noto Sans Tamil', Figtree, ui-sans-serif, system-ui, sans-serif;
}

.font-tamil-text,
.font-tamil {
    font-family: 'Tamil039', 'Noto Sans Tamil', Figtree, ui-sans-serif, system-ui, sans-serif;
}

/* Sit all homepage content BELOW fixed header (nav ~56–64px) */
.home-page {
    padding-top: 4.75rem;
}

@media (min-width: 1024px) {
    .home-page {
        padding-top: 5rem;
    }
}

/* ——————————————————————————————————
   HERO — card inside page (award-style)
   —————————————————————————————————— */
.home-hero-wrap {
    padding: 0 1rem 1.25rem;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .home-hero-wrap {
        padding: 0 1.5rem 1.5rem;
    }
}

.home-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    min-height: 200px;
    padding: 1.35rem 1.25rem;
    background: linear-gradient(135deg, #0c1929 0%, #153352 28%, #1a5a8f 52%, #2d7ab8 78%, #17406a 100%);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 20px 50px rgba(15, 40, 80, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .home-hero-card {
        min-height: 220px;
        padding: 1.75rem 2rem;
        border-radius: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .home-hero-card {
        min-height: 240px;
        padding: 2rem 2.5rem;
    }
}

/* Decorative orbs */
.home-hero-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 55%;
    height: 140%;
    background: radial-gradient(circle, rgba(110, 190, 255, 0.35) 0%, transparent 68%);
    pointer-events: none;
}

.home-hero-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 45%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 95, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.home-hero-card__mesh {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.home-hero-card__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.home-hero-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    padding: 0.25rem 0.65rem 0.25rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    backdrop-filter: blur(8px);
}

.home-hero-card__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.8);
}

.home-hero-card__tagline {
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
    max-width: 28rem;
}

@media (min-width: 768px) {
    .home-hero-card__tagline {
        font-size: 0.8rem;
    }
}

.home-hero-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
    font-weight: normal;
    line-height: 1.15;
    color: #ffffff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
    .home-hero-card__title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .home-hero-card__title {
        font-size: 2.65rem;
    }
}

.home-hero-card__subtitle {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

@media (min-width: 768px) {
    .home-hero-card__subtitle {
        font-size: 1rem;
    }
}

.home-hero-card__accent {
    display: inline-block;
    margin-top: 0.75rem;
    height: 3px;
    width: 3.5rem;
    border-radius: 2px;
    background: linear-gradient(90deg, #fbbf24, #60a5fa);
}

/* Logo showcase */
.home-hero-card__visual {
    flex-shrink: 0;
}

.home-hero-card__logo-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, #ffffff 0%, #e8f4fc 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.5),
        0 12px 32px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(96, 165, 250, 0.25);
}

@media (min-width: 768px) {
    .home-hero-card__logo-shell {
        width: 6.5rem;
        height: 6.5rem;
        border-radius: 1.35rem;
    }
}

@media (min-width: 1024px) {
    .home-hero-card__logo-shell {
        width: 7.5rem;
        height: 7.5rem;
    }
}

.home-hero-card__logo-shell::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.home-hero-card__logo-shell img {
    width: 3.75rem;
    height: 3.75rem;
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .home-hero-card__logo-shell img {
        width: 4.5rem;
        height: 4.5rem;
        max-width: 72px;
        max-height: 72px;
    }
}

@media (min-width: 1024px) {
    .home-hero-card__logo-shell img {
        width: 5.25rem;
        height: 5.25rem;
        max-width: 84px;
        max-height: 84px;
    }
}

/* ——————————————————————————————————
   DOWNLOAD — two halves (App Store | Google Play)
   —————————————————————————————————— */
.home-download-wrap {
    padding: 0 1rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .home-download-wrap {
        padding: 0 1.5rem 2.5rem;
    }
}

.home-download-split {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .home-download-split {
        border-radius: 1.5rem;
    }
}

.home-download-split__overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 15, 30, 0.55);
    pointer-events: none;
    z-index: 0;
}

.home-download-split__head {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.35rem 1rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-download-split__title-tamil {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    color: #ffffff;
}

@media (min-width: 768px) {
    .home-download-split__title-tamil {
        font-size: 1.15rem;
    }
}

.home-download-split__title-en {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
}

.home-download-split__cols {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .home-download-split__cols {
        grid-template-columns: 1fr 1fr;
    }
}

.home-download-col {
    padding: 1.35rem 1rem 1.5rem;
    transition: background 0.2s ease;
}

.home-download-col--ios {
    background: linear-gradient(180deg, rgba(28, 35, 48, 0.92) 0%, rgba(15, 20, 30, 0.95) 100%);
}

.home-download-col--android {
    background: linear-gradient(180deg, rgba(18, 48, 32, 0.92) 0%, rgba(10, 28, 20, 0.95) 100%);
}

@media (min-width: 768px) {
    .home-download-col--ios {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }
}

.home-download-col__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 280px;
    margin: 0 auto;
}

.home-download-col__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0.85rem 0 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.home-download-col__platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
}

.home-download-col__platform-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.home-download-col__platform-icon--apple {
    color: #ffffff;
}

.home-download-col__platform-icon--play svg {
    width: 1.5rem;
    height: 1.5rem;
}

.home-download-col__qr-box {
    padding: 0.65rem;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.home-download-col__qr-box:hover {
    transform: scale(1.02);
}

.home-download-col__qr {
    display: block;
    width: 7rem;
    height: 7rem;
    max-width: 140px;
    max-height: 140px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .home-download-col__qr {
        width: 8rem;
        height: 8rem;
    }
}

