:root {
    --color-red: #E6192B;
    --color-red-hover: #c41423;
    --color-bg-dark: #0A0A0A;
    --color-bg-darker: #050505;
    --color-bg-light: #F8F9FA;
    --color-text-light: #F5F5F5;
    --color-text-dark: #121212;
    --color-text-muted: #A0A0A0;
    --color-border: rgba(255, 255, 255, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-red {
    color: var(--color-red);
}

.section-dark {
    background-color: var(--color-bg-dark);
}

.section-light {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-light .section-header p {
    color: #555;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-agp {
    color: var(--color-red);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-red);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text-light);
    transition: var(--transition);
}

/* Hero Section */
.hero-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-bg-darker);
    background-image:
        radial-gradient(800px circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh),
            rgba(0, 0, 0, 0.1) 0%,
            rgba(10, 10, 10, 0.95) 50%,
            rgba(10, 10, 10, 1) 100%),
        url('images/agp-bg-01.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    max-width: 1280px;
    margin: 0 auto;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(230, 25, 43, 0.1);
    color: var(--color-red);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(230, 25, 43, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 4vw + 1rem, 3.75rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-red);
    color: white;
    border: 1px solid var(--color-red);
}

.btn-primary:hover {
    background-color: var(--color-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230, 25, 43, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text-light);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-red);
}

.btn-outline:hover {
    background-color: var(--color-red);
    color: white;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glowing-circle {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(230, 25, 43, 0.15) 0%, rgba(10, 10, 10, 0) 70%);
    z-index: 1;
}

.hero-image {
    width: 100%;
    max-width: 450px;
    z-index: 2;
    position: relative;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    background: transparent;
    transition: var(--transition);
}

.hero-image:hover {
    transform: scale(1.02) translateY(-10px);
    box-shadow: 0 30px 60px rgba(230, 25, 43, 0.2);
}

/* Features */
.features {
    padding: 8rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(230, 25, 43, 0.1);
    color: var(--color-red);
    border-radius: 12px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
}

/* Products Section */
.products {
    padding: 8rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: #121212;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 25, 43, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-image {
    height: 280px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.img-error {
    display: block;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, #1f1f1f, #1f1f1f 10px, #1a1a1a 10px, #1a1a1a 20px);
    position: relative;
}

.img-error::after {
    content: 'Fotografie bude doplnena';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.product-info {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-red);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.product-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.product-info p {
    color: var(--color-text-muted);
    font-size: 1rem;
    flex: 1;
    margin-bottom: 2rem;
}

.product-link {
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.product-card:hover .product-link {
    color: var(--color-red);
    transform: translateX(5px);
}

.mt-4 {
    margin-top: 4rem;
}

.center {
    text-align: center;
}

/* Footer */
.footer {
    background: var(--color-bg-darker);
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-red);
}

.footer-contact p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.footer-url {
    color: var(--color-text-light);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-red);
    text-underline-offset: 4px;
}

.footer-bottom {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-bg-dark);
        flex-direction: column;
        padding: 0;
        text-align: center;
        border-bottom: 1px solid var(--color-border);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
    }

    .nav-links.active {
        padding: 2rem 0;
        max-height: 400px;
        opacity: 1;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }
}

/* Comparison Table */
.comparison {
    padding: 8rem 0;
}

.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 1rem;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    text-align: left;
}

.compare-table th,
.compare-table td {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.compare-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-dark);
    font-size: 1.1rem;
    border-bottom: 2px solid var(--color-red);
    white-space: nowrap;
}

.compare-table tbody tr:hover td {
    background-color: #fcfcfc;
}

.compare-table td:first-child {
    color: var(--color-text-dark);
    font-weight: 600;
}

.status-yes {
    color: #059669;
    font-weight: 600;
}

.status-no {
    color: #DC2626;
    font-weight: 500;
}

.table-link {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-red);
    border: 1px solid var(--color-red);
    border-radius: 5px;
    transition: var(--transition);
}

.table-link:hover {
    background-color: var(--color-red);
    color: white;
}

td.hover-col {
    background-color: rgba(230, 25, 43, 0.02);
}

th.hover-col {
    background-color: rgba(230, 25, 43, 0.05);
    color: var(--color-red);
}

/* Video Section */
.video-section {
    padding: 8rem 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Testimonials Section */
.testimonials {
    padding: 8rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--color-red);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 6rem;
    color: rgba(230, 25, 43, 0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-content {
    font-size: 1.05rem;
    color: #4a4a4a;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--color-text-dark);
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.testimonial-author span {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* FAQ Section */
.faq-section {
    padding: 8rem 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #121212;
    border: 1px solid var(--color-border);
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--color-red);
    transition: var(--transition);
    font-weight: 300;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.faq-answer p {
    padding: 0 2rem 1.5rem 2rem;
    color: var(--color-text-muted);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(230, 25, 43, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-red-hover);
    transform: translateY(-5px);
}