:root {
    --bg: #071018;
    --bg-surface: rgba(12,17,29,0.96);
    --surface: rgba(14,20,34,0.95);
    --surface-2: rgba(20,27,44,0.92);
    --panel: #0d1728;
    --text: #f4f7fb;
    --muted: #b9c1d3;
    --accent: #6ec4d3;
    --accent-2: #b58cf9;
    --accent-alt: #f5cc7f;
    --border: rgba(110,196,211,0.16);
    --shadow: rgba(0,0,0,0.28);
    --radius: 28px;
    --max-width: 1140px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 22% 18%, rgba(110,196,211,0.14), transparent 18%),
        radial-gradient(circle at 78% 20%, rgba(181,140,249,0.10), transparent 22%),
        radial-gradient(circle at 48% 72%, rgba(245,204,127,0.07), transparent 22%),
        linear-gradient(180deg, #101828 0%, #081018 50%, #06080e 100%);
    background-attachment: fixed;
    background-size: cover;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

body::before {
    background-image:
        radial-gradient(circle at 18% 18%, rgba(110,196,211,0.10), transparent 16%),
        radial-gradient(circle at 84% 22%, rgba(181,140,249,0.08), transparent 16%),
        linear-gradient(135deg, rgba(255,255,255,0.05), transparent 34%),
        linear-gradient(-135deg, rgba(245,204,127,0.04), transparent 28%);
}

body::after {
    background-image:
        radial-gradient(circle at 10% 15%, rgba(255,255,255,0.04), transparent 18%),
        radial-gradient(circle at 92% 35%, rgba(255,255,255,0.03), transparent 14%),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 84px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 76px);
    opacity: 0.24;
    background-size: auto, auto, 84px 84px, 76px 76px;
}

::selection {
    background: rgba(110,196,211,0.24);
    color: var(--text);
}

h1 {
    font-size: clamp(3.8rem, 7vw, 5.6rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 2.2vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.85;
}

section {
    padding: 72px 8%;
}

main {
    min-height: 100vh;
}

header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 24px clamp(2rem, 8%, 3.5rem);
    background: rgba(7, 12, 20, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text);
}

.logo img {
    width: 42px;
    height: 42px;
    display: block;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    padding: 6px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.98rem;
    transition: color 0.18s ease, transform 0.18s ease;
}

nav a:hover,
nav a:focus-visible {
    color: var(--text);
    transform: translateY(-1px);
    outline: none;
}

.hero {
    margin-top: 14px;
    position: relative;
    margin: 0 auto;
    padding: clamp(3.5rem, 5vw, 5.8rem) 4rem clamp(4.5rem, 6vw, 6rem);
    max-width: 1080px;
    overflow: hidden;
    border-radius: 42px;
    background: linear-gradient(180deg, rgba(15, 21, 35, 0.96), rgba(11, 16, 28, 0.94));
    border: 1px solid rgba(110, 196, 211, 0.14);
    box-shadow: 0 48px 130px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 16% 18%, rgba(110,196,211,0.16), transparent 22%),
                radial-gradient(circle at 84% 20%, rgba(181,140,249,0.12), transparent 24%),
                radial-gradient(circle at 55% 72%, rgba(245,204,127,0.08), transparent 20%);
    pointer-events: none;
    opacity: 0.95;
}

.hero::after {
    content: '';
    position: absolute;
    top: 16%;
    right: -10%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110,196,211,0.18), transparent 55%);
    filter: blur(1px);
    pointer-events: none;
}

.hero h1 {
    position: relative;
    max-width: 11ch;
    margin-bottom: 24px;
    text-shadow: 0 24px 70px rgba(0,0,0,0.22);
}

.hero p {
    position: relative;
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(1rem, 1.03vw, 1.1rem);
    line-height: 1.95;
    margin-top: 1.4rem;
}

.hero-pill-grid {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    max-width: 720px;
}

.hero-pill-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: var(--muted);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.buttons {
    position: relative;
    margin-top: 42px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button-link,
.button-link.secondary,
.project-links a,
.project-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.button-link,
.project-actions button {
    padding: 16px 32px;
    background: linear-gradient(135deg, rgba(110,196,211,0.98), rgba(181,140,249,0.95));
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(110,196,211,0.20);
    border: none;
    cursor: pointer;
}

.button-link.secondary,
.project-links a {
    padding: 16px 28px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text);
}

