/* SignagePoint Landing Page Styles */

:root {
    --sp-red: #e02222;
    --sp-red-dark: #c01e1e;
    --sp-red-light: #ff4444;
    --sp-dark: #0f1117;
    --sp-dark-lighter: #1a1d2b;
    --sp-gray-900: #1e2130;
    --sp-gray-800: #2a2d3e;
    --sp-gray-700: #3a3d4e;
    --sp-gray-400: #8b8fa3;
    --sp-gray-300: #b0b4c8;
    --sp-gray-100: #f0f1f5;
    --sp-white: #ffffff;
    --sp-font-logo: 'Hind Madurai', sans-serif;
    --sp-font-body: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sp-max-width: 1200px;
    --sp-nav-height: 72px;
    --sp-transition: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--sp-font-body);
    color: var(--sp-gray-900);
    background: var(--sp-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--sp-transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--sp-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Navigation ─── */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--sp-nav-height);
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background var(--sp-transition);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--sp-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.nav__logo {
    font-family: var(--sp-font-logo);
    font-size: 22px;
    font-weight: 600;
    color: var(--sp-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav__logo span {
    color: var(--sp-red);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav__link {
    color: var(--sp-gray-300);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color var(--sp-transition);
}

.nav__link:hover {
    color: var(--sp-white);
}

.nav__cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--sp-red);
    color: var(--sp-white);
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: background var(--sp-transition), transform 0.15s ease;
}

.nav__cta:hover {
    background: var(--sp-red-dark);
    transform: translateY(-1px);
}

/* Language Dropdown */
.nav__lang {
    position: relative;
    list-style: none;
}

.nav__lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--sp-gray-300);
    font-size: 14px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--sp-transition);
    white-space: nowrap;
    font-family: var(--sp-font-body);
}

.nav__lang-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--sp-white);
}

.nav__lang-dropdown {
    display: none !important;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--sp-gray-900);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 0;
    list-style: none;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    margin: 0;
}

.nav__lang-dropdown.open {
    display: block !important;
}

.nav__lang-dropdown li {
    list-style: none;
}

.nav__lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--sp-gray-300);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav__lang-dropdown li a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--sp-white);
}

.nav__lang-dropdown li a.active {
    color: var(--sp-red);
    font-weight: 600;
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sp-white);
    transition: transform var(--sp-transition), opacity var(--sp-transition);
}

.nav__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Hero ─── */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--sp-dark);
    padding-top: var(--sp-nav-height);
    overflow: hidden;
}

.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 17, 23, 0.65);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 80px 0;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(224, 34, 34, 0.12);
    border: 1px solid rgba(224, 34, 34, 0.25);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sp-red-light);
    margin-bottom: 28px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero__title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    color: var(--sp-white);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero__title em {
    font-style: normal;
    color: var(--sp-red);
}

.hero__subtitle {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--sp-gray-400);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 560px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--sp-transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--sp-red);
    color: var(--sp-white);
}

.btn--primary:hover {
    background: var(--sp-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224, 34, 34, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--sp-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn--outline:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* ─── Stats Bar ─── */

.stats {
    background: var(--sp-white);
    border-bottom: 1px solid var(--sp-gray-100);
    padding: 40px 0;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stats__number {
    font-size: 32px;
    font-weight: 800;
    color: var(--sp-red);
    line-height: 1;
}

.stats__label {
    font-size: 14px;
    color: var(--sp-gray-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Section Common ─── */

.section {
    padding: 100px 0;
}

.section--gray {
    background: var(--sp-gray-100);
}

.section--dark {
    background: var(--sp-dark);
    color: var(--sp-white);
}

.section__header {
    text-align: center;
    margin-bottom: 64px;
}

.section__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--sp-red);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.section__title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--sp-gray-900);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section--dark .section__title {
    color: var(--sp-white);
}

.section__subtitle {
    font-size: 17px;
    color: var(--sp-gray-400);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Features Grid ─── */

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--sp-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 32px;
    transition: transform var(--sp-transition), box-shadow var(--sp-transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(224, 34, 34, 0.08);
    border-radius: 10px;
    margin-bottom: 20px;
    color: var(--sp-red);
}

.feature-card__icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--sp-gray-900);
    margin-bottom: 10px;
}

.feature-card__text {
    font-size: 15px;
    color: var(--sp-gray-400);
    line-height: 1.6;
}

/* ─── Player Types ─── */

.players__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.player-card {
    position: relative;
    background: var(--sp-gray-900);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    overflow: hidden;
    transition: transform var(--sp-transition);
}

.player-card:hover {
    transform: translateY(-4px);
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sp-red);
}

.player-card__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(224, 34, 34, 0.1);
    border-radius: 16px;
    margin: 0 auto 24px;
    color: var(--sp-red);
}

.player-card__icon svg {
    width: 36px;
    height: 36px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.player-card__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--sp-white);
    margin-bottom: 12px;
}

.player-card__text {
    font-size: 15px;
    color: var(--sp-gray-400);
    line-height: 1.7;
    margin-bottom: 24px;
}

.player-card__features {
    list-style: none;
    text-align: left;
}

.player-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--sp-gray-300);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.player-card__features li:first-child {
    border-top: none;
}

.player-card__features li svg {
    width: 16px;
    height: 16px;
    stroke: var(--sp-red);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* ─── How It Works ─── */

.steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    position: relative;
}

