/* ProBroke Brand Styles (Migrated from Prototype) */
:root {
    --gold-primary: #f0d00c; /* Updated Gold */
    --gold-accent: #FFD700;
    --black-core: #0a0a0a; /* Updated Base Black */
    --black-secondary: #04130f; /* Updated Deep Green */
    --white-pearl: #F8F6F0;
    --text-primary: #F8F6F0;
    --text-secondary: #B0B0B0;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

body.home {
    background-color: var(--black-core);
    color: var(--text-primary);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

body.home h1, body.home h2, body.home h3, body.home h4, body.home h5 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-top: 0;
}

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

/* Utilities */
.text-gold { color: var(--gold-primary) !important; }
.bg-black { background-color: var(--black-core); }
.section-padding { padding: 80px 0; }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    /* Minimalist Technical Grid Background */
    background-color: var(--black-core);
    background-image:
        linear-gradient(rgba(4, 19, 15, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(4, 19, 15, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow: hidden;
    margin-top: 36px;
}

/* New Horizontal MCP Flow Styles */
.hero-flow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    gap: 20px;
    width: 100%;
}

.flow-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-title {
    color: var(--gold-primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 300;
}

/* Animated Connector Line */
.flow-line-container {
    flex-grow: 1;
    max-width: 150px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.flow-line-beam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    transform: translateX(-100%);
    /* Total cycle: 3 segments * 1.5s = 4.5s. We want visible movement to be fast, say 1.5s per segment. */
    animation: beam-sequence 4.5s infinite linear;
    opacity: 0;
}

/*
   Keyframe logic for sequential flow:
   Total Duration: 4.5s
   Move Time: 1.5s (33.33%)
   Wait Time: 3s
*/
@keyframes beam-sequence {
    0% { transform: translateX(-100%); opacity: 1; }
    30% { transform: translateX(100%); opacity: 1; }
    30.01% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* Navbar (macOS Slim Style - Matching app_yacht) */
.navbar {
    --navbar-height: 36px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    min-height: var(--navbar-height);
    padding: 0 20px;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.navbar img {
    height: 20px;
    width: auto;
}

.navbar-version-links {
    display: flex;
    gap: 8px;
    margin-left: auto;
    margin-right: 20px;
}

.navbar-version-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.navbar-version-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.navbar-version-links a.active {
    color: var(--gold-primary);
    background: rgba(240, 208, 16, 0.1);
}

.navbar a {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem; /* Matches prototype */
    font-weight: 400;
    letter-spacing: 0.01em;
    border-radius: 4px;
    transition: background 0.2s ease;
    color: var(--text-secondary); /* Ensure link color */
}

.navbar a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto; /* Ensure centering */
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-gold {
    background: linear-gradient(90deg, var(--gold-primary) 0%, var(--gold-accent) 100%);
    color: #000;
    border: none;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(240, 208, 16, 0.2);
    color: #000;
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-primary);
    margin-left: 20px;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255,255,255,0.05);
    color: var(--gold-primary);
}

/* Section: Problem (Time Leak) */
.problem-section {
    background-color: var(--black-secondary);
    text-align: center;
}

.problem-stat {
    font-size: 14rem;
    font-weight: 700;
    color: var(--gold-primary);
    font-family: var(--font-heading);
    opacity: 1;
    line-height: 0.8;
    margin: 0;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section: Demo */
.section-heading {
    max-width: 780px;
    margin: 0 auto 48px;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--gold-primary);
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 700;
}

.section-heading h2 {
    font-size: 3rem;
    margin-bottom: 14px;
}

.section-heading p {
    color: var(--text-secondary);
    font-size: 1.08rem;
    margin: 0 auto;
}

.demo-section {
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background:
        radial-gradient(circle at top, rgba(240, 208, 12, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(4, 19, 15, 0.92), rgba(10, 10, 10, 1));
}

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

.demo-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(240, 208, 12, 0.14);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(9, 18, 15, 0.96), rgba(6, 12, 10, 0.96));
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    overflow: hidden;
}

.demo-card-media {
    padding: 18px 18px 0;
}

.demo-card-copy {
    padding: 22px 24px 26px;
}

.demo-step {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--gold-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.demo-card h3 {
    font-size: 1.45rem;
    margin-bottom: 10px;
}

.demo-card p {
    color: var(--text-secondary);
    margin: 0;
}

/* Section: Showcase */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-list li {
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '✦';
    color: var(--gold-primary);
    position: absolute;
    left: 0;
}

.app-preview-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Section: Access */
.access-card {
    border: 1px solid var(--gold-primary);
    padding: 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(240, 208, 16, 0.05) 0%, rgba(0,0,0,0) 100%);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.logo-footer {
    display: block;
    width: min(200px, 70vw);
    margin: 0 auto 20px;
    opacity: 0.8;
}

/* --- Badge (Custom Addition) --- */
.coming-soon-badge {
    position: fixed;
    top: 90px;
    right: 30px;
    background: linear-gradient(135deg, var(--gold-primary), #b38f2d);
    color: #000;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(240, 208, 12, 0.3);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 1px solid #fff;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(240, 208, 12, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 4px 25px rgba(240, 208, 12, 0.5); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(240, 208, 12, 0.3); }
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px 16px;
    }
    .nav-links {
        width: 100%;
        gap: 6px;
    }
    .showcase-grid { grid-template-columns: 1fr; gap: 40px; }
    .demo-grid { grid-template-columns: 1fr; }
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 110px 0 40px;
    }
    .hero-content {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
        text-align: center;
    }
    .hero h1 { font-size: 2.5rem !important; }
    .section-heading h2 { font-size: 2.2rem; }
    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 14px;
        align-items: stretch;
    }
    .btn,
    .btn-outline {
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
    }
    .hero-flow-container { flex-direction: column; gap: 10px; }
    .flow-line-container { width: 1px; height: 30px; }
    .flow-line-beam { width: 100%; height: 30px; top: -100%; left: 0; animation: beamFlowVert 4s infinite linear; }
    @keyframes beamFlowVert { 0% { top: -100%; } 100% { top: 100%; } }
    .access-card {
        display: block !important;
        width: 100%;
        padding: 32px 24px !important;
        box-sizing: border-box;
    }
    .demo-card-media,
    .demo-card-copy {
        padding-left: 16px;
        padding-right: 16px;
    }
    .coming-soon-badge { top: 70px; right: 10px; padding: 6px 12px; font-size: 0.7rem; }
    .navbar-version-links { display: none; }
}