.button-link:hover,
.button-link:focus-visible,
.button-link.secondary:hover,
.button-link.secondary:focus-visible,
.project-actions button:hover,
.project-actions button:focus-visible,
.project-links a:hover,
.project-links a:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.button-link:hover,
.button-link:focus-visible,
.project-actions button:hover,
.project-actions button:focus-visible {
    box-shadow: 0 24px 52px rgba(110,196,211,0.20);
}

.button-link.secondary:hover,
.button-link.secondary:focus-visible,
.project-links a:hover,
.project-links a:focus-visible {
    background: rgba(255,255,255,0.14);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 34px;
    border-radius: 28px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--muted);
    text-align: center;
}

.card,
.project-card {
    background: rgba(12,18,30,0.94);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 72px rgba(0,0,0,0.18);
    backdrop-filter: blur(10px);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.card:hover,
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 36px 96px rgba(0,0,0,0.20);
    border-color: rgba(110,196,211,0.18);
    background: rgba(17,24,40,0.98);
}

.card h3,
.project-card h3 {
    color: #ffffff;
}

.card p,
.project-card p {
    color: var(--muted);
    margin: 18px 0 0;
    line-height: 1.8;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.project-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-type,
.project-status {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.project-type {
    background: rgba(110,196,211,0.14);
    color: #8ee2f3;
}

.project-status {
    background: rgba(255,255,255,0.06);
    color: var(--text);
}

.project-status.status-development {
    border: 1px solid rgba(110,196,211,0.24);
}

.project-status.status-beta {
    border: 1px solid rgba(56,189,248,0.28);
    background: rgba(56,189,248,0.18);
    color: #8cd4f7;
}

.project-status.status-prototype {
    border: 1px solid rgba(181,140,249,0.28);
    background: rgba(181,140,249,0.18);
    color: #c9a5ff;
}

.project-status.status-released {
    border: 1px solid rgba(16,185,129,0.28);
    background: rgba(16,185,129,0.18);
    color: #95e1b8;
}

.project-status.status-idea {
    border: 1px solid rgba(249,115,22,0.28);
    background: rgba(249,115,22,0.18);
    color: #fbbf6b;
}

.project-version {
    color: var(--muted);
    font-size: 0.92rem;
    white-space: nowrap;
}

.project-progress-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.progress {
    height: 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(110,196,211,1), rgba(181,140,249,0.96));
    box-shadow: 0 0 18px rgba(110,196,211,0.20);
    border-radius: 999px;
    transition: width 0.32s ease;
}

.progress[data-progress="65"] .progress-bar { width: 65%; }
.progress[data-progress="40"] .progress-bar { width: 40%; }
.progress[data-progress="55"] .progress-bar { width: 55%; }
.progress[data-progress="72"] .progress-bar { width: 72%; }
.progress[data-progress="85"] .progress-bar { width: 85%; }
.progress[data-progress="100"] .progress-bar { width: 100%; }

.project-about {
    padding-top: 32px;
}

.project-about-card {
    background: rgba(12,18,30,0.96);
    padding: 36px;
    border-radius: 34px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 28px 72px rgba(0,0,0,0.18);
}

.project-about-features {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.project-about-features > div {
    display: grid;
    gap: 10px;
}

label {
    color: var(--text);
    font-size: 0.95rem;
}

input,
select,
textarea {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(18,25,40,0.96);
    color: var(--text);
    padding: 15px 16px;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(110,196,211,0.32);
    box-shadow: 0 0 0 4px rgba(110,196,211,0.12);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.project-actions button {
    min-width: 180px;
}

.site-footer {
    padding: 28px 8%;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(7,12,20,0.82);
}

.devlog-list {
    display: grid;
    gap: 22px;
}

.devlog-entry {
    padding: 24px;
    background: rgba(12,18,30,0.95);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.14);
}

.devlog-entry time {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .hero {
        padding: 3.5rem 2.5rem 4rem;
    }

    .hero h1 {
        font-size: clamp(3.4rem, 9vw, 4.8rem);
    }
}

@media (max-width: 768px) {
    header {
        padding: 18px 5%;
    }

    nav {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 3rem 2rem 4rem;
        border-radius: 32px;
    }

    .hero h1 {
        font-size: 3.6rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cards {
        justify-content: center;
    }

    .card,
    .project-card {
        width: 100%;
        max-width: 100%;
    }
}
