/* UI KIT STYLES - Design System Showcase */

:root {
    --black: #292b2d;
    --white: #f9f7f4;
    --pure-white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
}

/* HERO SECTION */
.kit-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--black);
    color: var(--pure-white);
    padding: 120px 40px 80px;
}

.kit-hero-title {
    font-size: clamp(64px, 10vw, 128px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -4px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.kit-hero-subtitle {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.9;
}

.kit-hero-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.8;
}

/* SECTIONS */
.kit-section {
    padding: 120px 40px;
    background: var(--white);
    color: var(--black);
}

.kit-section.dark-section {
    background: var(--black);
    color: var(--pure-white);
}

.kit-container {
    max-width: 1400px;
    margin: 0 auto;
}

.kit-section-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 80px;
    text-align: center;
}

.kit-subsection {
    margin-bottom: 100px;
}

.kit-subsection:last-child {
    margin-bottom: 0;
}

.kit-subsection-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid currentColor;
}

/* COLOR GRID */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.color-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.color-swatch {
    width: 100%;
    height: 200px;
    border-radius: 10px;
}

.color-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-name {
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
}

.color-value {
    font-family: var(--font-mono);
    font-size: 16px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.color-usage {
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.4;
}

/* TYPOGRAPHY SAMPLES */
.type-samples {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.type-sample {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 30px;
    border: 3px solid var(--black);
    background: var(--pure-white);
}

.dark-section .type-sample {
    border-color: var(--pure-white);
    background: var(--black);
}

.type-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
}

.type-example {
    color: var(--black);
}

.dark-section .type-example {
    color: var(--pure-white);
}

.type-specs {
    font-family: var(--font-mono);
    font-size: 14px;
    opacity: 0.6;
    padding-top: 15px;
    border-top: 1px solid currentColor;
}

/* SPACING GRID */
.spacing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.spacing-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    border: 3px solid var(--black);
}

.spacing-visual {
    background: var(--black);
}

.dark-section .spacing-visual {
    background: var(--pure-white);
}

