.landing section[id],
section[id] {
    scroll-margin-top: 110px;
}

.hero {
    position: relative;
    padding: 140px 48px 80px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 400px;
    background-image: url("../../Assets/Mantis Card/background pattern.png");
    background-size: clamp(860px, 92vw, 1200px) auto;
    background-repeat: no-repeat;
    background-position: center top;
    pointer-events: none;
}

.manager-section,
.visual-planning-section,
.vibecoding-os-section,
.collective-harvest-section,
.brazil-tech-section,
.footer-orbit {
    isolation: isolate;
}

.manager-section::before,
.visual-planning-section::before,
.vibecoding-os-section::before,
.collective-harvest-section::before,
.brazil-tech-section::before,
.footer-orbit::before {
    content: '';
    position: absolute;
    width: 100%;
    max-width: 1200px;
    height: 400px;
    left: 50%;
    background-image: url("../../Assets/Mantis Card/background pattern.png");
    background-size: clamp(860px, 92vw, 1200px) auto;
    background-repeat: no-repeat;
    background-position: center top;
    opacity: 0.22;
    pointer-events: none;
    z-index: -1;
}

.manager-section::before {
    top: -120px;
    transform: translateX(-50%) rotate(10deg);
}

.collective-harvest-section::before {
    top: -160px;
    left: 46%;
    transform: translateX(-50%) rotate(-8deg);
}

.visual-planning-section::before {
    top: -200px;
    left: 54%;
    transform: translateX(-50%) rotate(6deg);
}

.vibecoding-os-section::before {
    top: -180px;
    left: 48%;
    transform: translateX(-50%) rotate(-12deg);
}

.brazil-tech-section::before {
    top: -140px;
    left: 52%;
    transform: translateX(-50%) rotate(9deg);
}

.footer-orbit::before {
    top: -120px;
    left: 50%;
    transform: translateX(-50%) rotate(-6deg);
    opacity: 0.18;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-title span {
    background: linear-gradient(90deg, #53D6B2, #60D690, #83D66A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-future {
    position: relative;
    display: inline-block;
    z-index: 0;
}

.hero-title-future::before {
    content: '';
    position: absolute;
    left: -24px;
    right: -24px;
    top: 55%;
    height: 1.35em;
    transform: translateY(-50%);
    background:
        radial-gradient(60% 150% at 40% 55%, rgba(131, 214, 106, 0.45) 0%, rgba(96, 214, 144, 0.32) 35%, rgba(83, 214, 178, 0.16) 60%, rgba(83, 214, 178, 0) 78%),
        radial-gradient(45% 120% at 70% 45%, rgba(131, 214, 106, 0.22) 0%, rgba(83, 214, 178, 0) 70%);
    filter: blur(14px);
    border-radius: 999px;
    z-index: -1;
    pointer-events: none;
}

.hero-subtitle {
    font-family: 'Fira Code', monospace;
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 56px;
}

/* Agent IDE Section */
.agent-ide-section {
    width: 100%;
    max-width: 1028px;
    margin: 125px auto;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
}

.agent-ide-bg {
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%) rotate(7deg);
    width: 100%;
    max-width: 1200px;
    height: 920px;
    background-image: url("../../Assets/Mantis Card/background pattern.png");
    background-size: clamp(860px, 92vw, 1200px) auto;
    background-repeat: no-repeat;
    background-position: center top;
    opacity: 0.24;
    pointer-events: none;
    z-index: 0;
}

.agent-ide-headline {
    display: flex;
    align-items: stretch;
    width: 100%;
    position: relative;
    z-index: 1;
}

.agent-ide-headline-main {
    flex: 1;
    width: auto;
    height: auto;
    min-height: 171px;
    padding: 24px 120px 24px 42px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-right-width: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-width: 0;
}

.agent-ide-header-content {
    display: flex;
    flex-direction: column;
    gap: 3.4px;
}

.agent-ide-title {
    font-family: 'Fira Code', monospace;
    font-size: 56px;
    font-weight: 700;
    color: #000000;
    line-height: 1.312;
    margin: 0;
}

.agent-ide-subtitle {
    font-family: 'Fira Code', monospace;
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    line-height: 1.312;
    margin: 0;
}

.agent-ide-headline-tab {
    width: 10px;
    height: auto;
    min-height: 171px;
    border: 1px solid var(--border-light);
    background: #84D669;
    position: relative;
    box-sizing: border-box;
}

.agent-ide-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 612px;
    margin-top: -1px;
    position: relative;
    z-index: 1;
}

