@import url("_shared.css");

/* ======================================================
   BRAND IDENTITY PAGE
   ====================================================== */

:root {
    --accent: oklch(60% 0.15 260);
    --accent-secondary: oklch(65% 0.12 290);
    --gradient-primary: linear-gradient(135deg, #4F52E8 0%, #6B52E8 50%, #8B5CF6 100%);
    --gradient-text: linear-gradient(135deg, oklch(100% 0 0) 0%, oklch(90% 0.01 265) 100%);
    --gradient-mesh: radial-gradient(ellipse at 30% 0%, oklch(18% 0.015 260 / 0.6) 0%, transparent 55%), oklch(11% 0.01 265);
    --text-primary: oklch(96% 0 0);
    --text-body: oklch(82% 0.01 265);
    --text-muted: oklch(60% 0.01 265);
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--gradient-mesh);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, oklch(20% 0.02 265 / 0.2) 0%, transparent 50%);
    z-index: -1;
}

/* ======================================================
   SHARED
   ====================================================== */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 55ch;
    margin-inline: auto;
}

.brand-section {
    padding: clamp(3rem, 8vh, 5rem) 0;
    border-bottom: 1px solid var(--border);
}

.brand-section:last-of-type {
    border-bottom: none;
}

.brand-subsection {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    margin-top: 2.5rem;
}

.brand-subsection:first-of-type,
.section-header + .brand-subsection {
    margin-top: 0;
}

/* ======================================================
   BRAND MISSION
   ====================================================== */
.brand-mission {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (width >= 768px) {
    .brand-mission {
        grid-template-columns: 1fr 1fr;
    }
}

.mission-block {
    background: oklch(14% 0.01 265);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.75rem;
}

.mission-block:last-child {
    grid-column: 1 / -1;
}

.mission-block .brand-subsection {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.mission-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.4;
}

.boilerplate {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* ======================================================
   LOGO CONCEPT
   ====================================================== */
.concept-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (width >= 768px) {
    .concept-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.concept-card {
    background: oklch(14% 0.01 265);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.75rem;
}

.concept-icon-wrap {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--r-sm);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.concept-icon-wrap i {
    color: white;
    width: 1.25rem;
    height: 1.25rem;
}

.concept-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.concept-card code {
    font-size: 0.85em;
    padding: 0.1em 0.3em;
    background: oklch(100% 0 0 / 0.05);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: oklch(80% 0.08 265);
}

.concept-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
}

.logo-hero-showcase {
    margin-top: 2.5rem;
    background: oklch(11% 0.01 265);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 3rem 2rem;
    display: flex;
    justify-content: center;
}

.logo-hero-showcase img {
    max-width: 280px;
    height: auto;
}

/* ======================================================
   LOGO SHOWCASE GRID
   ====================================================== */
.logo-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 0.5rem;
}

.logo-grid.four-col {
    grid-template-columns: 1fr 1fr;
}

.logo-grid.two-col {
    grid-template-columns: 1fr 1fr;
}

.logo-grid.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (width >= 768px) {
    .logo-grid.four-col {
        grid-template-columns: repeat(4, 1fr);
    }
}

.logo-showcase {
    border-radius: var(--r-md);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 160px;
    border: 1px solid var(--border);
}

.logo-showcase.dark {
    background: oklch(9% 0.005 265);
}

.logo-showcase.light {
    background: #f3f4f6;
}

.logo-showcase img {
    max-width: 100%;
    height: auto;
    max-height: 50px;
}

.logo-showcase img.stacked {
    max-height: 90px;
}

.logo-showcase img.icon-only {
    max-height: 48px;
}

.logo-showcase img.icon-sm {
    max-height: 32px;
}

.logo-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.logo-showcase.light .logo-label {
    color: #888;
}

/* ======================================================
   RULES — DO / DON'T
   ====================================================== */
.rules-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (width >= 700px) {
    .rules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.rule-card {
    background: oklch(14% 0.01 265);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.75rem;
}

.rule-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.rule-badge i {
    width: 0.8rem;
    height: 0.8rem;
}

.do-badge {
    background: oklch(45% 0.15 155 / 0.15);
    color: oklch(75% 0.15 155);
    border: 1px solid oklch(45% 0.15 155 / 0.3);
}

.dont-badge {
    background: oklch(50% 0.2 25 / 0.15);
    color: oklch(75% 0.15 25);
    border: 1px solid oklch(50% 0.2 25 / 0.3);
}

.rule-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rule-card li {
    color: var(--text-body);
    font-size: 0.9rem;
    padding-left: 1rem;
    position: relative;
}

.rule-card.do li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: oklch(70% 0.15 155);
    font-weight: 700;
    font-size: 0.8rem;
}

.rule-card.dont li::before {
    content: "\2717";
    position: absolute;
    left: 0;
    color: oklch(70% 0.15 25);
    font-weight: 700;
    font-size: 0.8rem;
}

/* ======================================================
   COLORS
   ====================================================== */
.color-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 0.5rem;
}

