/* Institute of Thinking - Brand Colors */
:root {
    --deep-green: #2F433A;
    --off-white: #F4F6F3;
    --light-gray: #C9CEC9;
    --dark-neutral: #1F2A25;
    --muted-sage: #6E857A;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--off-white);
    color: var(--deep-green);
    line-height: 1.6;
    letter-spacing: 0.02em;
}

/* ============================
   HERO SECTION
   ============================ */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
}

#simulation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 2;
}

/* ============================
   SCROLL INDICATOR
   ============================ */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-arrow {
    display: block;
    font-size: 28px;
    color: var(--muted-sage);
    animation: bounce 2s infinite;
}

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

/* ============================
   SECTIONS - COMMON
   ============================ */
section {
    position: relative;
}

#hero {
    z-index: 1;
    overflow: visible;
}

#philosophy,
#projects {
    z-index: 5;
    background-color: var(--off-white);
}

/* ============================
   PHILOSOPHY SECTION
   ============================ */
#philosophy {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
}

.philosophy-content {
    max-width: 600px;
    text-align: center;
}

.manifesto {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 600;
    color: var(--deep-green);
    margin-bottom: 2.5rem;
    letter-spacing: 0.04em;
}

.manifesto-body {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 500;
    color: var(--deep-green);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.manifesto-note {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 500;
    color: var(--muted-sage);
    margin-top: 3rem;
    font-style: italic;
}

/* ============================
   PROJECTS SECTION
   ============================ */
#projects {
    position: relative;
    padding: 8rem 2rem;
    min-height: 100vh;
    overflow: hidden;
}

/* Gear Automata Canvas */
#gears-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.section-title {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--deep-green);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 5rem;
}

.project-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================
   PROJECT CARDS
   ============================ */
.project-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(47, 67, 58, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(47, 67, 58, 0.12);
}

.project-card-coming {
    opacity: 0.7;
}

.project-card-coming:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(47, 67, 58, 0.08);
}

/* Card Logo (3 dots) */
.card-logo {
    display: flex;
    gap: 6px;
    margin-bottom: 0.5rem;
}

.card-logo .dot {
    width: 10px;
    height: 10px;
    background-color: var(--deep-green);
    border-radius: 50%;
}

.card-logo .dot:nth-child(2) {
    transform: translateY(-4px);
}

.card-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--deep-green);
    letter-spacing: 0.02em;
}

.card-description {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--muted-sage);
    line-height: 1.7;
    flex-grow: 1;
}

/* Card Status Tags */
.card-status {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: fit-content;
}

.card-status.live {
    background-color: rgba(47, 67, 58, 0.1);
    color: var(--deep-green);
}

.card-status.upcoming {
    background-color: rgba(110, 133, 122, 0.15);
    color: var(--muted-sage);
}

.card-status.dev {
    background-color: rgba(110, 133, 122, 0.2);
    color: var(--deep-green);
}

.card-status.soon {
    background-color: rgba(201, 206, 201, 0.4);
    color: var(--muted-sage);
}

/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    margin-top: auto;
}

.btn-primary {
    background-color: var(--deep-green);
    color: var(--off-white);
}

.btn-primary:hover {
    background-color: var(--dark-neutral);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--deep-green);
    border: 2px solid var(--deep-green);
}

.btn-secondary:hover {
    background-color: var(--deep-green);
    color: var(--off-white);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

/* ============================
   FOOTER
   ============================ */
#footer {
    background-color: var(--dark-neutral);
    color: var(--off-white);
    padding: 5rem 2rem 2rem;
    position: relative;
    z-index: 5;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--muted-sage);
    font-weight: 400;
}

.footer-contact p {
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--off-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--muted-sage);
}

.newsletter-label {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 180px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--off-white);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--muted-sage);
}

.newsletter-form input[type="email"]:focus {
    outline: 2px solid var(--muted-sage);
    outline-offset: 2px;
}

.newsletter-form .btn {
    background-color: var(--off-white);
    color: var(--dark-neutral);
}

.newsletter-form .btn:hover {
    background-color: var(--light-gray);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--muted-sage);
}

/* ============================
   RESPONSIVE BREAKPOINTS
   ============================ */

/* Tablet */
@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #philosophy {
        padding: 6rem 1.5rem;
    }

    #projects {
        padding: 6rem 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #philosophy {
        padding: 5rem 1.25rem;
        min-height: auto;
    }

    #projects {
        padding: 5rem 1.25rem;
    }

    .section-title {
        margin-bottom: 3rem;
    }

    .project-card {
        padding: 2rem;
    }

    .footer-content {
        gap: 2.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input[type="email"] {
        width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .scroll-indicator {
        bottom: 30px;
    }

    .manifesto {
        font-size: 1.35rem;
    }

    .manifesto-body {
        font-size: 1rem;
    }

    #footer {
        padding: 4rem 1.25rem 1.5rem;
    }
}
