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

:root {
    --primary-color: #0083d3; /* WPT Global Blue */
    --primary-gradient: linear-gradient(135deg, #0083d3 0%, #005c9a 100%);
    --secondary-color: #005c9a; /* Darker blue for hover states */
    --accent-color: #e6002d; /* WPT Global Red */
    --wpt-red: #e6002d; /* WPT Global Red - accent color */
    --red-gradient: linear-gradient(135deg, #e6002d 0%, #c50026 100%);
    --bg-light: #ffffff;
    --bg-light-gray: #fafbfc;
    --bg-gradient: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    --text-primary: #0a0e27; /* Darker, more modern black */
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 30px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 20px 40px rgba(0, 131, 211, 0.12);
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #e6002d;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1;
}

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

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 4rem;
    text-align: center;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.terminal-prompt {
    color: var(--primary-color);
    margin-right: 0.5rem;
    display: none; /* Hide hacker-style prompt */
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    transition: var(--transition-fast);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    transition: var(--transition-fast);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    padding-bottom: 6px;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary, .btn-secondary, .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 131, 211, 0.15);
    letter-spacing: -0.01em;
}

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

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

.btn-primary, .cta-button {
    background: var(--primary-gradient);
    color: var(--bg-light);
    border: none;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-primary:hover, .cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 131, 211, 0.25);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 131, 211, 0.2);
}

.btn-primary:active, .btn-secondary:active, .cta-button:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* Hero Section */
.hero {
    padding: 12rem 0 8rem;
    background: var(--bg-gradient);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 131, 211, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 0, 45, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(5deg); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 2rem;
    line-height: 1.1;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.04em;
    animation: fadeInUp 0.8s ease-out;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-image {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--primary-gradient);
    opacity: 0.1;
    border-radius: 24px;
    filter: blur(40px);
    z-index: -1;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.hero-image:hover img {
    transform: translateY(-8px);
    box-shadow: 0 35px 80px rgba(0, 131, 211, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.hero-image video {
    width: 85%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    object-fit: cover;
}

/* Mobile styles */
@media (max-width: 768px) {
    .hero-image video {
        width: 100%;
        max-width: 100%;
        max-height: 500px;
        object-fit: cover;
    }
}

/* Terminal Window (Redesigned as a simple content box) */
.terminal-window {
    background: transparent;
    border-radius: 0;
    margin-bottom: 2rem;
    box-shadow: none;
    border: none;
}

.terminal-header {
    display: none; /* Hide terminal header */
}

.terminal-buttons {
    display: none;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn.red { background: #ff5f56; }
.btn.yellow { background: #ffbd2e; }
.btn.green { background: #27ca3f; }

.terminal-title {
    display: none;
}

.terminal-body {
    padding: 0;
    font-family: inherit;
}

.terminal-line {
    margin-bottom: 0.5rem;
    opacity: 1; /* Remove fade-in animation for cleaner look */
    animation: none;
}

.terminal-line.delay-1 { animation-delay: 0.5s; }
.terminal-line.delay-2 { animation-delay: 1s; }
.terminal-line.delay-3 { animation-delay: 1.5s; }
.terminal-line.delay-4 { animation-delay: 2s; }

.prompt {
    color: var(--primary-color);
    margin-right: 0.5rem;
    display: none; /* Hide hacker prompt */
}

.output {
    color: var(--text-secondary);
}

.output.success {
    color: var(--success-color);
}

/* Typing Animation - Simplified */
.typing-text {
    border-right: none;
    animation: none;
}

@keyframes blink {
    50% { border-color: transparent; }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features Section */
.features {
    padding: 8rem 0;
    background: var(--bg-light);
    position: relative;
    z-index: 3;
}

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

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 131, 211, 0.2);
    box-shadow: var(--card-shadow-hover);
}

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

.feature-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1.75rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 131, 211, 0.1) 0%, rgba(0, 131, 211, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(0, 131, 211, 0.15) 0%, rgba(0, 131, 211, 0.1) 100%);
}

.feature-icon svg, .feature-icon img {
    width: 40px;
    height: 40px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 1.0625rem;
}

/* Demo Section */
.demo {
    padding: 8rem 0;
    background: var(--bg-light-gray);
    position: relative;
}

.demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.demo-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Desktop Video Container - 16:9 aspect ratio */
.video-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* Keep video proportions */
}

/* Mobile Video Container - соотношение 608:1280 ≈ 9:19 */
.mobile-frame {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    border: 8px solid #333;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    aspect-ratio: 608 / 1280; /* Keep mobile video proportions */
    background: #000;
}

.mobile-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* Keep video proportions */
}

.video-caption {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.youtube-shorts-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: #000;
    aspect-ratio: 9 / 16;
}

.youtube-shorts-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile adaptability */
@media (max-width: 768px) {
    .demo-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .youtube-shorts-container {
        max-width: 100%;
        width: 100%;
    }
    
    .mobile-frame {
        max-width: 90%;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .youtube-shorts-container {
        max-width: 100%;
        border-radius: 8px;
    }
    
    .mobile-frame {
        max-width: 95%;
        width: 100%;
        margin: 0 auto;
    }
    
    .video-container {
        aspect-ratio: 16 / 9;
    }
}

/* Articles Section */
.articles {
    padding: 8rem 0;
    background: var(--bg-light);
    position: relative;
}

.articles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

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

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.article-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    box-shadow: var(--card-shadow);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(0, 131, 211, 0.2);
}

/* Remove underline from links inside card */
.article-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    /* Remove pointer-events to avoid conflict with card onclick */
    pointer-events: none;
}

/* Change title color on card hover */
.article-card:hover h3 a {
    color: var(--primary-color);
}

/* Add active state effect */
.article-card:active {
    transform: translateY(-2px);
    transition: transform 0.1s ease;
}

.article-image {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 0; /* Remove rounding from image */
}

.article-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 0 !important;
    background: var(--card-bg);
}

