/* ==========================================================
   PLATFORM HOMEPAGE v2.1
   Refined Design System
   ========================================================== */

:root {
    --bg: #fdfbf8;
    --surface: #ffffff;
    --surface-muted: #fafbfc;

    --text: #1f2937;
    --text-muted: #6b7280;

    --border: #e8e5df;
    --border-hover: #d8d2c8;

    --primary: #5b5bd6;
    --primary-hover: #4a4ac9;
    --primary-soft: #f1f0ff;

    --success: #16a34a;
    --success-soft: #ecfdf3;

    --warning: #ca8a04;
    --warning-soft: #fff8e8;

    --info: #2563eb;
    --info-soft: #eff6ff;

    --wms: #ec4899;
    --dockyard: #3b82f6;

    --radius: 18px;

    --shadow-sm: 0 6px 18px rgba(15, 23, 42, .05);
    --shadow-md: 0 14px 38px rgba(15, 23, 42, .08);
    --shadow-lg: 0 18px 48px rgba(15, 23, 42, .12);

    --transition: .25s ease;
}

/* ---------- Global ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--text);
    line-height: 1.7;
    background:
        radial-gradient(circle at top left, rgba(91, 91, 214, .08), transparent 38%),
        radial-gradient(circle at top right, rgba(251, 191, 36, .05), transparent 34%),
        var(--bg);
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

p {
    color: var(--text-muted);
}

h1,
h2,
h3 {
    line-height: 1.15;
}

section {
    padding: 6rem 0;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(253, 251, 248, .82);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-weight: 800;
    font-size: 1.1rem;
}

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

.nav-links a {
    padding: .35rem .75rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

/* ---------- Hero ---------- */

.hero {
    padding: 7rem 0 5rem;
}

.hero-content {
    max-width: 760px;
}

.hero-tag {
    display: inline-flex;
    padding: .55rem 1rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 4.8rem);
    letter-spacing: -2px;
    margin-bottom: 1.75rem;
}

.hero-description {
    max-width: 700px;
    font-size: 1.12rem;
    margin-bottom: 2.2rem;
}

.hero-tech {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-bottom: 2.5rem;
}

.hero-tech span {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: .55rem 1rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.hero-tech span:hover {
    background: var(--primary-soft);
    color: var(--primary);
    transform: translateY(-2px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .9rem 1.5rem;
    border-radius: 14px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #7675ff);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--surface);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--border-hover);
}

/* ---------- Highlights ---------- */

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.highlight-card:first-child {
    background: var(--warning-soft);
}

.highlight-card:last-child {
    background: var(--info-soft);
}

.highlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.highlight-label {
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.status-progress {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: var(--warning);
    font-weight: 700;
    font-size: .85rem;
}

.status-dot,
.status-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.progress {
    background: #eab308;
}

.status-live {
    background: var(--success);
}

.project-status {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: var(--success);
    font-weight: 700;
    font-size: .85rem;
}

/* ---------- About ---------- */

.about p {
    max-width: 760px;
    font-size: 1.05rem;
}

/* ---------- Projects ---------- */

.projects {
    background: var(--surface-muted);
}

.section-heading {
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 2.3rem;
    margin-bottom: .75rem;
}

.section-heading p {
    max-width: 620px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
}

.project-card:first-child {
    border-top: 4px solid var(--wms);
}

.project-card:last-child {
    border-top: 4px solid var(--dockyard);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.project-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.project-subtitle {
    font-size: .9rem;
    color: var(--text-muted);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.tech-stack span {
    background: var(--surface-muted);
    padding: .45rem .9rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    transition: var(--transition);
}

.tech-stack span:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.project-link {
    width: fit-content;
    color: var(--primary);
    font-weight: 700;
    transition: var(--transition);
}

.project-link:hover {
    transform: translateX(4px);
    color: var(--primary-hover);
}

/* ---------- Coming Soon ---------- */

.coming-soon p {
    margin-bottom: 2rem;
}

.future-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.future-projects span {
    padding: .8rem 1.2rem;
    border-radius: 999px;
    border: 1px dashed var(--border);
    background: var(--surface);
    transition: var(--transition);
}

.future-projects span:hover {
    transform: translateY(-3px);
    border-style: solid;
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.site-footer p {
    text-align: center;
    font-size: .95rem;
}

/* ---------- Responsive ---------- */

@media(max-width:768px) {
    .site-header .container {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: .75rem;
    }

    .hero {
        padding-top: 5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-grid,
    .highlight-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width:480px) {
    section {
        padding: 4rem 0;
    }

    .hero-tech {
        gap: .5rem;
    }
}