/* ============================================================
   lucUI — Design System
   ============================================================ */

:root {
    --luca-navy: #1D2D44;
    --card-bg: #243b55;
    --studio-gold: #AE9D5D;
    --text-light: #E0E6ED;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(ellipse 120% 60% at 50% 0%, #243b55 0%, #1D2D44 45%, #111e2e 100%);
    min-height: 100vh;
    color: var(--text-light);
    font-family: 'Raleway', sans-serif;
    overflow-y: auto;
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--studio-gold);
    margin-top: 0;
}

.headline {
    font-size: 5.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: 1px;
    text-wrap: balance;
    text-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(174, 157, 93, 0.3);
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(174, 157, 93, 0.2);
}

.section-description {
    font-size: 1.15rem;
    color: rgba(224, 230, 237, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 600px;
    position: relative;
    z-index: 2;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(29, 45, 68, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(174, 157, 93, 0.2);
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
}

.navbar-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(174, 157, 93, 0.2));
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: 1px solid rgba(174, 157, 93, 0.3);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(174, 157, 93, 0.15);
    border-color: rgba(174, 157, 93, 0.5);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--studio-gold);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links a {
    color: rgba(224, 230, 237, 0.85);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    border: 1px solid rgba(174, 157, 93, 0.2);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.nav-links a:hover {
    color: #fff;
    transform: translateY(-2px);
    background: rgba(174, 157, 93, 0.15);
    border-color: rgba(174, 157, 93, 0.5);
    box-shadow: 0 4px 15px rgba(174, 157, 93, 0.2);
    text-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.nav-accent {
    color: var(--studio-gold);
    font-size: 0.7rem;
    font-family: 'Playfair Display', serif;
    opacity: 0.8;
}

/* Hero Section */
.hero {
    padding: 220px 0 120px;
    text-align: center;
}

.hero-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.sub-headline {
    font-size: 1.3rem;
    color: rgba(224, 230, 237, 0.95);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 1.5px;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.btn-transparency {
    border: 1px solid rgba(174, 157, 93, 0.5);
    /* 0.5px fallback */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.03);
    color: var(--studio-gold);
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-transparency::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    transition: all 0.6s ease;
}

.btn-transparency:hover::before {
    left: 150%;
}

.btn-transparency:hover {
    background: rgba(174, 157, 93, 0.1);
    box-shadow: 0 10px 30px rgba(174, 157, 93, 0.2);
    transform: translateY(-2px);
}

/* Distribution Sections */
.distribution-sections {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    padding-bottom: 100px;
}

.branch-section {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

/* OS Feel - Transparency Cards */
.transparency-card {
    background: linear-gradient(145deg, rgba(36, 59, 85, 0.85) 0%, rgba(29, 45, 68, 0.65) 60%, rgba(17, 30, 46, 0.7) 100%);
    border: 1px solid rgba(174, 157, 93, 0.08);
    border-radius: 32px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
}

/* Beveled Transparency Edge */
.transparency-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Refined Lighting: Glow Spot */
.glow-spot {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(174, 157, 93, 0.12), transparent 70%);
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

.reverse+.transparency-card .glow-spot {
    left: auto;
    right: -100px;
}

.center-glow {
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
}

/* Z-Pattern Layout */
.section-container {
    display: flex;
    align-items: center;
    gap: 6rem;
    position: relative;
    z-index: 2;
}

.section-container.reverse {
    flex-direction: row-reverse;
}

.section-logo-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.section-logo-wrapper::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03), transparent 60%);
    z-index: -1;
}

.section-logo {
    max-width: 65%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transform: translateZ(0);
    /* Hardware acceleration */
}

.section-logo.small {
    max-width: 140px;
    margin-bottom: 1.5rem;
}

.section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Utility Card Split View */
.utility-card {
    padding: 2.5rem;
}

.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.split-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.split-col .section-description {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

.center-btn-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Phase 2 Additions */

/* Section Padding Update */
.hero {
    padding: 220px 0 100px;
}

.branch-section,
.connectivity-section,
.pillars-section,
.pulse-section {
    padding: 100px 0;
}

/* lucUI Transparency Utility */
.lucui-transparency {
    background: linear-gradient(145deg, rgba(36, 59, 85, 0.55) 0%, rgba(29, 45, 68, 0.35) 100%);
    border: 1px solid rgba(174, 157, 93, 0.12);
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
}

.text-center {
    text-align: center;
}

.text-tangerine {
    color: #FF8C00;
}

.text-azure {
    color: #00BBFF;
}

/* The Connectivity */
.connectivity-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 4rem;
    position: relative;
    overflow: hidden;
}

.connectivity-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 300px;
    background: radial-gradient(circle, rgba(174, 157, 93, 0.1), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* The Product Pillars */
.pillars-section .section-title {
    margin-bottom: 4rem;
}

.pillars-grid {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    justify-content: center;
}

.pillar-card {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.4s ease;
}

.pillar-card:hover {
    transform: translateY(-10px);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    color: var(--studio-gold);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 10px rgba(174, 157, 93, 0.3));
}

.pillar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
    font-family: 'Playfair Display', serif;
}

