/* ══════════════════════════════════════════════════
   brand.css — ZSM Digital Brand Page (2026 Redesign)
   Dark-first, bento layouts, scroll-reveal, micro-interactions
   ══════════════════════════════════════════════════ */

/* ── Scroll Reveal Animation ── */
@keyframes brandReveal {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
}

.reveal.revealed {
    animation: brandReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Hero ── */
.brand-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 20px 100px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 255, 255, 0.03) 0%, transparent 70%),
        var(--bg-color);
}

/* Dot texture overlay — matches index.html */
.brand-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 1;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 72%);
}

/* Subtle glow accent */
.brand-hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.015) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.brand-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: brandReveal 1s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px; font-size: 13px; color: #999; margin-bottom: 40px;
}

.hero-badge::before {
    content: ''; width: 6px; height: 6px;
    background: #22c55e; border-radius: 50%;
}

.brand-hero h1 {
    font-size: 4.5rem; font-weight: 300; margin-bottom: 24px;
    line-height: 1.1; color: white; letter-spacing: -0.03em; font-style: italic;
}

.brand-hero h1 strong { font-weight: 400; }

.brand-hero p {
    font-size: 1.1rem; color: #666; max-width: 600px;
    margin: 0 auto; line-height: 1.6; font-weight: 400;
}

/* ── Section Layout ── */
.section {
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-label {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #444;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: #555; margin: 0;
}

/* ── Logo Downloads — Bento ── */
.logo-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.logo-card {
    position: relative;
    background: var(--card-bg-top);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    overflow: hidden;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.logo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.015) 100%);
    pointer-events: none;
}

.logo-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.logo-card-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.logo-card-featured .logo-preview {
    height: 220px;
}

.logo-preview {
    width: 100%; height: 120px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-preview.dark-bg { background: #050505; border: 1px solid rgba(255,255,255,0.06); }
.logo-preview.light-bg { background: #f5f5f5; }

.logo-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.logo-meta { position: relative; z-index: 1; }
.logo-meta h3 { font-size: 0.95rem; font-weight: 500; margin-bottom: 4px; }
.logo-meta p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 14px; }

.download-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    border-radius: 6px; color: #ccc;
    text-decoration: none; font-size: 0.8rem; font-weight: 500;
    transition: all 0.25s ease;
}

.download-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: white;
}

.download-btn svg { flex-shrink: 0; }

/* ── Colour Palette ── */
.colour-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.colour-card {
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    position: relative;
}

.colour-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60px;
    background: radial-gradient(ellipse at center bottom, var(--swatch-color, transparent) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.colour-card:hover {
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.colour-card:hover::after {
    opacity: 0.15;
}

.colour-card.copied {
    border-color: #22c55e;
}

.colour-swatch {
    height: 120px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.colour-info {
    background: var(--card-bg-top);
    padding: 16px 18px;
    position: relative;
    z-index: 1;
}

.colour-info h3 { font-size: 0.9rem; font-weight: 500; margin-bottom: 8px; }

.colour-values { display: flex; flex-direction: column; gap: 4px; }

.colour-hex {
    font-size: 0.85rem;
    color: #ccc;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.02em;
}

.colour-rgb {
    font-size: 0.72rem;
    color: #555;
    font-family: 'Courier New', monospace;
}

.copy-hint {
    font-size: 0.7rem; color: #333; margin-top: 8px;
    transition: color 0.2s ease;
}

.colour-card:hover .copy-hint { color: #888; }

/* ── Typography ── */
.type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.type-card {
    position: relative;
    background: var(--card-bg-top);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    padding: 36px 32px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.type-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.015) 100%);
    pointer-events: none;
}

.type-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.type-label {
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: #555; margin-bottom: 20px;
}

.type-sample-primary {
    font-family: 'Inter', sans-serif;
    font-size: 3.2rem; font-weight: 300; letter-spacing: -0.03em;
    line-height: 1.1; color: white; margin-bottom: 16px;
}

.type-sample-secondary {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem; font-weight: 400; font-style: italic;
    line-height: 1.15; color: white; margin-bottom: 16px;
}

/* Specimen character set */
.type-specimen {
    padding: 16px 0;
    margin-bottom: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
}

.type-specimen-serif {
    font-family: 'Playfair Display', serif;
}

.specimen-char {
    font-size: 2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1;
    flex-shrink: 0;
}

.specimen-set {
    font-size: 0.65rem;
    color: #444;
    line-height: 1.8;
    letter-spacing: 0.08em;
    overflow: hidden;
    word-break: break-all;
}

.type-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.type-weights {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
    position: relative; z-index: 1;
}

.weight-chip {
    padding: 4px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px; font-size: 0.75rem; color: #777;
    transition: all 0.2s ease;
}

.weight-chip:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ccc;
}

/* Weight chip font variants */
.weight-chip-300 { font-weight: 300; }
.weight-chip-400 { font-weight: 400; }
.weight-chip-500 { font-weight: 500; }
.weight-chip-600 { font-weight: 600; }
.weight-chip-700 { font-weight: 700; }
.weight-chip-playfair { font-family: 'Playfair Display', serif; font-weight: 400; }
.weight-chip-playfair-bold { font-family: 'Playfair Display', serif; font-weight: 700; }
.weight-chip-playfair-italic { font-family: 'Playfair Display', serif; font-style: italic; }

/* ── Brand DNA — Bento Grid ── */
.dna-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.dna-cell {
    position: relative;
    background: var(--card-bg-top);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    overflow: hidden;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.dna-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.015) 100%);
    pointer-events: none;
}

