:root {
    --bg: #020617;
    --bg-soft: #050816;
    --card: #0b1120;
    --accent: #22c55e;
    --accent-soft: rgba(34, 197, 94, 0.12);
    --accent-strong: #16a34a;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border-subtle: #1f2937;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.7);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-pill: 999px;
    --transition-fast: 0.18s ease-out;
    --transition-med: 0.25s ease-out;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

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

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* NAVBAR */

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(15,23,42,0.95), rgba(15,23,42,0.7), transparent);
    border-bottom: 1px solid rgba(31,41,55,0.9);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: radial-gradient(circle at 20% 0, #4ade80, #22c55e 40%, #16a34a 70%, #14532d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #022c22;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 0 0 1px rgba(15,23,42,0.9), 0 10px 25px rgba(34,197,94,0.45);
}

.nav-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e5e7eb;
}

.nav-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.nav-pill {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148,163,184,0.6);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    background: radial-gradient(circle at top left, rgba(148,163,184,0.18), transparent 55%);
}

.nav-pill i {
    color: #a5b4fc;
}

.nav-tag {
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(34,197,94,0.12);
    color: #bbf7d0;
    border: 1px solid rgba(34,197,94,0.4);
    font-weight: 500;
}

/* LAYOUT */

main {
    flex: 1;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

/* HERO */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
    gap: 28px;
    align-items: center;
    margin-top: 16px;
}

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

.hero-media {
    position: relative;
}

.hero-media-bg {
    position: absolute;
    inset: 0;
    filter: blur(14px) brightness(0.4);
    opacity: 0.7;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.hero-poster-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

.hero-video-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(31,41,55,0.95);
    box-shadow: var(--shadow-soft);
}

.hero-video {
    width: 100%;
    display: block;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, transparent, rgba(15,23,42,0.7));
}

