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

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --border-color: #ffffff;
    --section-bg: rgba(255, 255, 255, 0.1);
    --figlog-bg: #13233b;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    min-height: 100vh;
    padding: 100px 20px 60px;
}

/* Container */
.container {
    max-width: 950px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 41px;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 16px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 23px;
    text-decoration: none;
    color: inherit;
}

.logo-section:hover {
    opacity: 0.85;
}

.logo-icon {
    width: 32px;
    height: 62px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Instancegram preview - special cropping to match other cards */
.instancegram-preview img {
    object-fit: cover;
    object-position: top center;
}

.site-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 24px;
    white-space: nowrap;
}

.site-description {
    font-weight: 400;
    font-size: 16px;
    max-width: 385px;
    color: var(--text-color);
}

/* Section Styles */
.section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section + .section {
    margin-top: 81px;
}

.section-header {
    background-color: var(--section-bg);
    padding: 8px 14px;
    border-radius: 8px;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 24px;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 93px 48px;
}

/* App Card */
.app-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-decoration: none;
    color: inherit;
}

.app-preview {
    aspect-ratio: 451 / 230;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 4px;
    overflow: hidden;
}

.app-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.app-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-icon.figlog-icon {
    background-color: var(--figlog-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    
}

.app-icon.figlog-icon img {
    width: 100%;
    height: 100%;
}

.app-title {
    height: 48px;
    display: flex;
    align-items: center;
    margin-top: 2px;
}

/* Compolyzer - Jersey 10 font */
.compolyzer-title {
    font-family: 'Jersey 10', cursive;
    font-size: 40px;
    text-transform: uppercase;
    letter-spacing: 3.22px;
    font-weight: 400;
}

/* TokenFlow - Space Grotesk */
.tokenflow-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
}

.tokenflow-title .light {
    font-weight: 400;
}

/* FigLog - Tomorrow font */
.figlog-title {
    font-family: 'Tomorrow', sans-serif;
    font-size: 32px;
    font-weight: 700;
}

/* Instancegram - Cookie font */
.instancegram-title {
    font-family: 'Cookie', cursive;
    font-size: 48px;
    font-weight: 400;
}

.app-description {
    font-size: 16px;
    font-weight: 400;
    max-width: 385px;
    line-height: 1.5;
}

/* Plugins List */
.plugins-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Plugin Card */
.plugin-card {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.plugin-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.plugin-card:hover .plugin-link-icon {
    transform: translate(2px, -2px);
}

.plugin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plugin-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 32px;
    height: 48px;
    display: flex;
    align-items: center;
}

.plugin-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.plugin-link-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.plugin-link-icon svg {
    width: 28px;
    height: 28px;
}

/* Responsive Styles */
@media (max-width: 900px) {
    body {
        padding: 60px 20px 40px;
    }

    .apps-grid {
        gap: 60px 32px;
    }

    .plugin-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .site-description {
        max-width: 100%;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .app-description {
        max-width: 100%;
    }

    .section + .section {
        margin-top: 48px;
    }

    .plugin-card {
        padding: 20px;
        gap: 20px;
    }

    .plugin-title {
        font-size: 24px;
        height: auto;
    }

    .plugin-description {
        font-size: 14px;
    }

    .compolyzer-title {
        font-size: 36px;
    }

    .tokenflow-title,
    .figlog-title {
        font-size: 26px;
    }

    .instancegram-title {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 40px 16px 32px;
    }

    .container {
        gap: 32px;
    }

    .logo-section {
        gap: 16px;
    }

    .logo-icon {
        width: 24px;
        height: 46px;
    }

    .site-title {
        font-size: 20px;
    }

    .site-description {
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .section {
        gap: 24px;
    }

    .plugin-card {
        padding: 16px;
        gap: 16px;
    }

    .plugin-title {
        font-size: 20px;
    }

    .plugin-description {
        font-size: 13px;
    }

    .plugin-link {
        width: 28px;
        height: 28px;
    }

    .plugin-link svg {
        width: 24px;
        height: 24px;
    }

    .compolyzer-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .tokenflow-title,
    .figlog-title {
        font-size: 22px;
    }

    .instancegram-title {
        font-size: 32px;
    }

    .app-title {
        height: auto;
    }
}

/* App Card Hover Effects */
.app-card {
    transition: transform 0.2s ease;
}

.app-card:hover {
    transform: translateY(-4px);
}

.app-card:hover .app-preview {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
}

.app-preview {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible {
    outline: 2px solid var(--text-color);
    outline-offset: 4px;
}
