/* POSUniversal Website - Modern Redesign */

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

:root {
    --primary-color: #4682B4;
    --primary-dark: #305F8C;
    --primary-light: #6AA3D5;
    --accent: #00D4FF;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --background: #F8F9FA;
    --white: #FFFFFF;
    --border: #E1E8ED;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(-45deg, #f8f9fa, #e3f2fd, #f1f8ff, #f8f9fa);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    min-height: 100vh;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--accent) 100%);
    background-size: 200% 200%;
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 10px 40px rgba(70, 130, 180, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: gradient 10s ease infinite;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    animation: float 3s ease-in-out infinite;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(70, 130, 180, 0.1), transparent);
    animation: shine 3s infinite;
}

.hero h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    background-size: 200% 200%;
    color: var(--white);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(70, 130, 180, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(70, 130, 180, 0.5);
}

/* Screenshots Section */
.screenshots {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.95));
    backdrop-filter: blur(20px);
    padding: 4rem 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    text-align: center;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.screenshots h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    font-weight: 800;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.screenshot-item {
    text-align: center;
    animation: fadeInUp 0.6s ease backwards;
}

.screenshot-item:nth-child(1) { animation-delay: 0.1s; }
.screenshot-item:nth-child(2) { animation-delay: 0.2s; }
.screenshot-item:nth-child(3) { animation-delay: 0.3s; }
.screenshot-item:nth-child(4) { animation-delay: 0.4s; }
.screenshot-item:nth-child(5) { animation-delay: 0.5s; }
.screenshot-item:nth-child(6) { animation-delay: 0.6s; }
.screenshot-item:nth-child(7) { animation-delay: 0.7s; }
.screenshot-item:nth-child(8) { animation-delay: 0.8s; }

.screenshot-item img {
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(70, 130, 180, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
}

.screenshot-item img:hover {
    transform: translateY(-15px) scale(1.08);
    box-shadow: 0 25px 70px rgba(70, 130, 180, 0.5);
    border-color: var(--accent);
}

.screenshot-item p {
    margin-top: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary-color), var(--text-dark));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.feature-card {
    background: linear-gradient(135deg, var(--white), rgba(255,255,255,0.9));
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(70, 130, 180, 0.25);
    border-color: var(--primary-light);
}

.feature-card h3 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Legal Pages */
.legal-content {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease;
}

.legal-content h1 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.legal-content .last-updated {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--border);
}

.legal-content h2 {
    color: var(--primary-dark);
    font-size: 1.9rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.legal-content ul, .legal-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.legal-content strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid var(--primary-light);
    transition: all 0.3s;
}

.legal-content a:hover {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--text-dark), #1a252f);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 4rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.copyright {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.15rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .screenshots h2 {
        font-size: 2.2rem;
    }

    .screenshot-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 2rem;
    }

    nav ul {
        gap: 1rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
    }

    main {
        padding: 2rem 1rem;
    }

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

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo-img {
        height: 35px;
    }
}
