:root {
    --bg: #060608;
    --hero: linear-gradient(140deg, #040406, #141420);
    --card: #ffffff;
    --muted: #7a7d85;
    --border: rgba(15, 16, 28, 0.1);
    --text: #12131f;
    --accent: #7B0323;
    --accent-soft: rgba(226, 72, 112, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

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

a {
    color: inherit;
}

.btn-gradient {
    background: linear-gradient(120deg, var(--accent), #ff6b9a);
    color: #fff;
    border-radius: 999px;
    padding: 0.55rem 1.3rem;
    text-decoration: none;
    border: none;
    font-weight: 600;
}

.btn-outline {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.55rem 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.btn-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.projects-hero {
    position: relative;
    background: var(--hero);
    color: #fff;
    padding: 2.5rem 0 5rem;
    overflow: hidden;
}

.hero-glow,
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-glow {
    background: radial-gradient(circle at 10% 20%, rgba(226, 72, 112, 0.35), transparent 55%),
        radial-gradient(circle at 85% 0%, rgba(82, 167, 255, 0.25), transparent 45%);
}

.hero-grid {
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.4;
}

.hero-shell {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
}

.brand-mark img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 50%;
}

.brand strong {
    display: block;
    font-size: 1rem;
}

.brand small {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
}

.nav-menu {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-cta {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.45rem 1.1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
}

.hero-main {
    padding: 3rem 0 0;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.hero-pill-row {
    display: inline-flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-pill {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
}

.hero-pill.ghost {
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
}

.hero-main h1 {
    margin: 1rem 0 0.5rem;
    font-size: clamp(2.8rem, 6vw, 4.9rem);
    letter-spacing: -0.04em;
    color: #fff;
}

.hero-main .lead {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.2rem auto 0;
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 0.55rem 1.3rem;
    font-family: inherit;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

main.page-content {
    background: var(--card);
    border-radius: 32px 32px 0 0;
    margin-top: -2rem;
    padding-bottom: 3rem;
}

.project-detail {
    background: var(--card);
    color: var(--text);
}

.project-detail .section {
    color: var(--text);
}

.template-detail {
    background: #f7f7fb;
    color: var(--text);
}

.template-hero-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1.75rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 60px rgba(15, 18, 40, 0.08);
}

.template-pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.template-hero-block .hero-pill {
    border: 1px solid rgba(15, 16, 28, 0.1);
    background: rgba(130, 77, 255, 0.08);
    color: var(--text);
}

.template-hero-block .hero-pill.ghost {
    border-color: rgba(15, 16, 28, 0.12);
    background: transparent;
    color: rgba(15, 16, 28, 0.6);
}

.template-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

.template-meta-card {
    background: #fdfdff;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 16, 28, 0.08);
    padding: 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.template-meta-card span {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.65rem;
    color: var(--muted);
}

.template-blueprints {
    padding-top: 1rem;
}

.template-blueprint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.template-blueprint-card {
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    padding: 1.75rem;
    background: #fff;
    box-shadow: 0 20px 50px rgba(10, 10, 30, 0.08);
}

.template-blueprint-card span {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.65rem;
    color: var(--muted);
}

.template-blueprint-card h3 {
    margin: 0.5rem 0 0.75rem;
}

.template-grid-section {
    padding-top: 1rem;
}

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

.template-toolbox span {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.65rem;
    color: var(--muted);
}

.template-tool-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.template-tool-list li {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    color: var(--text);
}

.template-tool-list i {
    color: var(--accent);
}

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

.section {
    padding: 3rem 0;
}

.stream-section {
    padding: 3rem 0;
}

.stream-head {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 2rem;
}

.stream-head h2 {
    margin: 0;
    font-size: 2rem;
}

.stream-head p {
    margin: 0;
    color: var(--muted);
}

.stream-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.section-heading .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.7rem;
    color: var(--muted);
}

.stream-card {
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: #fff;
}

.stream-card figure {
    border-radius: 1rem;
    overflow: hidden;
    margin: 0;
}

.stream-card h3 {
    margin: 0;
}

.stream-tag {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.68rem;
    color: var(--accent);
}

.stream-note {
    color: var(--muted);
    font-size: 0.85rem;
}

.stream-actions {
    margin-top: auto;
}

.stream-card.is-soon {
    opacity: 0.75;
}

.template-callout {
    border: 1px dashed var(--border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.detail-card {
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    background: #fff;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    border-left: 2px solid var(--border);
}

.timeline li {
    padding-left: 1rem;
    margin-bottom: 0.9rem;
    position: relative;
}

.timeline li::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    left: -5px;
    top: 4px;
}

.callout {
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    background: #fff;
}

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

.project-gallery figure {
    margin: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: #f4f4f9;
}

.carousel-shell {
    max-width: 840px;
    margin: 0 auto;
}

.carousel-note {
    text-align: center;
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.carousel-shell .carousel-inner {
    border: 1px solid var(--border);
    background: #fff;
}

.carousel-shell .carousel-item {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: var(--text);
}

.carousel-shell .carousel-media {
    position: relative;
    display: block;
    border-radius: 1.25rem;
    overflow: hidden;
}

.carousel-shell .carousel-media img {
    width: 100%;
    height: clamp(320px, 45vw, 420px);
    object-fit: cover;
    transition: transform 0.4s ease;
}

.carousel-shell .carousel-media-icon {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-shell .carousel-media:hover img {
    transform: scale(1.04);
}

.carousel-shell .carousel-media:hover .carousel-media-icon {
    opacity: 1;
}

.carousel-shell .carousel-caption {
    position: static;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    color: inherit;
}

.carousel-shell .carousel-caption h5 {
    font-size: 1.3rem;
    margin: 0;
}

.carousel-shell .carousel-caption p {
    margin: 0;
    color: var(--muted);
}

.carousel-shell .carousel-caption .carousel-tag {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.65rem;
    color: var(--accent);
}

.carousel-shell .carousel-control-prev-icon,
.carousel-shell .carousel-control-next-icon {
    filter: invert(1);
}

.carousel-shell .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background-color: #000;
    opacity: 0.5;
}

.carousel-shell .carousel-indicators .active {
    opacity: 1;
}


.projects-footer {
    background: #050508;
    color: rgba(255, 255, 255, 0.75);
}

.projects-footer a {
    color: #fff;
    text-decoration: none;
}

.projects-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero-nav {
        flex-direction: column;
        text-align: center;
    }

    .nav-left {
        flex-direction: column;
        gap: 0.75rem;
    }

    .nav-menu {
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
    }
}