/* Left Panel: Mantis DNA */
.mantis-dna-panel {
    width: 480px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.dna-panel-header {
    height: 34px;
    display: flex;
    align-items: center;
    padding: 10px 8px;
    border: 1px solid #F0F1F2;
    background: #F8F8F8;
    box-sizing: border-box;
}

.dna-panel-header-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: transparent;
}

.dna-panel-header-title {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #3B3B3B;
    line-height: 1.312;
}

.panel-indentation-container {
    display: flex;
    align-items: flex-start;
    margin-top: -1px;
}

.panel-indent {
    width: 12px;
    background: #FFFFFF;
    border: 1px solid #F0F1F2;
    box-sizing: border-box;
    align-self: stretch;
}

.panel-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: transparent;
    box-sizing: border-box;
    margin-left: -1px;
}

/* DNA Mantis Card Row - Figma matching styles */
.dna-mantis-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 20px 0 16px;
    background: #FFFFFF;
    border: 1px solid #F0F1F2;
    box-sizing: border-box;
    margin-top: -1px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dna-mantis-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dna-mantis-dot {
    width: 4px;
    height: 4px;
    background: var(--green-primary);
    box-shadow: 0px 0px 4px var(--green-primary);
    border-radius: 50%;
}

.dna-mantis-name {
    font-family: 'Fira Sans', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.2;
}

.dna-mantis-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Icons group - all icons and tier badge together with strokes */
.dna-mantis-icons-group {
    display: flex;
    align-items: center;
}

