/* KutStudio Premium Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
    /* Color Palette */
    --bg-main: #060913;
    --bg-card: rgba(15, 23, 42, 0.45);
    --bg-card-hover: rgba(30, 41, 59, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #0ea5e9; /* Cyan */
    --primary-glow: rgba(14, 165, 233, 0.15);
    --secondary: #8b5cf6; /* Violet */
    --secondary-glow: rgba(139, 92, 246, 0.15);
    --accent: #22c55e; /* Green for healthy status */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(30, 27, 75, 0.4) 0%, rgba(6, 9, 19, 0) 50%),
                radial-gradient(circle at 0% 100%, rgba(15, 23, 42, 0.3) 0%, rgba(6, 9, 19, 0) 40%);
    background-attachment: fixed;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Glassmorphism utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    background: rgba(6, 9, 19, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--primary);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Hamburger menu for mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(14, 165, 233, 0.05) 50%, rgba(6, 9, 19, 0) 100%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.hero-tag {
    font-family: var(--font-heading);
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-w: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* App Switcher Tabs */
.app-switcher {
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.35rem;
    border-radius: 50px;
    max-width: 400px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.switcher-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.switcher-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.switcher-btn.active-kuteditor {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.switcher-btn.active-kutpod {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(14, 165, 233, 0.2) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Interactive Preview Showcase */
.showcase-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.showcase-panel {
    display: none;
}

.showcase-panel.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.showcase-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 19px;
}

/* Main Content Sections */
.section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-grid.reverse {
    direction: rtl;
}

.section-grid.reverse .section-content {
    direction: ltr;
}

.section-grid.reverse .section-media {
    direction: ltr;
}

.product-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: inline-block;
}

.product-tag.kuteditor-tag {
    color: var(--primary);
}

.product-tag.kutpod-tag {
    color: var(--secondary);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

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

/* Feature Grid */
.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.kutpod-feature .feature-icon {
    background: rgba(139, 92, 246, 0.1);
    color: var(--secondary);
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Media Display Card */
.section-media {
    position: relative;
}

.media-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
}

.media-wrapper:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.media-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Platform specific styles */
.kuteditor-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, rgba(6, 9, 19, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.kutpod-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(6, 9, 19, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Download / Setup Section */
.download-section {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(6, 9, 19, 0) 0%, rgba(15, 23, 42, 0.2) 100%);
    text-align: center;
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.download-card {
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: left;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.download-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.card-badge {
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.kuteditor-badge {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.kutpod-badge {
    background: rgba(139, 92, 246, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.download-options {
    list-style: none;
    margin-bottom: 2.5rem;
}

.download-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.download-option-item:last-child {
    border-bottom: none;
}

.platform-name {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.platform-file {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.download-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

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

.download-action-btn {
    width: 100%;
    margin-top: auto;
}

.code-block {
    background: #030712;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: #e2e8f0;
    overflow-x: auto;
    margin-bottom: 2rem;
    position: relative;
}

.code-block::after {
    content: "sh";
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Ecosystem / KutFast Section */
.ecosystem-section {
    padding: 80px 0;
    text-align: center;
}

.ecosystem-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.eco-card {
    padding: 2rem;
    border-radius: 16px;
    text-align: left;
}

.eco-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.eco-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #03050a;
}

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

.footer-brand {
    max-width: 320px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 0.5rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.footer-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .section-grid.reverse {
        direction: ltr;
    }
    .hero-title {
        font-size: 3rem;
    }
    .download-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .navbar-container {
        padding: 0 1rem;
    }
    .nav-links {
        display: none; /* Can toggle with JS */
    }
    .nav-toggle {
        display: block;
    }
    .hero {
        padding-top: 140px;
        padding-bottom: 60px;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1rem;
    }
    .features-list {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
