/* ==============================================
   SIMIDIOTS.COM - Styles
   Inflated 3D Aesthetic / Broken Grid / Forest Green
   ============================================== */

/* --- CSS Custom Properties --- */
:root {
    --forest-deep: #2a4a38;
    --canopy-green: #3a6a50;
    --leaf-bright: #5a9a6e;
    --inflate-white: #f0f4f2;
    --pine-dark: #1a3a28;
    --moss-gold: #b8a44c;
    --sky-cream: #e8f0ea;

    --font-headline: 'Source Serif 4', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.75;
    color: var(--pine-dark);
    background-color: var(--forest-deep);
    overflow-x: hidden;
}

/* --- Floating Micro-Animation Shapes --- */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.float-blob-1 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 35% 35%, #5a9a6e, #2a4a38);
    top: 15%;
    animation: floatAcross 32s linear infinite;
    animation-delay: -5s;
}

.float-blob-2 {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 35% 35%, #b8a44c, #3a6a50);
    top: 45%;
    animation: floatAcross 28s linear infinite;
    animation-delay: -12s;
}

.float-blob-3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 40% 30%, #5a9a6e, #1a3a28);
    top: 70%;
    animation: floatAcross 38s linear infinite;
    animation-delay: -20s;
}

.float-blob-4 {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 35% 35%, #3a6a50, #2a4a38);
    top: 30%;
    animation: floatAcross 25s linear infinite;
    animation-delay: -8s;
}

.float-blob-5 {
    width: 65px;
    height: 65px;
    background: radial-gradient(circle at 30% 30%, #b8a44c, #2a4a38);
    top: 85%;
    animation: floatAcross 35s linear infinite;
    animation-delay: -18s;
}

@keyframes floatAcross {
    0% { transform: translateX(-5%); }
    100% { transform: translateX(105vw); }
}

/* --- Node Network Background --- */
.node-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(165deg, var(--forest-deep) 0%, var(--canopy-green) 100%);
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    animation: heroFadeIn 600ms ease-out forwards;
}

@keyframes heroFadeIn {
    to { opacity: 1; }
}

/* Hero Blobs */
.hero-blobs {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    animation: blobAppear 800ms cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

.blob-1 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 35% 30%, #5a9a6e, #2a4a38);
    box-shadow: 0 20px 60px rgba(42, 74, 56, 0.4), inset 0 -8px 20px rgba(26, 58, 40, 0.3), inset 0 8px 20px rgba(90, 154, 110, 0.2);
    top: 50%;
    left: 50%;
    margin-top: -90px;
    margin-left: -90px;
    animation-delay: 600ms;
}

.blob-2 {
    width: 110px;
    height: 110px;
    background: radial-gradient(circle at 40% 25%, #b8a44c, #8a7a30);
    box-shadow: 0 15px 40px rgba(184, 164, 76, 0.3), inset 0 -6px 15px rgba(138, 122, 48, 0.3), inset 0 6px 15px rgba(210, 195, 100, 0.2);
    top: 15%;
    left: 10%;
    animation-delay: 750ms;
}

.blob-3 {
    width: 130px;
    height: 130px;
    background: radial-gradient(circle at 30% 35%, #3a6a50, #1a3a28);
    box-shadow: 0 18px 50px rgba(58, 106, 80, 0.4), inset 0 -7px 18px rgba(26, 58, 40, 0.3), inset 0 7px 18px rgba(90, 154, 110, 0.15);
    top: 10%;
    right: 15%;
    animation-delay: 900ms;
}

.blob-4 {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at 35% 30%, #5a9a6e, #3a6a50);
    box-shadow: 0 12px 35px rgba(90, 154, 110, 0.3), inset 0 -5px 12px rgba(58, 106, 80, 0.3), inset 0 5px 12px rgba(144, 200, 140, 0.2);
    bottom: 15%;
    left: 20%;
    animation-delay: 1050ms;
}

.blob-5 {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle at 40% 30%, #b8a44c, #3a6a50);
    box-shadow: 0 10px 30px rgba(184, 164, 76, 0.25), inset 0 -4px 10px rgba(58, 106, 80, 0.3), inset 0 4px 10px rgba(210, 195, 100, 0.2);
    bottom: 20%;
    right: 10%;
    animation-delay: 1200ms;
}

@keyframes blobAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Blob breathing pulse */
.blob.visible {
    animation: blobPulse 3s ease-in-out infinite alternate;
}

.blob-1.visible { animation-delay: 0s; }
.blob-2.visible { animation-delay: 0.5s; }
.blob-3.visible { animation-delay: 1s; }
.blob-4.visible { animation-delay: 1.5s; }
.blob-5.visible { animation-delay: 2s; }

@keyframes blobPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.03); }
}