.dna-mantis-icon {
    width: 27px;
    height: 27px;
    padding: 6px;
    border: 1px solid #E8E8E8;
    background: #FFFFFF;
    box-sizing: border-box;
    margin-left: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dna-mantis-icon:first-child {
    margin-left: 0;
}

.dna-mantis-icon img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.dna-mantis-tier {
    height: 27px;
    padding: 6px 8px;
    border: 1px solid #E8E8E8;
    background: #FFFFFF;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 450;
    text-transform: uppercase;
    margin-left: -1px;
}

.dna-mantis-tier--evolved {
    background-image: linear-gradient(0deg, var(--green-accent) 0%, var(--green-mid) 50%, var(--green-light) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--green-mid);
}

.dna-mantis-tier--bred {
    color: var(--green-primary);
}

.dna-mantis-tier--wild {
    color: var(--gray-idle);
}

.dna-mantis-drag {
    width: 10px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.dna-mantis-drag img {
    width: 10px;
    height: 17px;
    object-fit: contain;
}

/* Mantis Agent Row in Panel */
.mantis-agent-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.mantis-agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mantis-agent-dot {
    width: 6px;
    height: 6px;
    background: var(--green-primary);
    border-radius: 50%;
    box-shadow: 0 0 4px var(--green-primary);
}

.mantis-agent-name {
    font-family: 'Fira Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.mantis-agent-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.provider-icon-box {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider-icon-box img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* Models Section in Panel */
.models-section {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.models-header {
    height: 28px;
    display: flex;
    align-items: center;
    padding: 4px 8px;
    background: #F8F8F8;
    border: 1px solid #F0F1F2;
    box-sizing: border-box;
}

.models-header-text {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: transparent;
}

.models-header-title {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #3B3B3B;
    line-height: 1.312;
}

.models-tree {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid #F0F1F2;
    background: #FFFFFF;
    box-sizing: border-box;
    margin-top: -1px;
    position: relative;
}

/* Vertical trunk line for tree structure */
.models-tree::before {
    content: '';
    position: absolute;
    left: 31px; /* 18px padding + 13px to align with icon center */
    top: 70px; /* Start below API Keys section */
    bottom: 45px; /* End at last category's icon level */
    width: 1px;
    background: #D1D1D1;
    z-index: 0;
}

.model-category {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.model-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-category-icon {
    width: 28px;
    height: 28px;
    background: #F8F8F8;
    border-radius: 4px;
    padding: 5px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-category-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.model-category-name {
    font-family: 'Fira Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    line-height: 1.2;
}

.model-items {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding-left: 32px;
    position: relative;
}

/* L-shaped connector: vertical line from icon through all items */
.model-items::before {
    content: '';
    position: absolute;
    left: 13px;
    top: -10px;
    bottom: 10px;
    width: 1px;
    background: #D1D1D1;
}

.model-item {
    font-family: 'Fira Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #3B3B3B;
    line-height: 1.2;
    position: relative;
    background: #F8F8F8;
    padding: 4px 8px;
    width: fit-content;
}

/* L-shaped connector: horizontal line to item */
.model-item::before {
    content: '';
    position: absolute;
    left: -19px;
    top: 50%;
    width: 19px;
    height: 1px;
    background: #D1D1D1;
}

/* Custom API Keys - Horizontal layout */
.model-category--api-keys {
    margin-bottom: 8px;
    position: relative;
}

/* Vertical line from API Keys icon down to trunk */
.model-category--api-keys::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 28px; /* Below the icon */
    bottom: -20px; /* Extend into the gap */
    width: 1px;
    background: #D1D1D1;
}


.model-category-icon--key {
    background: transparent;
    padding: 0;
}

.model-category-icon--key img {
    width: 18px;
    height: 18px;
}

.model-items--horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 32px;
    position: relative;
}

/* No vertical line for horizontal items */
.model-items--horizontal::before {
    content: none;
}

.model-items--horizontal .model-item {
    position: relative;
    padding: 4px 8px;
    background: #F8F8F8;
}

/* No horizontal lines between items */
.model-items--horizontal .model-item::before {
    content: none;
}

/* Connector only to the first (Claude) item */
.model-items--horizontal .model-item:first-child::before {
    content: '';
    position: absolute;
    left: -19px;
    top: 50%;
    width: 19px;
    height: 1px;
    background: #D1D1D1;
}

/* ═══════════════════════════════════════
   SWARM AGENTS SECTION
   ═══════════════════════════════════════ */

.swarm-agents-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.swarm-agents-list {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #F0F1F2;
    box-sizing: border-box;
    margin-top: -1px;
}

.swarm-agent-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 20px 0 16px;
    border-bottom: 1px solid #F0F1F2;
    box-sizing: border-box;
    transition: background 0.15s ease;
}

.swarm-agent-card:last-child {
    border-bottom: none;
}

.swarm-agent-card:hover {
    background: #FAFAFA;
}

.swarm-agent-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.swarm-agent-dot {
    width: 6px;
    height: 6px;
    background: #84D669;
    box-shadow: 0px 0px 4px #84D669;
    border-radius: 50%;
}

.swarm-agent-dot--idle {
    background: var(--gray-idle);
    box-shadow: 0px 0px 4px var(--gray-idle);
}

.swarm-agent-name {
    font-family: 'Fira Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #3B3B3B;
    line-height: 1.2;
}

.swarm-agent-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.swarm-agent-icons {
    display: flex;
    align-items: center;
}

.swarm-agent-icon {
    width: 27px;
    height: 27px;
    padding: 6px;
    border: 1px solid #E8E8E8;
    background: #FFFFFF;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -1px;
}

.swarm-agent-icon:first-child {
    margin-left: 0;
}

.swarm-agent-icon img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.swarm-agent-tier {
    height: 26px;
    padding: 0 8px;
    border: 1px solid #E8E8E8;
    background: #FFFFFF;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    margin-left: -1px;
}

.swarm-agent-tier--evolved {
    color: #84D669;
}

.swarm-agent-tier--bred {
    color: #84D669;
}

.swarm-agent-tier--wild {
    color: #B0B0B0;
}

.swarm-agent-drag {
    width: 10px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    cursor: grab;
}

.swarm-agent-drag img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Right Panel: DNA Tier Selector */
.dna-tier-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #F0F1F2;
    box-sizing: border-box;
    margin-left: -1px;
    padding: 38px 32px;
    gap: 12px;
}

.dna-tier-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.dna-tier-header-title {
    font-family: 'Fira Code', monospace;
    font-size: 18px;
    font-weight: 500;
    color: #3B3B3B;
    line-height: 1.312;
}

.dna-tier-header-slashes {
    color: #84D669;
}

.dna-tier-header-subtitle {
    font-family: 'Fira Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #525252;
    line-height: 1.4;
}

.dna-tier-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tier-card {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease;
}

.tier-card:hover {
    transform: translateY(-1px);
}

.tier-card--selected {
    transform: none;
}

.tier-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
    padding: 6px 8px;
    background: #F8F8F8;
    border: 1px solid #F0F1F2;
    box-sizing: border-box;
}

.tier-card-badge {
    font-family: 'Fira Code', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #3B3B3B;
    background: transparent;
    padding: 6.733333px;
    line-height: 1.312;
    leading-trim: both;
    text-edge: cap;
}

.tier-card--selected .tier-card-badge {
    background: transparent;
    color: #FFFFFF;
}

.tier-card--selected .tier-card-header,
.tier-card--selected .tier-card-body {
    border-color: #84D669;
}

.tier-card--selected .tier-card-header {
    background: #84D669;
}

.tier-card-body {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #FFFFFF;
    border: 1px solid #F0F1F2;
    box-sizing: border-box;
    margin-top: -1px;
}

.tier-card-description {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    line-height: 1.312;
    margin: 0;
}

/* DNA Button */
.dna-button {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 4px 24px 4px 6px;
    background: #FFFFFF;
    border: 1px solid #84D669;
    border-radius: 59px;
    margin-bottom: 24px;
    cursor: pointer;
    transition: transform 0.15s ease;
    position: relative;
    overflow: hidden;
}

.dna-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url('../../design system/Hero/pattern button.png'),
        linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    background-repeat: repeat, no-repeat;
    background-size: 23%, 100% 100%;
    background-position: left top, 0 0;
    opacity: 0.24;
    pointer-events: none;
    z-index: 0;
}

