/* ==========================================================================
   PREMIUM AI SAAS THEME SYSTEM (ChatGPT/OpenAI, ElevenLabs, Vercel, Linear)
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark-1: #09090B;
    --bg-dark-2: #111827;
    --bg-dark-3: #0F172A;
    --accent-primary: #2563EB;
    --accent-secondary: #3B82F6;
    --success: #22C55E;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    
    /* Structural Rules */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-button: rgba(255, 255, 255, 0.12);
    --card-bg: rgba(255, 255, 255, 0.03);
    --font-family: 'Inter', 'Manrope', 'Poppins', sans-serif;
}

/* Base Configuration & Smooth Layout Scaling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at top, #172554 0%, transparent 45%), 
                linear-gradient(180deg, var(--bg-dark-1), var(--bg-dark-2));
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* Tiny Cosmic Floating Particles Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image: 
        radial-gradient(1px 1px at 10% 20%, #ffffff 100%, transparent),
        radial-gradient(1.5px 1.5px at 50% 40%, rgba(255,255,255,0.7) 100%, transparent),
        radial-gradient(1px 1px at 80% 70%, #ffffff 100%, transparent);
    background-size: 300px 300px;
    opacity: 0.18;
    animation: floatingParticles 40s linear infinite;
}

@keyframes floatingParticles {
    from { background-position: 0 0; }
    to { background-position: 0 -300px; }
}

/* Sticky Minimal Navbar */
.navbar {
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

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

/* Small Premium Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 28px;
    width: 28px;
    object-fit: contain;
    border-radius: 6px;
}

.brand-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text-main);
}

.nav-cta {
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-cta:hover {
    opacity: 0.9;
}

/* Responsive Left-Aligned Hero Layout Container */
.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
    position: relative;
    z-index: 10;
}

/* Proportional Typography Scaling */
.hero-title {
    font-size: 34px; /* Mobile First Default */
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin-bottom: 24px;
    color: #ffffff;
}

@media (min-width: 600px) {
    .hero-title { font-size: 44px; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 56px; }
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 640px;
}

/* Actions Call to Action Group */
.cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.btn-primary {
    background: var(--accent-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 16px 28px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.35);
    background: var(--accent-secondary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-button);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 16px 28px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Category Filter Tabs Row */
.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
    scrollbar-width: none; /* Hide scrollbar for clean aesthetic */
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-pill {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.tab-pill.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Premium CSS Grid - Feature & Studio Layouts */
.cards-grid, .preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

/* Ultra Premium Glassmorphism Cards */
.product-card, .preview-item {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover, .preview-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}

.card-icon {
    font-size: 1.4rem;
    margin-bottom: 18px;
    display: inline-block;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Voice Studio Premium Section Wrapper */
.preview-card {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.preview-card > span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 8px;
}

.preview-card > h3 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.preview-card > p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Minimal Footer Layout */
.studio-footer-links {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.footer-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 700;
}

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

.footer-col li {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: color 0.2s ease;
    cursor: pointer;
}

.footer-col li:hover {
    color: #ffffff;
}
/* ==========================================================================
   NAVIGATION, SLIM HEADER & SLIDING SIDEBAR DRAWER STYLES
   ========================================================================== */

/* Header Layout Alignment */
.navbar {
    padding: 0;
}

.nav-container {
    padding: 12px 20px;
}

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

/* Slim Toggle Button (Hamburger / Close) */
.menu-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 1.2rem;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Dark Backdrop Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Slide-Out Sidebar Drawer */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -300px; /* Hidden off-screen by default */
    width: 280px;
    height: 100vh;
    background: #0d111c;
    border-left: 1px solid var(--border-subtle);
    z-index: 999;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-menu.active {
    right: 0; /* Slides into view */
}

.sidebar-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}