/* Hero Title */
.hero-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: clamp(48px, 8vw, 96px);
    color: var(--inflate-white);
    letter-spacing: 0.08em;
    text-align: center;
    margin-bottom: 16px;
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: letterBounce 600ms cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
    animation-delay: calc(1400ms + var(--delay) * 100ms);
}

@keyframes letterBounce {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(var(--offset));
    }
}

/* Hero Subtitle */
.hero-subtitle {
    position: relative;
    z-index: 2;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 1.8vw, 20px);
    color: var(--sky-cream);
    text-align: center;
    max-width: 500px;
    padding: 0 20px;
    opacity: 0;
    animation: subtitleFade 600ms ease-out forwards;
    animation-delay: 2400ms;
}

@keyframes subtitleFade {
    to { opacity: 0.85; }
}

/* Hero Diagram */
.hero-diagram {
    position: relative;
    z-index: 2;
    width: clamp(280px, 40vw, 500px);
    margin-top: 30px;
    opacity: 0;
    animation: diagramFade 500ms ease-out forwards;
    animation-delay: 2400ms;
}

.hero-diagram .diagram-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawPath 800ms ease-out forwards;
    animation-delay: calc(2400ms + var(--draw-delay, 0s));
}

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

@keyframes diagramFade {
    to { opacity: 0.7; }
}

/* Scroll Hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: scrollHintFade 600ms ease-out forwards;
    animation-delay: 3200ms;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--sky-cream);
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--sky-cream);
    border-bottom: 2px solid var(--sky-cream);
    transform: rotate(45deg);
    opacity: 0.4;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes scrollHintFade {
    to { opacity: 1; }
}

@keyframes arrowBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* --- BROKEN GRID SECTION --- */
.broken-grid {
    position: relative;
    z-index: 1;
    padding: 120px 40px 80px;
    background: var(--inflate-white);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.grid-block {
    background: var(--sky-cream);
    border-radius: 16px;
    padding: 36px 30px;
    position: relative;
    margin-top: var(--offset, 0px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.grid-block:hover {
    transform: translateY(-4px);
}

.block-1 {
    grid-column: 2 / 7;
    transform: rotate(-1deg);
    z-index: 2;
}

.block-2 {
    grid-column: 6 / 11;
    transform: rotate(0.8deg);
    z-index: 3;
}

.block-3 {
    grid-column: 1 / 6;
    transform: rotate(1.2deg);
    z-index: 2;
}

.block-4 {
    grid-column: 7 / 12;
    transform: rotate(-0.6deg);
    z-index: 2;
}

.block-decoration {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 60px;
    height: 60px;
}

.mini-blob {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--leaf-bright), var(--canopy-green));
    box-shadow: 0 8px 20px rgba(42, 74, 56, 0.25), inset 0 -4px 10px rgba(26, 58, 40, 0.2), inset 0 4px 10px rgba(90, 154, 110, 0.15);
    opacity: 0.6;
    animation: blobPulse 3s ease-in-out infinite alternate;
}

.block-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--moss-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    background: rgba(184, 164, 76, 0.1);
    padding: 3px 10px;
    border-radius: 4px;
}

.block-title {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: clamp(20px, 2.5vw, 28px);
    color: var(--pine-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.block-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 1.3vw, 16px);
    color: var(--pine-dark);
    opacity: 0.85;
    line-height: 1.7;
}

/* Grid Diagram */
.grid-diagram {
    grid-column: 3 / 11;
    margin-top: 40px;
    background: var(--inflate-white);
    border: 1.5px solid rgba(26, 58, 40, 0.15);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    justify-content: center;
    transform: rotate(-0.5deg);
}

.grid-diagram svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* --- DISCLOSURE SECTION --- */
.disclosure-section {
    position: relative;
    z-index: 1;
    padding: 100px 40px;
    background: var(--sky-cream);
}

.section-heading {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: clamp(28px, 4.5vw, 56px);
    color: var(--pine-dark);
    text-align: center;
    margin-bottom: 12px;
}

.section-subheading {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 1.5vw, 18px);
    color: var(--canopy-green);
    text-align: center;
    max-width: 550px;
    margin: 0 auto 60px;
}

.disclosure-panels {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.disclosure-panel {
    background: var(--inflate-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26, 58, 40, 0.06);
    transition: box-shadow 0.3s ease;
}

.disclosure-panel:hover {
    box-shadow: 0 6px 28px rgba(26, 58, 40, 0.1);
}

.disclosure-panel.active {
    box-shadow: 0 8px 35px rgba(26, 58, 40, 0.12);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s ease;
}

.panel-header:hover {
    background: rgba(90, 154, 110, 0.05);
}

.panel-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}

.panel-blob {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--leaf-bright), var(--forest-deep));
    box-shadow: 0 6px 16px rgba(42, 74, 56, 0.3), inset 0 -3px 8px rgba(26, 58, 40, 0.3), inset 0 3px 8px rgba(90, 154, 110, 0.2);
    animation: blobPulse 3s ease-in-out infinite alternate;
}