.terminal-wrapper {
    width: 918px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid #F0F1F2;
    background: #FFFFFF;
    text-align: left;
}

.terminal-wrapper .section-header,
.terminal-wrapper .terminal {
    width: 100%;
}

.section-header {
    border-bottom: 1px solid #F0F1F2;
    background: #FFFFFF;
    padding: 12px 24px 12px 16px;
    box-sizing: border-box;
}

.dna-icon {
    width: 30.5px;
    height: 30.5px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #84D669;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.dna-icon img {
    width: 14.5px;
    height: 14.5px;
    object-fit: contain;
}

.dna-text {
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #3B3B3B;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* Manager Section */
.manager-section {
    width: 100%;
    max-width: 1280px;
    margin: 80px auto 48px; /* Increased top margin for spacing from terminal */
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #F0F1F2;
    padding: 0;
}

.manager-section .section-header {
    max-width: 100%;
    border: none;
    border-bottom: 1px solid #F0F1F2;
    background: #FFFFFF;
    padding: 12px 24px 12px 16px;
}

.manager-cards {
    display: block;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow-x: hidden;
    overflow-y: visible;
    padding: 36px 0 37px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    background: #FFFFFF; /* The DIV behind the slider */
}

/* Pseudo-elements to recreate the 1280px container borders over the full-width slider */
.manager-cards::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1280px;
    border-left: 1px solid #F0F1F2;
    border-right: 1px solid #F0F1F2;
    pointer-events: none;
    z-index: 0; /* Behind the cards but on top of background */
}