.pillar-desc {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(224, 230, 237, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* The Ecosystem Pulse */
.pulse-section .section-title {
    margin-bottom: 5rem;
}

.timeline {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(174, 157, 93, 0.3), transparent);
    transform: translateX(-50%);
}

.timeline-node {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 3rem;
}

.timeline-node:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.node-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--luca-navy);
    border: 2px solid rgba(174, 157, 93, 0.5);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-node.active .node-marker {
    background: var(--studio-gold);
    box-shadow: 0 0 20px rgba(174, 157, 93, 0.8);
}

.node-content {
    width: 80%;
    padding: 2rem;
    border-radius: 24px;
}

.timeline-node:nth-child(odd) .node-content {
    margin-right: 3rem;
}

.timeline-node:nth-child(even) .node-content {
    margin-left: 3rem;
}

.timeline-node.future .node-content {
    opacity: 0.5;
    border: 1px dashed rgba(224, 230, 237, 0.2);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.node-date {
    display: block;
    color: var(--studio-gold);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.node-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: #fff;
}

.node-content p {
    color: rgba(224, 230, 237, 0.8);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* Footer Overhaul */
.footer {
    background: linear-gradient(to bottom, transparent 0%, rgba(13, 20, 32, 0.6) 30%, rgba(10, 16, 26, 0.85) 100%);
    padding: 5rem 0 2rem;
    margin-top: 50px;
}

.footer-grid {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 120px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 10px rgba(174, 157, 93, 0.2));
}

.mission-statement {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--studio-gold);
    font-size: 1.2rem;
}

.footer-col h4 {
    color: #fff;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-col a {
    display: block;
    color: rgba(224, 230, 237, 0.6);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--studio-gold);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: rgba(224, 230, 237, 0.4);
    font-size: 0.85rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

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

/* ==========================================
   Phase 3 - Multi-page Layout styles
   ========================================== */

/* DNA / Manifesto / About */
.about-hero {
    padding: 180px 0 60px;
    text-align: center;
}

.manifesto-block {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.manifesto-block p {
    font-size: 1.25rem;
    line-height: 1.9;
    color: rgba(224, 230, 237, 0.9);
}

/* Showcase Case Studies */
.showcase-hero {
    padding: 180px 0 60px;
    text-align: center;
}

.showcase-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.2rem;
    color: rgba(224, 230, 237, 0.85);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.showcase-card h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.showcase-card .section-description {
    max-width: 100%;
    margin-bottom: 2rem;
}

.showcase-visual {
    width: 100%;
    height: 250px;
    border-radius: 20px;
    border: 1px solid rgba(174, 157, 93, 0.15);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-visual::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(174, 157, 93, 0.05), transparent 70%);
}

.spec-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(174, 157, 93, 0.15);
    border: 1px solid rgba(174, 157, 93, 0.3);
    color: var(--studio-gold);
}

.visual-mockup {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: rgba(224, 230, 237, 0.4);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Documentation Layout */
.docs-hero {
    padding: 160px 0 40px;
    text-align: center;
}

.docs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    width: 90%;
    max-width: 1300px;
    margin: 4rem auto;
    align-items: start;
}

.docs-sidebar {
    position: sticky;
    top: 130px;
    padding: 2rem;
    border-radius: 24px;
}

.docs-sidebar h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--studio-gold);
    margin-bottom: 1.5rem;
}

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

.docs-menu li {
    margin-bottom: 0.8rem;
}

.docs-menu a {
    color: rgba(224, 230, 237, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.docs-menu a:hover {
    color: var(--studio-gold);
    padding-left: 5px;
}

.docs-content {
    color: rgba(224, 230, 237, 0.85);
}

.docs-section {
    margin-bottom: 6rem;
    scroll-margin-top: 130px;
}

.docs-section h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.docs-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Transparency Code snippets */
.code-block-wrapper {
    background: rgba(13, 22, 33, 0.8);
    border: 1px solid rgba(174, 157, 93, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    overflow: hidden;
    margin: 2rem 0;
    font-family: 'Courier New', Courier, monospace;
}

.code-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-dot.red {
    background-color: #ff5f56;
}

.code-dot.yellow {
    background-color: #ffbd2e;
}

.code-dot.green {
    background-color: #27c93f;
}

.code-title {
    margin-left: 1rem;
    font-size: 0.8rem;
    color: rgba(224, 230, 237, 0.5);
    letter-spacing: 0.5px;
}

.code-content-pre {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #a9b7c6;
}

.code-keyword {
    color: #cc7832;
}

.code-string {
    color: #6a8759;
}

.code-comment {
    color: #808080;
    font-style: italic;
}

.code-function {
    color: #ffc66d;
}

/* Responsive */
@media (max-width: 1024px) {
    .transparency-card {
        padding: 4rem 3rem;
    }

    .section-container,
    .section-container.reverse {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
    }

    .section-content {
        align-items: center;
    }

    .glow-spot {
        left: 50%;
        transform: translateX(-50%);
    }

    .docs-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .docs-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .headline {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .split-view {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background: rgba(8, 16, 28, 0.95);
        backdrop-filter: blur(32px) saturate(200%);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(174, 157, 93, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-col.brand-col {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .transparency-card {
        padding: 3rem 2rem;
    }

    .section-description {
        font-size: 1rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .headline {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .brand-logo {
        height: 60px;
    }

    .navbar {
        height: 70px;
    }

    .transparency-card {
        padding: 2rem 1.5rem;
    }
}