.hero-video-label {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
    font-size: 12px;
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-video-label i {
    color: var(--accent);
}
.hero-video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.hero-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    animation: fadeUp 0.7s ease-out both;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(55,65,81,0.9);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.hero-kicker .badge {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(34,197,94,0.12);
    color: #bbf7d0;
    border: 1px solid rgba(34,197,94,0.4);
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-title {
    font-size: clamp(28px, 3.4vw, 34px);
    line-height: 1.2;
    font-weight: 700;
    color: #f9fafb;
    margin: 0 0 8px;
}

.hero-title span {
    display: block;
    font-size: 0.9em;
    margin-top: 4px;
    background: linear-gradient(to right, #4ade80, #22c55e, #a3e635);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #9ca3af;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(55,65,81,0.9);
}

.hero-meta-item i {
    color: var(--accent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.btn-primary {
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #022c22;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 14px 35px rgba(34,197,94,0.45);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 45px rgba(34,197,94,0.6);
    filter: brightness(1.03);
}

.btn-ghost {
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.85);
    color: var(--text-main);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-ghost:hover {
    background: rgba(31,41,55,0.95);
    border-color: rgba(209,213,219,0.9);
    transform: translateY(-1px);
}

.btn-ghost.small {
    padding: 7px 12px;
    font-size: 13px;
}

.hero-footnote {
    font-size: 12px;
    color: var(--text-muted);
}

.hero-footnote i {
    color: var(--accent);
    margin-right: 6px;
}

/* SECTIONS */

.section {
    margin-top: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 18px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #f9fafb;
}

.section-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #6b7280;
}

.section-description {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.7;
}

@media (max-width: 800px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* DEMO SECTION */

.demo-video-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(31,41,55,0.95);
    box-shadow: var(--shadow-soft);
    background: #020617;
}

.demo-video {
    width: 100%;
    display: block;
}

.demo-actions {
    margin-top: 12px;
}

/* GRID & CARDS */

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

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

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

.card {
    background: radial-gradient(circle at top left, #111827, #020617 70%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(31,41,55,0.95);
    padding: 14px 14px 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

.card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top, rgba(34,197,94,0.08), transparent 55%);
    opacity: 0;
    transition: opacity var(--transition-med);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.85);
    border-color: rgba(55,65,81,0.95);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 15px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #e5e7eb;
}

.card-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* TECH STACK */

.stack-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

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

@media (max-width: 640px) {
    .stack-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.stack-pill {
    padding: 10px 10px;
    border-radius: 999px;
    border: 1px solid rgba(55,65,81,0.9);
    background: rgba(15,23,42,0.95);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e5e7eb;
    justify-content: center;
}

.stack-pill i {
    color: var(--accent);
}

/* FEATURES */

.features-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 18px;
}

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

.feature-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.feature-item {
    display: flex;
    gap: 10px;
    padding: 10px 11px;
    border-radius: 14px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(31,41,55,0.95);
}

.feature-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(34,197,94,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ade80;
    font-size: 13px;
    flex-shrink: 0;
}

.feature-body-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.feature-body-text {
    font-size: 12px;
    color: var(--text-muted);
}

.feature-panel {
    border-radius: var(--radius-md);
    border: 1px solid rgba(31,41,55,0.95);
    background: radial-gradient(circle at top left, #111827, #020617 70%);
    padding: 14px 14px 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
}

.feature-panel-header {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.feature-panel-header span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.feature-panel-header i {
    color: var(--accent);
}

.feature-panel-matrix {
    font-size: 12px;
    border-radius: 12px;
    border: 1px solid rgba(31,41,55,0.95);
    overflow: hidden;
}

.matrix-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
}

.matrix-cell {
    padding: 7px 9px;
    border-bottom: 1px solid rgba(31,41,55,0.95);
    border-right: 1px solid rgba(31,41,55,0.95);
}

.matrix-row:last-child .matrix-cell {
    border-bottom: none;
}

.matrix-cell:last-child {
    border-right: none;
}

.matrix-head {
    background: rgba(15,23,42,0.95);
    font-weight: 600;
    color: #e5e7eb;
}

.matrix-label {
    color: #9ca3af;
}

.matrix-good {
    color: #4ade80;
}

.matrix-neutral {
    color: #eab308;
}

/* DIAGRAMS */

.diagram-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

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

.diagram-card {
    background: rgba(15,23,42,0.95);
    border-radius: var(--radius-md);
    border: 1px solid rgba(31,41,55,0.95);
    padding: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
}

.diagram-card img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.diagram-card figcaption {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* SCREENSHOTS */

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

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

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

.screenshot-card {
    background: rgba(15,23,42,0.95);
    border-radius: var(--radius-md);
    border: 1px solid rgba(31,41,55,0.95);
    padding: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
}

.screenshot-card img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.screenshot-card figcaption {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* DOWNLOAD SECTION */

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

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

.download-card {
    background: rgba(15,23,42,0.95);
    border-radius: var(--radius-md);
    border: 1px solid rgba(31,41,55,0.95);
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.download-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: rgba(34,197,94,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.download-body h3 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
}

.download-body p {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-muted);
}

/* FOOTER */

footer {
    border-top: 1px solid rgba(31,41,55,0.95);
    padding: 16px 20px 22px;
    background: radial-gradient(circle at top, #020617, #000 70%);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
}

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

.footer-pill {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(55,65,81,0.9);
    background: rgba(15,23,42,0.95);
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

/* ANIMATIONS */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =========================================================
   ADDITIONAL CSS FOR REDESIGNED ARTEFACT PAGE
   ========================================================= */

/* Simplified Navbar Links */
.nav-right .nav-pill {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148,163,184,0.6);
    color: var(--text-muted);
    background: radial-gradient(circle at top left, rgba(148,163,184,0.18), transparent 55%);
    font-size: 13px;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.nav-right .nav-pill:hover {
    background: rgba(31,41,55,0.95);
    border-color: rgba(209,213,219,0.9);
    transform: translateY(-1px);
}

/* Section Titles & Layout Tweaks */
.section h3 {
    font-size: 15px;
    font-weight: 600;
    color: #f9fafb;
    margin: 12px 0 6px;
}

.section pre {
    background: rgba(15,23,42,0.85);
    border: 1px solid rgba(31,41,55,0.95);
    padding: 12px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    overflow-x: auto;
}

/* Contact Button */
#contact .btn-ghost.small {
    margin-top: 10px;
}

/* Improve spacing for redesigned structure */
.section {
    margin-top: 60px;
}

.section-description + pre {
    margin-top: 10px;
}

/* Ensure screenshot grid spacing remains clean */
.screenshots-grid figure {
    margin: 0;
}

/* Improve diagram grid spacing */
.diagram-grid figure {
    margin: 0;
}

/* Hero spacing for simplified navbar */
.hero {
    margin-top: 40px;
}

/* ================= IMAGE ZOOM MODAL ================= */

.zoomable-image {
    cursor: zoom-in;
    transition: transform 0.25s ease;
}

.zoomable-image:hover {
    transform: scale(1.02);
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(6px);
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 92%;
    max-height: 88vh;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 42px;
    font-weight: bold;
    cursor: pointer;
}

.image-modal-close:hover {
    opacity: 0.7;
}
.project-structure-card {
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(31,41,55,0.95);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    margin: 18px 0;
}

.project-structure-card pre {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-muted);
    white-space: pre-wrap;
}

.setup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.setup-card {
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(31,41,55,0.95);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.65);
}

.setup-card h3 {
    margin-top: 8px;
}

.setup-card p {
    font-size: 13px;
    color: var(--text-muted);
}

.setup-card pre {
    margin-top: 8px;
    font-size: 12px;
}

@media (max-width: 800px) {
    .setup-grid {
        grid-template-columns: 1fr;
    }
}



