/* Hero base */
.hero {
    height: calc(100vh + var(--header-height));
    position: relative;
    top: calc(-1 * var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0 1rem;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.2), rgba(10, 10, 10, 1));
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
}
.hero.is-finished::before { opacity: 1; }
.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}
/* New animation cascade styles */
.hero-content > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.hero.is-finished .hero-content > h1 { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.hero.is-finished .hero-content > .hero-subtitle { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.hero.is-finished .hero-content > p  { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.hero.is-finished .hero-content > .btn { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }

.hero h1 { font-size: 4.5rem; text-shadow: 0 0 20px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 2rem; font-weight: 400; margin-top: .5rem; }
.hero p { font-size: 1.5rem; font-weight: 300; margin-bottom: 2rem; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}
.feature-item {
    background-color: var(--color-surface);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
}
.tech-section { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.product-shot { width: 100%; border-radius: 10px; }
.tech-section.reverse { grid-template-columns: 1fr 1fr; }
.tech-section.reverse > div:first-child { order: 2; }
.tech-section.reverse > div:last-child { order: 1; }

.chart-container { height: 400px; margin-top: 2rem; }
.specs-diagram { width: 70%; margin: 2rem auto; display: block; }

.epidemic-section { position: relative; text-align: center; background-color: #000; }
.epidemic-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('/images/epidemic-background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}
.epidemic-content { position: relative; z-index: 2; }
.charts-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; margin-top: 4rem; align-items: flex-start; }
.chart-item { background-color: rgba(10, 10, 10, 0.7); backdrop-filter: blur(10px); padding: 2rem; border-radius: 10px; border: 1px solid var(--color-border); }

.companion-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 4rem; }
.companion-card { text-align: center; border-radius: 10px; overflow: hidden; border: 1px solid var(--color-border); background-color: var(--color-surface); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.companion-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(142, 68, 173, 0.1); }
.companion-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.companion-card h3 { margin: 1.5rem 0; }

.problem-section { background-color: var(--color-surface); }
.solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* Video covers container */
#heroVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
#heroVideo.is-playing { opacity: 1; }

/* Mobile tweaks */
@media (max-width: 768px) {
    .hero { top: 0; height: 85vh; padding: 0 1rem; }
    .hero-content { max-width: 92vw; }
    .hero h1 { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.5rem; }
    .hero p { font-size: 1.1rem; }
    #heroVideo { width: 100%; height: 100%; object-fit: cover; }
}

/* Utilities extracted from inline styles */
.text-center { text-align: center; }
.centered-900 { text-align: center; max-width: 900px; margin: auto; }
.narrow-700 { max-width: 700px; margin: 0 auto 4rem auto; }
.narrow-800 { max-width: 800px; margin: 0 auto 4rem auto; }
.no-border { border: none; }
.mb-4rem { margin-bottom: 4rem; }
.h-350 { height: 350px; }
.mt-2rem { margin-top: 2rem; }
.btn-lg { padding: 1rem 3rem; font-size: 1.2rem; }

/* Bangchain section */
#bangchain .bangchain-box {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.bangchain-ca {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    padding: .75rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    user-select: all;
}

.bangchain-note {
    text-align: center;
    opacity: .7;
    margin-top: .75rem;
}


/* Hero quotes and features */
.hero-content > .hero-quotes { opacity: 1; transform: translateY(0); }
.hero-quotes { text-align: center; width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0; margin-top: 0; margin-bottom: 1.5rem; }
.hero-quotes .quote {
	font-family: 'Bodoni Moda', Georgia, "Times New Roman", Times, serif;
	font-weight: 900;
	font-size: 7.5rem;
	line-height: 1.05;
	letter-spacing: .25px;
	text-transform: uppercase;
	text-shadow: 0 2px 20px rgba(0,0,0,.45);
	display: inline-block;
	text-align: center;
	text-wrap: balance;
	position: relative;
	padding: 0 .28em; /* create gutter so quotes don't overlap glyphs */
}

.hero-quotes .quote::before,
.hero-quotes .quote::after {
	position: absolute;
	color: currentColor;
	opacity: .9;
	font-weight: 900;
	pointer-events: none;
	/* Smart quotes that don’t affect centering of the word */
	content: '“';
}
.hero-quotes .quote::before {
	left: -.6em; /* push further out from leading glyph */
	content: '“';
}
.hero-quotes .quote::after {
	right: -.6em; /* push further out from trailing glyph */
	content: '”';
}
.hero-features { display: none; }
.features-list { list-style: none; padding: 0; margin: 0 0 1.5rem 0; display: grid; gap: .75rem; font-size: 1.25rem; }
.features-list li { position: relative; padding-left: 1.25rem; }
.features-list li::before { content: "—"; position: absolute; left: 0; color: var(--color-primary); opacity: .9; }

@media (max-width: 768px) {
    .hero-quotes .quote { font-size: 4.5rem; padding: 0 .24em; }
}

/* Final subtitle and down arrow */
.hero-subtitle-end {
	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	font-size: 2.1rem;
	font-weight: 500;
	margin-top: .6rem;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .6s ease-out, transform .6s ease-out;
}
.down-arrow {
	font-size: 3rem;
	color: #fff;
	margin-top: 1.25rem;
	opacity: 0;
	animation: heroBlink 1.1s ease-in-out infinite;
}
.hero.is-finished .hero-subtitle-end { opacity: 1; transform: translateY(0); }
.hero.is-finished .down-arrow { opacity: 1; }

@keyframes heroBlink {
	0%, 100% { opacity: 0.25; }
	50% { opacity: 1; }
}

/* Proof/Demo section */
#proof.section { padding-top: 2.5rem; }
.proof-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: start; }
.proof-media { border-radius: 14px; overflow: hidden; border: 1px solid var(--color-border); background: #000; position: relative; height: 420px; z-index: 0; }
.gallery { position: relative; height: 100%; }
.gallery-track { position: relative; height: 100%; }
.gallery-slide { width: 100%; height: 100%; object-fit: cover; display: none; }
.gallery-slide.is-active { display: block; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.5); color: #fff; border: 1px solid var(--color-border); width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; }
.gallery-nav.prev { left: 8px; }
.gallery-nav.next { right: 8px; }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; gap: 6px; justify-content: center; z-index: 2; }
.gallery-dots .dot { width: 8px; height: 8px; border-radius: 999px; border: 1px solid var(--color-border); background: rgba(255,255,255,.3); cursor: pointer; }
.gallery-dots .dot.is-active { background: var(--color-primary); border-color: var(--color-primary); }

@media (max-width: 1024px) {
    .proof-media { height: clamp(260px, 40vh, 380px); }
}
.proof-panel { border: 1px solid var(--color-border); background: var(--color-surface); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.proof-panel .section-title { margin: 0; font-size: 1.6rem; line-height: 1.25; letter-spacing: .2px; text-wrap: balance; }
.feature-rows { list-style: none; margin: .25rem 0 0 0; padding: 0; display: grid; gap: 1rem; }
.feature-row { display: grid; grid-template-columns: 64px 1fr; gap: 1.25rem; align-items: start; padding: 1rem; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; background: rgba(255,255,255,0.03); }
.feature-row .row-icon { width: 52px; height: 52px; object-fit: contain; margin-top: .2rem; }
.feature-row h3 { margin: 0 0 .35rem 0; font-size: 1.2rem; line-height: 1.25; letter-spacing: .2px; }
.feature-row p { margin: 0; opacity: .92; line-height: 1.55; font-size: 1.02rem; }
.panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.panel-footer .trust-badges { margin: 0; }
.trust-badges { display: flex; gap: 1rem; align-items: center; margin: .5rem 0; opacity: .85; }
.trust-badges img { height: 28px; width: auto; filter: none; opacity: .95; }
.cta-row { display: flex; gap: 1rem; align-items: center; }
.btn.btn-secondary { background: #2a2a2a; border: 1px solid #3a3a3a; color: var(--color-text); }
.btn.btn-secondary:hover { background: #3a3a3a; transform: translateY(-2px); }

@media (max-width: 1024px) { .proof-grid { grid-template-columns: 1fr; } .panel-footer { flex-direction: column; align-items: flex-start; } }
@media (max-width: 768px) { .proof-panel { padding: 1.25rem; } .feature-row { grid-template-columns: 44px 1fr; gap: .9rem; padding: .9rem; } .feature-row .row-icon { width: 44px; height: 44px; } .feature-row h3 { font-size: 1.1rem; } .feature-row p { font-size: .98rem; line-height: 1.5; } }

/* Social Quotes carousel */
#social-quotes .quotes-stage { position: relative; min-height: 180px; margin-top: 0; }
.quote-card { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 2rem; text-align: center; opacity: 0; transform: translateY(10px); transition: opacity .7s ease, transform .7s ease; font-size: 1.6rem; line-height: 1.4; }
.quote-card.is-visible { opacity: 1; transform: translateY(0); }
.quote-card::before, .quote-card::after { color: currentColor; opacity: .6; font-size: 2rem; }
.quotes-wrap { max-width: 1000px; margin: 0 auto; }
.quote-card { border: 1px solid var(--color-border); background: rgba(255,255,255,0.02); border-radius: 12px; }
.quote-card em { font-style: normal; }

@media (max-width: 768px) {
    .quote-card { font-size: 1.2rem; padding: 1.5rem; }
}