/* public/css/style.css - Guided by Emil Kowalski's Design Philosophy */

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

:root {
    /* Sophisticated Palette */
    --ink: #0f172a;
    --paper: #ffffff;
    --accent: #f59e0b; /* Amber 500 */
    --primary: #10b981; /* Emerald 500 */
    --primary-hover: #059669;
    --primary-subtle: rgba(16, 185, 129, 0.1);
    
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    
    /* Animation Tokens */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;
    
    /* Elevation */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Layout */
    --radius-full: 9999px;
    --radius-2xl: 24px;
    --radius-xl: 16px;
    --radius-lg: 12px;
    --radius-md: 8px;
}

/* Base Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--paper); 
    color: var(--ink); 
    line-height: 1.5; 
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; transition: all var(--duration-base) var(--ease); }

/* Typography */
h1, h2, h3, h4 { font-family: 'Merriweather', serif; font-weight: 700; letter-spacing: 0; line-height: 1.15; }
.display-large { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800; }
.text-muted { color: var(--gray-500); }

/* Buttons */
.btn-saas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--duration-base) var(--ease);
    outline: none;
}

.btn-primary { 
    background-color: var(--ink); 
    color: white; 
}
.btn-primary:hover { background-color: #1e293b; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { ring: 2px solid var(--primary); ring-offset: 2px; }

.btn-ghost { background-color: transparent; color: var(--ink); }
.btn-ghost:hover { background-color: var(--gray-100); }

/* Interaction Details */
.card-saas {
    background: var(--paper);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: all var(--duration-base) var(--ease);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card-saas:hover { 
    border-color: var(--gray-400); 
    transform: translateY(-4px); 
    box-shadow: var(--shadow-xl); 
}

/* Premium State (Magical Border Effect) */
.card-saas.premium {
    border-color: var(--accent);
    background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
}
.card-saas.premium::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(45deg, var(--accent), transparent, var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
}

/* Forms */
.input-group { position: relative; margin-bottom: 16px; }
.input-saas {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    font-family: inherit;
    font-size: 0.9375rem;
    outline: none;
    transition: all var(--duration-base) var(--ease);
}
.input-saas:focus { 
    border-color: var(--ink); 
    background: var(--paper); 
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.05); 
}

/* Animations */
.reveal {
    animation: reveal var(--duration-slow) var(--ease) forwards;
    opacity: 0;
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header & Glassmorphism */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 0;
}

/* Loading State Helper */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}
.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Badge System */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-primary { background: var(--gray-100); color: var(--gray-600); }
.badge-accent { background: #fef3c7; color: #92400e; }

/* Mobile Menu Button */
.mobile-toggle { display: none; }
@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .nav-links { display: none; }
}
