:root {
    --primary-green: #2ECC71;
    --primary-blue: #3B82F6;
    --midnight: #0B1020;
    --slate: #111827;
    --white: #FFFFFF;
    --gray: #94A3B8;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust based on header height */
}

body {
    background-color: var(--midnight);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: clamp(5rem, 10vh, 10rem) 0;
    scroll-margin-top: 80px;
}

.glow-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(46, 204, 113, 0.08) 0%, transparent 40%);
    z-index: -2;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; }
p { color: var(--gray); }

.gradient-text {
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.sticky-header {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    background: rgba(11, 16, 32, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.badge-container {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

.sticky-header.scrolled {
    background: rgba(11, 16, 32, 0.95);
    height: 70px;
}

/* Live Ticker & Pulse */
.live-ticker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(46, 204, 113, 0.05);
    border: 1px solid rgba(46, 204, 113, 0.1);
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}
.pulse {
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    animation: pulse-green 2s infinite;
}
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }

.navbar {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-header.scrolled .navbar {
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active { color: var(--primary-green); }

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    color: var(--midnight);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3); }

.btn-secondary {
    background: var(--glass);
    color: var(--white);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.9rem; }

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.celtic-pattern {
    position: absolute;
    top: 0; right: 0; width: 40%; height: 100%;
    background-image: radial-gradient(var(--glass-border) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to left, black, transparent);
    z-index: -1;
}

.hero-wrapper { display: flex; align-items: center; gap: 4rem; }
.hero-content { flex: 1.2; }
.hero-visual { 
    flex: 0.6; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
.hero-logo { 
    max-width: 100%; 
    height: auto; 
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}
.hero-desc { margin: 1.5rem 0 2.5rem; font-size: 1.15rem; max-width: 600px; }

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary-green);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--white);
}

.hero-buttons { display: flex; gap: 1rem; margin-top: 2.5rem; }

.bg-slate { background-color: var(--slate); }
.grid { display: grid; gap: 2rem; }

/* Video Showcase Styles */
.video-showcase { 
    position: relative; 
    z-index: 10; 
}
.video-wrapper { 
    padding: 0.75rem; 
    max-width: 1000px; 
    margin: 0 auto; 
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(46, 204, 113, 0.1);
}
.responsive-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
}
.responsive-video iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 0;
}

/* Founder Section Refinement */
.founder-card {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.founder-quote {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--white);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}
.founder-meta {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
}
.founder-meta strong {
    font-size: 1.1rem;
    color: var(--primary-green);
}
.founder-meta span {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Trust Section Refinement */
.trust-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.trust-item { text-align: left; padding: 2rem; }
.trust-icon { 
    color: var(--primary-green); 
    margin-bottom: 1.5rem;
    background: rgba(46, 204, 113, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Studio Stats - Horizontal Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-item h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.section-header { text-align: center; margin-bottom: 4rem; }

/* Filter Group Styling */
.filter-group {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--gray);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.85rem;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-green);
    color: var(--white);
}

.filter-btn.active {
    background: var(--primary-green);
    color: var(--midnight);
    border-color: var(--primary-green);
    font-weight: 600;
}

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(12px) saturate(180%);
    transition: var(--transition);
    background-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
}

.card:hover { 
    border-color: var(--primary-green); 
    transform: translateY(-10px); 
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.features-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1.5rem; }

.products-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.product-card { display: flex; gap: 2rem; align-items: center; }
.project-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: var(--transition);
    font-size: 0.9rem;
    padding: 0;
    outline: none;
}

.btn-text:hover {
    color: var(--white);
    transform: translateX(5px);
}

.btn-play-link {
    color: var(--gray);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.btn-play-link:hover {
    color: var(--white);
    transform: scale(1.1);
}

.project-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
}

.product-icon-wrap {
    min-width: 80px; height: 80px; border-radius: 20px;
    background: var(--slate); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; border: 1px solid var(--glass-border);
}

.status-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 600; color: var(--primary-green); text-transform: uppercase;
    background: rgba(46, 204, 113, 0.1); padding: 2px 8px; border-radius: 4px; margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.testimonial-card { padding: 2rem; border-radius: var(--radius-md); }
.testimonials-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0 3rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.testimonials-slider::-webkit-scrollbar { display: none; }

.testimonial-card { 
    flex: 0 0 400px; 
    scroll-snap-align: start; 
}

