/* ═══════════════════════════════════════════
   sections.css — Hero, Video, Pipeline,
   Stats, Logo Banner, Gallery, Features,
   Team, FAQs & Footer
   ═══════════════════════════════════════════ */

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--side-margin);
    padding-bottom: clamp(60px, 10vh, 120px);
    position: relative;
    overflow: hidden;
}

.hero-eyebrow {
    font-size: clamp(11px, 1.1vw, 14px);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 400;
}

.hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(42px, 7vw, 110px);
    line-height: 1.05;
    max-width: 900px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.hero h1 em {
    font-style: italic;
    color: var(--orange);
}

.hero-sub {
    font-size: clamp(16px, 1.5vw, 22px);
    color: var(--text-muted);
    max-width: 560px;
    margin-top: 24px;
    line-height: 1.5;
    font-weight: 300;
}

.hero-scroll {
    position: absolute;
    bottom: clamp(24px, 4vh, 48px);
    right: var(--side-margin);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-scroll span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    writing-mode: vertical-rl;
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: var(--orange);
    animation: scrollLine 2s ease-in-out infinite;
}

/* ─── Video Section ─── */
.video-section {
    padding: var(--section-padding) var(--side-margin);
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--cream);
    cursor: pointer;
}

.video-container video {
    width: 103%;
    height: 103%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    transition: background 0.4s;
}

.video-play-btn:hover { background: rgba(0,0,0,0.1); }

.video-play-btn svg {
    width: 72px;
    height: 72px;
    fill: white;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
    transition: transform 0.3s;
}

.video-play-btn:hover svg { transform: scale(1.1); }

.video-caption {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.video-caption p {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ─── Pipeline ─── */
.pipeline {
    padding: var(--section-padding) var(--side-margin);
    background: var(--charcoal);
    color: var(--text-light);
    overflow: hidden;
}

.pipeline-header {
    margin-bottom: clamp(48px, 8vh, 96px);
}

.pipeline-header h2 {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 700px;
}

.pipeline-header h2 em {
    font-style: italic;
    color: var(--orange);
}

.pipeline-header p {
    margin-top: 20px;
    font-size: clamp(15px, 1.2vw, 18px);
    color: rgba(240,236,228,0.55);
    max-width: 520px;
    line-height: 1.7;
}

.pipeline-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
}

/* Pipeline — Source */
.pipeline-source {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pipeline-source-card {
    width: 100%;
    max-width: 320px;
    background: var(--charcoal-light);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
}

.pipeline-source-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: rgba(241,166,54,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pipeline-source-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--orange);
    fill: none;
    stroke-width: 1.5;
}

.pipeline-source-label {
    font-family: var(--serif);
    font-size: clamp(20px, 2vw, 28px);
    margin-bottom: 8px;
}

.pipeline-source-desc {
    font-size: 14px;
    color: rgba(240,236,228,0.45);
    line-height: 1.5;
}

/* Pipeline — Connector */
.pipeline-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(16px, 3vw, 48px);
    position: relative;
}

.pipeline-connector-lines {
    position: relative;
    width: 2px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pipeline-connector svg {
    width: clamp(80px, 10vw, 160px);
    height: 100%;
    overflow: visible;
}

.connector-path {
    fill: none;
    stroke: var(--orange);
    stroke-width: 1.5;
    stroke-dasharray: 6 4;
    opacity: 0.5;
}

.connector-dot {
    fill: var(--orange);
}

/* Pipeline — Outputs */
.pipeline-outputs {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 24px);
    justify-content: center;
}

.pipeline-output {
    background: var(--charcoal-light);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius);
    padding: clamp(20px, 2.5vw, 32px);
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 24px);
    transition: border-color 0.3s, background 0.3s;
}

.pipeline-output:hover {
    border-color: rgba(241,166,54,0.25);
    background: rgba(241,166,54,0.04);
}

.pipeline-output-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(241,166,54,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pipeline-output-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--orange);
    fill: none;
    stroke-width: 1.5;
}

.pipeline-output-text h3 {
    font-family: var(--serif);
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 400;
    margin-bottom: 4px;
}

.pipeline-output-text p {
    font-size: clamp(13px, 1vw, 15px);
    color: rgba(240,236,228,0.45);
    line-height: 1.5;
}

.pipeline-output-badge {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange);
    border: 1px solid rgba(241,166,54,0.3);
    padding: 5px 12px;
    border-radius: 100px;
    white-space: nowrap;
}

/* Pipeline — Note */
.pipeline-note {
    margin-top: clamp(32px, 5vh, 56px);
    padding-top: clamp(24px, 3vh, 40px);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 640px;
}