.manager-cards::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 2;
    background-image:
        linear-gradient(to right, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(to left, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
    background-repeat: no-repeat;
    background-position: left center, right center;
    background-size: 120px 100%, 120px 100%;
}

.manager-cards-track {
    display: flex !important;
    gap: 0;
    width: max-content;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-bottom: 1px;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.manager-cards-track .mantis-card {
    transition: transform 0.25s ease;
    transform-origin: center;
    margin-right: 16px;
    --mantis-hover-tilt: -1deg;
    flex: 0 0 300px;
    width: 300px;
    max-width: 300px;
}

.manager-cards-track .mantis-card:nth-child(even) {
    --mantis-hover-tilt: 1deg;
}

.manager-cards-track .mantis-card:hover {
    transform: scale(1.06) rotate(var(--mantis-hover-tilt, -1deg));
    z-index: 10;
}

/* 
.manager-cards-track:hover {
    animation-play-state: paused;
} 
*/

.manager-cards-track > * {
    flex-shrink: 0;
}

.manager-cards-track.manager-cards-track--animate {
    animation: managerCardsMarquee var(--manager-marquee-duration, 40s) linear infinite;
}

@keyframes managerCardsMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(calc(-1 * var(--manager-marquee-distance, 0px)), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .manager-cards-track.manager-cards-track--animate {
        animation: none;
    }
}

/* ============================================
   COLLECTIVE HARVEST SECTION
   ============================================ */

.collective-harvest-section {
    width: 100%;
    max-width: 1028px;
    margin: 48px auto;
    display: flex;
    flex-direction: column;
    background: transparent;
    position: relative;
}

/* Header */
.collective-harvest-header {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.collective-harvest-header-main {
    flex: 1;
    width: auto;
    height: auto;
    min-height: 171px;
    padding: 24px 120px 24px 42px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-right-width: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-width: 0;
}

.collective-harvest-header-content {
    display: flex;
    flex-direction: column;
    gap: 3.4px;
}

.collective-harvest-title {
    font-family: 'Fira Code', monospace;
    font-size: 56px;
    font-weight: 700;
    color: #000000;
    line-height: 1.312;
    margin: 0;
}

.collective-harvest-subtitle {
    font-family: 'Fira Code', monospace;
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    line-height: 1.312;
    margin: 0;
    white-space: nowrap;
}

.section-header-subtitle-secondary {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.2;
    white-space: normal;
    padding-top: 6px;
    padding-bottom: 10px;
    color: #7F7F7F;
    display: block;
    width: 100%;
    margin: 0;
}

.collective-harvest-header-tab {
    width: 10px;
    height: auto;
    min-height: 171px;
    border: 1px solid var(--border-light);
    background: #84D669;
    box-sizing: border-box;
}

/* Content Panels Container */
.collective-harvest-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-top: -1px;
}

/* Left Panel: Seed Pool */
.seed-pool-panel {
    width: 548px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-right-width: 0;
    box-sizing: border-box;
}

.seed-pool-header {
    height: 34px;
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-section);
    box-sizing: border-box;
}

.seed-pool-header-title {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.312;
}

.seed-pool-body {
    padding: 24px 24px 0px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Seed Tag */
.seed-tag-container {
    display: flex;
    justify-content: center;
}

.seed-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    background: var(--green-primary);
    border: none;
    font-family: 'Fira Code', monospace;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Seed Details Section with Indentation */
.seed-details-wrapper {
    display: flex;
    width: 100%;
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
    box-sizing: border-box;
}

.seed-details-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.seed-details-indent {
    width: 12px;
    flex-shrink: 0;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-left: none;
    border-right: none;
    box-sizing: border-box;
}

.seed-details-section {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    border-right: none;
    background: var(--bg-section);
}

.seed-details-header {
    height: 34px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-section);
    box-sizing: border-box;
}

.seed-details-title {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.seed-details-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #FFFFFF;
}

.seed-details-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.seed-label {
    color: #3B3B3B;
    font-weight: 500;
}

.seed-label--green {
    color: #3B3B3B;
}

.seed-value {
    color: var(--text-dark);
    font-weight: 400;
}

.seed-id {
    color: var(--text-gray);
    margin-left: auto;
    font-weight: 600;
}

.seed-id-label {
    color: var(--green-primary);
}

.seed-arrow {
    color: var(--green-primary);
    margin: 0 4px;
}

.seed-username {
    color: var(--green-primary);
}

/* Seed Description */
.seed-description {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--green-bg);
    border: 1px solid var(--border-light);
    border-right: none;
    margin-top: -1px;
    box-sizing: border-box;
}

