/* H2Chain Design System - CSS Variables & Base Styles */

:root {
    /* Hydrogen Brand Colors */
    --background: 220 25% 98%;
    --foreground: 215 25% 15%;

    /* Card System */
    --card: 0 0% 100%;
    --card-foreground: 215 25% 15%;

    --popover: 0 0% 100%;
    --popover-foreground: 215 25% 15%;

    /* Hydrogen Green Primary */
    --primary: 145 85% 35%;
    --primary-foreground: 0 0% 100%;
    --primary-glow: 145 75% 45%;

    /* Hydrogen Blue Secondary */
    --secondary: 205 100% 50%;
    --secondary-foreground: 0 0% 100%;

    /* Clean Energy Accent */
    --accent: 175 60% 45%;
    --accent-foreground: 0 0% 100%;

    /* Muted Tones */
    --muted: 220 15% 96%;
    --muted-foreground: 215 16% 47%;

    --destructive: 0 84% 60%;
    --destructive-foreground: 210 40% 98%;

    --border: 220 13% 91%;
    --input: 220 13% 91%;
    --ring: 145 85% 35%;

    --radius: 12px;

    /* Hydrogen Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(145 85% 35%), hsl(205 100% 50%));
    --gradient-card: linear-gradient(145deg, hsl(0 0% 100%), hsl(220 15% 98%));
    --gradient-accent: linear-gradient(90deg, hsl(145 75% 45%), hsl(175 60% 45%));
    
    /* Glowing Effects */
    --glow-primary: 0 0 40px hsl(145 85% 35% / 0.3);
    --glow-secondary: 0 0 30px hsl(205 100% 50% / 0.25);
    
    /* Advanced Shadows */
    --shadow-soft: 0 4px 20px hsl(215 25% 15% / 0.08);
    --shadow-medium: 0 8px 30px hsl(215 25% 15% / 0.12);
    --shadow-strong: 0 20px 60px hsl(215 25% 15% / 0.15);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

.text-destructive {
    color: hsl(var(--destructive));
}

.title-gradient {
    background: var(--gradient-hero);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.title-normal {
    color: hsl(var(--foreground));
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    font-family: inherit;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    min-height: 3.5rem;
}

.btn-full {
    width: 100%;
    min-height: 2.75rem;
}

.btn-ghost {
    background: transparent;
    color: hsl(var(--foreground));
    border: 1px solid transparent;
}

.btn-ghost:hover {
    background: hsl(var(--muted));
}

.btn-hero {
    background: var(--gradient-hero);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-hero:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-2px);
}

.btn.btn-start {
    background: var(--gradient-hero) !important;
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn.btn-start:hover {
    background: var(--gradient-hero) !important;
    box-shadow: var(--shadow-strong);
    transform: translateY(-2px);
}

.btn-premium {
    background: hsl(var(--secondary));
    color: white;
}

.btn-premium:hover {
    background: hsl(var(--secondary) / 0.9);
    transform: translateY(-2px);
}

.btn-rendez-vous {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.btn-rendez-vous:hover {
    background: linear-gradient(135deg, #7C3AED, #DB2777);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.btn-accent {
    background: hsl(var(--accent));
    color: white;
}

.btn-accent:hover {
    background: hsl(var(--accent) / 0.9);
    transform: translateY(-2px);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: hsl(var(--background) / 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid hsl(var(--border));
    z-index: 50;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-hero);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.logo-subtitle {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: hsl(var(--primary));
}

.cta-desktop {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cta-desktop {
        display: flex;
    }
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.nav-mobile {
    margin-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid hsl(var(--border));
    padding-top: 1rem;
}

.nav-mobile-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-link-mobile {
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-link-mobile:hover {
    color: hsl(var(--primary));
}

.cta-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
}

/* Main Content */
.main-content {
    padding-top: 5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../../images/Landing/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, transparent 50%, hsl(var(--secondary) / 0.1) 100%);
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element-1 {
    top: 5rem;
    left: 2.5rem;
    width: 5rem;
    height: 5rem;
    background: hsl(var(--primary) / 0.2);
}

.floating-element-2 {
    top: 10rem;
    right: 5rem;
    width: 4rem;
    height: 4rem;
    background: hsl(var(--secondary) / 0.2);
    animation-delay: 2s;
}

.floating-element-3 {
    bottom: 10rem;
    left: 5rem;
    width: 3rem;
    height: 3rem;
    background: hsl(var(--accent) / 0.2);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 4xl;
    margin: 0 auto;
    animation: slide-up 0.6s ease-out;
}

@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    max-width: 2xl;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.video-cta {
    margin-bottom: 3rem;
}

.video-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--gradient-card);
    border-radius: 50%;
    box-shadow: var(--shadow-strong);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-bottom: 1rem;
}

.video-btn:hover {
    box-shadow: var(--glow-primary);
    transform: scale(1.05);
}

.video-btn-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-btn:hover .video-btn-bg {
    opacity: 0.2;
}

.video-icon {
    width: 2rem;
    height: 2rem;
    color: hsl(var(--primary));
    transition: color 0.3s ease;
    fill: currentColor;
}

.video-btn:hover .video-icon {
    color: hsl(var(--primary-glow));
}

.video-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
    }
}

.trust-indicators {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Problem Section */
.problem-section {
    padding: 5rem 0;
    background: hsl(var(--muted) / 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
}

.section-subtitle {
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
    max-width: 3xl;
    margin: 0 auto;
}

.problem-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 5rem;
}

@media (min-width: 768px) {
    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.problem-card {
    text-align: center;
    padding: 2rem;
    background: hsl(var(--background));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-soft);
}

.problem-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.problem-icon-destructive {
    background: hsl(var(--destructive) / 0.1);
    color: hsl(var(--destructive));
}

.problem-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.problem-description {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.problem-stat {
    color: hsl(var(--destructive));
    font-weight: 600;
}

.hidden-cost-section {
    background: hsl(var(--background));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    padding: 2rem;
}

.hidden-cost-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: hsl(var(--foreground));
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--destructive));
    margin-bottom: 0.5rem;
}

.stat-description {
    color: hsl(var(--muted-foreground));
}

/* Services Section */
.services-section {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    gap: 2rem;
    max-width: 7xl;
    margin: 0 auto 4rem;
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--gradient-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.service-card:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-8px);
}

