:root {
    /* Primary Colors */
    --color-primary-dark: #8B1F1F;
    --color-primary-light: #C92A2A;

    /* Neutral Colors */
    --color-dark: #2d3748;
    --color-medium: #4a5568;
    --color-light: #718096;
    --color-lighter: #a0aec0;
    --color-background: #f7fafc;
    --color-border: #e2e8f0;

    /* Semantic Colors */
    --color-text: #333;
    --color-white: #fff;
    --color-footer-bg: #1a202c;
    --color-stats-bg: #1a202c;

    /* Shadows */
    --shadow-primary: rgba(139, 31, 31, 0.15);
    --shadow-primary-hover: rgba(139, 31, 31, 0.3);
    --shadow-primary-strong: rgba(139, 31, 31, 0.4);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    overflow-x: hidden;
}

header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-image {
    height: 50px;
    width: auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: "📺";
    font-size: 1.5rem;
}

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

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

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

nav a:hover {
    opacity: 0.8;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger animation when active */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile menu overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 7rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    from { transform: translateY(0); }
    to { transform: translateY(-100px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: white;
    color: var(--color-primary-dark);
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    margin-left: 1rem;
}

.cta-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.trust-badge {
    margin-top: 2rem;
    opacity: 0.9;
    font-size: 0.95rem;
}

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--color-dark);
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--color-light);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.benefit-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--color-border);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-primary);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit-card h3 {
    color: var(--color-primary-dark);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.benefit-card p {
    color: var(--color-medium);
    line-height: 1.7;
    font-size: 1.05rem;
}

.features {
    background: linear-gradient(to bottom, var(--color-background) 0%, white 100%);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--color-primary-dark);
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 25px rgba(139, 31, 31, 0.12);
}

.feature-item h4 {
    color: var(--color-dark);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.feature-item p {
    color: var(--color-light);
    line-height: 1.6;
}

.industries {
    text-align: center;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.industry-item {
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
    color: white;
    border-radius: 15px;
    font-size: 1.4rem;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
    box-shadow: 0 5px 20px var(--shadow-primary-hover);
}

.industry-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px var(--shadow-primary-strong);
}

.industry-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.stats-section {
    background: var(--color-stats-bg);
    color: white;
    padding: 4rem 2rem;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--color-primary-light);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-section {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.guarantee {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
}

.guarantee p {
    margin: 0;
    font-size: 1rem;
}

footer {
    background: var(--color-footer-bg);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-links a {
    color: var(--color-lighter);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

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

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

    /* Show hamburger menu on mobile */
    .hamburger {
        display: flex;
    }

    /* Hide desktop menu, show mobile menu */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.15);
        padding: 2rem 0;
        gap: 0;
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        font-size: 1.2rem;
        padding: 0.5rem 2rem;
    }

    .logo-image {
        height: 40px;
    }

    .section h2 {
        font-size: 2rem;
    }

    .cta-secondary {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .benefits,
    .feature-list,
    .industry-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Animation for elements on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Login Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-light);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-dark);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: var(--color-light);
    margin-bottom: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.95rem;
}

.form-group input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary-dark);
    box-shadow: 0 0 0 3px rgba(139, 31, 31, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-medium);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary-dark);
}

.forgot-password {
    color: var(--color-primary-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.3s;
}

.forgot-password:hover {
    opacity: 0.8;
}

.btn-login {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    margin-top: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-primary-hover);
}

.btn-login:active {
    transform: translateY(0);
}

.form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0.5rem 0;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-border);
}

.form-divider span {
    padding: 0 1rem;
    color: var(--color-light);
    font-size: 0.9rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s;
}

.btn-social:hover {
    background-color: var(--color-background);
    border-color: var(--color-light);
    transform: translateY(-2px);
}

.btn-social svg {
    flex-shrink: 0;
}

.signup-prompt {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--color-medium);
    font-size: 0.95rem;
}

.signup-prompt a {
    color: var(--color-primary-dark);
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s;
}

.signup-prompt a:hover {
    opacity: 0.8;
}

/* Error Message Styling */
.error-message {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: #c00;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Message Styling */
.success-message {
    background-color: #efe;
    border: 1px solid #cfc;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: #060;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease;
}

/* Contact Form Styles */
.modal-content-wide {
    max-width: 600px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form label {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: white;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary-dark);
    box-shadow: 0 0 0 3px rgba(139, 31, 31, 0.1);
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    margin-top: 0.5rem;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-primary-hover);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-light);
    margin-top: 0.5rem;
}

.form-footer a {
    color: var(--color-primary-dark);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .modal-content h2 {
        font-size: 1.75rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content-wide {
        max-width: 95%;
    }
}