.pipeline-note svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: var(--orange);
    fill: none;
    stroke-width: 1.5;
    margin-top: 2px;
}

.pipeline-note p {
    font-size: clamp(13px, 1.1vw, 15px);
    color: rgba(240,236,228,0.5);
    line-height: 1.6;
}

.pipeline-note strong {
    color: var(--orange);
    font-weight: 500;
}

.pipeline-spread-arrows { display: none; }

/* Pipeline — Example */
.pipeline-example {
    margin-top: clamp(56px, 8vh, 100px);
    padding-top: clamp(40px, 6vh, 72px);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.pipeline-example-label {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: clamp(24px, 3vh, 40px);
    font-weight: 500;
}

.pipeline-example-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: clamp(12px, 1.5vw, 20px);
    align-items: start;
}

.pipeline-example-item {
    position: relative;
}

.pipeline-example-item-media {
    border-radius: 12px;
    overflow: hidden;
    background: var(--charcoal-light);
    aspect-ratio: 9 / 14;
}

.pipeline-example-item-media img,
.pipeline-example-item-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pipeline-example-item-tag {
    margin-top: 12px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(240,236,228,0.4);
}

.pipeline-example-item-tag span {
    color: var(--orange);
}

.pipeline-example-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    color: var(--orange);
    opacity: 0.4;
    font-size: 20px;
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translate(50%, -50%);
    z-index: 2;
}

.pipeline-example-arrow svg {
    width: 24px;
    height: 24px;
    stroke: var(--orange);
    fill: none;
    stroke-width: 1.5;
}

/* ─── Statistics ─── */
.stats {
    padding: var(--section-padding) var(--side-margin);
    background: var(--charcoal);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.stats-header {
    margin-bottom: clamp(48px, 8vh, 96px);
}

.stats-header h2 {
    font-family: var(--serif);
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(32px, 4vw, 80px);
}

.stat-item {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: clamp(24px, 3vw, 40px);
}

.stat-number {
    font-family: var(--serif);
    font-size: clamp(48px, 7vw, 120px);
    line-height: 1;
    color: var(--orange);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.5;
    color: rgba(240,236,228,0.8);
    max-width: 320px;
}

.stat-source {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(240,236,228,0.35);
    letter-spacing: 0.05em;
}

/* ─── Logo Banner ─── */
.logo-banner {
    padding: clamp(40px, 6vh, 72px) 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(26,26,26,0.06);
    border-bottom: 1px solid rgba(26,26,26,0.06);
}

.logo-banner-label {
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: clamp(24px, 3vh, 40px);
}

.logo-track-wrapper {
    position: relative;
}

.logo-track-wrapper::before,
.logo-track-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.logo-track-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--cream), transparent);
}

.logo-track-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--cream), transparent);
}

.logo-track {
    display: flex;
    align-items: center;
    gap: clamp(48px, 6vw, 96px);
    animation: logoScroll 25s linear infinite;
    width: max-content;
}

.logo-track:hover {
    animation-play-state: paused;
}

.logo-item {
    flex-shrink: 0;
    height: 28px;
    opacity: 0.3;
    transition: opacity 0.3s;
    user-select: none;
}

.logo-item:hover {
    opacity: 0.55;
}