.seed-description-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.seed-desc-label {
    color: var(--text-dark);
    font-weight: 700;
    flex-shrink: 0;
}

.seed-desc-value {
    color: var(--text-dark);
    font-weight: 400;
}

/* Right Panel: Task Complete */
.task-complete-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    box-sizing: border-box;
}

.task-complete-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-complete-header-title {
    font-family: 'Fira Code', monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.task-complete-subtitle {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-gray);
    margin: 0;
}

.task-complete-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Harvest Mantis Card + Terminal Container */
.harvest-card-terminal-group {
    display: flex;
    flex-direction: column;
}

/* Harvest Mantis Card */
.harvest-mantis-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-bottom: none;
}

.harvest-mantis-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.harvest-mantis-dot {
    width: 4px;
    height: 4px;
    background: var(--green-primary);
    box-shadow: 0px 0px 4px var(--green-primary);
    border-radius: 50%;
}

.harvest-mantis-name {
    font-family: 'Fira Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

.harvest-mantis-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.harvest-mantis-icons {
    display: flex;
    align-items: center;
}

.harvest-mantis-icon {
    width: 27px;
    height: 27px;
    padding: 6px;
    border: 1px solid var(--border-card);
    background: #FFFFFF;
    box-sizing: border-box;
    margin-left: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.harvest-mantis-icon:first-child {
    margin-left: 0;
}

.harvest-mantis-icon img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.harvest-mantis-tier {
    height: 27px;
    padding: 6px 8px;
    border: 1px solid var(--border-card);
    background: #FFFFFF;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 450;
    text-transform: uppercase;
    margin-left: -1px;
}

.harvest-mantis-tier--evolved {
    background-image: linear-gradient(0deg, var(--green-accent) 0%, var(--green-mid) 50%, var(--green-light) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--green-mid);
}

.harvest-mantis-drag {
    width: 10px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    margin-left: 8px;
}

.harvest-mantis-drag img {
    width: 10px;
    height: 17px;
    object-fit: contain;
}

/* Harvest Terminal */
.harvest-terminal {
    background: #1E1E1E;
    border: 1px solid var(--border-light);
    border-top: none;
    padding: 16px;
}

.harvest-terminal-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.harvest-terminal-line {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 450;
    color: #FFFFFF;
    line-height: 1.6;
}

/* Promote Button */
.harvest-promote-btn {
    width: 100%;
    min-height: 63px;
    justify-content: flex-start;
    text-align: left;
    padding: 14px 24px;
    font-size: 13pt;
}

.harvest-promote-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* ============================================
   COLLECTIVE HARVEST - ANIMATIONS
   ============================================ */

/* Exit Animation - Fade up and out */
.seed-exit {
    animation: seedFadeOut 0.3s ease-out forwards;
}

@keyframes seedFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Enter Animation - Fade up into view */
.seed-enter {
    animation: seedFadeIn 0.4s ease-out forwards;
}

@keyframes seedFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth transitions for dynamically updated text */
#seedTag,
#seedName,
#seedNumber,
#seedMantis,
#seedUser,
#seedHarvest,
#seedProven,
#seedSuccessRate,
#seedDoes,
#seedPrevents,
#seedRequires,
#terminalKeyword,
#harvestMantisNumber {
    display: inline;
}

/* ============================================
   BRAZILIAN TECHNOLOGY SECTION
   ============================================ */

.brazil-tech-section {
    width: 100%;
    max-width: 1028px;
    margin: 125px auto;
    display: flex;
    flex-direction: column;
    background: transparent;
    position: relative;
}

/* Header */
.brazil-tech-header {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.brazil-tech-header-main {
    flex: 1;
    width: auto;
    height: auto;
    min-height: 171px;
    padding: 24px 120px 24px 42px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-right-width: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-width: 0;
}

.brazil-tech-header-content {
    display: flex;
    flex-direction: column;
    gap: 3.4px;
}

.brazil-tech-title {
    font-family: 'Fira Code', monospace;
    font-size: 56px;
    font-weight: 700;
    color: #000000;
    line-height: 1.312;
    margin: 0;
    white-space: nowrap;
}

.brazil-tech-subtitle {
    font-family: 'Fira Code', monospace;
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    line-height: 1.312;
    margin: 0;
}

.brazil-tech-header-tab {
    width: 10px;
    height: auto;
    min-height: 171px;
    border: 1px solid var(--border-light);
    background: #84D669;
    box-sizing: border-box;
}

/* Rows Container */
.brazil-tech-rows {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: -1px;
}

/* Row */
.brazil-tech-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin-bottom: -1px;
}

/* Intro Row */
.brazil-tech-row--intro .brazil-tech-row-cell--full {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 32px 40px 29px;
    background: #FFFFFF;
    border: 1px solid #F0F1F2;
    box-sizing: border-box;
}

.brazil-tech-intro-text {
    font-family: 'Fira Sans', sans-serif;
    font-size: 19.748px;
    font-weight: 500;
    color: #3B3B3B;
    line-height: 1.2;
    margin: 0;
    max-width: 626px;
}

.brazil-tech-inline-link {
    color: var(--green-primary);
    text-decoration: underline;
    font-weight: 500;
}

.brazil-tech-inline-link:hover {
    color: #6BC254;
}

.brazil-tech-doc-link {
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #84D669;
    text-decoration: underline;
    white-space: nowrap;
}

.brazil-tech-doc-link:hover {
    color: #6BC254;
}

/* Text Cell */
.brazil-tech-row-cell--text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 40px 32px 40px 29px;
    background: #FFFFFF;
    border: 1px solid #F0F1F2;
    border-right-width: 0;
    box-sizing: border-box;
}

