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

:root {
    /* Color Palette */
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #10b981;
    --accent: #6366f1;
    
    /* Neutral Colors - Light Mode */
    --bg-base: #f8fafc;
    --bg-surface: rgba(255, 255, 255, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.4);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-glass: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Dark Mode Overrides */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-base: #020617;
        --bg-surface: rgba(15, 23, 42, 0.7);
        --bg-glass: rgba(30, 41, 59, 0.5);
        --text-main: #f1f5f9;
        --text-muted: #94a3b8;
        --border-glass: rgba(255, 255, 255, 0.1);
        --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.3);
        --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.4);
        --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.5);
    }
}

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Dynamic Background */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
    filter: blur(80px);
}

/* Typography */
h1, h2, h3, .heading-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; line-height: 1.1; }
h2 { font-size: 2.5rem; line-height: 1.2; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Glassmorphism Component */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
}

/* Header Styles */
header {
    padding: 4rem 0 2rem;
    text-align: center;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-weight: 300;
}

/* Hero Section (Compatible with existing pages) */
.hero-section {
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.app-icon-large {
    width: 160px;
    height: 160px;
    border-radius: 36px;
    box-shadow: var(--shadow-lg);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

/* Product Entry Cards (for index.html) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 4rem 0;
}

.app-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.app-logo img {
    width: 120px;
    height: 120px;
    border-radius: 24px;
}

.app-info h3 {
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    opacity: 1;
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--border-glass);
    margin-top: auto;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* StepPreview Specific */
.step-preview-theme {
    --primary: #0ea5e9;
    --primary-glow: rgba(14, 165, 233, 0.4);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-item {
    padding: 2rem;
    border-radius: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
}

.feature-item h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--primary);
}

/* QA sections injected into MakersPreview locale pages */
section[style*="padding: 0 0 4rem;"] .feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

section[style*="padding: 0 0 4rem;"] .feature-item {
    width: 100%;
}

section[style*="padding: 0 0 4rem;"] .feature-item h4 {
    font-size: 1.1rem;
}

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

.animate-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-section { padding: 4rem 0; }
    .glass-card { padding: 1.5rem; }
}

/* MakersPreview Specific (Preserving critical structure) */
.carousel-container {
    width: 100%;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.screenshot-item img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.hero-top-links {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.guide-dropdown {
    position: relative;
    background: var(--bg-surface);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    cursor: pointer;
}