/* Additionally remove rounding from all content children */
.article-content * {
    border-radius: 0 !important;
}

.article-content h3 {
    margin-bottom: 1rem;
    flex-shrink: 0;
    border-radius: 0 !important; /* Force remove */
}

.article-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: var(--primary-color);
}

.article-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
    border-radius: 0 !important; /* Force remove */
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: auto;
    margin-bottom: 0;
    border-radius: 0 !important; /* Force remove */
}

/* Testimonials Section */
.testimonials {
    padding: 8rem 0;
    background: var(--bg-light-gray);
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

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

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    box-shadow: var(--card-shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-weight: 800;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 131, 211, 0.2);
    box-shadow: var(--card-shadow-hover);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p,
.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.75;
    font-size: 1.0625rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq {
    padding: 8rem 0;
    background: var(--bg-light);
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(0, 131, 211, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 1.75rem 2rem;
    cursor: pointer;
    color: var(--text-primary);
    position: relative;
    transition: var(--transition-fast);
    font-weight: 600;
    font-size: 1.125rem;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: none;
    margin: 0 24px 24px 24px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* New FAQ grid styles */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* CTA Section */
.cta {
    padding: 8rem 0;
    background: linear-gradient(135deg, rgba(0, 131, 211, 0.05) 0%, rgba(230, 0, 45, 0.03) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 131, 211, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

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

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.cta-content p {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--text-primary);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.footer-section h3, .footer-section h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.disclaimer {
    background: rgba(230, 0, 45, 0.08);
    border: 1px solid rgba(230, 0, 45, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.disclaimer p {
    color: var(--wpt-red);
    font-size: 0.9rem;
    line-height: 1.5;
}

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

/* Google Translate Styling */
#google_translate_element {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.125rem 0.5rem 0.5rem 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#google_translate_element:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 131, 211, 0.15);
}

#google_translate_element select,
.translate-select {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#google_translate_element select:hover,
.translate-select:hover {
    border-color: var(--primary-color);
    background: var(--bg-light-gray);
}

#google_translate_element select:focus,
.translate-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 131, 211, 0.2);
}

.goog-te-banner-frame {
    display: none !important;
}

.goog-te-menu-value {
    color: var(--text-primary) !important;
}

.goog-te-gadget {
    font-family: inherit !important;
}

.goog-te-gadget .goog-te-combo {
    background: var(--bg-light) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    padding: 0.5rem !important;
    font-family: inherit !important;
}

body {
    top: 0 !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

@media (max-width: 768px) {
    #google_translate_element {
        position: relative;
        top: auto;
        right: auto;
        margin: 1rem auto;
        width: fit-content;
        display: block;
    }
    
    .translate-widget {
        text-align: center;
    }
}

.goog-te-banner-frame {
    display: none !important;
}

.goog-te-menu-frame {
    display: none !important;
}

.goog-te-gadget {
    display: none !important;
}

.goog-te-combo {
    display: none !important;
}

[id*="google_translate_element"] .goog-te-gadget,
[id*="google_translate_element"] .goog-te-combo,
[id*="google_translate_element"] .goog-te-menu-value {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

body {
    top: 0 !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

#google_translate_element .translate-select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

.language-selector {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    display: none;
}

.language-selector select {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem;
    font-family: inherit;
    cursor: pointer;
}

.language-selector.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero {
        padding: 8rem 0 5rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 3rem;
    }
    
    .features, .demo, .articles, .testimonials, .faq, .cta {
        padding: 5rem 0;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .demo-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid,
    .articles-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    #google_translate_element {
        position: relative;
        top: auto;
        right: auto;
        margin: 1rem 0;
    }

    .articles .article-content {
        padding: 1rem;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 5rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn-primary, .btn-secondary, .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .terminal-body {
        padding: 0;
        font-size: 1rem;
    }
    
    .feature-card,
    .article-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .articles .article-content {
        padding: 1rem;
    }
}

/* Animation for scroll reveal */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: slideInUp 0.6s ease forwards;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Article Styles */
.article-main {
    padding: 8rem 0 4rem;
    background: var(--bg-light);
}

.article-main .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
}

.article-content {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.article-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 0.5rem;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
}

.article-body {
    padding: 2rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.article-body h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
    position: relative;
}

.article-body h2::before {
    content: ''; /* Remove '>' */
    margin-right: 0;
}

.article-body h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.info-box, .warning-box {
    background: var(--bg-light-gray);
    border: 1px solid var(--primary-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-box {
    background: rgba(230, 0, 45, 0.05);
    border-color: var(--wpt-red);
    border-left-color: var(--wpt-red);
}

.info-box h3, .warning-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.warning-box h3 {
    color: var(--wpt-red);
}

.code-block {
    background: var(--bg-light-gray);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin: 2rem 0;
    overflow: hidden;
}

.code-header {
    background: var(--border-color);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.code-content {
    padding: 1rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    color: var(--text-primary);
    line-height: 1.6;
}

.cta-section {
    background: var(--bg-light-gray);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.cta-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.related-articles, .quick-links {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.related-articles h3, .quick-links h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.related-articles ul, .quick-links ul {
    list-style: none;
    padding: 0;
}

.related-articles li, .quick-links li {
    margin-bottom: 0.5rem;
}

.related-articles a, .quick-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-articles a:hover, .quick-links a:hover {
    color: var(--primary-color);
}

/* Mobile Styles for Articles */
@media (max-width: 768px) {
    .article-main .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-content {
        padding: 0; 
        border-radius: 8px; /* Add back some radius for mobile */
        border: 1px solid var(--border-color);
    }
    
    .article-header {
        padding: 1.5rem; 
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-body {
        padding: 1.5rem; 
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-hero-image {
        height: 200px;
        border-radius: 8px 8px 0 0; /* Match card radius on mobile */
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 1rem;
    }
    
    .article-body {
        padding: 1rem;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-toggle {
        background: none;
        border: none;
        color: var(--primary-color);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 65px; /* Adjust for header height */
        right: -100%;
        width: 250px;
        height: calc(100vh - 65px);
        background: var(--bg-light);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-menu.mobile-active {
        right: 0;
    }
    
    .nav-menu .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu .cta-button {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
}

.features .section-title,
.articles .section-title,
.faq .section-title {
    color: var(--text-primary);
    text-shadow: none;
}

.features .feature-card,
.articles .article-card,
.faq .faq-item {
    border-color: var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.features .feature-card:hover,
.articles .article-card:hover,
.faq .faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 131, 211, 0.1);
}

/* Rating Section */
.rating-section {
    margin-top: 3rem;
    padding: 2.5rem 2rem;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.rating-section:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.rating-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.rating-section > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.stars-rating {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.star-rating {
    cursor: pointer;
    color: #ddd;
    transition: all 0.3s ease;
    user-select: none;
}

.star-rating:hover {
    color: #ffd700;
    transform: scale(1.2);
}

.star-rating.active {
    color: #ffd700;
}

.rating-thank-you {
    color: var(--success-color);
    font-weight: 600;
    font-size: 1.1rem;
    min-height: 25px;
    margin-top: 1rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .rating-section {
        margin-top: 2rem;
        padding: 32px 1rem 16px 1rem;
    }
    
    .stars-rating {
        font-size: 2rem;
        gap: 0.5rem;
    }
}


