/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: hsl(220, 30%, 8%);
    color: hsl(210, 40%, 98%);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Design System Variables */
:root {
    --primary: hsl(230, 85%, 60%);
    --primary-foreground: hsl(220, 30%, 8%);
    --secondary: hsl(220, 20%, 18%);
    --secondary-foreground: hsl(210, 40%, 98%);
    --accent: hsl(200, 85%, 65%);
    --muted: hsl(220, 20%, 15%);
    --muted-foreground: hsl(215, 20%, 65%);
    --card: hsl(220, 25%, 12%);
    --card-foreground: hsl(210, 40%, 98%);
    --border: hsl(220, 20%, 20%);
    
    --gradient-primary: linear-gradient(135deg, hsl(230, 85%, 60%), hsl(200, 85%, 65%));
    --gradient-hero: linear-gradient(135deg, hsl(220, 30%, 8%) 0%, hsl(230, 40%, 12%) 50%, hsl(240, 35%, 15%) 100%);
    --shadow-glow: 0 0 40px hsl(230, 85%, 60%, 30%);
    --shadow-card: 0 10px 30px -10px hsl(220, 30%, 5%, 50%);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px hsl(230, 85%, 60%, 20%);
    }
    50% {
        box-shadow: 0 0 30px hsl(230, 85%, 60%, 40%);
    }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: hsl(220, 30%, 8%, 95%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo img {
    height: 50px; /* Or whatever height you want */
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--secondary-foreground);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--secondary-foreground);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.modal-content {
    position: relative;
    margin: auto;
    width: 90%;
    max-width: 1200px;
    padding: 10px;
    background-color: #ffffff88;
    border-radius: 8px;
    animation-name: animatetop;
    animation-duration: 0.4s
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 1001;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Add animation for modal */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

/* Buttons */
.btn {
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: 0 4px 12px hsl(230, 85%, 60%, 20%);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: hsl(220, 20%, 22%);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/static/image/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-bottom: 64px;
    padding-top: 150px; /* Account for fixed header */
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--muted-foreground);
    margin-bottom: 32px;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat:nth-child(2) .stat-number {
    color: var(--accent);
}

.stat-label {
    color: var(--muted-foreground);
    font-size: 1rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 24px;
    color: hsl(210, 40%, 98%);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

/* New CSS to add for the "How It Works" icons from the screenshot */
.how-it-works-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: hsl(220, 30%, 8%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    box-shadow: var(--shadow-glow);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-foreground);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--card-foreground);
}

.feature-card p {
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* Video Showcase Section */
.video-showcase {
    padding: 80px 0;
    background: hsl(220, 30%, 8%);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.video-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .play-button {
    opacity: 1;
}

.play-button svg {
    width: 64px;
    height: 64px;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 16px;
    transition: var(--transition);
}

.play-button:hover svg {
    box-shadow: var(--shadow-glow);
}

.video-info {
    padding: 24px;
}

.video-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--card-foreground);
}

.video-info p {
    color: var(--muted-foreground);
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: hsl(220, 25%, 10%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.pricing-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--card-foreground);
}

.price {
    margin-bottom: 16px;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.period {
    color: var(--muted-foreground);
    font-size: 1rem;
}

.pricing-header p {
    color: var(--muted-foreground);
}

.features-list {
    list-style: none;
    margin-bottom: 32px;
}

.features-list li {
    padding: 8px 0;
    color: var(--card-foreground);
    position: relative;
    padding-left: 24px;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.pricing-cta {
    text-align: center;
}

/* Footer */
.footer {
    background: hsl(220, 25%, 12%);
    border-top: 1px solid var(--border);
}

.footer .container {
    padding-top: 64px;
    padding-bottom: 64px;
}

.footer-cta {
    text-align: center;
    padding: 48px;
    background: var(--gradient-hero);
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 64px;
}

.footer-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: hsl(210, 40%, 98%);
}

.footer-cta p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 32px;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

@media (min-width: 640px) {
    .footer-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.footer-column h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--card-foreground);
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--card-foreground);
}

.footer-column p {
    color: var(--muted-foreground);
    line-height: 1.7;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    color: var(--muted-foreground);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .features-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .features,
    .video-showcase,
    .pricing {
        padding: 60px 0;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
.footer-column .social-icons {
    display: flex;
    gap: 1.5rem; /* spacing between icons */
    margin-top: 1rem;
}
.footer-column .social-icons a {
    color: inherit; /* inherit color from parent */
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
}
.footer-column .social-icons a:hover {
    opacity: 1;
}
.footer-column .social-icons svg {
    width: 24px;
    height: 24px;
}

/* --- Blog Styles --- */

.blog-section {
    padding: 80px 0;
    /* Dark background for the entire section */
    background-color: #0A0F2E; 
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

/* Set the title color in the header to be light */
.blog-header h1 {
    color: #E6F1FF;
}

.blog-post-summary {
    /* Card background for posts */
    background-color: #141A4B;
    padding: 2rem;
    border-radius: 8px;
    /* A subtle border works better than a shadow in dark mode */
    border: 1px solid #30363d;
    margin-bottom: 2rem;
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.blog-post-summary:hover {
    transform: translateY(-5px);
    /* Make the border glow with the accent color on hover */
    border-color: #007BFF;
}

.blog-post-summary h2 a {
    /* Use the accent color for links */
    color: #007BFF;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-post-summary h2 a:hover {
    color: #58A6FF; /* Lighter blue on hover */
}

.post-meta {
    /* A muted, light color for metadata */
    color: #8B949E;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* --- Single Post Styles --- */
.post-full-content {
    /* Keeping your selected dark blue for consistency */
    background-color: #141A4B;
    padding: 2rem;
    border-radius: 8px;
    /* A subtle border for consistency */
    border: 1px solid #30363d;
    margin-top: 50px;
}

.post-full-content .post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    /* Keeping the vibrant accent color for the title */
    color: #007BFF;
}

.post-full-content .post-content {
    margin-top: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
    white-space: pre-wrap;
    /* Set the main body text to a readable light color */
    color: #E6F1FF;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    /* Use the accent color for the link */
    color: #007BFF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: #58A6FF;
}
/* --- Table Styles for Blog Posts --- */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.post-content th, .post-content td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    text-align: center;

}

.post-content th {
    background-color: #509fed;
    font-weight: 600;
}

.post-content tr:nth-child(even) {
    background-color: #cad0d021;
}