.dna-cell:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.dna-cell-wide {
    grid-column: span 2;
}

.dna-cell-accent {
    grid-column: span 2;
}

.dna-label {
    font-family: 'Inter', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: block;
    position: relative;
    z-index: 1;
}

.dna-cell h3 {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.dna-cell > p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

.dna-big-text {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1;
    color: white;
    position: relative;
    z-index: 1;
}

.dna-caption {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.dna-progress {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    width: 100%;
    position: relative;
    margin-top: 14px;
    z-index: 1;
}

.dna-progress-fill {
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    background: #fff;
}

.dna-radius-demo {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.dna-radius-box {
    width: 48px; height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #555;
    font-family: 'Courier New', monospace;
    transition: border-color 0.3s ease;
}

.dna-radius-box:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.dna-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

/* ── Usage Guidelines ── */
.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.guideline-card {
    position: relative;
    background: var(--card-bg-top);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    padding: 28px 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.guideline-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.015) 100%);
    pointer-events: none;
}

.guideline-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.guideline-number {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #333;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.guideline-card h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.guideline-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

/* ── Download Section ── */
.brand-download-section { text-align: center; }

.brand-download-btn {
    padding: 14px 28px;
    font-size: 0.95rem;
    background: white;
    color: #000;
    border-color: white;
    border-radius: 8px;
    font-weight: 500;
}

.brand-download-btn:hover {
    background: #e5e5e5;
    color: #000;
    transform: translateY(-1px);
}

.brand-download-note {
    color: #555;
    font-size: 0.8rem;
    margin-top: 12px;
}

/* ── Press CTA ── */
.press-cta {
    margin: 40px 20px 80px;
    padding: 60px 40px;
    background: var(--card-bg-top);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    max-width: 1100px;
    margin-left: auto; margin-right: auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.press-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.015) 100%);
    pointer-events: none;
}

.press-cta::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 120px;
    background: radial-gradient(ellipse at center bottom, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.press-cta:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.press-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 11px;
    color: #888;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.press-cta h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.press-cta p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}

.press-cta > a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    background: white; color: #000;
    text-decoration: none; border-radius: 8px;
    font-weight: 500; font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.press-cta > a:hover { background: #e5e5e5; transform: translateY(-1px); }

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.85rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Brand Utilities ── */
.brand-logo-inverted { filter: invert(1); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .navbar { padding: 16px 20px; }
    .nav-links, .nav-buttons { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: flex; }
    .brand-hero h1 { font-size: 2.8rem; }
    .logo-bento { grid-template-columns: 1fr 1fr; }
    .logo-card-featured { grid-column: span 2; grid-row: span 1; }
    .logo-card-featured .logo-preview { height: 140px; }
    .colour-grid { grid-template-columns: repeat(2, 1fr); }
    .type-grid { grid-template-columns: 1fr; }
    .dna-bento { grid-template-columns: 1fr 1fr; }
    .dna-cell-wide { grid-column: span 2; }
    .dna-cell-accent { grid-column: span 2; }
    .guidelines-grid { grid-template-columns: 1fr 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 24px; }
    .press-cta { padding: 40px 24px; margin: 40px 16px 60px; }
    .type-sample-primary,
    .type-sample-secondary { font-size: 2.4rem; }
}

@media (max-width: 600px) {
    .brand-hero h1 { font-size: 2rem; }
    .brand-hero { min-height: 55vh; padding: 120px 16px 60px; }
    .logo-bento { grid-template-columns: 1fr; }
    .logo-card-featured { grid-column: span 1; }
    .colour-grid { grid-template-columns: 1fr 1fr; }
    .dna-bento { grid-template-columns: 1fr; }
    .dna-cell-wide,
    .dna-cell-accent { grid-column: span 1; }
    .guidelines-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .section { padding: 60px 16px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .type-sample-primary,
    .type-sample-secondary { font-size: 2rem; }
    .dna-quote { font-size: 1.1rem; }
    .press-cta h2 { font-size: 1.5rem; }
}
