/* 
   QuantLease — Core Design System
   Aligned with /DOCS/DESIGN_GUIDE.md
*/

:root {
    /* Light Theme (Ramp Inspired) */
    --bg-main: #F9FAFB;
    --bg-secondary: #FFFFFF;
    --bg-neutral: #f1f5f9;

    --text-primary: #0C0A08;
    --text-secondary: #6A7282;
    --text-tertiary: #94a3b8;

    --primary: #1A1919;
    --primary-hover: #000000;
    --primary-glow: rgba(26, 25, 25, 0.1);

    --accent: #7c3aed;
    --success: #22C55E;
    --error: #EF4444;

    --border: rgba(33, 33, 33, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(33, 33, 33, 0.08);

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    --container-width: 1200px;
    --nav-height: 80px;
}

[data-theme="dark"] {
    /* Dark Theme (Linear Inspired) */
    --bg-main: #08090A;
    --bg-secondary: #141516;
    --bg-neutral: #1a1b1c;

    --text-primary: #F7F8F8;
    --text-secondary: #8A8F98;
    --text-tertiary: #52525b;

    --primary: #5E6AD2;
    --primary-hover: #4c56b0;
    --primary-glow: rgba(94, 106, 210, 0.3);

    --accent: #F472B6;
    --border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color .3s ease, color .3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all .2s ease;
}

ul {
    list-style: none;
}

/* ── Typography ─────────────────────────────── */
h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.text-2xl {
    font-size: 24px;
    line-height: 36px;
}

.text-lg {
    font-size: 17px;
    line-height: 28px;
}

.text-base {
    font-size: 15px;
    line-height: 24px;
}

.text-sm {
    font-size: 13px;
    line-height: 20px;
}

.text-xs {
    font-size: 12px;
    line-height: 18px;
}

/* ── Utilities ──────────────────────────────── */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ── Accordion / FAQ ───────────────────────────────────────── */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

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

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: background 0.2s ease, color 0.2s ease;
}

.faq-trigger:hover {
    background: rgba(124, 58, 237, 0.04);
    color: var(--primary);
}

.faq-trigger[aria-expanded="true"] {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.04);
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-trigger[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
    padding: 0 28px;
}

.faq-body.open {
    max-height: 400px;
    padding: 0 28px 24px;
}

.faq-body p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.75;
    margin: 0;
}

.faq-body .checklist {
    margin-top: 12px;
    font-size: 0.9rem;
}

/* ── Persona Tabs ───────────────────────────────────────────── */
.persona-tab {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.persona-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(124, 58, 237, 0.05);
}

.persona-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.persona-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    animation: fadePanel 0.25s ease;
}

@keyframes fadePanel {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ── Theme Icons ────────────────────────────── */
.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

/* ── Persona Cards ──────────────────────────── */
.persona-card {
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    backface-visibility: hidden;
    /* Prevent flicker */
}

.persona-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .persona-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
/* ── Hover Effect Classes for CSP Compliance ───────────────── */
.nav-product-tour {
    transition: background 0.2s, box-shadow 0.2s !important;
}
.nav-product-tour:hover {
    background: color-mix(in srgb, var(--primary) 12%, transparent) !important;
    box-shadow: 0 0 10px color-mix(in srgb, var(--primary) 30%, transparent) !important;
}

.hero-product-tour {
    transition: border-color 0.2s, opacity 0.2s !important;
}
.hero-product-tour:hover {
    border-color: var(--primary) !important;
    opacity: 1 !important;
}

.collage-item-1 {
    transition: all 0.5s ease;
}
.collage-item-1:hover {
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: translate(-40%, -40%) rotateX(5deg) rotateY(-5deg) rotateZ(2deg) scale(0.9) !important;
    z-index: 40 !important;
}

.collage-item-2 {
    transition: all 0.5s ease;
}
.collage-item-2:hover {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1) translateY(-20px) !important;
    z-index: 40 !important;
}

.collage-item-3 {
    transition: all 0.5s ease;
}
.collage-item-3:hover {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1) translateY(-20px) !important;
    z-index: 40 !important;
}

.collage-item-4 {
    transition: all 0.5s ease;
}
.collage-item-4:hover {
    transform: translateZ(100px) rotateX(0deg) rotateY(0deg) scale(1) translateY(-20px) !important;
    z-index: 40 !important;
}

.blog-preview-card {
    transition: border-color 0.2s, transform 0.2s !important;
}
.blog-preview-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-3px) !important;
}