.service-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.service-icon {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: white;
}

.service-content {
    padding: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: hsl(var(--foreground));
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: hsl(var(--primary));
}

.service-description {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
}

.feature-dot {
    width: 0.375rem;
    height: 0.375rem;
    background: hsl(var(--primary));
    border-radius: 50%;
    flex-shrink: 0;
}

.services-cta {
    text-align: center;
}

/* Footer */
.footer {
    background: hsl(var(--foreground));
    color: hsl(var(--background));
}

.footer .container {
    padding: 4rem 1rem;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .footer-main {
        flex-direction: row;
        gap: 2rem;
    }
}

.footer-brand {
    flex: 1;
}

@media (min-width: 1024px) {
    .footer-brand {
        max-width: 33.333333%;
    }
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-hero);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 0.5rem;
}

.footer-logo .logo-subtitle {
    font-size: 0.875rem;
    color: hsl(var(--background) / 0.8);
}

.footer-description {
    color: hsl(var(--background) / 0.8);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    color: hsl(var(--background) / 0.8);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    color: hsl(var(--primary));
    background: hsl(var(--background) / 0.1);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    flex: 2;
}

@media (min-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-links {
        max-width: 66.666667%;
    }
}

.footer-column-title {
    font-weight: 600;
    color: hsl(var(--background));
    margin-bottom: 1rem;
}

.footer-column-links {
    list-style: none;
}

.footer-column-links li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: hsl(var(--background) / 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: hsl(var(--primary));
}

