:root {
    --bg: #060d17;
    --surface: #0b1a2b;
    --surface-strong: #0f2239;
    --surface-glass: rgba(11, 26, 43, 0.72);
    --text: #f0f5ff;
    --text-muted: #a4b8d0;
    --text-dim: #6b829e;
    --accent: #2ce8d8;
    --accent-glow: rgba(44, 232, 216, 0.15);
    --accent-strong: #1cbfb3;
    --border: rgba(44, 232, 216, 0.12);
    --border-subtle: rgba(120, 160, 200, 0.1);
    --focus: #87f8ee;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow: 0 12px 40px rgba(2, 8, 18, 0.4);
    --shadow-lg: 0 24px 64px rgba(2, 8, 18, 0.5);
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --max-width: 1140px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 10% 0%, rgba(20, 60, 100, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 85% 15%, rgba(15, 50, 80, 0.3) 0%, transparent 55%);
    background-attachment: fixed;
}

a {
    color: var(--accent);
    text-decoration-skip-ink: auto;
}

a:hover {
    color: #6ef0e6;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    background: var(--text);
    color: var(--bg);
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: top 200ms var(--ease);
}

.skip-link:focus {
    top: 1rem;
}

/* ── Navigation ── */

.site-header {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.main-nav {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 1rem auto 0;
    padding: 0.65rem 0.8rem 0.65rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0.6rem;
    z-index: 20;
    transition: background 300ms ease, box-shadow 300ms ease;
}

.brand {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.07em;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.brand-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav li a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    transition: color 200ms ease, background 200ms ease;
}

.main-nav li a:hover {
    color: var(--text);
    background: rgba(44, 232, 216, 0.08);
}

/* ── Hero ── */

.hero {
    flex: 1;
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0.8rem auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    min-height: clamp(520px, 75vh, 800px);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-lg);
}

.hero-media {
    position: absolute;
    inset: 0;
    margin: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 13, 23, 0.5) 0%, rgba(6, 13, 23, 0.2) 40%, rgba(6, 13, 23, 0.75) 100%),
        linear-gradient(135deg, rgba(6, 13, 23, 0.6) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: min(820px, calc(100% - 2rem));
    padding: 2rem 0;
    animation: rise-in 800ms var(--ease) both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(44, 232, 216, 0.08);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(44, 232, 216, 0.15);
}

h1,
h2,
h3 {
    line-height: 1.15;
    color: var(--text);
}

h1 {
    margin: 0.5rem 0 1rem;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    text-wrap: balance;
    letter-spacing: -0.02em;
}

.hero-summary {
    margin: 0 auto;
    max-width: 56ch;
    color: rgba(220, 233, 248, 0.85);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.65;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 250ms var(--ease), background 250ms ease, box-shadow 250ms ease;
}

.cta-primary {
    background: var(--accent);
    color: #042420;
    border-color: var(--accent-strong);
    box-shadow: 0 0 20px var(--accent-glow), var(--shadow-sm);
}

.cta-primary:hover {
    background: #50f0e4;
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(44, 232, 216, 0.25), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cta-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(200, 220, 240, 0.2);
    backdrop-filter: blur(4px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ── Hero Stats ── */

.hero-stats {
    margin-top: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(6, 13, 23, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.8rem 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 2rem;
    background: var(--border);
}

/* ── Main Content ── */

main {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 3rem 0 4rem;
}

/* ── Section Shared ── */

section {
    background: linear-gradient(180deg, rgba(11, 26, 43, 0.85), rgba(8, 19, 32, 0.9));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 3.5rem);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

h2 {
    margin: 0 0 1.5rem;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

p {
    margin: 0;
    color: var(--text-muted);
    max-width: 70ch;
    line-height: 1.7;
}

section p + p {
    margin-top: 1rem;
}

/* ── Technology Section ── */

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

.tech-card {
    background: linear-gradient(160deg, rgba(15, 34, 57, 0.7), rgba(8, 19, 32, 0.7));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 300ms var(--ease), border-color 300ms ease, box-shadow 300ms ease;
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: var(--border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border);
}

.tech-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-glow);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--accent);
    margin-bottom: 1rem;
}

.tech-card p {
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ── Benefits Section ── */

.benefits-list {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: linear-gradient(160deg, rgba(15, 34, 57, 0.5), rgba(8, 19, 32, 0.5));
    transition: transform 300ms var(--ease), border-color 300ms ease, box-shadow 300ms ease;
}

.benefits-list li:hover {
    transform: translateY(-3px);
    border-color: var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.benefit-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--accent-glow);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--accent);
}

.benefits-list strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.benefits-list p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-dim);
}

/* ── Development Section ── */

.dev-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.dev-milestones {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 1.5rem;
}

.dev-milestones::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-subtle);
    border-radius: 1px;
}

.milestone {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.65rem 0;
    position: relative;
}

.milestone-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--text-dim);
    background: var(--surface);
    flex-shrink: 0;
    margin-left: -1.5rem;
    position: relative;
    z-index: 1;
    margin-top: 2px;
}

.milestone-marker.done {
    background: var(--accent-strong);
    border-color: var(--accent);
}

.milestone-marker.active {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--accent-glow);
    animation: pulse-ring 2s ease-in-out infinite;
}

.milestone-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.milestone-body strong {
    font-size: 0.92rem;
    color: var(--text);
}

.milestone-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
}

.milestone-status.complete {
    color: var(--accent);
}

.milestone-status.current {
    color: #f0c060;
}

/* ── Contact Section ── */

.section-contact {
    background: linear-gradient(135deg, rgba(11, 26, 43, 0.9), rgba(15, 34, 57, 0.85));
    text-align: center;
    padding: 0;
    overflow: hidden;
}

.contact-card {
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    position: relative;
}

.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--accent);
}

.section-contact h2 {
    max-width: 24ch;
    margin: 0 auto 1rem;
}

.section-contact p {
    max-width: 48ch;
    margin: 0 auto;
    color: var(--text-muted);
}

.contact-cta {
    margin-top: 1.5rem;
}

/* ── Footer ── */

footer {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.footer-logo {
    color: var(--accent);
}

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

.footer-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 200ms ease;
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin: 0;
}

/* ── Animations ── */

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-ring {
    0%, 100% {
        box-shadow: 0 0 0 4px var(--accent-glow);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(44, 232, 216, 0.08);
    }
}

/* ── Responsive ── */

@media (max-width: 860px) {
    .main-nav {
        border-radius: var(--radius);
        flex-direction: column;
        align-items: flex-start;
        padding: 0.8rem 1rem;
    }

    .main-nav ul {
        justify-content: flex-start;
    }

    .hero {
        min-height: 70vh;
        min-height: 70svh;
    }

    .hero-stats {
        flex-wrap: wrap;
        border-radius: var(--radius);
        justify-content: center;
        padding: 0.8rem 1.2rem;
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .dev-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    body {
        line-height: 1.6;
    }

    .hero-actions {
        width: 100%;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }

    .benefits-list {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}