/* ============================================
   WOOQER DESIGN SYSTEM v2.0
   Premium Enterprise Edition
   Inspired by Evernote & Paper.design
   ============================================ */

/* ---- CSS Variables / Design Tokens ---- */
:root {
    /* Core Palette - Warmer, more sophisticated */
    --primary: #1a1a1a;
    --accent: #DC1758;
    --accent-soft: rgba(220, 23, 88, 0.08);

    /* Warm neutrals inspired by Paper.design */
    --surface: #FAF9F7;
    --surface-elevated: #FFFFFF;
    --surface-muted: #F3F2EE;

    /* Text hierarchy */
    --text-primary: #1a1a1a;
    --text-secondary: #6B6B6B;
    --text-tertiary: #9A9A9A;
    --text-inverse: #FFFFFF;

    /* Borders & Shadows - Subtle, refined */
    --border: rgba(0, 0, 0, 0.06);
    --border-strong: rgba(0, 0, 0, 0.12);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);

    /* Radius - Sharp corners */
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;
    --radius-2xl: 0;

    /* Typography */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-5xl: 128px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
}

/* ---- Base Reset ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--surface);
    overflow-x: hidden;
}

/* Subtle dot pattern background - Paper.design inspired */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: radial-gradient(circle, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 600;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.025em;
}

h3 {
    font-size: clamp(24px, 3vw, 32px);
}

h4 {
    font-size: 20px;
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ---- Layout ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: 900px;
}

.container-wide {
    max-width: 1400px;
}

/* ---- Buttons - Sharp corners ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    border: none;
    border-radius: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-inverse);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background: var(--surface-muted);
    border-color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 16px;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--surface-muted);
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover {
    background: #c41450;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(220, 23, 88, 0.25);
}

/* Arrow animation on buttons */
.btn .arrow {
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .arrow {
    transform: translateX(3px);
}

/* ---- Badge / Pill - More refined ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 0;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

/* Legacy support */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 0;
    margin-bottom: var(--space-lg);
}

/* ---- Text Utilities ---- */
.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #FF6B6B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-balance {
    text-wrap: balance;
}

.text-secondary {
    color: var(--text-secondary);
}

.text-center {
    text-align: center;
}

/* ---- Navbar - Clean, sophisticated ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 247, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--duration-normal) var(--ease-out);
}

.nav-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 24px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--duration-fast) var(--ease-out);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* ---- Footer - Dark theme ---- */
footer {
    background: var(--text-primary);
    color: rgba(255,255,255,0.7);
    padding: var(--space-4xl) 0 var(--space-2xl);
    border-top: none;
    margin-top: var(--space-4xl);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h6 {
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-lg);
}

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.footer-col ul li a:hover {
    color: white;
}

.footer-btm {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.socials {
    display: flex;
    gap: var(--space-lg);
}

.socials a {
    color: rgba(255,255,255,0.6);
    font-size: 18px;
    transition: color var(--duration-fast) var(--ease-out);
}

.socials a:hover {
    color: white;
}

/* ---- Section Styles ---- */
.section {
    padding: var(--space-4xl) 0;
}

.section-lg {
    padding: var(--space-5xl) 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-md);
}

/* ---- Cards - Elevated, clean ---- */
.card {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-flat {
    background: var(--surface-muted);
    border: none;
}

.card-flat:hover {
    background: var(--surface-elevated);
    box-shadow: var(--shadow-md);
}

/* ---- Hero Actions ---- */
.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* ---- Utility Classes ---- */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --space-4xl: 64px;
        --space-5xl: 80px;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .nav-inner {
        height: 64px;
    }

    .logo img {
        height: 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-btm {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }
}

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s var(--ease-out) forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s var(--ease-out) forwards;
}

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.5s var(--ease-out) forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.35s; }

/* ---- Color utility classes for industry pages ---- */
.color-orange { --accent-color: #EA580C; --accent-bg: #FFF7ED; --accent-bg-dark: #FFEDD5; }
.color-blue { --accent-color: #2563EB; --accent-bg: #EFF6FF; --accent-bg-dark: #DBEAFE; }
.color-green { --accent-color: #059669; --accent-bg: #ECFDF5; --accent-bg-dark: #D1FAE5; }
.color-purple { --accent-color: #7C3AED; --accent-bg: #F5F3FF; --accent-bg-dark: #EDE9FE; }