.footer-contact {
    border-top: 1px solid hsl(var(--background) / 0.2);
    padding-top: 2rem;
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-contact {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-contact-section {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-contact-section {
        text-align: left;
    }
}

.contact-info {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    color: hsl(var(--primary));
}

.contact-title {
    color: hsl(var(--background));
    font-weight: 500;
}

.contact-detail {
    color: hsl(var(--background) / 0.8);
    font-size: 0.875rem;
}

.newsletter-section {
    text-align: center;
}

@media (min-width: 768px) {
    .newsletter-section {
        text-align: left;
    }
}

.newsletter-title {
    font-weight: 600;
    color: hsl(var(--background));
    margin-bottom: 0.75rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 20rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .newsletter-form {
        margin: 0;
    }
}

.newsletter-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    background: hsl(var(--background) / 0.1);
    border: 1px solid hsl(var(--background) / 0.2);
    color: hsl(var(--background));
    font-size: 0.875rem;
}

.newsletter-input::placeholder {
    color: hsl(var(--background) / 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
}

.footer-bottom {
    border-top: 1px solid hsl(var(--background) / 0.2);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-copyright {
    color: hsl(var(--background) / 0.8);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.legal-link {
    color: hsl(var(--background) / 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.legal-link:hover {
    color: hsl(var(--primary));
}

/* Responsive Utilities */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Animations and Interactions */
.service-card .btn:hover {
    transform: scale(1.05);
}

/* Focus styles for accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Trusted Section */
.trusted-section {
    padding: 4rem 0;
    background: hsl(var(--background));
    overflow: hidden;
}

/* News Ticker Animation */
.institutions-ticker {
    overflow: hidden;
    width: 100%;
    background: linear-gradient(90deg, 
        hsl(var(--background)) 0%, 
        transparent 10%, 
        transparent 90%, 
        hsl(var(--background)) 100%);
    position: relative;
}

.institutions-track {
    display: flex;
    gap: 3rem;
    animation: scroll-logos 40s linear infinite;
    width: fit-content;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.institutions-ticker:hover .institutions-track {
    animation-play-state: paused;
}

.institutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .institutions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .institutions-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.institution-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    background: hsl(var(--card));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border) / 0.5);
    transition: all 0.3s ease;
    min-width: 180px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px hsl(var(--foreground) / 0.05);
}

.institution-card:hover {
    border-color: hsl(var(--primary) / 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px hsl(var(--foreground) / 0.1);
}

.institution-logo {
    height: 4rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.institution-logo-img {
    width: 120px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.institution-card:hover .institution-logo-img {
    transform: scale(1.1);
}

.logo-placeholder {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    text-align: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.institution-card:hover .logo-placeholder {
    opacity: 0.8;
}

.institution-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    text-align: center;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.institution-card:hover .institution-name {
    color: hsl(var(--primary));
}

/* Responsive adjustments for ticker */
@media (max-width: 768px) {
    .institutions-track {
        gap: 2rem;
        animation-duration: 30s;
    }
    
    .institution-card {
        min-width: 150px;
        padding: 1rem 1.5rem;
    }
    
    .institution-logo {
        height: 3rem;
    }
    
    .institution-logo-img {
        width: 100px;
        height: 50px;
    }
}

/* Workflow Section */
.workflow-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.05) 0%, hsl(var(--accent) / 0.05) 100%);
}

.workflow-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.workflow-card {
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid;
}

.workflow-traditional {
    background: hsl(var(--destructive) / 0.1);
    border-color: hsl(var(--destructive) / 0.2);
}

.workflow-h2chain {
    background: hsl(var(--primary) / 0.1);
    border-color: hsl(var(--primary) / 0.2);
}

.workflow-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.workflow-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    padding: 0.25rem;
}

.workflow-icon-destructive {
    background: hsl(var(--destructive) / 0.2);
    color: hsl(var(--destructive));
}

.workflow-icon-primary {
    background: hsl(var(--primary) / 0.2);
    color: hsl(var(--primary));
}

.workflow-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.workflow-steps {
    margin-bottom: 2rem;
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.step-number-destructive {
    background: hsl(var(--destructive));
}

.step-number-primary {
    background: hsl(var(--primary));
}

.step-text {
    color: hsl(var(--foreground));
}

.workflow-summary {
    border-top: 1px solid;
    padding-top: 1.5rem;
}

.workflow-traditional .workflow-summary {
    border-color: hsl(var(--destructive) / 0.2);
}

.workflow-h2chain .workflow-summary {
    border-color: hsl(var(--primary) / 0.2);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.summary-label {
    color: hsl(var(--muted-foreground));
}

.summary-value {
    font-weight: 700;
}

.summary-value-destructive {
    color: hsl(var(--destructive));
}

.summary-value-primary {
    color: hsl(var(--primary));
}

/* Results Comparison */
.results-comparison {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .results-comparison {
        grid-template-columns: repeat(3, 1fr);
    }
}

.result-card {
    text-align: center;
    padding: 1.5rem;
    background: hsl(var(--background));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
}

.result-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.result-icon-accent {
    background: hsl(var(--accent) / 0.2);
    color: hsl(var(--accent));
}

.result-icon-primary {
    background: hsl(var(--primary) / 0.2);
    color: hsl(var(--primary));
}

.result-number {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-card:nth-child(1) .result-number,
.result-card:nth-child(3) .result-number {
    color: hsl(var(--accent));
}

.result-card:nth-child(2) .result-number {
    color: hsl(var(--primary));
}

.result-description {
    color: hsl(var(--muted-foreground));
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 0;
    background: hsl(var(--muted) / 0.3);
}

.pricing-grid {
    display: grid;
    gap: 2rem;
    max-width: 6xl;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    position: relative;
    background: var(--gradient-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    box-shadow: var(--shadow-medium);
}

.pricing-card-popular {
    border: 2px solid hsl(var(--primary));
    transform: scale(1.05);
    box-shadow: var(--glow-primary);
}

.popular-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-hero);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.star-icon {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-description {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.price-period {
    color: hsl(var(--muted-foreground));
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feature-check {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--primary));
    flex-shrink: 0;
}

.pricing-footer {
    text-align: center;
    margin-top: 4rem;
}

.pricing-note {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

/* Documentation Section */
.documentation-section {
    padding: 5rem 0;
    background: hsl(var(--muted) / 0.3);
}

.documentation-grid {
    display: grid;
    gap: 3rem;
    max-width: 6xl;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .documentation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: hsl(var(--foreground));
}

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resource-card {
    background: var(--gradient-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    gap: 1rem;
}

.resource-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateX(8px);
}

.resource-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--primary) / 0.1);
    border-radius: var(--radius);
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.resource-card:hover .resource-icon {
    background: hsl(var(--primary) / 0.2);
}

.icon-primary {
    color: hsl(var(--primary));
}

.resource-content {
    flex: 1;
}

.resource-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.resource-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    transition: color 0.3s ease;
}

.resource-card:hover .resource-title {
    color: hsl(var(--primary));
}

.external-icon {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--muted-foreground));
    transition: color 0.3s ease;
}

.resource-card:hover .external-icon {
    color: hsl(var(--primary));
}

.resource-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.resource-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.resource-type {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.support-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quick-links-card,
.support-card,
.community-card {
    background: var(--gradient-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.quick-link-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    text-align: left;
    border-radius: 0.375rem;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: block;
}

.quick-link-btn:hover {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    text-decoration: none;
}

.support-card {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.05) 0%, hsl(var(--secondary) / 0.05) 100%);
}

.support-description,
.community-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.support-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    max-width: 1000px;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Mobile optimizations for video modal */
@media (max-width: 768px) {
    .video-modal-content {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .video-modal-close {
        top: -2.5rem;
        right: -0.5rem;
        width: 2rem;
        height: 2rem;
    }
}

/* Animation for modal entrance */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.video-modal.active .video-modal-content {
    animation: modalFadeIn 0.3s ease-out;
}
