@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #5e72e4;
    --secondary-color: #f4f5f7;
    --accent-color: #ff4d6d;
    --danger-color: #f5365c;
    --text-color: #e0e0e0; /* Lighter text for dark bg */
    --text-dark: #525f7f;
    --text-light: #8898aa;
    --background-start: #000027;
    --background-end: #ff0055;
    --card-background: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    --premium-color: #f5b72e;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--background-start), var(--background-end), red);
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
}

/* Header and Nav */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(94, 114, 228, 0.4);
}
.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.btn-accent {
    background-color: var(--accent-color);
    color: #fff;
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 77, 109, 0.4);
}
.btn-premium {
    background-color: var(--premium-color);
    color: #fff;
}
.btn-premium:hover {
     transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(245, 183, 46, 0.4);
}

/* Main Content & Sections */
main {
    padding-top: 80px; /* Header height */
}

.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: background-image 1.5s ease-in-out;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

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

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Card Style */
.card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Specific Sections */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.screenshot-gallery img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}
.screenshot-gallery img:hover {
    transform: scale(1.05);
}

.widget-controls {
    margin-bottom: 2rem;
}
#widget-search {
    width: 100%;
    max-width: 500px;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--card-background);
    color: var(--text-color);
    font-size: 1rem;
    backdrop-filter: blur(5px);
}
#widget-search::placeholder {
    color: var(--text-light);
}

.widget-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.widget-card {
    text-align: left;
    position: relative;
}
.widget-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.widget-card-header img {
    height: 32px;
    width: 32px;
    margin-right: 1rem;
}
.widget-card-header h5 {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}
.widget-card .widget-screenshot {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}
.widget-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.widget-card .premium-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background-image: url('crown.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}
.pagination button {
    background: var(--card-background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pagination button:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.pagination button.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: bold;
}

.pricing-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-intro > p {
    max-width: 600px;
}

.pricing-card {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}
.pricing-card h4 {
    font-size: 1.5rem;
    color: var(--premium-color);
    margin-bottom: 1rem;
}
.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.pricing-card .price span {
    font-size: 1.2rem;
    font-weight: 400;
    vertical-align: middle;
    margin: 0 5px;
}
.pricing-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.pricing-card #premium-widget-grid {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.pricing-card .btn-premium {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
}

.text-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    background: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 2rem 5%;
    margin-top: 2rem;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid var(--border-color);
}
.main-footer p {
    margin-bottom: 1rem;
}

/* Animations */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* Simplification for this example. A real site would have a hamburger menu. */
    }
    .widget-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-content h2 {
        font-size: 2.2rem;
    }
    .widget-grid {
        grid-template-columns: 1fr;
    }
}