.rating { color: #F1C40F; margin-bottom: 1rem; font-size: 0.8rem; }
.user-meta { margin-top: 1.5rem; display: flex; flex-direction: column; }

/* Roadmap Enhancements */
.roadmap-container { position: relative; padding: 2rem 0; }
.roadmap-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    position: relative;
}

.roadmap-card {
    position: relative;
    background: linear-gradient(var(--slate), var(--slate)) padding-box,
                linear-gradient(135deg, var(--glass-border), transparent) border-box;
    border: 1px solid transparent;
}

.roadmap-card:hover {
    background: linear-gradient(var(--slate), var(--slate)) padding-box,
                linear-gradient(135deg, var(--primary-green), var(--primary-blue)) border-box;
}

.roadmap-status {
    position: absolute;
    top: -12px;
    right: 30px;
    background: var(--glass-border);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--glass-border);
}

.roadmap-status.current {
    background: rgba(46, 204, 113, 0.15);
    color: var(--primary-green);
    border-color: rgba(46, 204, 113, 0.3);
}

.year-label {
    display: block;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.roadmap-list { list-style: none; margin-top: 2rem; }
.roadmap-list li { 
    margin-bottom: 1.2rem; 
    padding-left: 1.5rem; 
    position: relative;
    font-size: 0.95rem;
}
.roadmap-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 6px; height: 6px;
    background: var(--primary-green);
    border-radius: 50%;
}

.contact-wrapper { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4rem; }
.info-item { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.info-icon { font-size: 1.5rem; background: var(--glass); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.info-text strong { display: block; font-size: 0.9rem; color: var(--gray); }
.info-text span, .info-text a { color: var(--white); text-decoration: none; }

.glass-input {
    width: 100%; padding: 1rem 1.5rem; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 12px; color: var(--white); margin-bottom: 1.5rem; outline: none; transition: var(--transition); font-family: inherit;
}
.glass-input:focus { border-color: var(--primary-green); background: rgba(255, 255, 255, 0.08); }

.reveal { opacity: 0; transform: translateY(40px); transition: 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Stagger delays for grid items */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.floating-element { animation: float 6s ease-in-out infinite; font-size: 3rem; position: absolute; opacity: 0.5; }

.footer { padding: 6rem 0 2rem; border-top: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4rem; margin-bottom: 4rem; }
.footer-brand .logo { display: inline-block; margin-bottom: 1rem; }
.footer-links a, .footer-social a { display: block; margin-bottom: 0.8rem; color: var(--gray); text-decoration: none; transition: var(--transition); font-size: 0.9rem; }
.footer-links a:hover, .footer-social a:hover { color: var(--primary-green); }
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 2rem; text-align: center; color: var(--gray); font-size: 0.8rem; }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    color: var(--midnight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4); }

/* Legal Page Formatting */
.legal-page {
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 0 2rem;
}
.legal-page h1 { margin-bottom: 2rem; font-size: 2.5rem; }
.legal-page h2 { margin-top: 3rem; margin-bottom: 1rem; font-size: 1.5rem; color: var(--white); }
.legal-page p { margin-bottom: 1.5rem; line-height: 1.8; }
.legal-page ul { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--gray); }
.legal-page li { margin-bottom: 0.5rem; }
.legal-page .last-updated { font-size: 0.9rem; color: var(--primary-blue); margin-bottom: 3rem; display: block; }

.mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; z-index: 1001; }
.hamburger { display: block; width: 25px; height: 2px; background: var(--white); position: relative; transition: var(--transition); }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 25px; height: 2px; background: var(--white); left: 0; transition: var(--transition); }
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Mobile Active State */
.mobile-nav-toggle.active .hamburger { background: transparent; }
.mobile-nav-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
.mobile-nav-toggle.active .hamburger::after { transform: rotate(-45deg); bottom: 0; }

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 85vw;
    }
    .roadmap-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-wrapper { flex-direction: column; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-visual { height: 300px; width: 100%; order: -1; }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 85vw;
    }
    .roadmap-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .mobile-nav-toggle { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: var(--slate); flex-direction: column; padding: 100px 2rem;
        transition: var(--transition); border-left: 1px solid var(--glass-border);
    }
    .nav-links.active { right: 0; }
    .hero h1 { font-size: 2.5rem; }
}

/* Portfolio Specific Layouts */
.portfolio-hero {
    padding-bottom: 0;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.portfolio-cta .container {
    text-align: center;
}

.portfolio-cta p {
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
}