.brazil-tech-feature-title {
    font-family: 'Fira Sans', sans-serif;
    font-size: 19.748px;
    font-weight: 500;
    color: #3B3B3B;
    line-height: 1;
    margin: 0;
}

.brazil-tech-feature-desc {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    font-weight: 400;
    color: #3B3B3B;
    line-height: 1.5;
    margin: 0;
}

/* Icon Cell */
.brazil-tech-row-cell--icon {
    width: 213px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px 40px 29px;
    background: #FFFFFF;
    border: 1px solid #F0F1F2;
    box-sizing: border-box;
}

.brazil-tech-row-cell--icon img {
    max-width: 136px;
    max-height: 90px;
    object-fit: contain;
}

/* ============================================
   FOOTER ORBIT CTA SECTION
   ============================================ */

.footer-orbit {
    width: 100%;
    overflow: hidden;
    height: 714px;
    position: relative;
    z-index: 5;
    background: #FFFFFF;
    margin-top: 120px;
}

.footer-orbit-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 280px;
}

/* CTA Button */
.footer-orbit-cta {
    position: relative;
    z-index: 10;
    font-size: 14px;
    padding: 14px 32px;
    white-space: nowrap;
}

/* Green glow behind the button */
.footer-orbit-glow {
    position: absolute;
    top: calc(50% - 15px);
    left: 50%;
    width: 364px;
    height: 193px;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(ellipse at 30% 50%, rgba(132, 214, 105, 0.45) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 40%, rgba(83, 214, 178, 0.4) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 60%, rgba(96, 214, 144, 0.35) 0%, transparent 50%);
    filter: blur(40px);
    z-index: 9;
    pointer-events: none;
    animation: ctaGlow 6s ease-in-out infinite;
    border-radius: 999px;
}

