@font-face {
    font-family: 'Space Grotesk Qwantium';
    src: url('/fonts/SpaceGroteskQu.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Syne';
    src: url('/fonts/Syne.ttf?v=3') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Epilogue';
    src: url('/fonts/Epilogue.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

:root {
    --orange: rgb(255, 102, 0);
}

.dark {
    --orange: rgb(255, 102, 0);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk Qwantium', sans-serif;
    background-color: rgb(var(--bg));
    color: rgb(var(--fg));
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color .2s, color .2s;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgb(var(--border));
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgb(var(--bg));
    transition: background-color .2s, border-color .2s;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.logo-small {
    font-family: 'Space Grotesk Qwantium', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: rgb(var(--fg));
    text-decoration: none;
    letter-spacing: -.02em;
}

.orange-text {
    color: var(--orange);
}

.header-right {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.icon-btn {
    background: none;
    border: 1px solid transparent;
    padding: .45rem;
    border-radius: .5rem;
    cursor: pointer;
    color: rgb(var(--muted-fg));
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.icon-btn:hover {
    color: rgb(var(--fg));
    border-color: rgb(var(--border));
    background: rgb(var(--card));
}

.icon-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
}

.dropdown {
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    background-color: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: .875rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .06), 0 4px 12px rgba(0, 0, 0, .03);
    min-width: 13rem;
    z-index: 50;
    padding: .375rem;
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    pointer-events: none;
    transition: opacity .2s, transform .2s, background-color .2s, border-color .2s;
}

.dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .5rem .75rem;
    text-decoration: none;
    color: rgb(var(--fg));
    border-radius: .5rem;
    font-size: .875rem;
    font-weight: 400;
    transition: background .15s, color .15s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    font-family: inherit;
}

.dropdown-item:hover {
    background: rgb(var(--muted));
}

.dropdown-item svg {
    width: 1rem;
    height: 1rem;
    stroke: rgb(var(--muted-fg));
    fill: none;
    stroke-width: 1.75;
    flex-shrink: 0;
}

.item-label {
    flex: 1;
    text-align: left;
}

.item-arrow {
    margin-left: auto;
    opacity: .4;
    stroke-width: 2;
}

.dropdown-sep {
    height: 1px;
    background: rgb(var(--border));
    margin: .25rem 0;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 1.5rem 5rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.page-eyebrow {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: .875rem;
}

.page-title {
    font-family: 'Space Grotesk Qwantium', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -.04em;
    color: rgb(var(--fg));
    line-height: 1.1;
}

.page-sub {
    font-size: .95rem;
    color: rgb(var(--muted-fg));
    margin-top: .875rem;
    font-weight: 400;
    letter-spacing: .01em;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    width: 100%;
}

.app-card {
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: 1.375rem;
    padding: 1.875rem;
    text-decoration: none;
    color: rgb(var(--fg));
    display: flex;
    flex-direction: column;
    gap: 1.375rem;
    transition: box-shadow .3s, transform .3s, border-color .3s, background-color .3s;
    position: relative;
    overflow: hidden;
}

.app-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--orange);
    opacity: 0;
    filter: blur(40px);
    transition: transform .4s, opacity .4s;
    pointer-events: none;
}

.app-card:hover::after {
    opacity: 0.08;
    transform: scale(1.6);
}

.app-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, .04), 0 4px 12px rgba(0, 0, 0, .02);
    transform: translateY(-4px);
    border-color: rgba(255, 102, 0, 0.4);
}

.app-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(255, 102, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 102, 0, 0.15);
    transition: background .3s, border-color .3s;
}

.app-card:hover .app-icon {
    background: var(--orange);
    border-color: transparent;
}

.app-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    stroke: var(--orange);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke .3s;
}

.app-card:hover .app-icon svg {
    stroke: rgb(var(--card));
}

.app-header {
    display: flex;
    align-items: center;
    gap: .875rem;
}

.app-meta {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.app-name {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

.app-desc {
    font-size: .82rem;
    color: rgb(var(--muted-fg));
    font-weight: 400;
    line-height: 1.4;
}

.app-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .875rem;
    border-top: 1px solid rgb(var(--border));
    transition: border-color .2s;
}

.cta-label {
    font-size: .68rem;
    font-weight: 700;
    color: rgb(var(--muted-fg));
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: color .2s;
}

.app-card:hover .cta-label {
    color: var(--orange);
}

.cta-arrow {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgb(var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
    flex-shrink: 0;
    background: rgb(var(--bg));
}

.app-card:hover .cta-arrow {
    background: var(--orange);
    border-color: var(--orange);
    transform: rotate(-45deg);
}

.cta-arrow svg {
    width: .8rem;
    height: .8rem;
    stroke: rgb(var(--muted-fg));
    fill: none;
    stroke-width: 2.5;
    transition: stroke .2s;
}

.app-card:hover .cta-arrow svg {
    stroke: rgb(var(--card));
}

.footer {
    border-top: 1px solid rgb(var(--border));
    font-size: .85rem;
    color: rgb(var(--muted-fg));
    transition: border-color .2s;
    width: 100%;
}

.footer-inner {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: rgb(var(--muted-fg));
    text-decoration: none;
    transition: color .15s;
}

.footer-link:hover {
    color: rgb(var(--fg));
}

@media(min-width:768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media(max-width:640px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .header {
        padding: 1.25rem 1.5rem;
    }
}

.btn-back {
    background-color: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    padding: .5rem .9rem;
    border-radius: .5rem;
    cursor: pointer;
    color: rgb(var(--fg));
    display: flex;
    align-items: center;
    gap: .4rem;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 500;
    transition: all .2s;
}

.btn-back:hover {
    background-color: rgb(var(--muted));
}

.btn-back svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.icon-btn {
    background: none;
    border: 1px solid transparent;
    padding: .45rem;
    border-radius: .5rem;
    cursor: pointer;
    color: rgb(var(--muted-fg));
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.icon-btn:hover {
    color: rgb(var(--fg));
    border-color: rgb(var(--border));
    background: rgb(var(--card));
}

.icon-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
}
