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

:root {
    --color-bg: #0a0a0a;
    --color-text: #e0e0e0;
    --color-text-muted: #888;
    --color-accent: #4f8ff7;
    --font-sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

header {
    padding: 1.5rem 2rem;
}

nav {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-text);
}

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 540px;
}

.page {
    padding: 4rem 0;
}

.page h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.page p {
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 1rem;
}

.page a {
    color: var(--color-accent);
    text-decoration: none;
}

.page a:hover {
    text-decoration: underline;
}

.promo {
    padding: 5rem 0;
    border-top: 1px solid #1a1a1a;
}

.promo h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 2rem;
}

.promo-text {
    color: var(--color-text-muted);
    max-width: 600px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.promo-text strong {
    color: var(--color-text);
}

.promo-alt {
    background: #0e0e0e;
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    padding: 1.5rem;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.card:hover {
    border-color: #333;
}

.card-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.value p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.page-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text);
    max-width: 600px;
}

.about-section {
    padding-top: 0;
}

.about-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-value h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.about-value p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.cta {
    text-align: center;
    padding: 6rem 0;
}

.cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.cta .promo-text {
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.cta-button:hover {
    opacity: 0.85;
}

.directory {
    padding-top: 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    padding: 1.5rem;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    transition: border-color 0.2s;
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-card:hover {
    border-color: #333;
}

.project-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    max-width: none;
}

.project-tech {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    opacity: 0.7;
}

.project-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-live {
    background: #16a34a22;
    color: #4ade80;
}

.status-soon {
    background: #eab30822;
    color: #facc15;
}

.status-dev {
    background: #3b82f622;
    color: #60a5fa;
}

.gallery {
    padding-top: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #1a1a1a;
    transition: border-color 0.2s, transform 0.2s;
}

.gallery-item:hover {
    border-color: #333;
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-empty {
    color: var(--color-text-muted);
    font-style: italic;
    padding: 3rem 0;
}

.centered {
    text-align: center;
}

.centered p {
    max-width: none;
}

footer {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border-top: 1px solid #1a1a1a;
}

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

@media (max-width: 600px) {
    header { padding: 1rem; }
    main { padding: 0 1rem; }
    footer { padding: 2rem 1rem; }
    .grid, .values { grid-template-columns: 1fr; }
    .promo-alt { margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; }
    .about-values { grid-template-columns: 1fr; }
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.9rem; padding: 0.5rem 0; min-height: 44px; display: flex; align-items: center; }
    .hero { min-height: 50vh; }
    .promo { padding: 3rem 0; }
    .cta { padding: 4rem 0; }
    .project-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .gallery-item img { height: 180px; }
}