.spacing-label {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* COMPONENT SHOWCASE */
.component-showcase {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px;
    border: 3px solid var(--black);
    background: var(--pure-white);
}

.dark-section .component-showcase {
    border-color: var(--pure-white);
    background: var(--black);
}

.component-code {
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.dark-section .component-code {
    background: #1a1a1a;
    border-color: #444;
}

.code-header {
    background: #e0e0e0;
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dark-section .code-header {
    background: #2a2a2a;
    color: var(--pure-white);
}

.component-code pre {
    padding: 20px;
    margin: 0;
    overflow-x: auto;
}

.component-code code {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    color: var(--black);
}

.dark-section .component-code code {
    color: var(--pure-white);
}

.component-notes {
    font-size: 14px;
    opacity: 0.7;
    font-style: italic;
    padding: 15px;
    border-left: 3px solid currentColor;
}

/* BUTTONS & CTA COMPONENTS */
.cta-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    border: 3px solid var(--black);
    background-color: var(--white);
    color: var(--black);
    transition: var(--transition);
    cursor: pointer;
}

.cta-box:hover {
    background-color: var(--black);
    color: var(--white);
    transform: translate(5px, -5px);
    box-shadow: -5px 5px 0px var(--black);
}

.cta-text {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.cta-arrow {
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.project-cta {
    display: inline-block;
    padding: 20px 40px;
    background: var(--black);
    color: var(--pure-white);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
}

.project-cta:hover {
    transform: translate(3px, -3px);
    box-shadow: -3px 3px 0px var(--black);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    background: var(--black);
    color: var(--pure-white);
    border: 3px solid var(--black);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--white);
    color: var(--black);
}

.btn-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.large-text-demo {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
}

.highlight-box {
    background-color: var(--black);
    color: var(--white);
    padding: 5px 15px;
    display: inline-block;
}

.dark-section .highlight-box {
    background-color: var(--pure-white);
    color: var(--black);
}

/* NAVIGATION DEMOS */
.nav-demo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid var(--pure-white);
}

.nav-demo-brand {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-demo-menu {
    display: flex;
    gap: 30px;
    font-size: 14px;
}

.dropdown-demo {
    background: var(--pure-white);
    border: 3px solid var(--black);
    max-width: 500px;
}

.dropdown-item {
    display: block;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(41, 43, 45, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

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

.dropdown-item:hover {
    background: rgba(41, 43, 45, 0.05);
    transform: translateX(5px);
}

.dropdown-item .project-title {
    display: block;
    font-weight: 900;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
    color: var(--black);
}

.dropdown-item .project-subtitle {
    display: block;
    font-size: 12px;
    color: var(--black);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-demo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid var(--pure-white);
}

.footer-demo-left {
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
}

.footer-demo-nav {
    display: flex;
    gap: 30px;
}

.footer-demo-nav a {
    color: var(--pure-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.footer-demo-nav a:hover {
    opacity: 0.7;
}

.footer-demo-right {
    text-align: right;
    font-size: 14px;
    line-height: 1.5;
}

/* FORM ELEMENTS */
.form-demo {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 3px solid var(--black);
    background: var(--pure-white);
    color: var(--black);
    font-family: var(--font-primary);
    font-size: 16px;
    transition: var(--transition);
}

.dark-section .form-group input,
.dark-section .form-group textarea {
    border-color: var(--pure-white);
    background: var(--black);
    color: var(--pure-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(41, 43, 45, 0.1);
}

.form-group input.focused {
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(41, 43, 45, 0.1);
}

.form-group input.error {
    border-color: #d32f2f;
}

.form-submit {
    margin-top: 30px;
}

.form-states {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 600px;
}

/* CARDS & CONTAINERS */
.project-card-demo {
    max-width: 500px;
    margin: 0 auto;
}

.project-image-demo {
    position: relative;
    width: 100%;
    height: 400px;
    background: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.image-placeholder {
    color: var(--pure-white);
    font-size: 18px;
}

.project-info {
    text-align: left;
}

.project-info .project-title {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

.project-info .project-type {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin: 0;
}

.stat-grid-demo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    border: 3px solid var(--black);
}

.dark-section .stat-item {
    border-color: var(--pure-white);
}

.stat-number {
    font-weight: 900;
    font-size: 48px;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 2px;
}

.skill-category {
    max-width: 400px;
    margin: 0 auto;
}

.skill-header {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid currentColor;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-list span {
    font-size: 16px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.05);
}

.dark-section .skill-list span {
    background: rgba(255, 255, 255, 0.05);
}

/* LAYOUT PATTERNS */
.section-header-demo {
    text-align: center;
}

.section-header-demo .section-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.large-text {
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    letter-spacing: -1px;
    text-align: center;
}

.two-column-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.column-demo {
    padding: 40px;
    border: 3px solid var(--black);
    text-align: center;
}

.dark-section .column-demo {
    border-color: var(--pure-white);
}

.column-label {
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

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

.grid-item {
    padding: 40px;
    border: 3px solid var(--black);
    text-align: center;
    font-weight: 700;
    font-size: 18px;
}

.dark-section .grid-item {
    border-color: var(--pure-white);
}

/* EFFECTS & ANIMATIONS */
.effect-demo {
    padding: 60px;
    text-align: center;
    border: 3px solid var(--pure-white);
    background: rgba(255, 255, 255, 0.05);
}

.effect-note {
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.7;
}

.blend-demo {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blend-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: var(--pure-white);
}

.blend-text {
    position: relative;
    font-size: 48px;
    font-weight: 900;
    color: var(--pure-white);
    mix-blend-mode: difference;
    z-index: 10;
}

.heading-deconstruct-demo {
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
}

.animation-demo {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.animate-item {
    padding: 30px 60px;
    border: 3px solid var(--pure-white);
    font-size: 18px;
    font-weight: 700;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hover-examples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.hover-box {
    padding: 30px;
    border: 3px solid var(--pure-white);
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.hover-box:hover {
    background: var(--pure-white);
    color: var(--black);
    transform: translateY(-5px);
}

.hover-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

.hover-box p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

.transition-specs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.spec-item {
    padding: 20px;
    border: 3px solid var(--pure-white);
    background: rgba(255, 255, 255, 0.05);
}

.spec-label {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}

.spec-value {
    font-family: var(--font-mono);
    font-size: 14px;
    opacity: 0.8;
}

/* DESIGN PRINCIPLES */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.principle-card {
    padding: 40px;
    border: 3px solid var(--black);
    background: var(--pure-white);
}

.principle-number {
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    opacity: 0.2;
    margin-bottom: 20px;
}

.principle-title {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

.principle-card p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0;
}

/* GUIDELINES */
.guidelines-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
}

.guideline-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guideline-title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--pure-white);
}

.guideline-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guideline-list li {
    font-size: 16px;
    line-height: 1.6;
    padding-left: 30px;
    position: relative;
}

.guideline-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* FOOTER */
.kit-footer {
    background: var(--black);
    color: var(--pure-white);
    padding: 40px;
}

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

.footer-text {
    font-size: 14px;
    font-weight: 500;
}

.footer-link {
    color: var(--pure-white);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .kit-hero-title {
        font-size: 64px;
    }
    
    .kit-section-title {
        font-size: 48px;
    }
    
    .principles-grid,
    .guidelines-content {
        grid-template-columns: 1fr;
    }
    
    .form-row,
    .two-column-demo,
    .hover-examples,
    .stat-grid-demo,
    .grid-demo {
        grid-template-columns: 1fr;
    }
}