.color-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

@media (width >= 768px) {
    .color-grid.four-col {
        grid-template-columns: repeat(4, 1fr);
    }
}

.color-card {
    background: oklch(14% 0.01 265);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}

.color-swatch {
    height: 72px;
}

.color-info {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.color-info strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.color-info span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
}

.gradient-showcase {
    margin-top: 0.5rem;
}

.gradient-bar {
    height: 56px;
    border-radius: var(--r-md);
    background: var(--gradient-primary);
    margin-bottom: 0.75rem;
}

.gradient-showcase code {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: oklch(100% 0 0 / 0.04);
    padding: 0.5rem 0.75rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
    word-break: break-all;
}

.gradient-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ======================================================
   TYPOGRAPHY
   ====================================================== */
.type-specimens {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 2rem;
}

.type-specimen {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.type-specimen:first-child {
    padding-top: 0;
}

.type-specimen:last-child {
    border-bottom: none;
}

.type-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.type-sample.heading {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text-primary);
}

.type-sample.subheading {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.type-sample.body-text {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-body);
    max-width: 60ch;
}

.type-sample.label-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.type-sample.caption {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--r-md);
}

.brand-table {
    width: 100%;
    min-width: 550px;
    border-collapse: separate;
    border-spacing: 0;
    background: oklch(14% 0.01 265);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}

.brand-table th,
.brand-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid oklch(100% 0 0 / 0.04);
    font-size: 0.85rem;
}

.brand-table th {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: oklch(100% 0 0 / 0.02);
}

.brand-table td {
    color: var(--text-body);
}

.brand-table td:first-child {
    font-weight: 700;
    color: var(--text-primary);
}

.brand-table td:last-child {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.brand-table tr:last-child td {
    border-bottom: none;
}

/* ======================================================
   VOICE & TONE
   ====================================================== */
.voice-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (width >= 700px) {
    .voice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.voice-card {
    background: oklch(14% 0.01 265);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.75rem;
}

.voice-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.voice-example {
    font-size: 1.05rem;
    font-weight: 600;
    font-style: italic;
    color: oklch(80% 0.08 265);
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    border-left: 2px solid oklch(60% 0.15 260 / 0.4);
}

.voice-desc {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
}

.voice-donts {
    margin-top: 2.5rem;
}

.voice-donts ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: oklch(14% 0.01 265);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.5rem 1.75rem;
}

.voice-donts li {
    font-size: 0.9rem;
    color: var(--text-body);
    padding-left: 1.25rem;
    position: relative;
}

.voice-donts li::before {
    content: "\2717";
    position: absolute;
    left: 0;
    color: oklch(70% 0.15 25);
    font-weight: 700;
    font-size: 0.8rem;
}

.voice-donts li strong {
    color: var(--text-primary);
}

/* ======================================================
   DOWNLOADS
   ====================================================== */
.download-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

@media (width >= 500px) {
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (width >= 900px) {
    .download-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.download-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: oklch(14% 0.01 265);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-card:hover {
    border-color: oklch(100% 0 0 / 0.12);
    background: oklch(16% 0.01 265);
}

.download-card i {
    width: 1.25rem;
    height: 1.25rem;
    color: oklch(65% 0.12 260);
    flex-shrink: 0;
}

.download-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.download-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}
