:root {
    --bg: #050816;
    --bg-alt: #0b1020;
    --card-bg: #111827;
    --accent: #22c55e;
    --accent-soft: rgba(34, 197, 94, 0.12);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border-subtle: rgba(148, 163, 184, 0.3);
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.6);
    --shadow-card: 0 12px 35px rgba(15, 23, 42, 0.8);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 45%, #020617 100%);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid rgba(34, 197, 94, 0.9);
    outline-offset: 2px;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.75));
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #4ade80, #16a34a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #020617;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.65);
}

.logo-text {
    font-weight: 600;
    letter-spacing: 0.03em;
    font-size: 0.95rem;
    color: #e5e7eb;
}

.nav {
    display: flex;
    gap: 1.2rem;
    font-size: 0.9rem;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding: 0.2rem 0;
    transition: color 0.18s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to right, #22c55e, #a3e635);
    transition: width 0.22s ease;
}

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

.nav a:hover::after {
    width: 100%;
}

    .nav a.active-link {
        color: var(--text-main);
    }

        .nav a.active-link::after {
            width: 100%;
        }


/* HERO */

.hero {
    padding: 4.5rem 0 3.5rem;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 0.8rem;
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1.15;
}

.hero-subtitle {
    margin: 0 0 1.8rem;
    color: var(--text-muted);
    max-width: 36rem;
    font-size: 0.98rem;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.hero-tags {
    list-style: none;
    margin: 1.2rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .hero-tags li {
        font-size: 0.78rem;
        padding: 0.25rem 0.6rem;
        border-radius: 999px;
        border: 1px solid rgba(148, 163, 184, 0.6);
        background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 0.95));
        color: #cbd5f5;
        white-space: nowrap;
    }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.btn-primary {
    background: linear-gradient(to right, #22c55e, #16a34a);
    color: #020617;
    box-shadow: 0 14px 35px rgba(22, 163, 74, 0.65);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(22, 163, 74, 0.8);
}

.btn-secondary {
    border-color: rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.75);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(22, 163, 74, 0.08);
}

.hero-card {
    background: radial-gradient(circle at 0 0, rgba(22, 163, 74, 0.25), transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.25), transparent 55%),
                var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 1.7rem 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: var(--shadow-card);
}

.hero-card h2 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.hero-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.hero-card li {
    padding: 0.35rem 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
}

.hero-card li:last-child {
    border-bottom: none;
}

/* SECTIONS */

.section {
    padding: 3.5rem 0;
}

.section-alt {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.98));
}

.section h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.section p {
    margin: 0.25rem 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.96rem;
}

/* GRID */

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

.card {
    background: rgba(15, 23, 42, 0.98);
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.2rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

    .card:hover {
        transform: translateY(-3px);
        border-color: rgba(34, 197, 94, 0.6);
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
    }

.card h3 {
    margin: 0 0 0.7rem;
    font-size: 1rem;
}

.card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tags {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--accent);
}

/* TIMELINE */

.timeline {
    display: grid;
    gap: 1.4rem;
}

.timeline-item {
    padding: 1.3rem 1.2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow-soft);
}

    .timeline-item:hover {
        transform: translateY(-2px);
        border-color: rgba(148, 163, 184, 0.7);
    }

.timeline-item h3 {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
}

.timeline-item .meta {
    margin: 0 0 0.6rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* CONTACT */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-grid h3 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
}

.contact-grid a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-grid a:hover {
    text-decoration: underline;
}

.links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links li {
    margin-bottom: 0.3rem;
}

/* FOOTER */

.site-footer {
    border-top: 1px solid rgba(30, 64, 175, 0.7);
    padding: 1rem 0 1.4rem;
    background: radial-gradient(circle at top, rgba(30, 64, 175, 0.25), rgba(2, 6, 23, 0.98));
    margin-top: 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-photo {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
    border: 2px solid rgba(148, 163, 184, 0.75);
}

.logo a {
    display: inline-flex;
    align-items: center;
}

.header-left {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.avatar-link {
    display: inline-flex;
    align-items: center;
}

.back-to-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 20;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.back-to-top--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.contact-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-form {
    margin-top: 0.5rem;
    padding: 1rem 1rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.contact-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.8rem;
}

    .contact-form-row label {
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    .contact-form-row input,
    .contact-form-row textarea {
        font-family: inherit;
        font-size: 0.9rem;
        padding: 0.45rem 0.6rem;
        border-radius: 0.5rem;
        border: 1px solid rgba(148, 163, 184, 0.6);
        background: rgba(15, 23, 42, 0.95);
        color: var(--text-main);
        outline: none;
        transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    }

        .contact-form-row input::placeholder,
        .contact-form-row textarea::placeholder {
            color: rgba(148, 163, 184, 0.9);
        }

        .contact-form-row input:focus,
        .contact-form-row textarea:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
            background: rgba(15, 23, 42, 1);
        }

.contact-form-submit {
    margin-top: 0.3rem;
    padding-inline: 1.2rem;
}

.contact-form-status {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.case-link {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--accent);
}

    .case-link:hover {
        text-decoration: underline;
    }

.case-list {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

    .case-list li {
        margin-bottom: 0.5rem;
    }

    .case-list strong {
        color: var(--text-main);
    }

.case-footnote {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-top: 3.5rem;
    }

    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .back-to-top {
        right: 0.9rem;
        bottom: 0.9rem;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 650px) {

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        height: auto;
        padding-top: 0.4rem;
        padding-bottom: 0.6rem;
    }

    .nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.7rem;
        font-size: 0.8rem;
    }
}