.panel-title {
    flex: 1;
    font-family: var(--font-headline);
    font-weight: 600;
    font-size: clamp(16px, 2vw, 20px);
    color: var(--pine-dark);
    line-height: 1.3;
}

.panel-toggle {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 500;
    color: var(--leaf-bright);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(90, 154, 110, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.disclosure-panel.active .panel-toggle {
    transform: rotate(45deg);
    background: rgba(90, 154, 110, 0.2);
}

.panel-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms ease-out;
}

.panel-inner {
    padding: 0 24px 24px;
    opacity: 0;
    transition: opacity 200ms ease;
    transition-delay: 0ms;
}

.disclosure-panel.active .panel-inner {
    opacity: 1;
    transition-delay: 200ms;
}

.panel-inner p {
    margin-bottom: 14px;
    color: var(--pine-dark);
    opacity: 0.85;
}

.panel-code {
    background: var(--pine-dark);
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 10px;
    overflow-x: auto;
}

.panel-code code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--leaf-bright);
    white-space: pre;
}

/* --- TECH SECTION --- */
.tech-section {
    position: relative;
    z-index: 1;
    padding: 100px 40px;
    background: linear-gradient(170deg, var(--forest-deep) 0%, var(--canopy-green) 100%);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-card {
    background: rgba(240, 244, 242, 0.07);
    border: 1px solid rgba(240, 244, 242, 0.1);
    border-radius: 20px;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-4px) rotate(0deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.tech-card-1 {
    grid-column: 1 / 5;
    transform: rotate(-1.5deg);
}

.tech-card-2 {
    grid-column: 5 / 9;
    margin-top: 50px;
    transform: rotate(0.8deg);
}

.tech-card-3 {
    grid-column: 9 / 13;
    margin-top: -20px;
    transform: rotate(-0.5deg);
}

.tech-card-blob {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--leaf-bright), var(--forest-deep));
    box-shadow: 0 10px 30px rgba(42, 74, 56, 0.4);
    opacity: 0.25;
    animation: blobPulse 4s ease-in-out infinite alternate;
}

.tech-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--moss-gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.tech-title {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: clamp(20px, 2.2vw, 26px);
    color: var(--inflate-white);
    margin-bottom: 14px;
    line-height: 1.3;
}

.tech-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 1.3vw, 16px);
    color: var(--inflate-white);
    opacity: 0.75;
    line-height: 1.7;
}

/* --- FOOTER --- */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 60px 40px;
    background: var(--pine-dark);
    overflow: hidden;
}

.footer-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-blobs {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 200px;
    pointer-events: none;
}

.footer-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.footer-blob-1 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 35% 30%, var(--leaf-bright), var(--forest-deep));
    top: 0;
    left: 0;
}

.footer-blob-2 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 40% 25%, var(--moss-gold), var(--canopy-green));
    top: 30%;
    right: 0;
}

.footer-blob-3 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 35% 35%, var(--canopy-green), var(--pine-dark));
    bottom: 0;
    left: 40%;
}

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

.footer-title {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: clamp(24px, 3vw, 36px);
    color: var(--inflate-white);
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 1.5vw, 17px);
    color: var(--sky-cream);
    opacity: 0.65;
    margin-bottom: 20px;
}

.footer-version {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--leaf-bright);
    opacity: 0.45;
}

.footer-version code {
    font-family: var(--font-mono);
    font-size: 12px;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .broken-grid {
        padding: 80px 20px 60px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .grid-block,
    .block-1,
    .block-2,
    .block-3,
    .block-4 {
        grid-column: 1 / -1;
        transform: rotate(0deg);
        margin-top: 0;
    }

    .grid-diagram {
        grid-column: 1 / -1;
        transform: rotate(0deg);
    }

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

    .tech-card,
    .tech-card-1,
    .tech-card-2,
    .tech-card-3 {
        grid-column: 1 / -1;
        margin-top: 0;
        transform: rotate(0deg);
    }

    .disclosure-section {
        padding: 60px 20px;
    }

    .tech-section {
        padding: 60px 20px;
    }

    .hero-blobs {
        width: 320px;
        height: 250px;
    }

    .blob-1 {
        width: 120px;
        height: 120px;
        margin-top: -60px;
        margin-left: -60px;
    }

    .blob-2 {
        width: 70px;
        height: 70px;
    }

    .blob-3 {
        width: 85px;
        height: 85px;
    }

    .blob-4 {
        width: 60px;
        height: 60px;
    }

    .blob-5 {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: clamp(36px, 10vw, 56px);
        letter-spacing: 0.04em;
    }

    .panel-header {
        padding: 16px 18px;
    }

    .panel-inner {
        padding: 0 18px 18px;
    }

    .tech-card {
        padding: 28px 22px;
    }

    .site-footer {
        padding: 40px 20px;
    }
}