.logo-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* ─── Gallery ─── */
.gallery {
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.gallery-header {
    padding: 0 var(--side-margin);
    margin-bottom: clamp(40px, 6vh, 80px);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.gallery-header h2 {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.gallery-header h2 em {
    font-style: italic;
    color: var(--orange);
}

.gallery-nav {
    display: flex;
    gap: 12px;
}

.gallery-nav button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
    color: var(--text-dark);
}

.gallery-nav button:hover {
    background: var(--text-dark);
    color: var(--cream);
}

.gallery-track-wrapper {
    position: relative;
}

.gallery-track {
    display: flex;
    gap: clamp(16px, 2vw, 32px);
    padding: 0 var(--side-margin);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item {
    flex: 0 0 auto;
    width: clamp(260px, 22vw, 340px);
    position: relative;
}

.gallery-phone-frame {
    position: relative;
    aspect-ratio: 9 / 14;
    border-radius: 24px;
    overflow: hidden;
    background: var(--charcoal);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
}

.gallery-phone-frame video,
.gallery-phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-label {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* ─── Features ─── */
.features {
    padding: var(--section-padding) var(--side-margin);
}

.features-intro {
    margin-bottom: clamp(60px, 10vh, 120px);
}

.features-intro h2 {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.features-intro h2 em {
    font-style: italic;
    color: var(--orange);
}

.features-intro p {
    font-size: clamp(15px, 1.2vw, 18px);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.feature-item {
    padding: clamp(32px, 4vw, 56px);
    border-top: 1px solid rgba(26,26,26,0.1);
    position: relative;
    transition: background 0.4s;
}

.feature-item:nth-child(odd) {
    border-right: 1px solid rgba(26,26,26,0.1);
}

.feature-item:hover {
    background: var(--cream-dark);
}

.feature-item:last-child {
    grid-column: 1 / -1;
    border-right: none;
}

.feature-number {
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--orange);
    margin-bottom: 20px;
    font-weight: 500;
}

.feature-title {
    font-family: var(--serif);
    font-size: clamp(22px, 2.2vw, 32px);
    font-weight: 400;
    margin-bottom: 16px;
    line-height: 1.2;
}

.feature-desc {
    font-size: clamp(14px, 1.1vw, 16px);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 400px;
}

/* ─── Team ─── */
.team {
    padding: var(--section-padding) var(--side-margin);
    background: var(--charcoal);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.team::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(241,166,54,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.team-header {
    margin-bottom: clamp(48px, 8vh, 96px);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.team-header h2 {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.team-header h2 em {
    font-style: italic;
    color: var(--orange);
}

.team-header p {
    font-size: 13px;
    color: rgba(240,236,228,0.5);
    letter-spacing: 0.05em;
    max-width: 300px;
    text-align: right;
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
}

.team-member {
    position: relative;
}

.team-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 240px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: clamp(20px, 3vh, 32px);
    background: var(--charcoal-light);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(20%);
    transition: filter 0.6s, transform 0.6s;
}

.team-member:hover .team-photo img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.team-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,26,0.15) 0%, transparent 40%);
    pointer-events: none;
    border-radius: 50%;
}

.team-name {
    font-family: var(--serif);
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 400;
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 16px;
    font-weight: 400;
}

.team-bio {
    font-size: clamp(14px, 1.1vw, 16px);
    color: rgba(240,236,228,0.6);
    line-height: 1.7;
    max-width: 440px;
}

/* ─── FAQs ─── */
.faqs {
    padding: var(--section-padding) var(--side-margin);
}

.faqs-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px, 8vw, 160px);
    align-items: start;
}

.faqs-left h2 {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    position: sticky;
    top: 120px;
}

.faqs-left h2 em {
    font-style: italic;
    color: var(--orange);
}

.faq-item {
    border-top: 1px solid rgba(26,26,26,0.12);
    overflow: hidden;
}

.faq-item:last-child {
    border-bottom: 1px solid rgba(26,26,26,0.12);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: clamp(20px, 2.5vw, 32px) 0;
    font-family: var(--serif);
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 400;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    color: var(--text-dark);
    transition: color 0.3s;
}

.faq-question:hover { color: var(--orange); }

.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(26,26,26,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s, border-color 0.3s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--orange);
    border-color: var(--orange);
}

.faq-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
    padding-bottom: clamp(20px, 2.5vw, 32px);
    font-size: clamp(14px, 1.1vw, 16px);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.faq-answer-inner a {
    position: relative;
    z-index: 3;
    cursor: pointer;
    pointer-events: auto;
}

/* ─── Footer ─── */
.footer {
    padding: var(--section-padding) var(--side-margin);
    padding-bottom: clamp(40px, 5vh, 60px);
    background: var(--charcoal);
    color: var(--text-light);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: clamp(60px, 10vh, 120px);
}

.footer-cta h2 {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.footer-cta h2 em {
    font-style: italic;
    color: var(--orange);
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal);
    background: var(--orange);
    padding: 16px 36px;
    border-radius: 100px;
    transition: background 0.3s, transform 0.3s;
    font-weight: 500;
}

.footer-btn:hover {
    background: var(--orange-light);
    transform: translateY(-2px);
}

.footer-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.3s;
}

.footer-btn:hover svg { transform: translateX(4px); }

.footer-contact {
    text-align: right;
}

.footer-contact a {
    display: block;
    font-size: clamp(14px, 1.2vw, 18px);
    color: rgba(240,236,228,0.6);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-contact a:hover { color: var(--orange); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-logo img {
    height: 20px;
    filter: invert(1);
    opacity: 0.6;
}

.footer-meta {
    display: flex;
    gap: 32px;
    font-size: 12px;
    color: rgba(240,236,228,0.35);
    letter-spacing: 0.05em;
}

.footer-meta a { transition: color 0.3s; }
.footer-meta a:hover { color: var(--orange); }