@keyframes ctaGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.7;
    }
    33% {
        transform: translate(-48%, -52%) scale(1.15) rotate(3deg);
        opacity: 1;
    }
    66% {
        transform: translate(-52%, -48%) scale(0.9) rotate(-3deg);
        opacity: 0.8;
    }
}

/* Orbit Ring Container */
.orbit-ring {
    --orbit-radius: 240px;
    --orbit-size: calc(var(--orbit-radius) * 2);
    position: absolute;
    width: var(--orbit-size);
    height: var(--orbit-size);
    top: 280px;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    animation: orbitSpin 36s linear infinite;
    pointer-events: none;
    will-change: transform;
}

@keyframes orbitSpin {
    0%   { transform: translateX(-50%) translateY(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) translateY(-50%) rotate(360deg); }
}

/* Individual Orbit Icons */
.orbit-icon {
    position: absolute;
    width: 64px;
    height: 64px;
    top: 50%;
    left: 50%;
    margin-left: -32px;
    margin-top: -32px;
    pointer-events: auto;
    transform:
        rotate(var(--angle))
        translateX(var(--orbit-radius))
        rotate(calc(-1 * var(--angle)));
}

/* Inner wrapper handles counter-rotation (decoupled from hover) */
.orbit-icon-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    animation: orbitCounterSpin 36s linear infinite;
    will-change: transform;
}

.orbit-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Counter-spin keeps icons upright */
@keyframes orbitCounterSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* Starting angles — 7 icons, ~51.43deg apart */
.orbit-icon--0  { --angle:   0deg; }
.orbit-icon--1  { --angle:  51.43deg; }
.orbit-icon--2  { --angle: 102.86deg; }
.orbit-icon--3  { --angle: 154.29deg; }
.orbit-icon--4  { --angle: 205.71deg; }
.orbit-icon--5  { --angle: 257.14deg; }
.orbit-icon--6  { --angle: 308.57deg; }

/* Hover — odd icons tilt left, even icons tilt right */
.orbit-icon:nth-child(odd):hover img {
    transform: scale(1.25) rotate(-4deg);
}

.orbit-icon:nth-child(even):hover img {
    transform: scale(1.25) rotate(4deg);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .orbit-ring {
        animation: none;
    }
    .orbit-icon-inner {
        animation: none;
    }
}

/* ============================================
   SITE FOOTER BAR
   ============================================ */

.site-footer {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #F0F1F2;
    padding: 20px 30px;
    box-sizing: border-box;
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer-logo {
    height: 39px;
    width: auto;
}

/* ============================================
   MOBILE 404 BREAKPOINT
   ============================================ */

.mobile-404 {
    display: none;
}

@media (max-width: 768px) {
    .mobile-404 {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: #FFFFFF;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
    }

    .mobile-404-img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }

    .header,
    .texture-bg-wrapper,
    .modal-overlay {
        display: none !important;
    }
}