.steps__grid::before {
    content: '';
    position: absolute;
    top: 44px;
    left: calc(16.67% + 24px);
    right: calc(16.67% + 24px);
    height: 2px;
    background: linear-gradient(90deg, var(--sp-red), var(--sp-red-light), var(--sp-red));
    opacity: 0.3;
}

.step {
    text-align: center;
    position: relative;
}

.step__number {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(224, 34, 34, 0.08);
    border: 2px solid rgba(224, 34, 34, 0.2);
    border-radius: 50%;
    margin: 0 auto 24px;
    font-size: 32px;
    font-weight: 800;
    color: var(--sp-red);
    position: relative;
    z-index: 1;
    background-color: var(--sp-white);
}

.section--gray .step__number {
    background-color: var(--sp-gray-100);
}

.step__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--sp-gray-900);
    margin-bottom: 12px;
}

.step__text {
    font-size: 15px;
    color: var(--sp-gray-400);
    line-height: 1.7;
    max-width: 280px;
    margin: 0 auto;
}

/* ─── CTA Section ─── */

.cta {
    padding: 100px 0;
    background: linear-gradient(160deg, var(--sp-dark) 0%, var(--sp-dark-lighter) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 34, 34, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta__content {
    position: relative;
    z-index: 1;
}

.cta__title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--sp-white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta__text {
    font-size: 18px;
    color: var(--sp-gray-400);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ─── Footer ─── */

.footer {
    background: var(--sp-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 64px 0 32px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__logo {
    display: inline-block;
    font-family: var(--sp-font-logo);
    font-size: 20px;
    font-weight: 600;
    color: var(--sp-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.footer__logo span {
    color: var(--sp-red);
}

.footer__tagline {
    font-size: 14px;
    color: var(--sp-gray-300);
    line-height: 1.6;
    max-width: 260px;
}

.footer__heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--sp-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__list--inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 16px;
}

.footer__link {
    color: var(--sp-gray-300);
    font-size: 14px;
    transition: color var(--sp-transition);
}

.footer__link:hover {
    color: var(--sp-white);
}

.footer__address {
    font-style: normal;
    font-size: 14px;
    color: var(--sp-gray-300);
    line-height: 1.8;
}

.footer__address strong {
    color: var(--sp-white);
}

.footer__bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 13px;
    color: var(--sp-gray-400);
}

/* ─── Legal Pages ─── */

.legal {
    padding-top: calc(var(--sp-nav-height) + 60px);
    padding-bottom: 80px;
    min-height: 100vh;
}

.legal__content {
    max-width: 800px;
    margin: 0 auto;
}

.legal__title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--sp-gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.legal__updated {
    font-size: 14px;
    color: var(--sp-gray-400);
    margin-bottom: 40px;
}

.legal__content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--sp-gray-900);
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal__content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--sp-gray-900);
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal__content p {
    font-size: 15px;
    color: var(--sp-gray-400);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal__content ul {
    margin: 0 0 16px 24px;
    color: var(--sp-gray-400);
    font-size: 15px;
    line-height: 1.8;
}

.legal__content a {
    color: var(--sp-red);
}

.legal__content a:hover {
    text-decoration: underline;
}

/* ─── Contact Page ─── */

.contact__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0 48px;
}

.contact__card {
    background: var(--sp-gray-100);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.contact__card h2 {
    font-size: 20px;
    margin-top: 16px;
    margin-bottom: 12px;
    color: var(--sp-gray-900);
}

.contact__card p,
.contact__card address {
    font-size: 15px;
    color: var(--sp-gray-400);
    line-height: 1.7;
    font-style: normal;
}

.contact__card address strong {
    color: var(--sp-gray-900);
}

.contact__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(224, 34, 34, 0.08);
    border-radius: 16px;
}

.contact__link {
    display: inline-block;
    margin-top: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--sp-red) !important;
}

@media (max-width: 768px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Animations ─── */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ─── Responsive: Tablet ─── */

@media (max-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .players__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .players__grid .player-card:last-child {
        grid-column: 1 / -1;
        max-width: 480px;
        margin: 0 auto;
    }

    .steps__grid::before {
        display: none;
    }
}

/* ─── Responsive: Mobile ─── */

@media (max-width: 768px) {
    :root {
        --sp-nav-height: 64px;
    }

    .nav__links {
        display: none;
        position: fixed;
        top: var(--sp-nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        background: rgba(15, 17, 23, 0.98);
        backdrop-filter: blur(12px);
    }

    .nav__links.open {
        display: flex;
    }

    .nav__link {
        font-size: 18px;
    }

    .nav__lang {
        position: static;
        width: 100%;
        text-align: center;
    }

    .nav__lang-dropdown {
        position: static !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        min-width: auto !important;
    }

    .nav__lang-dropdown.open {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .nav__lang-dropdown li a {
        padding: 6px 12px;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav__hamburger {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--sp-nav-height) + 40px);
        padding-bottom: 60px;
    }

    .hero__content {
        padding: 40px 0;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .section {
        padding: 64px 0;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .players__grid {
        grid-template-columns: 1fr;
    }

    .players__grid .player-card:last-child {
        max-width: none;
    }

    .steps__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ─── Skip to content (accessibility) ─── */

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 12px 24px;
    background: var(--sp-red);
    color: var(--sp-white);
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}
