/* ============================================
   AngleLab - Modern CSS Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary: #2DD4A8;
    --primary-dark: #22B890;
    --primary-light: #E8FBF5;
    --secondary: #1E293B;
    --accent: #F97316;
    --accent-light: #FFF7ED;
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --bg-gradient: linear-gradient(180deg, #F0FDF9 0%, #FFFFFF 50%);
    
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --font-display: 'Fraunces', serif;
    --font-body: 'DM Sans', sans-serif;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul, ol {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-angle {
    color: var(--text-primary);
}

.logo-lab {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.nav-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--bg-gradient);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at 80% 20%, rgba(45, 212, 168, 0.1) 0%, transparent 60%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.title-highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero-byline {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 14px rgba(45, 212, 168, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 212, 168, 0.5);
}

.btn-primary.large {
    padding: 22px 48px;
    font-size: 1rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: white;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

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

.arrow {
    font-size: 1.2rem;
}

.hero-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 60px;
}

.pill-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.pill-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pill-dot {
    color: var(--text-muted);
}

/* Trusted By */
.trusted-by {
    text-align: center;
}

.trusted-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.logo-marquee {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
}

.logo-track {
    display: flex;
    gap: 60px;
    animation: marquee 20s linear infinite;
}

.brand-logo {
    flex-shrink: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   Sections Common
   ============================================ */
section {
    padding: 100px 24px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* ============================================
   Case Study Section
   ============================================ */
.case-study {
    background: var(--bg-secondary);
}

.case-study-slider {
    overflow-x: auto;
    padding: 20px 0;
    margin: 0 -24px;
    scrollbar-width: none;
}

.case-study-slider::-webkit-scrollbar {
    display: none;
}

.slider-track {
    display: flex;
    gap: 20px;
    padding: 0 24px;
}

.angle-card {
    flex-shrink: 0;
    width: 200px;
    height: 260px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}

.angle-card .angle-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.angle-card.gradient-1 { background: linear-gradient(135deg, #fde68a, #fcd34d); }
.angle-card.gradient-2 { background: linear-gradient(135deg, #86efac, #22c55e); }
.angle-card.gradient-3 { background: linear-gradient(135deg, #93c5fd, #3b82f6); }
.angle-card.gradient-4 { background: linear-gradient(135deg, #fca5a5, #ef4444); }
.angle-card.gradient-5 { background: linear-gradient(135deg, #c4b5fd, #8b5cf6); }

/* ============================================
   What We Do Section
   ============================================ */
.what-we-do {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card.featured {
    border-color: var(--primary);
    background: var(--primary-light);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.features-tagline {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    background: linear-gradient(180deg, var(--primary-light) 0%, white 100%);
}

.steps-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-medium);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    background: var(--secondary);
    border-radius: 50%;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .steps-timeline {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline-line {
        display: none;
    }
}

/* ============================================
   Deliverables Section
   ============================================ */
.deliverables {
    background: white;
}

.deliverables-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.deliverables-list ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.deliverables-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.check {
    color: var(--primary);
    font-weight: 700;
}

.deliverables-preview {
    display: flex;
    justify-content: center;
}

.dashboard-mockup {
    width: 100%;
    max-width: 450px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    padding: 20px;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.mockup-metrics {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

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

.metric-chart {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-sm);
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.metric-value {
    font-size: 0.8rem;
    font-weight: 600;
}

.mockup-product {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.product-image {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: var(--radius-md);
}

.product-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 80px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.bar {
    flex: 1;
    background: var(--primary-light);
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
}

.bar span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.bar.highlight {
    background: var(--primary);
}

.bar.highlight span {
    color: white;
}

.deliverables-tagline {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .deliverables-content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Dashboard Snapshot
   ============================================ */
.dashboard-snapshot {
    background: var(--bg-secondary);
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.snapshot-card {
    padding: 32px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.snapshot-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.snapshot-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .snapshot-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Signal Banner
   ============================================ */
.signal-banner {
    background: white;
    padding: 60px 24px;
}

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

.signal-badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-left: 3px solid var(--primary);
    margin-bottom: 16px;
}

.signal-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: var(--bg-gradient);
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--secondary);
    color: white;
    padding: 60px 24px 40px;
}

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

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.footer-brand p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
}

.footer-links {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ============================================
   Flash Messages
   ============================================ */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flash-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.flash-success {
    border-left: 4px solid var(--primary);
}

.flash-error {
    border-left: 4px solid #ef4444;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   Brands Page
   ============================================ */
.brands-page {
    padding-top: 120px;
    min-height: 100vh;
    background: var(--bg-gradient);
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
}

.page-header .highlight {
    color: var(--primary);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.brands-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

@media (max-width: 1024px) {
    .brands-content {
        grid-template-columns: 1fr;
    }
}

/* Upload Section */
.upload-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.upload-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.upload-header {
    margin-bottom: 32px;
}

.upload-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.upload-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.upload-note svg {
    color: var(--accent);
}

/* Dropzone */
.upload-dropzone {
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--bg-secondary);
    margin-bottom: 24px;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.dropzone-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.upload-dropzone:hover .dropzone-icon,
.upload-dropzone.dragover .dropzone-icon {
    color: var(--primary);
}

.dropzone-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.dropzone-subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.file-icon {
    color: var(--accent);
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
}

.file-size {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.file-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.file-remove:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Model Selector */
.model-selector {
    margin-bottom: 24px;
}

.model-selector label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.model-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.model-option {
    position: relative;
    cursor: pointer;
}

.model-option input {
    position: absolute;
    opacity: 0;
}

.model-label {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.model-option input:checked + .model-label {
    border-color: var(--primary);
    background: var(--primary-light);
}

.model-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.model-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Submit Button */
.submit-btn {
    width: 100%;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Results Section */
.results-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.results-header h2 {
    font-size: 1.5rem;
}

.success-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-dark);
    background: var(--primary-light);
    border-radius: var(--radius-full);
}

.brand-result {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.result-section {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.result-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.result-section h4 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-brand-name {
    font-size: 2rem;
    color: var(--primary);
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 640px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
}

/* Color Swatches */
.color-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.color-swatch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.swatch-color {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.swatch-info {
    display: flex;
    flex-direction: column;
}

.swatch-hex {
    font-family: monospace;
    font-weight: 600;
}

.swatch-usage {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Fonts List */
.fonts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.font-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.font-name {
    font-weight: 600;
}

.font-usage {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 8px 16px;
    font-size: 0.85rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
}

.tag.keyword {
    background: var(--accent-light);
    color: var(--accent);
}

/* Do's and Don'ts Lists */
.dos-list li,
.donts-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
}

.dos-list .check {
    color: var(--primary);
}

.donts-list .cross {
    color: #ef4444;
}

/* Saved Brands Section */
.saved-brands-section {
    position: sticky;
    top: 100px;
}

.saved-brands-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.saved-brands-header h2 {
    font-size: 1.25rem;
}

.brand-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
}

.brands-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.brand-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.brand-colors {
    display: flex;
    gap: 4px;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.brand-info {
    flex: 1;
    min-width: 0;
}

.brand-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-view {
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.btn-view:hover {
    background: var(--primary);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.empty-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   Brand Detail Page
   ============================================ */
.brand-detail-page {
    padding-top: 100px;
    padding-bottom: 80px;
    background: var(--bg-secondary);
    min-height: 100vh;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--primary);
}

.btn-delete {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: #ef4444;
    background: #fee2e2;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
}

/* Brand Overview */
.brand-overview {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 48px;
    margin-bottom: 32px;
}

.brand-title-section {
    text-align: center;
    margin-bottom: 32px;
}

.brand-name {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
    color: var(--primary);
}

.brand-archetype {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.color-strip {
    display: flex;
    height: 8px;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.strip-segment {
    flex: 1;
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

.detail-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 32px;
}

.detail-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-header h2 {
    font-size: 1.25rem;
}

.card-header .count {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
}

.count.positive {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.count.negative {
    background: #fee2e2;
    color: #ef4444;
}

/* Colors Grid */
.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.color-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.color-preview {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.color-hex-overlay {
    opacity: 0;
    font-family: monospace;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    transition: opacity var(--transition-fast);
}

.color-preview:hover .color-hex-overlay {
    opacity: 1;
}

.color-details {
    padding: 12px;
    background: white;
}

.color-hex {
    display: block;
    font-family: monospace;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.color-usage {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Fonts Card */
.fonts-card .fonts-list {
    gap: 16px;
}

.fonts-card .font-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.font-preview {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    background: white;
    border-radius: var(--radius-md);
}

.font-details {
    flex: 1;
}

.fonts-card .font-name {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.fonts-card .font-usage {
    font-size: 0.9rem;
}

/* Gradients & Logos */
.gradients-list,
.logos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gradient-item,
.logo-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.logo-icon {
    color: var(--primary);
}

/* Tone & Vision */
.tone-content p,
.vision-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Pillars */
.pillars-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.pillar-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-weight: 700;
    color: white;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Keywords Cloud */
.keywords-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.keyword-tag {
    padding: 10px 20px;
    font-size: 0.95rem;
    background: linear-gradient(135deg, var(--primary-light), #d1fae5);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-weight: 500;
}

/* Guidelines Lists */
.guidelines-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guidelines-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

.check-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
}

.cross-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 50%;
}

/* ICPs Grid */
.icps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.icp-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.icp-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.icp-avatar {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: var(--primary);
}

.icp-title h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.icp-demo {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.icp-section {
    margin-bottom: 16px;
}

.icp-section:last-child {
    margin-bottom: 0;
}

.icp-section h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.icp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.icp-tag {
    padding: 6px 12px;
    font-size: 0.8rem;
    background: white;
    border-radius: var(--radius-full);
}

.icp-tag.value { background: #dbeafe; color: #1e40af; }
.icp-tag.trait { background: #fce7f3; color: #9d174d; }
.icp-tag.behaviour { background: #d1fae5; color: #065f46; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: white;
    border-radius: var(--radius-xl);
    overflow-y: auto;
    padding: 40px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-secondary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--border-light);
}

/* Responsive */
@media (max-width: 640px) {
    .model-options {
        grid-template-columns: 1fr;
    }
    
    .detail-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .brand-overview {
        padding: 32px 20px;
    }
    
    .detail-card {
        padding: 24px;
    }
    
    .colors-grid {
        grid-template-columns: 1fr 1fr;
    }
}

