:root {
    --vercel-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    
    /* Premium Apple Black Theme */
    --bg-color: #000000;
    --card-bg: #1c1c1e;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.3);
    --link-color: #2997ff;
    --link-hover: #4ea8ff;
    --nav-bg: rgba(0, 0, 0, 0.75);
    --nav-border: rgba(255, 255, 255, 0.1);
    
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--vercel-font);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 400;
}

/* Global Nav */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(5px);
    -webkit-backdrop-filter: saturate(180%) blur(5px);
    border-bottom: 1px solid var(--nav-border);
    z-index: 9999;
}
.nav-content {
    max-width: 1048px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}
.logo {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.02em;
}
.logo svg {
    margin-right: 12px;
}
.nav-right {
    display: flex;
    gap: 24px;
}
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}
.nav-link:hover {
    color: var(--text-primary);
}

/* Page Container */
.main-container {
    padding-top: 64px; /* offset for nav */
    max-width: 1048px;
    margin: 0 auto;
    padding-bottom: 80px;
}

/* Hero Section */
.hero {
    padding: 80px 24px 60px;
    text-align: left;
}
.hero h1 {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.hero p {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
}

/* App Directory */
.directory-section {
    padding: 0 24px 60px;
}
.category-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* App Cards */
.app-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.app-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: var(--shadow-small);
}

.app-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    background-color: var(--bg-color);
    color: var(--text-primary);
}

.icon-wrapper svg {
    width: 16px;
    height: 16px;
}

.card-header h3 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card-text {
    flex-grow: 1;
    margin-bottom: 20px;
}

.card-text p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.card-action {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: auto;
}
.card-action svg {
    margin-left: 6px;
    transition: transform 0.2s ease;
}
.app-card:hover .card-action svg {
    transform: translateX(4px);
}

/* Detailed Page */
.back-nav {
    padding: 32px 24px 0;
}
.back-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}
.back-link:hover {
    color: var(--text-primary);
}

.detail-hero {
    padding: 40px 24px 40px;
}
.detail-hero .icon-wrapper {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    border-radius: 8px;
}
.detail-hero .icon-wrapper svg {
    width: 32px;
    height: 32px;
}
.detail-hero h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
}
.detail-hero p {
    font-size: 20px;
    color: var(--text-secondary);
}

.detail-content {
    padding: 0 24px 80px;
}
.detail-content h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 40px 0 16px;
}
.detail-content h2:first-child {
    margin-top: 0;
}
.detail-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0 48px;
}
.feature {
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 6px;
    background: var(--card-bg);
}
.feature h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.feature p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Footer */
.global-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    margin-top: 60px;
    background: var(--bg-color);
}
.footer-content {
    max-width: 1048px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: var(--text-primary);
}
