/* ========================================
   xity.dev - styles.css
   Palette:
     Canvas Cream:      #F5F0E0
     Sunflower Yellow:  #FFD166
     Coral Red:         #EF476F
     Mint Green:        #06D6A0
     Lavender:          #B8A9C9
     True Black:        #1A1A1A
     Code Dark:         #2B2D30
     Warm White:        #F5F5F0
   Fonts: Space Grotesk 700, Inter 400, Fira Code 400
======================================== */

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #1A1A1A;
    background: #F5F0E0;
    line-height: 1.65;
    font-size: 1rem;
    overflow-x: hidden;
}

h1,h2,h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

/* ---- BRUTALIST BLOCKS ---- */
.brutalist-block {
    border: 3px solid #1A1A1A;
    box-shadow: 8px 8px 0 #1A1A1A;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.brutalist-block:hover {
    box-shadow: 12px 12px 0 #1A1A1A;
    transform: translate(-2px, -2px);
}

.brutalist-block-light {
    border: 3px solid #F5F5F0;
    box-shadow: 8px 8px 0 #1A1A1A;
}

.bg-yellow { background: #FFD166; }
.bg-coral { background: #EF476F; color: #1A1A1A; }
.bg-mint { background: #06D6A0; }
.bg-lavender { background: #B8A9C9; }

/* ---- FADE IN ---- */
.fade-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.in-view {
    opacity: 1;
    transform: scale(1);
}
.fade-in.offset-down.in-view {
    transform: scale(1) translateY(20px);
}

/* ---- SECTION HEADING ---- */
.section-heading {
    font-size: clamp(2rem, 5vw, 4rem);
    color: #1A1A1A;
    margin-bottom: 2rem;
}

/* ---- HERO ---- */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
}

.hero-block {
    width: 70vw;
    max-width: 900px;
    padding: clamp(2rem, 4vw, 4rem);
    margin-left: -2vw;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1.15rem;
    max-width: 500px;
}

.capability-row {
    display: flex;
    gap: 16px;
    margin-top: -8px;
    padding-left: 3vw;
    flex-wrap: wrap;
}

.cap-block {
    padding: 1rem 2rem;
}

.cap-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

/* ---- THE STACK ---- */
.stack {
    padding: clamp(4rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
    min-height: 150vh;
}

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

.feature-card {
    padding: 2rem;
}

.offset-down {
    transform: translateY(20px);
}

.card-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 1rem;
    line-height: 1;
}

.card-heading {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ---- THE CODE ---- */
.code-section {
    padding: clamp(4rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
    min-height: 100vh;
}

.code-wrapper {
    position: relative;
    max-width: 1000px;
}

.code-block {
    width: 85%;
    background: #2B2D30;
    position: relative;
}

.code-tab {
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #1A1A1A;
    border-bottom: 3px solid #F5F5F0;
}

.code-block pre {
    padding: 2rem;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Fira Code', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    color: #F5F5F0;
    line-height: 1.6;
    font-feature-settings: "liga" 1;
    white-space: pre;
}

.code-comment {
    position: relative;
    margin-top: -40px;
    margin-left: auto;
    width: 50%;
    max-width: 400px;
    padding: 1.5rem;
    z-index: 2;
}

/* ---- THE DOCS ---- */
.docs-section {
    padding: clamp(4rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
    min-height: 80vh;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
}

.doc-card {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.doc-title {
    font-size: 1.1rem;
}

.doc-arrow {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ---- FOOTER ---- */
.site-footer {
    padding: clamp(4rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
    min-height: 40vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-watermark {
    position: absolute;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(4rem, 8vw, 10rem);
    color: #1A1A1A;
    opacity: 0.05;
    pointer-events: none;
    white-space: nowrap;
}

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

.footer-links {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #1A1A1A;
}

.footer-copy {
    font-size: 0.75rem;
    color: #1A1A1A;
    opacity: 0.5;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .offset-down {
        transform: none;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }

    .hero-block {
        width: 95vw;
        margin-left: 0;
    }

    .capability-row {
        padding-left: 0;
    }

    .code-block {
        width: 100%;
    }

    .code-comment {
        width: 90%;
        margin-top: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
